/* =============================================================
   NOVAFORGE STUDIOS — Game Studio Website
   style.css
   -------------------------------------------------------------
   Sections:
   1. Design tokens (CSS variables)  <-- edit colors/fonts here
   2. Reset & base
   3. Layout helpers
   4. Navigation
   5. Buttons
   6. Hero
   7. Sections (intro, games, about, contact)
   8. Carousel / slider
   9. Creators page
   10. Footer
   11. Animations
   12. Responsive (tablet & mobile)
   ============================================================= */

/* ---------- 1. DESIGN TOKENS -------------------------------- */
:root {
  /* Brand colors — change these to re-theme the whole site */
  --bg:        #0a0b12;
  --bg-alt:    #11131f;
  --surface:   #161a2b;
  --surface-2: #1d2236;
  --text:      #e7e9f5;
  --muted:     #9aa0b8;
  --primary:   #19e3ff;   /* cyan */
  --secondary: #c13bff;   /* violet */
  --accent:    #ff2e9a;   /* magenta */
  --border:    rgba(255, 255, 255, 0.08);

  --gradient: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent));
  --glow: 0 0 24px rgba(25, 227, 255, 0.35);
  --radius: 14px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. RESET & BASE -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }

h2.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3. LAYOUT HELPERS ------------------------------ */
.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
section { padding: 5.5rem 0; }
.bg-alt { background: var(--bg-alt); }

/* ---------- 4. NAVIGATION ---------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5%;
  background: rgba(10, 11, 18, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; }
.nav-brand img { width: 34px; height: 34px; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px; height: 24px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0;
  width: 100%; height: 3px; border-radius: 3px;
  background: var(--text);
  transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- 5. BUTTONS ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--gradient); color: #0a0b12; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 6. HERO --------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/images/hero.jpg") center/cover no-repeat;
  opacity: 0.45;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent, var(--bg) 80%);
  z-index: -1;
}
.hero-logo { width: 110px; height: 110px; margin: 0 auto 1.2rem; filter: drop-shadow(var(--glow)); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.hero .tagline { font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--muted); margin: 1rem auto 2rem; max-width: 640px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 7. INTRO -------------------------------------- */
.intro p { max-width: 760px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.1rem; }
.stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem;
  margin-top: 3rem;
}
.stat { text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; }
.stat .label { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- 8. GAMES CAROUSEL ----------------------------- */
.carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel-track-wrap { overflow: hidden; border-radius: var(--radius); }
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.game-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.game-card .art {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  position: relative;
}
.game-card .art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card .art:hover img { transform: scale(1.06); }
.game-card .platform-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.game-card h3 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.game-card p { color: var(--muted); margin-bottom: 1.4rem; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: var(--primary); color: #0a0b12; }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-2); border: 0; cursor: pointer; transition: 0.2s;
}
.carousel-dots button.active { background: var(--primary); width: 26px; border-radius: 5px; }

/* ---------- ABOUT ----------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
}
.about-card h3 { margin-bottom: 0.6rem; color: var(--primary); }
.about-card p { color: var(--muted); }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.team-member { text-align: center; }
.team-member .avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 0.8rem;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: #0a0b12;
}
.team-member .role { color: var(--muted); font-size: 0.9rem; }

/* ---------- CONTACT / SOCIAL ------------------------------ */
.contact-card {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; text-align: center;
}
.contact-card a.email { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.8rem; }
.socials a {
  padding: 0.7rem 1.2rem; border-radius: 50px;
  border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: 0.9rem;
  transition: 0.2s;
}
.socials a:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }

/* ---------- 9. CREATORS PAGE ------------------------------ */
.page-hero {
  padding: 9rem 1rem 4rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 1rem auto 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
}
.feature .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

.presskit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.presskit a {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; transition: 0.2s;
}
.presskit a:hover { border-color: var(--primary); transform: translateY(-2px); }

.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.8rem; overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 700;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

.disclaimer {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  color: var(--muted); font-size: 0.88rem; line-height: 1.7;
}

/* ---------- 10. FOOTER ------------------------------------ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  text-align: center; color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
}

/* ---------- 11. ANIMATIONS -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 12. RESPONSIVE -------------------------------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 60px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    width: 220px;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    height: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }

  .game-card { grid-template-columns: 1fr; }
  .game-card .art { max-width: 280px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
}

@media (max-width: 480px) {
  section { padding: 4rem 0; }
  .hero-actions { flex-direction: column; align-items: center; }
}
