/* Base styles */
:root {
  --sbd-yellow: #FFCD29;
  --sbd-black: #111111;
  --sbd-white: #ffffff;
  --sbd-gray: #f5f5f5;
  --sbd-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  --sbd-radius: 18px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

/* FIX: Added Smooth Scroll and Padding for Sticky Header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Prevents navbar covering titles */
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sbd-black);
  background-color: var(--sbd-white);
  /* graph-paper style background */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 40px 40px; /* bigger + slightly darker grid */
  line-height: 1.6;
}

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--sbd-black);
  position: relative;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--sbd-yellow);
  transition: width 0.2s ease;
}

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

.nav-links a:hover {
  color: #000;
  transform: translateY(-1px);
}

/* 3D nav Get Started */
.nav-cta {
  padding: 0.6rem 1.6rem;
  background: var(--sbd-yellow);
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 0 #111111;
  border: 2px solid #111111;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #111111;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sbd-black);
  margin: 4px 0;
  border-radius: 999px;
}

/* Retro card frame (for images and cards) */
.retro-card {
  position: relative;
  border-radius: 26px;
  background: #ffffff;
  border: 3px solid #111111;
  box-shadow: 0 12px 0 #111111;
  overflow: hidden;
}

.retro-card::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  right: -22px;
  bottom: -22px;
  background: var(--sbd-yellow);
  border-radius: inherit;
  z-index: -1;
}

/* Hero */
.hero {
  max-width: 1120px;
  margin: 1.5rem auto 3rem;
  padding: 1.5rem;
  border-radius: 32px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.3), transparent 50%);
  mix-blend-mode: multiply;
}

/* Hero title in SBD style */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.hero-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0;
}

.hero-title-line {
  display: block;
}

.hero-title-line-1 {
  color: #111111;
}

.hero-title-highlight {
  background: #111111;
  color: var(--sbd-yellow);
  padding: 0.35rem 1.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}

.hero-subtitle {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: #333333;
  font-weight: 400;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.8rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.hero-badges span {
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* Buttons – 3D retro style */
.btn {
  border-radius: 16px;
  border: 2px solid #111111;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 0 8px 0 #111111;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-large {
  padding: 1rem 2.4rem;
}

.btn-primary {
  background: var(--sbd-yellow);
  color: #111111;
}

.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #111111;
}

.btn-secondary {
  background: #111111;
  color: var(--sbd-yellow);
}

.btn-secondary:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #111111;
}

.btn-ghost {
  background: #ffffff;
  color: var(--sbd-black);
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 6px 0 #111111;
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.03);
  transform: translateY(2px);
  box-shadow: 0 2px 0 #111111;
}

.btn-outline {
  background: #ffffff;
  color: var(--sbd-black);
}

.btn-outline:hover {
  background: var(--sbd-yellow);
}

/* Sections */
section {
  padding: 3.5rem 1.25rem;
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  margin: 0;
  opacity: 0.7;
}

/* Reviews */
.reviews {
  padding-top: 0;
}

.review-marquee {
  overflow: hidden;
}

.review-track {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  animation: marquee 50s linear infinite;
}

.review-card {
  min-width: 260px;
  max-width: 280px;
  background: rgba(255,255,255,0.98);
  border-radius: var(--sbd-radius);
  padding: 1.1rem;
}

.review-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.review-profile h3 {
  margin: 0;
  font-size: 0.98rem;
}

.review-location {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

.review-stars {
  color: #f5b700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.review-text {
  font-size: 0.85rem;
  margin: 0;
}

/* Avatars */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.avatar-1 { background-image: url("https://images.unsplash.com/photo-1584697964481-07ec62b010bf?auto=format&fit=crop&w=200&q=80"); }
.avatar-2 { background-image: url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=200&q=80"); }
.avatar-3 { background-image: url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=200&q=80"); }
.avatar-4 { background-image: url("https://images.unsplash.com/photo-1525134479668-1bee5c7c6845?auto=format&fit=crop&w=200&q=80"); }
.avatar-5 { background-image: url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=200&q=80"); }

/* Grid section */
.grid-section {
  background: rgba(255,255,255,0.9);
}

.grid-section .grid-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.25rem;
}

.grid-section .card {
  background: #fff;
  border-radius: var(--sbd-radius);
  padding: 1.2rem;
  font-size: 0.92rem;
}

/* Journey section */
.journey-section {
  max-width: 1120px;
  margin: 0 auto;
}

.journey-section .journey-content {
  max-width: 540px;
}

.journey-section .journey-content h2 {
  font-size: 1.7rem;
}

.journey-section .journey-steps {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 1.5rem;
}

.journey-section .journey-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.journey-section .journey-steps span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sbd-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.journey-visual {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1.1fr);
  gap: 1.75rem;
}

.teacher-card,
.phone-mockup {
  flex: 1;
  border-radius: 24px;
  padding: 1.25rem;
}

/* Teacher photo */
.teacher-photo {
  height: 220px;
  border-radius: 22px;
  background-image: url("https://images.unsplash.com/photo-1607746882042-944635dfe10e?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

/* Phone mockup */
.phone-mockup {
  background: linear-gradient(145deg,#111,#333);
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen {
  width: 210px;
  border-radius: 30px;
  background: #111;
  border: 2px solid rgba(255,255,255,0.15);
  padding: 0.6rem 0.6rem 0.9rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.phone-header {
  text-align: center;
  font-size: 0.78rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.4rem;
}

.phone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.76rem;
}

.phone-list li {
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.phone-time {
  opacity: 0.6;
}

/* Pricing */
.pricing-section {
  background: rgba(255,255,255,0.9);
}

.pricing-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.25rem;
}

.price-card {
  background: #fff;
  border-radius: var(--sbd-radius);
  padding: 1.4rem 1.3rem 1.6rem;
  position: relative;
  font-size: 0.94rem;
}

.price-card-highlight {
  border: 2px solid var(--sbd-yellow);
  transform: translateY(-6px);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 1.3rem;
  background: var(--sbd-yellow);
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.2rem 0 0.8rem;
}

.price span {
  font-size: 0.8rem;
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.price-card ul li {
  margin-bottom: 0.4rem;
}

/* Teacher section */
.teacher-section {
  max-width: 1120px;
  margin: 0 auto;
}

.teacher-inner {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 1.75rem;
  background: #fff;
  border-radius: 32px;
  padding: 1.8rem 1.6rem;
}

.teacher-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  font-size: 0.94rem;
}

.teacher-benefits li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--sbd-yellow);
}

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

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2,80px);
  grid-template-rows: repeat(2,80px);
  gap: 0.8rem;
}

.teacher-avatar {
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.ta-1 { background-image: url("https://images.unsplash.com/photo-1596495578065-8a3a999162a9?auto=format&fit=crop&w=300&q=80"); }
.ta-2 { background-image: url("https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=300&q=80"); }
.ta-3 { background-image: url("https://images.unsplash.com/photo-1596495577886-d920f1fb7238?auto=format&fit=crop&w=300&q=80"); }
.ta-4 { background-image: url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=300&q=80"); }

/* FAQ */
.faq-section {
  background: rgba(255,255,255,0.96);
}

.faq-section h2,
.faq-section p,
.faq-question span,
.faq-answer p {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.2);
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.faq-answer p {
  margin: 0.2rem 0 1rem;
  font-size: 0.9rem;
}

/* Open state */
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 0.9rem;
}

.faq-item.open .faq-toggle {
  background: var(--sbd-black);
  color: #fff;
  transform: rotate(90deg);
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg,#FFCD29,#ffe488);
}

.cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  background: #111;
  color: #fff;
  border-radius: 32px;
  padding: 2rem 1.75rem;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.3fr);
  gap: 1.75rem;
}

.cta-form {
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0.9rem;
}

label span {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.55);
}

.full-width {
  display: block;
  margin: 0.9rem 0 1.1rem;
}

/* Footer */
.footer {
  background: #111;
  color: rgba(255,255,255,0.78);
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-top {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1.4fr) minmax(0,1.2fr);
  gap: 2rem;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 0.5rem;
}

.footer-columns {
  display: flex;
  gap: 2rem;
}

.footer-column h3,
.footer-contact h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.footer-column a:hover {
  color: var(--sbd-yellow);
}

.footer-contact p {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-right: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-social a:hover {
  background: var(--sbd-yellow);
  color: #000;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.9rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-left: 0.75rem;
}

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

/* Scroll reveal animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    inset: 60px 0 auto 0;
    padding: 0.75rem 1.25rem 1.2rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-direction: column;
    display: none;
  }

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .grid-section .grid-layout {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .journey-section {
    grid-template-columns: 1fr;
  }

  .journey-visual {
    flex-direction: row;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .teacher-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  section {
    padding-inline: 1rem;
  }

  .hero {
    margin-top: 1rem;
    padding: 1.1rem;
  }

  .grid-section .grid-layout {
    grid-template-columns: 1fr;
  }

  .journey-visual {
    flex-direction: column;
  }
}


/* ===== USER REQUEST OVERRIDES ===== */

/* Navbar Hide on Scroll */
.navbar.hide {
  transform: translateY(-120%) !important;
}

/* Bigger Logo */
.brand-logo {
  height: 64px !important;
}

/* Hero GIF Replacement */
.hero-video { display: none !important; }
.hero-media {
  background: url("https://portal.coepvlab.ac.in/VirtualMathsLab/resource/images/homepage/mod.gif") center/contain no-repeat;
  min-height: 360px !important;
  background-size: cover !important;
}

/* Remove Pause Button */
#playPauseBtn { display: none !important; }

/* Remove Phone Mockup */
.phone-mockup { display: none !important; }
.teacher-card { width: 100%; }

/* Pricing Highlight Fix */
.price-card-highlight {
  background: var(--sbd-yellow) !important;
  border: 4px solid #111;
}

.price-card-highlight .btn {
  background: #111 !important;
  color: var(--sbd-yellow) !important;
}

.price-card-highlight .badge {
  top: 12px !important;
}

/* Darker Background Checker Pattern */
body {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.14) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Slower Navbar Transition */
.navbar {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ===== FIX: REVIEW CARDS CORNERS ===== */
.review-card {
  /* Enforce consistent rounded corners */
  border-radius: 26px !important;
  /* Ensures content inside doesn't spill out */
  overflow: hidden !important;
  /* Force GPU rendering to fix sharp corners on some browsers */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}


/* ===== FIX: FLOATING CTA ===== */
/* Made bigger, higher up, and fixed hover glitch */
.floating-cta {
  position: fixed;
  left: 50% !important;
  right: auto !important;
  /* 1. MOVED HIGHER (15% from bottom) */
  bottom: 15vh !important;
  transform: translateX(-50%);
  
  /* 2. MADE 60% BIGGER (Padding & Font) */
  padding: 1.6rem 3.5rem !important; 
  font-size: 1.5rem !important; 
  
  border-radius: 22px !important;
  background: var(--sbd-yellow);
  color: var(--sbd-black);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 0 #111111;
  border: 2px solid #111111;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta.show {
  opacity: 1;
  pointer-events: auto;
}

.floating-cta:hover {
  /* 3. FIX HOVER SHIFT: Keep translateX(-50%) so it stays centered */
  transform: translateX(-50%) translateY(-5px) !important;
  box-shadow: 0 4px 0 #111111;
}