/* ============================================================
   GameDev India — static site styles
   Light mode accent: yellow (#FFD600) · Dark mode accent: teal (#008CA5)
   ============================================================ */
:root {
  /* surfaces & text (light) */
  --bg: #ffffff;
  --surface: #ffffff;
  --bg-alt: #f4f8fa;
  --ink: #14313a;
  --ink-2: #33474e;
  --muted: #5f7278;
  --border: #e4ebee;
  --shadow: 0 1px 2px rgba(15,40,48,.06), 0 8px 24px rgba(15,40,48,.07);
  --shadow-lg: 0 12px 34px rgba(15,40,48,.12);

  /* accent (filled pops) — yellow in light mode */
  --accent: #ffd600;
  --accent-strong: #ecc400;
  --on-accent: #14313a;
  --accent-tint: #fff5c0;
  --accent-marker: rgba(255,214,0,.6);

  /* link / brand text — readable teal both modes */
  --link: #00788e;
  --link-hover: #005e6f;

  /* chrome */
  --header-bg: rgba(255,255,255,.9);
  --hero-wash: linear-gradient(180deg, #e7f4f7, #ffffff);
  --band-grad: linear-gradient(135deg, #008ca5, #00647a);
  --band-ink: #ffffff;
  --footer-bg: #0b1a1f;

  --radius: 14px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
          Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* Dark theme — applied via [data-theme="dark"], which an inline head script
   sets from the saved preference or the OS setting (no flash of wrong theme). */
:root[data-theme="dark"] {
  --bg: #0c1a1e;
  --surface: #12262c;
  --bg-alt: #0f2126;
  --ink: #eaf3f5;
  --ink-2: #c6d6da;
  --muted: #8ca1a6;
  --border: #24393f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 38px rgba(0,0,0,.55);

  /* accent (filled pops) — teal in dark mode */
  --accent: #008ca5;
  --accent-strong: #0aa3be;
  --on-accent: #ffffff;
  --accent-tint: rgba(0,140,165,.18);
  --accent-marker: rgba(10,163,190,.42);

  --link: #38c6e1;
  --link-hover: #66d6ec;

  --header-bg: rgba(12,26,30,.88);
  --hero-wash: linear-gradient(180deg, #10262c, #0c1a1e);
  --band-grad: linear-gradient(135deg, #0c333d, #0a2128);
  --band-ink: #eaf3f5;
  --footer-bg: #081418;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--link); margin-bottom: .6rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 2px solid transparent; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--link); border-color: currentColor; }
.btn-ghost:hover { background: var(--link); color: #fff; border-color: var(--link); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand { line-height: 0; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links > li > a { color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: .96rem; }
.nav-links > li > a:hover { color: var(--link); background: var(--accent-tint); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown-toggle::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .7; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 8px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.dropdown a:hover { background: var(--accent-tint); color: var(--link); text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 68px; background: var(--hero-wash); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .hl { background-image: linear-gradient(transparent 58%, var(--accent-marker) 58%); padding: 0 .06em; border-radius: 2px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.badge { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; color: var(--ink-2); box-shadow: var(--shadow); }
.badge strong { color: var(--link); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* hero photo collage */
.hero-collage { display: grid; grid-template-columns: 1.12fr .88fr; grid-auto-rows: 1fr; gap: 12px; aspect-ratio: 1 / 0.92; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-collage img:first-child { grid-row: 1 / span 2; }

/* partners / events chip row */
.logos-strip { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); font-size: .95rem; }

/* partner logos — kept on white cards so they stay legible in both themes */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.partner-logos a { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 30px; box-shadow: var(--shadow); min-width: 190px; min-height: 82px; transition: transform .15s ease, box-shadow .15s ease; }
.partner-logos a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner-logos img { height: 30px; width: auto; display: block; }

/* ghost button on the dark CTA band */
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-ghost { color: var(--band-ink); border-color: rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { background: #fff; color: #00647a; border-color: #fff; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card .card-link { font-weight: 700; }
.icon-badge { width: 54px; height: 54px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 16px; font-size: 26px; }
.icon-badge img { width: 32px; height: 32px; }

/* goals */
.goals { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.goal { display: flex; gap: 15px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.goal .g-icon { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; }
.goal .g-icon img { width: 30px; height: 30px; }
.goal p { margin: 0; color: var(--ink); font-weight: 700; font-size: 1rem; }

/* team */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-2 { grid-template-columns: repeat(2,1fr); }
.member { text-align: center; }
.member img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; box-shadow: var(--shadow); border: 3px solid var(--surface); }
.member .name { font-weight: 800; color: var(--ink); }
.member .role { color: var(--muted); font-size: .95rem; }
.member .m-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .85rem; font-weight: 700; }
.member .m-link svg { width: 16px; height: 16px; fill: currentColor; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }

/* CTA banner */
.cta-band { background: var(--band-grad); color: var(--band-ink); text-align: center; border-radius: 20px; padding: 56px 28px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--band-ink); }
.cta-band p { color: var(--band-ink); opacity: .92; font-size: 1.15rem; max-width: 640px; margin: 0 auto 26px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
.stats-4 { grid-template-columns: repeat(4,1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 16px; box-shadow: var(--shadow); }
.stat .big { font-size: 2.6rem; font-weight: 800; color: var(--link); line-height: 1; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; margin-top: 6px; }

/* prose / faq */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 700; color: var(--link); font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding-top: 12px; }

/* page header */
.page-hero { background: var(--bg-alt); padding: 66px 0 50px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero p { max-width: 700px; margin: 12px auto 0; color: var(--ink-2); font-size: 1.15rem; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pillar { text-align: center; padding: 32px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar .icon-badge { margin: 0 auto 16px; }
.pillar h3 { color: var(--link); }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b8c6ca; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #b8c6ca; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #8ba0a5; font-size: .95rem; max-width: 320px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--link); }
.socials svg { width: 20px; height: 20px; fill: #b8c6ca; }
.socials a:hover svg { fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; font-size: .88rem; color: #8ba0a5; }
.footer-bottom a { color: #8ba0a5; }
.footer-bottom-right { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }

/* theme toggle — single icon that cycles system → light → dark */
.theme-toggle { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #b8c6ca; cursor: pointer; transition: background .12s ease, color .12s ease; }
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,.12); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; display: none; }
.theme-toggle[data-mode="system"] .ico-system { display: block; }
.theme-toggle[data-mode="light"] .ico-light { display: block; }
.theme-toggle[data-mode="dark"] .ico-dark { display: block; }

/* count pulse when live value arrives */
.count-live { transition: color .3s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin: 2px 0 6px 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .grid-3, .goals, .team, .pillars, .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-2, .goals, .team, .pillars, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
