@font-face {
  font-family: 'Fortune City';
  src: url('fonts/FortuneCity.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

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

:root {
  --teal:        #047d6b;
  --teal-light:  #05a88e;
  --teal-dim:    rgba(4, 125, 107, 0.15);
  --bg:          #0e0f10;
  --bg-card:     #151718;
  --text:        #e8e8e6;
  --text-dim:    #7a7a78;
  --text-xs:     #4e4e4d;
  --radius:      6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.lightbox-open { overflow: hidden; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(14,15,16,0.92);
  backdrop-filter: blur(12px);
  transition: background 0.4s;
}

nav.nav-home {
  background: linear-gradient(180deg, rgba(14,15,16,0.95) 0%, transparent 100%);
  backdrop-filter: none;
}

nav.scrolled,
nav.nav-home.scrolled {
  background: rgba(14,15,16,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Fortune City', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-home .nav-links { gap: 36px; }

.nav-links a,
.nav-back {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-home .nav-links a { font-size: 0.78rem; }

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-back:hover { color: var(--teal-light); }

.nav-links a:hover::after { width: 100%; }

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  background: rgba(21,23,24,0.76);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span { margin: 5px 0; }
nav.menu-open .nav-toggle::before { transform: translateY(6px) rotate(45deg); }
nav.menu-open .nav-toggle span { opacity: 0; }
nav.menu-open .nav-toggle::after { transform: translateY(-6px) rotate(-45deg); }

footer {
  padding: 50px 48px 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Fortune City', sans-serif;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.footer-logo span { color: var(--teal); }

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-xs);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(4, 125, 107, 0.1);
  border-color: var(--teal);
  color: var(--teal-light);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
    background: rgba(14,15,16,0.92);
    backdrop-filter: blur(12px);
  }

  .nav-logo { font-size: 1.1rem; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 1px);
    left: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 10px;
    background: rgba(14,15,16,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    box-shadow: 0 18px 42px rgba(0,0,0,0.36);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-home .nav-links { gap: 0; }

  nav.menu-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .nav-links a::after { display: none; }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-social { order: -1; }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
}
