/* ===== CSS Custom Properties ===== */
:root {
  --bg-darkest: #060610;
  --bg-dark: #0D0D1A;
  --bg-medium: #16213E;
  --bg-card: #1A1A2E;
  --bg-card-hover: #222240;

  --cyan: #00F3FF;
  --pink: #FF006E;
  --green: #00E676;
  --gold: #FFD700;
  --purple: #8338EC;

  --text-primary: #FFFFFF;
  --text-secondary: #CCCCDD;
  --text-muted: #8888AA;
  --border-subtle: #3A3A5E;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Thai', 'Noto Sans Devanagari', sans-serif;

  --nav-height: 64px;
  --max-width: 1200px;
  --section-padding: 80px 24px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  background: var(--bg-darkest);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-primary); line-height: 1.2; font-weight: 700; }

/* ===== Utilities ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding); }
.section-title {
  font-size: 2rem;
  margin-bottom: 48px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--cyan);
  margin: 12px auto 0;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
}
.nav--scrolled {
  background: rgba(6, 6, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 243, 255, 0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}
.nav__brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}
.nav__links a:hover, .nav__links a.active { color: var(--cyan); opacity: 1; }

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-switcher__btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cyan);
}
.lang-switcher__btn .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.lang-switcher.open .lang-switcher__btn .arrow { transform: rotate(180deg); }
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1001;
}
.lang-switcher.open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switcher__option:hover {
  background: rgba(0, 243, 255, 0.08);
  color: var(--text-primary);
}
.lang-switcher__option.active {
  color: var(--cyan);
}
.lang-switcher__option .flag { font-size: 1.1rem; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(6, 6, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
}
.nav__mobile a:hover { color: var(--cyan); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-darkest);
  border-top: 1px solid rgba(0, 243, 255, 0.08);
  padding: 40px 24px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand img { width: 32px; height: 32px; border-radius: 6px; }
.footer__brand-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__brand-text span { color: var(--cyan); font-weight: 700; }
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.footer__links a:hover { color: var(--cyan); }
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Scroll Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 60px 16px; }
  .section-title { font-size: 1.6rem; margin-bottom: 36px; }
}
@media (max-width: 599px) {
  :root { --nav-height: 56px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
