@media (max-width: 480px) {

  /* NAV */
  nav {
    padding: 12px 16px;
    justify-content: space-between;
  }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
  }
  .nav-get-started {
    background: var(--yellow); color: #000;
    border: none; border-radius: 100px;
    padding: 8px 16px; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit;
  }

  /* HERO — portrait image, content at bottom */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-bg {
    background-image: url('uploads/mobile-hero.jpg');
    background-size: cover;
    background-position: center top;
    filter: brightness(0.7);
  }
  .hero-gradient {
    background:
      linear-gradient(0deg, rgba(8,8,8,0.97) 0%, rgba(8,8,8,0.7) 35%, rgba(8,8,8,0.1) 65%),
      linear-gradient(180deg, rgba(8,8,8,0.4) 0%, transparent 20%);
  }
  .hero-content {
    padding: 0 20px 24px 20px;
    height: auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
  }

  /* Badge */
  .mobile-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(232,160,0,0.15);
    border: 1px solid rgba(232,160,0,0.3);
    border-radius: 100px; padding: 5px 14px;
    font-size: 11px; font-weight: 700; color: var(--yellow);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 14px; width: fit-content;
  }
  .mobile-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--yellow);
    animation: pulse 2s infinite;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
    line-height: 1.0;
    margin-bottom: 14px;
  }

  .hero-tagline-wrap {
    margin-top: 0;
    margin-bottom: 16px;
    padding: 9px 20px 9px 9px;
    gap: 10px;
    background: rgba(8,8,8,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
  }
  .tagline-icon { width: 34px; height: 34px; font-size: 15px; }
  .hero-tagline { font-size: 16px; }

  /* Langs ABOVE buttons on mobile */
  .hero-langs { margin-top: 0; margin-bottom: 16px; order: -1; }
  .hero-langs p { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .lang-pills { gap: 6px; }
  .lang-pill {
    padding: 4px 12px; font-size: 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
  }

  /* Full width stacked buttons */
  .hero-actions {
    flex-direction: column; gap: 10px;
    width: 100%; margin-top: 0;
  }
  .btn-primary {
    width: 100%; text-align: center;
    padding: 16px 20px; font-size: 16px;
    border-radius: 100px;
  }
  .btn-secondary {
    width: 100%; text-align: center;
    padding: 16px 20px; font-size: 16px;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
  }

  /* STATS — 2x2 */
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 24px 20px; gap: 0;
    background: var(--bg2);
  }
  .stat-item {
    padding: 20px 16px; text-align: center;
    border-right: none; border-bottom: none;
  }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-num { font-size: 36px; letter-spacing: -1px; }
  .stat-label { font-size: 12px; }

  /* ABOUT sections — single column */
  .about-india { grid-template-columns: 1fr; }
  .about-india-right { min-height: 260px; }
  .about-india-left { padding: 36px 20px; }
  .about-india-h2 { font-size: 28px; letter-spacing: -1px; }
  .about-india-desc { font-size: 14px; }
  .about-india-bullet p { font-size: 13px; }
  .about-divider { margin: 0 20px; }
  .about-sawal { grid-template-columns: 1fr; }
  .about-sawal-img { min-height: 240px; }
  .about-sawal-right { padding: 36px 20px; }
  .about-sawal-heading { font-size: 28px; }
  .about-sawal-body { font-size: 14px; line-height: 1.7; }

  /* SECTIONS padding */
  .ask-section, .lang-section, .teachers-section,
  .how-section, .demo-section, .cta-section { padding: 44px 20px; }
  .section-title { font-size: 28px; letter-spacing: -1px; }
  .section-sub { font-size: 14px; }

  /* FEATURES */
  .ask-grid { grid-template-columns: 1fr; gap: 12px; }
  .ask-card { padding: 24px 20px; border-radius: 18px; }
  .ask-icon { width: 52px; height: 52px; font-size: 22px; margin-bottom: 16px; }
  .ask-card h3 { font-size: 18px; }
  .ask-card p { font-size: 14px; }

  /* LANGUAGES */
  .lang-section-inner { grid-template-columns: 1fr; gap: 32px; }
  .lang-center { width: 80px; height: 80px; font-size: 32px; margin-bottom: 24px; }
  .lang-grid-display { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .lang-block { padding: 10px 6px; border-radius: 10px; }
  .lang-block .native { font-size: 14px; }
  .lang-block .english { font-size: 9px; }

  /* TEACHERS — single col, image top */
  .teachers-grid2x2 { grid-template-columns: 1fr; gap: 16px; }
  .tcard2 { grid-template-columns: 1fr; border-radius: 20px; }
  .tcard2-img { height: 220px; }
  .tcard2-body { padding: 20px 18px 18px; }
  .tcard2-subject { font-size: 10px; padding: 3px 10px; }
  .tcard2-name { font-size: 18px; margin-bottom: 8px; }
  .tcard2-desc { font-size: 13px; line-height: 1.6; }
  .tcard2-btn { font-size: 15px; padding: 13px 20px; margin-top: 16px; }

  /* HOW IT WORKS */
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0; }
  .step-num { width: 56px; height: 56px; font-size: 20px; margin-bottom: 16px; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 14px; }

  /* DEMO */
  .demo-container { border-radius: 20px; margin: 24px 0 0; }
  .demo-header { padding: 16px 18px; }
  .demo-chat { padding: 18px; min-height: 200px; }
  .demo-input-row { padding: 12px 16px; }
  .demo-input { font-size: 14px; }

  /* CTA */
  .cta-section h2 { font-size: 28px; letter-spacing: -1px; }
  .cta-section p { font-size: 15px; }
  .cta-btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-btns .btn-primary,
  .cta-btns .btn-secondary {
    width: 100%; text-align: center;
    font-size: 16px; padding: 16px 20px;
  }

  /* FOOTER */
  footer {
    flex-direction: column; align-items: center;
    text-align: center; padding: 32px 20px; gap: 16px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-copy { font-size: 12px; }
}

@media (max-width: 480px) {

  /* NAV: logo left | [Get Started] [☰] right */
  nav {
    padding: 14px 16px;
    justify-content: space-between;
    align-items: center;
  }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-logo-text { font-size: 17px; }
  .nav-logo-icon { width: 32px; height: 32px; font-size: 15px; }

  /* Right cluster */
  .nav-mobile-right {
    display: flex; align-items: center; gap: 10px; margin-left: auto;
  }
  .nav-get-started-mobile {
    background: var(--yellow); color: #000;
    border: none; border-radius: 100px;
    padding: 8px 16px; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; white-space: nowrap;
  }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; background: none; border: none;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
  }

  /* HERO: portrait image, content stacked at bottom */
  .hero { min-height: 72vh; height: 72vh; align-items: flex-end; }
  .hero-bg {
    background-image: url('uploads/mobile-hero.jpg');
    background-size: cover; background-position: center top;
    filter: brightness(0.65);
  }
  .hero-gradient {
    background:
      linear-gradient(0deg, rgba(8,8,8,0.97) 0%, rgba(8,8,8,0.65) 40%, rgba(8,8,8,0.1) 70%),
      linear-gradient(180deg, rgba(8,8,8,0.45) 0%, transparent 20%);
  }
  .hero-content {
    padding: 0 20px 24px 20px;
    height: auto; min-height: unset;
    width: 100%; max-width: 100%;
    justify-content: flex-end;
    margin-top: 0;
  }

  /* HERO CONTENT ORDER: badge → h1 → tagline → langs */
  .hero-content { display: flex; flex-direction: column; }
  /* badge is now absolute — no order needed */
  .hero h1           { order: 2; }
  .hero-tagline-wrap { order: 3; }
  .mobile-lang-block { order: 4; margin-top: 18px; }
  .hero-actions      { display: none !important; }
  

  /* Badge — absolute positioned top-left, above boy's head */
  .mobile-india-badge { display: none; }
  .mobile-india-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--yellow); animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
  }

  /* H1 — single line, fits screen width */
  .hero h1 {
    font-size: 7.8vw; letter-spacing: -1px; line-height: 1.05;
    margin-bottom: 14px; white-space: nowrap;
  }

  /* Tagline */
  .hero-tagline-wrap {
    margin-top: 0; margin-bottom: 0;
    padding: 9px 20px 9px 9px; gap: 10px;
    background: rgba(8,8,8,0.55);
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content; max-width: 100%;
  }
  .tagline-icon { width: 34px; height: 34px; font-size: 15px; }
  .hero-tagline { font-size: 17px; }

  /* Language block */
  .mobile-lang-block { display: none; }
  .mobile-lang-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
  }
  .mobile-lang-pills { display: flex; flex-wrap: wrap; gap: 8px; }

  /* Stats 2×2 grid */
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 28px 20px; gap: 0;
  }
  .stat-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 10px;
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-bottom: none; }
  .stat-item:nth-child(4) { border-right: none; border-bottom: none; }
  .stat-num  { font-size: 36px; }
  .stat-label{ font-size: 13px; }

  /* General sections */
  .about-india  { grid-template-columns: 1fr; }
  .about-india-left { padding: 48px 24px; }
  .about-india-right { display: none; }
  .section-sub  { font-size: 15px; }
  footer { flex-direction: column; gap: 14px; text-align: center; padding: 28px 20px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .cta-section h2 { font-size: clamp(26px, 6vw, 40px); }

  /* Teachers grid */
  .teachers-grid { grid-template-columns: 1fr !important; padding: 0 16px; }
  .tcard { padding: 24px; }
}

@media (max-width: 480px) {
  .mobile-drawer {
    display: block; position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
  }
  .mobile-drawer.open { pointer-events: all; }
  .drawer-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0; transition: opacity 0.3s;
    backdrop-filter: blur(4px);
  }
  .mobile-drawer.open .drawer-overlay { opacity: 1; }
  .drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 78vw; max-width: 290px;
    background: #111;
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
  }
  .mobile-drawer.open .drawer-panel { transform: translateX(0); }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .drawer-brand { display: flex; align-items: center; gap: 9px; }
  .drawer-brand-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--yellow); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900;
  }
  .drawer-brand-name { font-size: 15px; font-weight: 700; color: #fff; }
  .drawer-x {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: none;
    color: #fff; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .drawer-menu { list-style: none; padding: 12px 0; flex: 1; }
  .drawer-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 22px; color: rgba(255,255,255,0.8);
    text-decoration: none; font-size: 15px; font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .drawer-menu li a:active,
  .drawer-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--yellow); border-left-color: var(--yellow);
  }
  .drawer-menu-dot { font-size: 5px; color: var(--yellow); }
  .drawer-try-btn {
    margin: 6px 18px 0;
    display: flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 100px;
    background: var(--yellow); color: #000;
    font-weight: 700; font-size: 15px; text-decoration: none;
    border-left: none !important;
  }
  .drawer-try-btn:hover { opacity: 0.9 !important; }
  .drawer-foot {
    padding: 16px 22px 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 11px; color: rgba(255,255,255,0.3);
  }
}

@media (max-width: 480px) {

  /* FIX 1: Hide stats bar after hero */
  .stats { display: none !important; }

  /* FIX 2: Reduce gap where stats was — pull about-section up */
  .about-section { margin-top: -20px; }

  /* FIX 3: NEP/Digital India/Ai for All pills in one line */
  .about-india-badges {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto;
  }
  .about-india-badge {
    font-size: 11px !important;
    padding: 6px 10px !important;
    white-space: nowrap;
  }

  /* FIX 4: Show India map image in about-india-right on mobile */
  .about-india-right {
    display: block !important;
    height: 260px;
    overflow: hidden;
    position: absolute;
  }
  .about-india-right img {
    position: absolute !important;
    content: url('uploads/Gemini_Generated_Image_17a5t117a5t117a5-39f4873d.jpeg');
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    top: 0 !important;
    left: 0 !important;
  }

  /* FIX 5: Mission stats — "Class 1-12" fits on one line */
  .about-sawal-stat-num {
    font-size: 20px !important;
    white-space: nowrap;
    letter-spacing: -0.5px;
  }
  .about-sawal-stat-lbl {
    font-size: 11px !important;
  }
  .about-sawal-stat {
    padding: 16px 8px !important;
  }

  /* FIX 6: Hide the Try It Out / demo section */
  .demo-section { display: none !important; }
}