/* ============================================================
   FUTURISTIC MOBILE EXPERIENCE
   Kakkamvelly Sreekrishna Temple
   Mobile-first: phones → tablets → desktop
   ============================================================ */

/* ── Extra tokens ── */
:root {
  --mob-nav-h:       64px;
  --mob-bottom-h:    68px;
  --glass-bg:        rgba(15, 8, 35, 0.72);
  --glass-border:    rgba(255, 215, 0, 0.18);
  --glass-blur:      18px;
  --neon-gold:       #ffd700;
  --neon-cyan:       #00e5ff;
  --neon-pink:       #ff4da6;
  --neon-green:      #00ffaa;
  --tap-scale:       0.96;
  --safe-bottom:     env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   SMOOTH SCROLLING & BASE
   ============================================================ */
html { scroll-padding-top: calc(var(--mob-nav-h) + 8px); }

@supports (padding: max(0px)) {
  body { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

/* ============================================================
   1. FUTURISTIC MOBILE NAVBAR
   ============================================================ */
@media (max-width: 768px) {

  #site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 24px rgba(255, 215, 0, 0.08), 0 0 60px rgba(0, 0, 0, 0.4);
  }

  .navbar {
    padding: 0 1.1rem;
    height: var(--mob-nav-h);
    position: relative;
  }

  /* OM symbol — glowing badge */
  .om-symbol {
    font-size: 1.9rem;
    background: linear-gradient(135deg, #ffd700, #ff9933, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.7));
    animation: om-pulse 2.8s ease-in-out infinite;
  }

  .brand-ml  { font-size: 0.82rem; }
  .brand-en  { font-size: 0.72rem; letter-spacing: 0.04em; }

  /* ── Animated hamburger → ✕ ── */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1100;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: background 0.3s, box-shadow 0.3s;
    padding: 0;
    gap: 0;
    flex-direction: column;
  }
  .nav-toggle:active {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
  }
  .hamburger {
    width: 20px; height: 2px;
    background: var(--neon-gold);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity  0.25s ease,
                margin   0.35s ease;
    margin: 3px 0;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
  }
  /* transform into ✕ when open */
  .nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ── Drawer menu — full futuristic panel ── */
  .nav-menu {
    position: fixed !important;
    top: 0; right: 0;
    width: min(300px, 82vw);
    height: 100dvh;
    background: linear-gradient(160deg, rgba(8,4,28,0.97) 0%, rgba(20,6,40,0.97) 50%, rgba(4,16,8,0.97) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 215, 0, 0.15);
    padding: calc(var(--mob-nav-h) + 1.5rem) 1.5rem 2rem;
    gap: 0.3rem;
    box-shadow: -8px 0 40px rgba(0,0,0,0.6);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    z-index: 1000;
    display: flex !important;
  }
  .nav-menu.open { transform: translateX(0); }

  /* decorative glow lines inside drawer */
  .nav-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--neon-gold) 30%, var(--neon-cyan) 70%, transparent 100%);
    opacity: 0.5;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Serif Malayalam', serif;
  }
  .nav-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--neon-gold), var(--neon-cyan));
    transform: scaleY(0);
    transition: transform 0.25s ease;
    border-radius: 0 2px 2px 0;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 215, 0, 0.07);
    border-color: rgba(255, 215, 0, 0.2);
    color: var(--neon-gold);
    padding-left: 1.6rem;
  }
  .nav-link:hover::before,
  .nav-link.active::before { transform: scaleY(1); }

  /* Overlay behind nav drawer */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    backdrop-filter: blur(2px);
  }
  .nav-menu.open ~ .nav-overlay { display: block; }
}

/* ============================================================
   2. BOTTOM NAVIGATION BAR (mobile only)
   ============================================================ */
@media (max-width: 768px) {
  #mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    height: calc(var(--mob-bottom-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5), 0 -1px 0 rgba(255,215,0,0.1);
  }

  .mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 52px;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-nav-btn:active {
    transform: scale(var(--tap-scale));
    background: rgba(255, 215, 0, 0.1);
  }
  .mob-nav-btn.active .mob-nav-icon {
    color: var(--neon-gold);
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.8));
  }
  .mob-nav-btn.active .mob-nav-label { color: var(--neon-gold); }

  .mob-nav-icon {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s, filter 0.2s;
    line-height: 1;
  }
  .mob-nav-label {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Noto Serif Malayalam', serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    white-space: nowrap;
  }

  /* Center "OM" pill button */
  .mob-nav-btn.mob-nav-center {
    background: linear-gradient(135deg, #c8860a, #ffd700, #ff9933);
    border-radius: 50%;
    width: 54px; height: 54px;
    padding: 0;
    box-shadow: 0 0 20px rgba(255, 180, 0, 0.5), 0 4px 16px rgba(0,0,0,0.4);
    margin-top: -16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: center-pulse 3s ease-in-out infinite;
  }
  @keyframes center-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,180,0,0.5), 0 4px 16px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 35px rgba(255,180,0,0.8), 0 4px 24px rgba(0,0,0,0.4); }
  }
  .mob-nav-btn.mob-nav-center .mob-nav-icon {
    font-size: 1.6rem;
    color: white;
    filter: none;
  }

  /* Push main content up so it doesn't hide behind bottom bar */
  main { padding-bottom: calc(var(--mob-bottom-h) + var(--safe-bottom) + 1rem); }
  .site-footer { padding-bottom: calc(var(--mob-bottom-h) + var(--safe-bottom) + 1rem); }
}

/* ============================================================
   3. HERO — MOBILE OVERHAUL
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 100dvh;
    padding-top: 0; /* hero-content handles its own top padding */
    background: linear-gradient(
      170deg,
      #2a0008 0%,
      #1a0620 25%,
      #0a1230 55%,
      #0a2010 100%
    );
  }

  .hero-content {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

  .hero-tagline {
    font-size: 1rem;
    letter-spacing: 0.18em;
    background: linear-gradient(90deg, var(--neon-gold), var(--neon-cyan), var(--neon-gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-text 3s linear infinite, tagline-dance 3s ease-in-out infinite;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 0.6rem;
  }

  .hero-subtitle {
    font-size: clamp(0.85rem, 3vw, 1.1rem);
    letter-spacing: 0.06em;
  }

  .hero-location {
    font-size: 0.85rem;
    margin-bottom: 1.6rem;
  }

  /* Hero buttons — pill style, full-width on small screens */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-actions .btn {
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
  }
  .hero-actions .btn-primary {
    background: linear-gradient(135deg, #c8860a, #ffd700);
    box-shadow: 0 4px 20px rgba(255,180,0,0.35);
  }
  .hero-actions .btn-secondary {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
  }

  /* Scroll indicator — hide on very small, show as chevron */
  .hero-scroll-indicator { bottom: calc(var(--mob-bottom-h) + 1rem); }

  /* Reduce peacock feather count on mobile via opacity */
  .peacock-feather { opacity: 0 !important; }
  .peacock-feather:nth-child(-n+4) { opacity: 1 !important; }

  /* Flute wave — shorter on mobile */
  .flute-wave-container { bottom: calc(var(--mob-bottom-h) + 70px); }
  .flute-bar { width: 2px; }
}

/* ============================================================
   4. NOTICE BAR — removed
   ============================================================ */

/* ============================================================
   5. SECTION HEADERS — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.9rem;
    letter-spacing: 0.08em;
  }
  .section-title { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  /* Divider lines shorter on mobile */
  .title-divider::before,
  .title-divider::after { width: 40px; }
}

/* ============================================================
   6. ABOUT SECTION — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-image-wrapper {
    max-width: 100%;
    margin: 0;
  }
  /* Temple image card glows on mobile */
  .about-image-wrapper::after {
    filter: blur(8px);
    opacity: 0.5;
    animation: spin-border 5s linear infinite;
  }
  .about-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .highlight-item {
    font-size: 0.82rem;
    padding: 0.55rem 0.8rem;
    background: rgba(200,134,10,0.1);
    border-radius: 10px;
    border-left: 3px solid var(--neon-gold);
  }
}
@media (max-width: 480px) {
  .about-highlights { grid-template-columns: 1fr; }
}

/* ============================================================
   7. TIMING CARDS — MOBILE GLASS
   ============================================================ */
@media (max-width: 768px) {
  .timings-grid { grid-template-columns: 1fr; gap: 1rem; }

  .timing-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .timing-card:active { transform: scale(var(--tap-scale)); }

  .timing-card-header {
    background: linear-gradient(135deg, rgba(200,134,10,0.2), rgba(255,153,51,0.12));
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255,215,0,0.12);
  }
  .timing-card-header h3 {
    font-size: 1rem;
  }

  .timing-table th,
  .timing-table td {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  .timing-table tr:nth-child(even) {
    background: rgba(255,215,0,0.04);
  }

  .timing-card-full { grid-column: auto; }
  .opening-hours-grid {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hours-divider { display: none; }
  .hours-block {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255,215,0,0.06);
    border-radius: 10px;
    border: 1px solid rgba(255,215,0,0.12);
  }
}

/* ============================================================
   8. FESTIVAL CARDS — SWIPEABLE MOBILE CAROUSEL
   ============================================================ */
@media (max-width: 768px) {
  /* Convert grid to horizontal scroll carousel on mobile */
  .festivals-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 1rem 1.5rem;
    margin: 0 -5%;
    scrollbar-width: none;
  }
  .festivals-grid::-webkit-scrollbar { display: none; }

  .festival-card {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: center;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(26,8,20,0.9), rgba(8,20,40,0.9));
    border: 1px solid rgba(255,215,0,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.6rem 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }
  .festival-card:active { transform: scale(0.97); }

  .festival-icon { font-size: 2.8rem; margin-bottom: 0.8rem; }
  .festival-card h3 { font-size: 1.1rem; }
  .festival-card p  { font-size: 0.85rem; }

  /* Scroll dots indicator */
  .festival-scroll-hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,215,0,0.6);
    margin-top: 0.5rem;
    letter-spacing: 0.06em;
    animation: blink-hint 2s ease-in-out infinite;
  }
  @keyframes blink-hint {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
  }
}

/* ============================================================
   9. GALLERY — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .gmaps-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
  }
  .gmaps-photo-item {
    border-radius: 12px;
    border-width: 1px;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .gmaps-photo-item:active {
    transform: scale(0.96);
    box-shadow: 0 0 16px rgba(255,215,0,0.4);
  }
}
@media (max-width: 400px) {
  .gmaps-photo-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   10. LOCATION / MAP — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .location-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .transport-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s;
  }
  .transport-item:active { border-color: rgba(255,215,0,0.4); }

  .transport-icon { width: 44px; height: 44px; font-size: 1.1rem; }

  /* Map full width */
  .map-wrapper { height: 260px; border-radius: 16px; overflow: hidden; }
  .temple-map  { height: 100%; border-radius: 16px; }

  /* Place details card */
  .place-details-card {
    border-radius: 16px;
    border: 1px solid rgba(255,215,0,0.15);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
  }
  .place-details-content { grid-template-columns: 1fr; }

  /* Directions button */
  .btn-directions {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #8a5e00, #ffd700);
    color: #1a0a00;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255,180,0,0.3);
  }
}

/* ============================================================
   11. CONTACT FORM — MOBILE GLASS
   ============================================================ */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .contact-form {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: 20px;
    padding: 1.5rem;
  }

  .form-group label {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;              /* prevents iOS zoom on focus */
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,215,0,0.2);
    color: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--neon-gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
    outline: none;
  }
  .form-group textarea { min-height: 120px; resize: vertical; }

  /* Big tap-friendly submit */
  .btn-full {
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #c8860a, #ffd700);
    color: #1a0800;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255,180,0,0.3);
    letter-spacing: 0.04em;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-full:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(255,180,0,0.2);
  }
}

/* ============================================================
   12. BABY KRISHNA SECTION — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .bk-hero-wrap {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .bk-hero-svg {
    width: 200px;
    margin: 0 auto;
  }
  .bk-hero-text h3 { font-size: 1.4rem; }
  .bk-hero-text h3 span { font-size: 1rem; }
  .bk-hero-text p { font-size: 0.88rem; }

  /* Horizontal scroll carousel for bk-grid on mobile */
  .bk-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 1rem 1.5rem;
    margin: 0 -5%;
    grid-template-columns: unset;
    scrollbar-width: none;
  }
  .bk-grid::-webkit-scrollbar { display: none; }

  .bk-card {
    flex: 0 0 72vw;
    max-width: 260px;
    scroll-snap-align: center;
    border-radius: 20px;
    padding: 1.4rem 1rem 1.2rem;
  }
  .bk-card:active { transform: scale(0.97); }

  .bk-svg-wrap { max-width: 150px; }
  .bk-name-ml  { font-size: 0.95rem; }
  .bk-name-en  { font-size: 0.7rem; }
  .bk-desc     { font-size: 0.78rem; }

  /* Info strip stacks 2-col then 1-col */
  .bk-info-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
  }
  .bk-info-icon  { font-size: 1.4rem; }
  .bk-info-label { font-size: 0.65rem; }
  .bk-info-value { font-size: 0.78rem; }
}
@media (max-width: 400px) {
  .bk-info-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   13. FOOTER — MOBILE GLASS
   ============================================================ */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-brand { flex-direction: column; align-items: center; gap: 0.5rem; }
  .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .footer-hours { text-align: center; }
  .footer-map-thumb { display: none; } /* hide on mobile - has bottom nav */
  .footer-copy    { font-size: 0.8rem; }
  .footer-tagline { font-size: 0.85rem; letter-spacing: 0.08em; }

  .site-footer {
    background: linear-gradient(160deg, rgba(10,4,25,0.98), rgba(4,16,8,0.98));
    border-top: 1px solid rgba(255,215,0,0.1);
  }
}

/* ============================================================
   14. BACK-TO-TOP — MOBILE REPOSITIONED
   ============================================================ */
@media (max-width: 768px) {
  .back-to-top {
    bottom: calc(var(--mob-bottom-h) + var(--safe-bottom) + 1rem);
    right: 1rem;
    width: 44px; height: 44px;
    font-size: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a5e00, #ffd700);
    color: #1a0800;
    box-shadow: 0 4px 16px rgba(255,180,0,0.4);
    border: none;
  }
}

/* ============================================================
   15. CARD TAP RIPPLE EFFECT
   ============================================================ */
@media (max-width: 768px) {
  .festival-card,
  .timing-card,
  .bk-card,
  .transport-item {
    -webkit-tap-highlight-color: transparent;
  }
  /* Ripple on tap */
  .tap-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: scale(0);
    animation: tap-ripple-anim 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
  }
  @keyframes tap-ripple-anim {
    to { transform: scale(4); opacity: 0; }
  }
}

/* ============================================================
   16. FUTURISTIC SCROLLBAR (webkit)
   ============================================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-gold), var(--neon-cyan));
  border-radius: 4px;
}

/* ============================================================
   17. MOBILE GLOW PULSE ON SECTION ENTRY
   ============================================================ */
@media (max-width: 768px) {
  .krishna-reveal {
    filter: blur(6px) brightness(0.8);
  }
  .krishna-reveal.revealed {
    filter: blur(0) brightness(1);
  }
}

/* ============================================================
   18. FUTURISTIC NEON HORIZONTAL RULE BETWEEN SECTIONS
   ============================================================ */
@media (max-width: 768px) {
  .section + .section::before,
  .notice-bar + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--neon-cyan) 20%,
      var(--neon-gold) 50%,
      var(--neon-cyan) 80%,
      transparent 100%
    );
    opacity: 0.25;
    margin: 0 5%;
  }
}

/* ============================================================
   19. PLACE-DETAILS CARD — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .place-details-card {
    border-radius: 16px;
    margin-top: 1.5rem;
  }
  .place-detail-item {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    margin-bottom: 0.4rem;
    border: 1px solid rgba(255,215,0,0.08);
  }
  .place-detail-item i { font-size: 1.1rem; }
}

/* ============================================================
   20. TABLET FINE-TUNING (769 – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  #mobile-bottom-nav { display: none; }
  main { padding-bottom: 0; }

  .bk-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-hero-wrap { gap: 2rem; }
  .bk-hero-svg { width: 220px; }

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

/* ============================================================
   21. TOAST NOTIFICATION (for tap interactions)
   ============================================================ */
#mob-toast {
  position: fixed;
  bottom: calc(var(--mob-bottom-h) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,4,25,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  color: var(--neon-gold);
  font-family: 'Noto Serif Malayalam', serif;
  letter-spacing: 0.04em;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
#mob-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 769px) { #mob-toast { display: none; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .festivals-grid,
  .bk-grid {
    overflow-x: auto;
    scroll-snap-type: none;
  }
}

/* ============================================================
   OVERFLOW / WHITE STRIP FIX
   Prevents any element from causing horizontal scroll
   ============================================================ */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Clamp fixed/absolute elements that can overflow right */
#krishna-canvas,
.krishna-float-element,
.peacock-feather,
.cursor-sparkle {
  max-width: 100vw;
  overflow: hidden;
}

/* Prevent nav drawer from widening body */
.nav-menu {
  max-width: 100vw;
}

/* Any element that might overflow */
* {
  box-sizing: border-box;
}

section,
.container,
.section-header,
header,
footer,
main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Carousels clip within their parent */
.festivals-grid,
.bk-grid {
  max-width: 100%;
}

/* Fix for marquee-related JS clone if any leftover */
.marquee-wrapper,
.marquee-content,
.notice-bar {
  display: none !important;
}

/* ══════════════════════════════════════════════
   MOBILE NAV — No hamburger, horizontal scroll
   Lang pill lives in top-right of navbar
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav toggle hidden — removed */
  .nav-toggle { display: none !important; }

  /* Navbar: brand left, lang pill right */
  .navbar {
    padding: 0 0.9rem;
    height: var(--mob-nav-h);
    gap: 0.5rem;
  }

  /* Nav menu: horizontal scroll strip below header */
  .nav-menu {
    /* Override drawer styles — now a horizontal scrollable strip */
    position: fixed !important;
    top: var(--mob-nav-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    background: rgba(8,4,24,0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,215,0,0.12) !important;
    border-left: none !important;
    flex-direction: row !important;
    display: flex !important;
    padding: 0.4rem 0.6rem !important;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    z-index: 998 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  }
  .nav-menu::-webkit-scrollbar { display: none; }

  /* Nav links — compact horizontal pills */
  .nav-menu li { flex-shrink: 0; }

  .nav-link {
    font-size: 0.72rem !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 50px !important;
    border: 1px solid transparent !important;
    white-space: nowrap;
    font-family: 'Noto Serif Malayalam', serif;
    color: rgba(255,255,255,0.65) !important;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255,215,0,0.12) !important;
    border-color: rgba(255,215,0,0.25) !important;
    color: #ffd700 !important;
    padding-left: 0.85rem !important; /* override drawer indent */
  }
  .nav-link::before { display: none !important; } /* no left bar */

  /* Push main content down to account for nav strip */
  main { padding-top: calc(var(--mob-nav-h) + 44px) !important; }
  /* Hero is FIRST child of main — no extra padding needed */
  main > section#home:first-of-type { margin-top: 0; }

  /* Brand text — show both lines */
  .brand-ml { font-size: 0.76rem; }
  .brand-en { font-size: 0.65rem; }
  .om-symbol { font-size: 1.6rem; }
}

/* Very small screens */
@media (max-width: 360px) {
  .nav-link { font-size: 0.66rem !important; padding: 0.38rem 0.65rem !important; }
  .nlp-btn  { font-size: 0.65rem; padding: 4px 7px; }
}
