@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Oswald:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #0a0514; }

body {
  font-family: 'Oswald', sans-serif;
  background: linear-gradient(135deg, #0a0514 0%, #1a1028 50%, #0a0514 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Starfield */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(3px 3px at 15% 25%, white, transparent),
    radial-gradient(2px 2px at 45% 60%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 75% 40%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 30% 80%, white, transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 60% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 20% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(3px 3px at 90% 85%, white, transparent);
  background-size: 200% 200%, 300% 300%, 250% 250%, 280% 280%;
  opacity: 0.5;
  animation: starsMove 180s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes starsMove {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Teal dust layer */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 22% 18%, rgba(0,210,170,0.95), transparent),
    radial-gradient(3px 3px at 58% 72%, rgba(0,210,170,0.8), transparent),
    radial-gradient(2px 2px at 78% 38%, rgba(0,210,170,0.9), transparent),
    radial-gradient(1px 1px at 42% 88%, rgba(0,210,170,0.7), transparent),
    radial-gradient(3px 3px at 88% 20%, rgba(0,210,170,0.85), transparent),
    radial-gradient(2px 2px at 12% 62%, rgba(0,210,170,0.75), transparent),
    radial-gradient(1px 1px at 65% 45%, rgba(0,210,170,0.6), transparent);
  background-size: 320% 320%, 280% 280%, 350% 350%, 260% 260%, 300% 300%, 240% 240%, 370% 370%;
  opacity: 0.35;
  animation: starsMove 110s linear infinite reverse;
  z-index: 0;
  pointer-events: none;
}

/* Floating color-cycling motes */
@keyframes moteDrift {
  0%   { transform: translate(0px, 0px);   opacity: 0.55; }
  25%  { transform: translate(22px, -18px); opacity: 0.85; }
  50%  { transform: translate(-12px, 28px); opacity: 0.6; }
  75%  { transform: translate(18px, 10px);  opacity: 0.9; }
  100% { transform: translate(-8px, -22px); opacity: 0.65; }
}

@keyframes moteColor {
  0%   { background: #d4a8ff; box-shadow: 0 0 8px 2px rgba(212,168,255,0.6); }
  50%  { background: #00d2aa; box-shadow: 0 0 10px 3px rgba(0,210,170,0.6); }
  100% { background: #b89fcc; box-shadow: 0 0 6px 2px rgba(184,159,204,0.5); }
}

/* Background decoration */
.bg-glyph {
  position: fixed;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 380px;
  top: -80px;
  right: -100px;
  background: linear-gradient(135deg, #d4a8ff 0%, #b89fcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  user-select: none;
}

.bg-glyph-2 {
  font-size: 180px;
  top: auto;
  bottom: 120px;
  right: auto;
  left: -40px;
  opacity: 0.05;
}

.bg-glyph-3 {
  font-size: 120px;
  top: 50%;
  right: auto;
  left: 50%;
  opacity: 0.04;
  transform: translateY(-50%);
}

.slash {
  position: fixed;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 159, 204, 0.09) 50%, transparent 100%);
  box-shadow: 0 0 80px 30px rgba(184, 159, 204, 0.04);
  pointer-events: none;
  z-index: 0;
}
.slash-1 { width: 1000px; height: 120px; top: 20%;  right: -200px; transform: rotate(-20deg); }
.slash-2 { width: 800px;  height: 100px; bottom: 25%; left: -200px; transform: rotate(15deg);  }
.slash-3 { width: 600px;  height: 60px;  top: 55%;  right: -100px; transform: rotate(-8deg);  opacity: 0.6; }
.slash-4 { width: 700px;  height: 80px;  top: 5%;   left: -150px;  transform: rotate(12deg);  opacity: 0.5; }
.slash-5 { width: 500px;  height: 50px;  bottom: 8%; right: 20%;    transform: rotate(-25deg); opacity: 0.4; }

/* Global section label (teal accent, used on homepage + reusable) */
.section-label {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #00d2aa;
  margin-bottom: 16px;
}

/* Hamburger button (fixed, subpages) */
.menu-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99;
  background: rgba(184, 159, 204, 0.1);
  border: 1px solid rgba(184, 159, 204, 0.3);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.menu-btn:hover {
  background: rgba(184, 159, 204, 0.3);
  box-shadow: 0 0 30px rgba(184, 159, 204, 0.5);
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #d4a8ff;
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

/* Menu panel */
.menu-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  background: linear-gradient(135deg, #b89fcc 0%, #8a6aac 100%);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  padding: 80px 40px 40px;
  display: flex;
  flex-direction: column;
}
.menu-panel.open { transform: translateX(0); }

.menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: transparent;
  border: 2px solid rgba(0,0,0,0.3);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 26px;
  color: rgba(0,0,0,0.7);
  transition: all 0.3s ease;
}
.menu-close:hover { background: rgba(0,0,0,0.2); color: #000; }

.menu-slash {
  position: absolute;
  width: 500px; height: 70px;
  background: rgba(255,255,255,0.1);
  top: 30%; right: -100px;
  transform: rotate(-18deg);
  pointer-events: none;
}

.menu-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: relative; z-index: 2;
}
.menu-nav a {
  color: rgba(0,0,0,0.7);
  border-left: 3px solid transparent;
  padding: 16px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  text-align: right;
  text-decoration: none;
  display: block;
}
.menu-nav a:hover,
.menu-nav a.active {
  background: rgba(0,0,0,0.2);
  color: #fff;
  border-left-color: #fff;
}

.menu-footer {
  margin-top: auto;
  position: relative; z-index: 2;
  text-align: right;
}
.menu-footer-text {
  font-size: 16px;
  color: rgba(0,0,0,0.5);
  margin-bottom: 16px;
  font-weight: 300;
}
.menu-socials { display: flex; gap: 12px; justify-content: flex-end; }
.menu-socials a {
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}
.menu-socials a:hover { color: #000; }
.menu-socials a:hover { background: rgba(0,0,0,0.4); transform: scale(1.1); }

/* Subpage layout */
.page {
  min-height: 100vh;
  padding: 96px 80px 80px;
  position: relative;
  z-index: 1;
}

.page-header { margin-bottom: 56px; }

.page-title {
  font-size: 74px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 40px rgba(212, 168, 255, 0.6);
  line-height: 0.9;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 20px;
  font-weight: 300;
  color: #b89fcc;
  letter-spacing: 0.04em;
}

/* Social icon links */
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 46px; height: 46px;
  border: 1px solid rgba(184, 159, 204, 0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  color: rgba(184,159,204,0.7);
  text-decoration: none;
  background: rgba(184, 159, 204, 0.06);
  transition: all 0.25s ease;
}
.social-links a:hover {
  background: rgba(184, 159, 204, 0.18);
  border-color: #b89fcc;
  color: #d4a8ff;
  transform: scale(1.08);
}

/* Utility */
.accent { color: #d4a8ff; }
.muted  { color: #6a4a8a; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(184,159,204,0.1);
  padding: 60px 80px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-sitemap {
  display: flex;
  gap: 48px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(184,159,204,0.28);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(184,159,204,0.45);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer-col a:hover { color: #d4a8ff; }

.footer-right { text-align: right; }

.footer-socials {
  justify-content: flex-end;
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 13px;
  font-weight: 300;
  color: rgba(184,159,204,0.18);
  letter-spacing: 0.06em;
}

@media (min-width: 1921px) {
  html {
    background: #0a0514;
  }
  body {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
  }
}

@media (max-width: 900px) {
  .page { padding: 80px 24px 60px; }
  .page-title { font-size: 50px; }

  /* Menu */
  .menu-panel { width: 100%; padding: 72px 24px 32px; }
  .menu-nav a { font-size: 20px; padding: 14px 16px; }
  .menu-socials { gap: 10px; }
  .menu-socials a { width: 36px; height: 36px; font-size: 18px; }

  /* Footer */
  .site-footer { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-sitemap { flex-wrap: wrap; gap: 32px; }
  .footer-right { text-align: left; }
  .footer-socials { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }

  /* Social links (hero + footer) */
  .social-links { flex-wrap: wrap; gap: 10px; }
  .social-links a { width: 40px; height: 40px; font-size: 17px; }
}
