/* ===== CSS Variables ===== */
:root {
  --bg-deep: #050510;
  --bg-mid: #0a0a1a;
  --bg-card: rgba(15, 15, 35, 0.75);
  --accent: #ff6b1a;
  --accent-bright: #ff8c3a;
  --accent-glow: rgba(255, 107, 26, 0.4);
  --cyan: #00d4ff;
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ===== Animated Starfield ===== */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stars {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='10' cy='20' r='1' fill='white' opacity='0.8'/%3E%3Ccircle cx='50' cy='40' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='80' cy='10' r='1.2' fill='white' opacity='0.9'/%3E%3Ccircle cx='30' cy='70' r='0.6' fill='white' opacity='0.5'/%3E%3Ccircle cx='70' cy='80' r='1' fill='white' opacity='0.7'/%3E%3Ccircle cx='90' cy='50' r='0.7' fill='white' opacity='0.6'/%3E%3C/svg%3E") repeat;
  animation: drift 120s linear infinite;
  opacity: 0.6;
}

.stars2 {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Ccircle cx='20' cy='30' r='1.5' fill='%23ff8c3a' opacity='0.5'/%3E%3Ccircle cx='100' cy='60' r='1' fill='white' opacity='0.4'/%3E%3Ccircle cx='60' cy='120' r='1.2' fill='%2300d4ff' opacity='0.4'/%3E%3C/svg%3E") repeat;
  animation: drift 80s linear infinite reverse;
  opacity: 0.4;
}

.stars3 {
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 107, 26, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-1000px); }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e55a00 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(255, 107, 26, 0.08);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-bright), #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 140, 58, 0.2);
}

.hero-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  filter: blur(40px);
  opacity: 0.6;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

/* ===== Featured Game ===== */
.featured {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section-header.centered .section-line {
  margin-inline: auto;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 480px;
  margin-inline: auto;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(255, 107, 26, 0.15);
}

.game-card-media {
  overflow: hidden;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card:hover .game-card-img {
  transform: scale(1.04);
}

.game-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.game-desc {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.game-features {
  list-style: none;
  margin-bottom: 1.75rem;
}

.game-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.game-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ===== About ===== */
.about {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 30, 0.6) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-bright) !important;
  letter-spacing: 0.05em;
  margin-top: 1.5rem !important;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.stat:hover {
  border-color: rgba(255, 107, 26, 0.4);
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ===== Connect / Social ===== */
.connect {
  position: relative;
  z-index: 1;
  padding: 6rem 0 7rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 26, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.social-icon svg {
  width: 28px;
  height: 28px;
}

.x-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.yt-icon {
  background: rgba(255, 0, 0, 0.15);
  color: #ff3333;
}

.ig-icon {
  background: linear-gradient(45deg, rgba(253, 29, 29, 0.2), rgba(131, 58, 180, 0.2));
  color: #e1306c;
}

.social-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.social-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(5, 5, 16, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-card-media {
    max-height: 320px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 16, 0.97);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
