:root {
  --ink: #0d0d0d;
  --cream: #f9f5ee;
  --gold: #e8a838;
  --gold-light: #f5c96a;
  --accent: #1a4a8a;
  --accent-light: #2d6fd4;
  --red: #c0392b;
  --green: #1e8a5e;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f0ede6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 110px;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1140px) {
  .nav-logo {
    height: 100px;
  }

}

@media (max-width: 640px) {
  .nav-logo {
    height: 70px;
  }
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

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

.nav-links a:hover {
  color: var(--gold);
}

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

.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-cta::after {
  display: none !important;
}

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

/* ─── HAMBURGER → CROSS ─── */
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.98);
  padding: 20px 5%;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  border-bottom: 2px solid var(--gold);
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-menu.open {
  display: flex;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232, 168, 56, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(26, 74, 138, 0.18) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 8% 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-left h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-left .tagline {
  font-family: 'Space Mono', monospace;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-left .tagline::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.hero-left p {
  color: #b0b8c8;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 168, 56, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── BANNER CAROUSEL ─── */
.hero-right {
  position: relative;
}

.banner-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 168, 56, 0.25);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-light));
}

.banner-slides {
  position: relative;
  min-height: 280px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.slide-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.slide-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.slide-desc {
  color: #9aa3b0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.banner-dots {
  display: flex;
  gap: 8px;
  margin-top: 1.8rem;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 0 16px;
  animation: progress 5s linear infinite;
}

@keyframes progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ─── HERO STATS ─── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  padding: 0 8% 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 900;
}

.stat-label {
  color: #6b7a8d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ─── SECTION SHARED ─── */
section {
  padding: 7rem 8%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.2rem auto 0;
  border-radius: 2px;
}

/* ─── ABOUT ─── */
#about {
  background: var(--white);
  padding: 7rem 0;
  max-width: 100%;
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-box {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.about-img-box .img-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-img-box .img-slide.active {
  opacity: 1;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-box:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: 60px;
  right: -20px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(232, 168, 56, 0.4);
  z-index: 2;
}


.about-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  display: block;
  line-height: 1;
}

/* ─── Abv TABLET ─── */
@media (max-width: 1160px) {
  .about-badge {
    bottom: 100px;
    right: -30px;
    padding: 1rem 1.2rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .about-badge .num {
    font-size: 1.6rem;
  }
}

/* ─── TABLET ─── */
@media (max-width: 960px) {
  .about-badge {
    bottom: 60px;
    right: -30px;
    padding: 1rem 1.2rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .about-badge .num {
    font-size: 1.6rem;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  .about-badge {
    bottom: 60px;
    right: -25px;
    padding: 0.75rem 1rem;
    font-size: 0.76rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.35);
  }

  .about-badge .num {
    font-size: 1.3rem;
  }
}

/* ─── Below MOBILE ─── */
@media (max-width: 490px) {
  .about-badge {
    bottom: 60px;
    right: -20px;
    padding: 0.75rem 1rem;
    font-size: 0.76rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.35);
  }

  .about-badge .num {
    font-size: 1.3rem;
  }
}

/* ─── Below MOBILE ─── */
@media (max-width: 410px) {
  .about-badge {
    bottom: 100px;
    right: -10px;
    padding: 0.75rem 1rem;
    font-size: 0.76rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.35);
  }

  .about-badge .num {
    font-size: 1.3rem;
  }
}
.about-img-btns {
  display: flex;
  gap: 0.8rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.about-img-btns a {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.about-img-btns a:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.about-right h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-right h2 span {
  color: var(--gold);
}

.about-right p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.motto-box {
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--gold);
}

.motto-box p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0;
}

.motto-box span {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  display: block;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.cred-tag {
  background: var(--light-gray);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── WHAT WE OFFER ─── */
#offers {
  background: var(--cream);
}

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

.offer-card {
  background: transparent;
  border-radius: 12px;
  border: none;
  padding: 0;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s, box-shadow 0.35s;
}

.offer-card::after {
  display: none;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.offer-card.flipped {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.offer-card-inner {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  /* height driven by front face content */
}

.offer-card.flipped .offer-card-inner {
  transform: rotateY(180deg);
}

/* ── FRONT ── */
.offer-card-front {
  width: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.8rem;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.offer-card-front::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
  border-radius: 0 0 12px 12px;
}

.offer-card:hover .offer-card-front::after {
  transform: scaleX(1);
}

/* ── BACK ── */
.offer-card-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  box-sizing: border-box;
  background: #000000;
  border: 1px solid rgba(232, 168, 56, 0.2);
  transform: rotateY(180deg);
  overflow: hidden;
}

/* ── FRONT CONTENT ── */
.offer-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
  flex-shrink: 0;
}

.offer-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  flex-shrink: 0;
  line-height: 1.3;
}

.offer-card-front p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.65;
  flex-grow: 1;
}

/* ── BACK CONTENT ── */
.offer-card-back .quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.75;
  margin-bottom: 0.5rem;
  position: relative;
  padding-top: 1.6rem;
  flex-grow: 1;
}

.offer-card-back .quote-text::before {
  content: '\201C';
  position: absolute;
  top: -0.4rem;
  left: -0.2rem;
  font-size: 3.2rem;
  color: var(--gold);
  font-style: normal;
  line-height: 1;
}

.offer-card-back .quote-author {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  display: block;
  flex-shrink: 0;
}

.offer-card-back .tap-back {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: right;
  margin-top: 1rem;
  flex-shrink: 0;
}

/* ─── TABLET (max 960px) ─── */
@media (max-width: 960px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .offer-card-front,
  .offer-card-back {
    padding: 1.5rem;
  }

  .offer-icon {
    font-size: 1.8rem;
    margin-bottom: 0.65rem;
  }

  .offer-card h3 {
    font-size: 1.08rem;
  }

  .offer-card-front p {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .offer-card-back .quote-text {
    font-size: 0.92rem;
    line-height: 1.65;
    padding-top: 1.5rem;
  }

  .offer-card-back .quote-text::before {
    font-size: 2.8rem;
  }

  .offer-card-back .quote-author {
    font-size: 0.68rem;
  }
}

/* ─── MOBILE (max 640px) ─── */
@media (max-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .offer-card-front,
  .offer-card-back {
    padding: 1.3rem;
  }

  .offer-icon {
    font-size: 1.6rem;
    margin-bottom: 0.55rem;
  }

  .offer-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .offer-card-front p {
    font-size: 0.82rem;
    line-height: 1.58;
  }

  .offer-card-back .quote-text {
    font-size: 0.86rem;
    line-height: 1.58;
    padding-top: 1.3rem;
  }

  .offer-card-back .quote-text::before {
    font-size: 2.5rem;
    top: -0.3rem;
  }

  .offer-card-back .quote-author {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .offer-card-back .tap-back {
    font-size: 0.65rem;
    margin-top: 0.7rem;
  }
}

/* ══════════════════════════════════════
   CLASS EXPLORER
══════════════════════════════════════ */
.classes-section {
  background: var(--ink);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* background texture */
.classes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(232,168,56,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(26,74,138,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.classes-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Header ── */
.explorer-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.explorer-header .section-eyebrow {
  color: var(--gold);
}

.explorer-header .section-title {
  color: var(--white);
}

.explorer-header .section-line {
  background: var(--gold);
  margin: 1rem auto 1.2rem;
}

.explorer-sub {
  color: #6b7a8d;
  font-size: 0.88rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

/* ── Board Selector ── */
.board-selector {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.board-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.35s ease;
  min-width: 220px;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.board-btn-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.board-btn.icse-active .board-btn-glow {
  background: radial-gradient(ellipse at 30% 50%, rgba(30,138,94,0.2) 0%, transparent 70%);
  opacity: 1;
}

.board-btn.cbse-active .board-btn-glow {
  background: radial-gradient(ellipse at 30% 50%, rgba(26,74,138,0.25) 0%, transparent 70%);
  opacity: 1;
}

.board-btn.icse-active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(30,138,94,0.3), 0 8px 28px rgba(30,138,94,0.2);
  transform: translateY(-3px);
}

.board-btn.cbse-active {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 1px rgba(26,74,138,0.4), 0 8px 28px rgba(26,74,138,0.2);
  transform: translateY(-3px);
}

.board-btn:not(.icse-active):not(.cbse-active):hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.board-btn-icon {
  font-size: 2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.board-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.board-btn-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.board-btn-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #6b7a8d;
  letter-spacing: 0.06em;
}

.board-btn.icse-active .board-btn-sub { color: rgba(30,138,94,0.8); }
.board-btn.cbse-active .board-btn-sub { color: rgba(45,111,212,0.9); }

.board-btn-check {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.board-btn.icse-active .board-btn-check {
  opacity: 1;
  transform: scale(1);
  background: var(--green);
  color: var(--white);
}

.board-btn.cbse-active .board-btn-check {
  opacity: 1;
  transform: scale(1);
  background: var(--accent-light);
  color: var(--white);
}

/* ── Class Selector ── */
.class-selector {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.class-btn {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 1px;
  position: relative;
  overflow: hidden;
}

.class-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.class-btn-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #6b7a8d;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.class-btn-suffix {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: #4a5568;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.class-btn:hover {
  border-color: rgba(232,168,56,0.4);
  transform: translateY(-3px);
}

.class-btn:hover .class-btn-num { color: var(--gold); }
.class-btn:hover .class-btn-suffix { color: var(--gold-light); }

/* active states driven by board */
.class-btn.icse-selected {
  border-color: var(--green);
  background: rgba(30,138,94,0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,138,94,0.25);
}

.class-btn.icse-selected .class-btn-num { color: #52c99a; }
.class-btn.icse-selected .class-btn-suffix { color: rgba(82,201,154,0.7); }

.class-btn.cbse-selected {
  border-color: var(--accent-light);
  background: rgba(26,74,138,0.18);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,74,138,0.3);
}

.class-btn.cbse-selected .class-btn-num { color: #6fa3e8; }
.class-btn.cbse-selected .class-btn-suffix { color: rgba(111,163,232,0.7); }

/* ── Subject Display ── */
.subject-display {
  position: relative;
  z-index: 1;
  min-height: 160px;
}

.subject-panel {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.subject-panel.active {
  display: grid;
}

.subject-panel.active .subject-chip {
  animation: chipIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.09s);
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Chip ── */
.subject-chip {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.subject-chip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.subject-chip:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
}

.subject-chip.icse-chip {
  border-color: rgba(30,138,94,0.2);
}

.subject-chip.icse-chip:hover {
  border-color: rgba(30,138,94,0.45);
  box-shadow: 0 8px 24px rgba(30,138,94,0.12);
}

.subject-chip.cbse-chip {
  border-color: rgba(26,74,138,0.25);
}

.subject-chip.cbse-chip:hover {
  border-color: rgba(45,111,212,0.45);
  box-shadow: 0 8px 24px rgba(26,74,138,0.15);
}

.chip-icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.25s;
}

.icse-chip .chip-icon {
  background: rgba(30,138,94,0.12);
}

.cbse-chip .chip-icon {
  background: rgba(26,74,138,0.15);
}

.chip-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chip-body strong {
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}

.chip-body small {
  font-size: 0.73rem;
  color: #6b7a8d;
  line-height: 1.4;
  font-family: 'Space Mono', monospace;
}

.icse-chip .chip-body small { color: rgba(82,201,154,0.65); }
.cbse-chip .chip-body small { color: rgba(111,163,232,0.65); }

/* ── Info bar hidden ── */
.explorer-info-bar[hidden] {
  display: none;
}

/* ─── TABLET ─── */
@media (max-width: 960px) {
  .classes-section {
    padding: 2.5rem 2rem;
    border-radius: 20px;
  }

  .board-btn {
    min-width: 180px;
    padding: 1rem 1.5rem;
  }

  .class-btn {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .class-btn-num {
    font-size: 1.25rem;
  }

  .subject-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .chip-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    border-radius: 10px;
  }

  .chip-body strong {
    font-size: 0.87rem;
  }

  .chip-body small {
    font-size: 0.7rem;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  .classes-section {
    padding: 2rem 1.3rem;
    border-radius: 16px;
    margin-top: 2.5rem;
  }

  .explorer-header {
    margin-bottom: 2rem;
  }

  .board-selector {
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .board-btn {
    min-width: 0;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
  }

  .board-btn-icon {
    font-size: 1.6rem;
  }

  .board-btn-label {
    font-size: 0.95rem;
  }

  .board-btn-sub {
    font-size: 0.62rem;
  }

  .class-selector {
    gap: 0.55rem;
    margin-bottom: 2rem;
  }

  .class-btn {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex: 1;
    max-width: 60px;
  }

  .class-btn-num {
    font-size: 1.1rem;
  }

  .class-btn-suffix {
    font-size: 0.55rem;
  }

  .subject-panel {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .subject-chip {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    gap: 0.85rem;
  }

  .chip-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 9px;
  }

  .chip-body strong {
    font-size: 0.85rem;
  }

  .chip-body small {
    font-size: 0.68rem;
  }
}

/* ─── CTA ─── */
#contact {
  background: var(--ink);
  max-width: 100%;
  padding: 7rem 0;
}

.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8%;
  text-align: center;
}

.cta-inner .section-eyebrow {
  color: var(--gold);
}

.cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-inner h2 em {
  font-style: italic;
  color: var(--gold);
}

.cta-inner>p {
  color: #8a9ab0;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.cta-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 168, 56, 0.25);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  min-width: 220px;
  transition: all 0.35s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.cta-card:hover {
  background: rgba(232, 168, 56, 0.12);
  border-color: var(--gold);
  transform: translateY(-5px);
}

.cta-card .cta-icon {
  font-size: 2.5rem;
}

.cta-card .cta-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-card .cta-val {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.cta-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  padding: 18px 44px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.cta-big-btn:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232, 168, 56, 0.4);
}

/* ─── FOOTER ─── */
footer {
  background: #050505;
  border-top: 1px solid rgba(232,168,56,0.2);
  padding: 3rem 8%;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-left: -25px;
}

@media (max-width: 640px) {
  .footer-logo {
  margin-left: 0px;
  }
}

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

.footer-tagline {
  font-size: 0.78rem;
  color: #4a5568;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: #4a5568;
  text-align: center;
  line-height: 1.7;
}

.footer-copy small {
  color: #3a4455;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.footer-links a:hover { color: var(--gold); }

/* ── Social Buttons ── */
.footer-socials {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.social-btn span {
  font-family: 'DM Sans', sans-serif;
}

.social-btn.linkedin {
  background: rgba(10,102,194,0.1);
  color: #4a9fd4;
  border-color: rgba(10,102,194,0.2);
}

.social-btn.linkedin:hover {
  background: rgba(10,102,194,0.2);
  border-color: #0a66c2;
  color: #6ab4e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,102,194,0.2);
}

.social-btn.instagram {
  background: rgba(225,48,108,0.08);
  color: #e1306c;
  border-color: rgba(225,48,108,0.18);
}

.social-btn.instagram:hover {
  background: rgba(225,48,108,0.18);
  border-color: #e1306c;
  color: #f06292;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225,48,108,0.2);
}

.social-btn.facebook {
  background: rgba(24,119,242,0.08);
  color: #4a90d9;
  border-color: rgba(24,119,242,0.18);
}

.social-btn.facebook:hover {
  background: rgba(24,119,242,0.18);
  border-color: #1877f2;
  color: #6ab0f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24,119,242,0.2);
}

/* ─── TABLET ─── */
@media (max-width: 960px) {
  .footer-inner {
    gap: 1.5rem;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  footer {
    padding: 2.5rem 5%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-right {
    align-items: center;
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    gap: 1.2rem;
  }

  .footer-socials {
    justify-content: center;
    gap: 0.6rem;
  }

  .social-btn {
    padding: 7px 14px;
    font-size: 0.76rem;
  }
}

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

.games-sub {
  color: var(--gray);
  font-size: 0.88rem;
  font-family: 'Space Mono', monospace;
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
}

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

/* ── Card Shell ── */
.game-card {
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,0.07);
  background: var(--cream);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.13);
}

.game-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Thumbnail ── */
.game-thumb {
  width: 100%;
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-thumb-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.game-card:hover .game-thumb-bg {
  transform: scale(1.08);
}

/* Jungle */
.game-thumb.jungle {
  background: linear-gradient(135deg, #0d3b1e 0%, #1a6b3a 50%, #2d9e58 100%);
}
.game-thumb.jungle .game-thumb-bg {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(45,200,100,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(10,80,30,0.4) 0%, transparent 50%);
}

/* Brain */
.game-thumb.brain {
  background: linear-gradient(135deg, #0d1b3b 0%, #1a3a6b 50%, #1e5fa8 100%);
}
.game-thumb.brain .game-thumb-bg {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(232,168,56,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(26,74,138,0.5) 0%, transparent 50%);
}

/* Turbo */
.game-thumb.turbo {
  background: linear-gradient(135deg, #1a0a00 0%, #4a1500 50%, #8b2500 100%);
}
.game-thumb.turbo .game-thumb-bg {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(232,100,30,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(180,50,0,0.4) 0%, transparent 50%);
}

.game-thumb-icon {
  font-size: 3.8rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.35s ease;
}

.game-card:hover .game-thumb-icon {
  transform: scale(1.15) translateY(-4px);
}

/* ── Card Body ── */
.game-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.game-card-top {
  margin-bottom: 0.2rem;
}

/* Status Tags */
.game-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.game-tag.live {
  background: rgba(30,138,94,0.12);
  color: var(--green);
  border: 1px solid rgba(30,138,94,0.25);
}

.game-tag.coming-soon {
  background: rgba(232,168,56,0.12);
  color: var(--gold);
  border: 1px solid rgba(232,168,56,0.25);
}

.game-tag.building {
  background: rgba(26,74,138,0.1);
  color: var(--accent-light);
  border: 1px solid rgba(26,74,138,0.2);
}

.game-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.2;
}

.game-card p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* ── Card Footer ── */
.game-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.game-subject {
  background: var(--light-gray);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.game-play {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  transition: gap 0.2s;
  white-space: nowrap;
}

.game-card:hover .game-play {
  text-decoration: underline;
}

/* ─── TABLET ─── */
@media (max-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .game-thumb-icon {
    font-size: 3.2rem;
  }

  .game-card h4 {
    font-size: 1.15rem;
  }

  .game-card-body {
    padding: 1.2rem 1.3rem 1.3rem;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .game-thumb {
    aspect-ratio: 16/7;
  }

  .game-thumb-icon {
    font-size: 3rem;
  }

  .game-card {
    border-radius: 14px;
  }

  .game-card-body {
    padding: 1.1rem 1.2rem 1.2rem;
  }

  .game-card h4 {
    font-size: 1.1rem;
  }

  .game-card p {
    font-size: 0.82rem;
  }

  .game-subject {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .game-play {
    font-size: 0.75rem;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 6%;
  }

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

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

}

@media (max-width: 640px) {
  section {
    padding: 4.5rem 5%;
  }

  .offers-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    padding: 0 5% 3rem;
  }

  nav {
    padding: 0 5%;
  }

  .hero-inner {
    padding: 2.5rem 5% 1rem;
  }

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

  .about-inner {
    padding: 0 5%;
  }

  .cta-inner {
    padding: 0 5%;
  }

  #about {
    padding: 4.5rem 0;
  }

  #contact {
    padding: 4.5rem 0;
  }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}