/* ─────────────────────────────────────────────
   COMPONENTS.CSS — All UI Sections
   ───────────────────────────────────────────── */

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s;
}

.hamburger:hover {
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animated X state */
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255, 0, 60, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: clamp(-1px, -0.03em, -2px);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

/* Floating SVG figures */
.hero-figures {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.15;
  animation: fadeIn 1s ease forwards 0.8s;
}

.fig {
  position: absolute;
}

.fig-1 {
  top: 15%;
  left: 8%;
  animation: float 10s ease-in-out infinite, rotate3d 20s linear infinite;
}

.fig-2 {
  top: 20%;
  right: 10%;
  animation: float 12s ease-in-out infinite 1s, rotate3d 24s linear infinite reverse;
}

.fig-3 {
  bottom: 20%;
  left: 12%;
  animation: float 11s ease-in-out infinite 0.5s, rotate3d 18s linear infinite;
}

.fig-4 {
  bottom: 15%;
  right: 8%;
  animation: float 14s ease-in-out infinite 1.5s, rotate3d 30s linear infinite reverse;
}

/* ── GAMES ── */
#games {
  background: var(--bg-dark);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
  border: 1px solid var(--border);
}

.game-card {
  background: var(--bg-card);
  padding: 40px;
  transition: background-color 0.3s, transform 0.3s;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}

.game-card:hover::before {
  border-color: rgba(255, 0, 60, 0.4);
}

.game-card.featured {
  grid-column: span 2;
}

.game-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-live {
  background: rgba(255, 0, 60, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 0, 60, 0.3);
}

.badge-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.game-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.game-card:hover .game-icon {
  filter: grayscale(0);
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.game-card.featured .game-title {
  font-size: 2rem;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.game-link:hover {
  gap: 12px;
}

/* ── ABOUT ── */
#about {
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-values {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.value-item:hover .value-icon {
  border-color: var(--accent);
}

.value-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.value-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg-dark);
  text-align: center;
}

#contact .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact .section-title {
  margin-bottom: 16px;
}

#contact .section-body {
  text-align: center;
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  text-align: center;
  padding: 48px 24px;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  /* Show hamburger, hide desktop links */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 9, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
  }

  /* ── HERO mobile ── */
  .hero {
    padding: 100px 20px 60px;
    min-height: 100svh;
    /* use svh to account for mobile browser chrome */
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 36px;
    max-width: 100%;
    padding: 0 4px;
  }

  .hero-cta {
    gap: 12px;
  }

  /* Scale down floating figures so they don't crowd the text */
  .hero-figures {
    opacity: 0.08;
  }

  .fig-1,
  .fig-3 {
    left: 2%;
  }

  .fig-2,
  .fig-4 {
    right: 2%;
  }

  .fig-1 svg,
  .fig-2 svg,
  .fig-3 svg,
  .fig-4 svg {
    width: 60px;
    height: 60px;
  }

  /* ── ABOUT mobile ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    display: none;
  }

  .game-card.featured {
    grid-column: span 1;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .hero {
    padding: 90px 16px 48px;
  }

  .hero-title {
    letter-spacing: -0.5px;
  }

  /* Hide decorative figures entirely on very small screens */
  .hero-figures {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}