/* ==========================================================================
   MAHALAKSHMI VIDYA MANDIR (CBSE) SENIOR SECONDARY SCHOOL
   CINEMATIC HERO SHOWCASE & SLIDER (v6.0 - PURE HERO & DEAD-CENTER ALIGNED)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand-navy: #1e1b4b;
  --brand-maroon: #881337;
  --brand-gold: #f59e0b;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --bg-slate-950: #020617;
  --text-white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.92);
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-slate-950);
  color: var(--text-white);
  line-height: 1.45;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   2. HERO STAGE WRAPPER
   ========================================================================== */
.hero-showcase-section {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--bg-slate-950);
  overflow: hidden;
}

.hero-slider-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bg-slate-950);
}

.hero-slides-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   3. INDIVIDUAL SLIDE & TRUE VIEWPORT CENTERING
   ========================================================================== */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.85s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* Background Photo with Smooth Ken-Burns Zoom */
.slide-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.hero-slide.active .slide-bg-photo {
  transform: scale(1.08);
}

/* Multi-Layer Scrim Gradients for Contrast & Legibility */
.slide-gradient-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: background 0.8s ease;
}

.hero-slide[data-theme="blue"] .slide-gradient-scrim {
  background: 
    radial-gradient(ellipse at center, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.88) 75%, rgba(2, 6, 23, 0.96) 100%),
    linear-gradient(135deg, rgba(30, 58, 138, 0.55) 0%, rgba(59, 130, 246, 0.35) 100%);
}

.hero-slide[data-theme="purple"] .slide-gradient-scrim {
  background: 
    radial-gradient(ellipse at center, rgba(20, 10, 45, 0.72) 0%, rgba(20, 10, 45, 0.88) 75%, rgba(2, 6, 23, 0.96) 100%),
    linear-gradient(135deg, rgba(88, 28, 135, 0.55) 0%, rgba(147, 51, 234, 0.35) 100%);
}

.hero-slide[data-theme="emerald"] .slide-gradient-scrim {
  background: 
    radial-gradient(ellipse at center, rgba(6, 30, 25, 0.72) 0%, rgba(6, 30, 25, 0.88) 75%, rgba(2, 6, 23, 0.96) 100%),
    linear-gradient(135deg, rgba(6, 78, 59, 0.55) 0%, rgba(16, 185, 129, 0.35) 100%);
}

.hero-slide[data-theme="teal"] .slide-gradient-scrim {
  background: 
    radial-gradient(ellipse at center, rgba(4, 35, 35, 0.72) 0%, rgba(4, 35, 35, 0.88) 75%, rgba(2, 6, 23, 0.96) 100%),
    linear-gradient(135deg, rgba(13, 148, 136, 0.55) 0%, rgba(6, 182, 212, 0.35) 100%);
}

/* ==========================================================================
   4. MATHEMATICAL DEAD-CENTER CONTENT CONTAINER
   ========================================================================== */
.hero-content-wrapper {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Glowing Pill Badge */
.slide-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 1.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: clamp(0.75rem, 1.4vw, 0.86rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(18px);
  opacity: 0;
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.hero-slide.active .slide-pill-badge {
  transform: translateY(0);
  opacity: 1;
}

.slide-pill-badge i {
  color: #fde047;
}

/* Display Heading */
.slide-display-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.14;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  max-width: 860px;
  text-wrap: balance;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 255, 255, 0.2);
  transform: translateY(22px);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-slide.active .slide-display-heading {
  transform: translateY(0);
  opacity: 1;
}

/* Subtitle Description */
.slide-description-text {
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(18px);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-slide.active .slide-description-text {
  transform: translateY(0);
  opacity: 1;
}

/* Action Buttons Cluster */
.slide-buttons-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.hero-slide.active .slide-buttons-cluster {
  transform: translateY(0);
  opacity: 1;
}

/* Primary Framed Button */
.btn-hero-framed {
  padding: 0.9rem 2.2rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(37, 99, 235, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  min-height: 48px;
}

.btn-hero-framed:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.55);
}

/* Secondary Frosted Glass Button */
.btn-hero-glass {
  padding: 0.9rem 2rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   5. SYMMETRICAL NAVIGATION CHEVRONS (LEFT & RIGHT)
   ========================================================================== */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: var(--transition-fast);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-nav-arrow:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 35px rgba(255, 255, 255, 0.4);
}

.hero-nav-arrow.arrow-left {
  left: clamp(1rem, 3vw, 2.5rem);
}

.hero-nav-arrow.arrow-right {
  right: clamp(1rem, 3vw, 2.5rem);
}

/* ==========================================================================
   6. BOTTOM CONTROLS CAPSULE
   ========================================================================== */
.hero-bottom-control-capsule {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 1.15rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.capsule-dots-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.capsule-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capsule-dot.active {
  width: 26px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}

.capsule-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.75);
}

.capsule-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
}

.capsule-btn-toggle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  padding: 0.2rem 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.capsule-btn-toggle:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.capsule-slide-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ==========================================================================
   7. 100% RESPONSIVE MULTI-DISPLAY MEDIA QUERIES
   ========================================================================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* Mobile Devices & Phablets (max-width: 768px) */
@media (max-width: 768px) {
  .hero-content-wrapper {
    width: 95%;
    max-width: 480px;
    padding: 0.5rem;
  }
  .slide-pill-badge {
    padding: 0.4rem 1rem;
    font-size: 0.76rem;
    margin-bottom: 0.85rem;
  }
  .slide-display-heading {
    font-size: clamp(1.65rem, 6.2vw, 2.25rem);
    line-height: 1.16;
    margin-bottom: 0.75rem;
  }
  .slide-description-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
    max-width: 95%;
  }
  .slide-buttons-cluster {
    flex-direction: column;
    width: 100%;
    max-width: 290px;
    gap: 0.65rem;
  }
  .btn-hero-framed, .btn-hero-glass {
    width: 100%;
    padding: 0.8rem 1.25rem;
    font-size: 0.96rem;
    min-height: 44px;
  }
  .hero-nav-arrow {
    display: none !important; /* Swipe gesture takes over */
  }
  .hero-bottom-control-capsule {
    bottom: 1rem;
    padding: 0.38rem 0.9rem;
    gap: 0.65rem;
  }
  .capsule-dot.active {
    width: 20px;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .slide-pill-badge {
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    margin-bottom: 0.7rem;
    gap: 0.35rem;
  }
  .slide-display-heading {
    font-size: clamp(1.45rem, 6.8vw, 1.95rem);
    line-height: 1.18;
    margin-bottom: 0.65rem;
  }
  .slide-description-text {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1.15rem;
  }
  .slide-buttons-cluster {
    max-width: 260px;
    gap: 0.55rem;
  }
  .btn-hero-framed, .btn-hero-glass {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    min-height: 40px;
  }
  .hero-bottom-control-capsule {
    bottom: 0.75rem;
    padding: 0.32rem 0.75rem;
    gap: 0.5rem;
  }
}

/* Extra Small Phones (max-width: 360px - iPhone SE) */
@media (max-width: 360px) {
  .slide-display-heading {
    font-size: 1.35rem;
  }
  .slide-description-text {
    font-size: 0.8rem;
  }
}

/* Mobile Landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content-wrapper {
    padding: 0.5rem;
  }
  .slide-pill-badge {
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.68rem;
  }
  .slide-display-heading {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }
  .slide-description-text {
    display: none;
  }
  .slide-buttons-cluster {
    flex-direction: row;
    gap: 0.6rem;
    max-width: 100%;
  }
  .btn-hero-framed, .btn-hero-glass {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    min-height: 34px;
    width: auto;
  }
  .hero-bottom-control-capsule {
    bottom: 0.35rem;
    padding: 0.2rem 0.65rem;
  }
}
