/* =============================================
   SVIMLT â€” Minimal White + Liquid Glass + Video Hero
   ============================================= */

:root {
  /* Platinum Mist Palette */
  /* Platinum Mist Palette - Backgrounds */
  --bg-deep: #F2EAF7;
  --bg-primary: #F2EAF7;
  --bg-secondary: #e6daef;
  --bg-tertiary: #dcc8e5;

  /* Primary â€” Elegant Navy Blue (Theme Logo) */
  --primary-700: #0a192f;
  --primary-600: #112240;
  --primary-500: #1d3557;
  --primary-400: #457b9d;
  --primary-300: #8ecae6;
  --primary-200: #bde0fe;
  --primary-100: #e0fbfc;

  /* Accent â€” Topaz / Gold Combinational */
  --accent-600: #d4a824;
  --accent-500: #e5c04a;
  --accent-400: #f4d068;
  --accent-300: #fbe089;
  --accent-200: #fdf0c0;

  /* Gold (Metallic highlights) */
  --gold-500: #a9acb2;
  --gold-400: #c1c4c8;
  --gold-300: #dadddf;

  /* Text â€” Mist darks */
  --text-primary: #1c1e21;
  --text-heading: #2B2E33;
  --text-secondary: #5b5f66;
  --text-muted: #7B7F85;
  --text-light: #9ea2a8;

  /* Liquid Glass tokens â€” Platinum theme */
  --glass-bg: rgba(245, 246, 247, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-outer: rgba(43, 46, 51, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.9);
  --glass-blur: 24px;
  --glass-shadow: 0 8px 32px rgba(43, 46, 51, 0.08), 0 2px 8px rgba(43, 46, 51, 0.04);
  --glass-shadow-hover: 0 16px 48px rgba(43, 46, 51, 0.15), 0 4px 16px rgba(43, 46, 51, 0.08);

  /* Prismatic / Aurora gradient for liquid glass borders */
  --aurora-border: linear-gradient(135deg,
    rgba(120, 200, 255, 0.4),
    rgba(180, 130, 255, 0.3),
    rgba(255, 160, 200, 0.3),
    rgba(120, 255, 200, 0.3),
    rgba(120, 200, 255, 0.4)
  );

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  --gradient-hero: linear-gradient(160deg, #F2EAF7 0%, #e6daef 40%, #F2EAF7 100%);
  --gradient-section-alt: linear-gradient(180deg, #F2EAF7 0%, #ede3f4 100%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: clamp(5rem, 10vw, 9rem);
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-medium: 500ms var(--ease-out-expo);
  --transition-slow: 800ms var(--ease-out-expo);

  /* Borders */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Mesmerizing Elegant Background Animation */
body::before {
  content: "";
  position: fixed;
  inset: -10vw; /* extended to prevent edges flashing on lag */
  z-index: -2;
  background: 
    radial-gradient(circle at 20% 40%, rgba(212, 168, 36, 0.05), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(142, 202, 230, 0.08), transparent 60%),
    radial-gradient(circle at 50% 10%, rgba(189, 224, 254, 0.05), transparent 50%),
    linear-gradient(135deg, #F2EAF7 0%, #e8dff0 50%, #F2EAF7 100%);
  background-size: 200% 200%;
  animation: mesmerizeBg 24s ease infinite;
  pointer-events: none;
  will-change: background-position;
  transform: translateZ(0); /* Hardware acceleration */
  backface-visibility: hidden;
}

@keyframes mesmerizeBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* =============================================
   Liquid Glass â€” Reusable (White Theme)
   ============================================= */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background-color: #c6c2c3 !important;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

/* Top shine line */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 10%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(200, 220, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.9) 70%,
    transparent 90%
  );
  pointer-events: none;
  z-index: 2;
}

/* Rainbow prismatic shimmer overlay */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(120, 200, 255, 0.03) 0%,
    rgba(180, 130, 255, 0.03) 25%,
    rgba(255, 160, 200, 0.02) 50%,
    rgba(120, 255, 200, 0.03) 75%,
    rgba(120, 200, 255, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(120, 180, 255, 0.15);
  box-shadow: var(--glass-shadow-hover);
}

.glass-card:hover::after {
  opacity: 1;
}

.glass-card {
  transition: transform 0.15s cubic-bezier(0.1, 0.7, 0.1, 1), box-shadow var(--transition-medium), background var(--transition-medium);
  transform-style: preserve-3d;
}

/* =============================================
   Brighton College â€” Hover Zoom & Photo Effects
   ============================================= */
.brighton-card {
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo),
              background 0.5s var(--ease-out-expo),
              border-color 0.5s var(--ease-out-expo);
}

.brighton-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 60px rgba(0, 20, 60, 0.1), 0 8px 24px rgba(0, 20, 60, 0.06);
}

/* Photo zoom in container */
.brighton-photo {
  overflow: hidden;
}

.brighton-photo img {
  transition: transform 0.7s var(--ease-out-expo), filter 0.7s ease;
  will-change: transform;
}

.brighton-photo:hover img,
.brighton-card:hover .brighton-photo img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* =============================================
   Announcements Bar
   ============================================= */
.announcements-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 20, 60, 0.15);
}

.announcements-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.announce-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.announce-scroll-wrapper {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.announce-scroll-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: announceScroll 25s linear infinite;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
  will-change: transform;
}

@keyframes announceScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.announce-item::before {
  content: '📢';
  color: var(--accent-300);
  font-size: 1.2rem;
  display: inline-block;
  animation: pulseRotate 2s infinite ease-in-out;
}

@keyframes pulseRotate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
}

/* =============================================
   Preloader â€” Logo Revolve â†’ Devotional â†’ Fade Up
   ============================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  position: relative;
  width: 110px;
  height: 110px;
  perspective: 1000px;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  animation: logoCinematicReveal 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  filter: drop-shadow(0 0 30px rgba(26, 86, 150, 0.4));
  position: relative;
  z-index: 2;
}

/* Light sweep effect using ::after on the logo container */
.preloader-logo::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  transform: translateX(-100%) translateY(-100%) rotate(35deg);
  animation: lightSweep 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.5s;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.logo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(26, 86, 150, 0.3) 90deg,
    rgba(16, 163, 127, 0.3) 180deg,
    rgba(26, 86, 150, 0.3) 270deg,
    transparent 360deg
  );
  animation: epicGlow 4s linear infinite;
  filter: blur(15px);
  z-index: 1;
}

@keyframes logoCinematicReveal {
  0% { transform: scale(1.6) translateY(20px); opacity: 0; filter: blur(20px) drop-shadow(0 0 0 rgba(26,86,150,0)); }
  40% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0px) drop-shadow(0 0 30px rgba(26,86,150,0.4)); }
}

@keyframes lightSweep {
  0% { transform: translateX(-100%) translateY(-100%) rotate(35deg); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateX(100%) translateY(100%) rotate(35deg); opacity: 0; }
}

@keyframes epicGlow {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.4; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 0.8; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.4; }
}

.preloader-logo.fading-up img {
  animation: logoCinematicFadeOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.preloader-logo.fading-up .logo-glow {
  animation: glowFade 0.8s ease forwards;
}

@keyframes logoCinematicFadeOut {
  0% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
  100% { transform: scale(0.8) translateY(-40px); opacity: 0; filter: blur(10px); }
}

@keyframes glowFade {
  to { opacity: 0; transform: scale(1.5) rotate(180deg); }
}

.preloader-text-group {
  text-align: center;
  opacity: 0;
  animation: textFadeIn 0.8s ease 0.5s forwards;
}

.preloader-text-group.hiding {
  animation: fadeOutDown 0.5s ease forwards;
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
  to { opacity: 0; transform: translateY(10px); }
}

.preloader-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-heading);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.preloader-title.accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.preloader-location {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.preloader-devotional {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.preloader-devotional.visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader-devotional.hiding {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.devotional-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.devotional-meaning {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* =============================================
   Navigation â€” Crystal Glass Tabs
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.main-nav {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  padding: 0.7rem 0;
  transition: all var(--transition-medium);
  box-shadow: none !important;
}

/* When hero video is visible, nav should be transparent */
.site-header:not(.scrolled) .main-nav {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.site-header:not(.scrolled) .logo-name,
.site-header:not(.scrolled) .logo-tagline {
  color: var(--text-heading);
}

.site-header:not(.scrolled) .nav-glass-pill {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.site-header:not(.scrolled) .nav-link {
  color: var(--text-primary);
}

.site-header:not(.scrolled) .nav-link:hover {
  color: var(--primary-700);
  background: rgba(0, 0, 0, 0.05);
}

.site-header:not(.scrolled) .nav-link.active {
  color: var(--primary-700);
  background: rgba(0, 0, 0, 0.05);
  border: none !important;
}

.site-header:not(.scrolled) .hamburger span {
  background: var(--text-heading);
}

.site-header.scrolled .main-nav {
  background: transparent !important;
  padding: 0.5rem 0;
  box-shadow: none !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 10;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  line-height: 1;
  transition: color 0.3s ease;
}

.logo-tagline {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Glass pill container for nav links */
.nav-glass-pill {
  background: rgba(240, 243, 250, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 20, 60, 0.05);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text-heading);
  background: rgba(0, 30, 80, 0.04);
}

.nav-link.active {
  color: var(--primary-600);
  background: rgba(26, 86, 150, 0.08);
  border: 1px solid rgba(26, 86, 150, 0.08);
  font-weight: 600;
}

.nav-cta {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(26, 86, 150, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 86, 150, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon {
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--text-heading);
  transition: all 0.3s ease;
}

.nav-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: var(--primary-600);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   Hero â€” Full-Screen Video Background (Luther Style)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  background: #0a1628;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Very transparent overlay that gently darkens the bottom left to ensure text visibility */
  background: radial-gradient(circle at bottom left, rgba(10, 22, 40, 0.6) 0%, rgba(10, 22, 40, 0.05) 55%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 8%;
  left: 4%;
  z-index: 3;
  text-align: left;
  max-width: 780px;
  transform: scale(0.85);
  transform-origin: bottom left;
  animation: heroFloat 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(0.85) translate3d(0, 0, 0); }
  50% { transform: scale(0.85) translate3d(0, -10px, 0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.78rem;
  color: var(--accent-300);
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  background: rgba(16, 163, 127, 0.12);
  border: 1px solid rgba(16, 163, 127, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-line { display: block; }

.hero-line.highlight {
  background: linear-gradient(270deg, var(--gold-400), #ffffff, var(--primary-300), var(--gold-500));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 5s infinite;
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 0 2.5rem 0;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 86, 150, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 86, 150, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-heading);
  border: 1px solid rgba(0, 20, 60, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 20, 60, 0.04);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 20, 60, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 20, 60, 0.08);
}

.btn-glass-hero {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-glass-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 1; height: 45px; }
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: 1rem;
  padding: 0.35rem 1.1rem;
  background: rgba(26, 86, 150, 0.05);
  border: none;
  border-radius: var(--radius-full);
  animation: tagFloat 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* =============================================
   About Section
   ============================================= */
.about-section {
  background: var(--gradient-section-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-feature {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-bg-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#modern-labs-bg {
  background-image: url('../docs/modern laboratories.jpg');
}

#expert-faculty-bg {
  background-image: url('../docs/ef.jpg');
}

#clinical-training-bg {
  background-image: url('../docs/clinivcal t.webp');
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 100%);
  z-index: 1;
}

.feature-content {
  position: relative;
  z-index: 2;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.about-feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff; /* Ensure text is visible over image */
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.about-feature p {
  color: rgba(255, 255, 255, 0.85); /* Visible over image */
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================
   Vision & Mission â€” Sequential Reveal
   ============================================= */
.mv-sequential {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.mv-block {
  padding: 2.5rem 2.5rem 2rem;
  width: 100%;
}

/* All animated items start hidden */
.mv-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed state */
.mv-item.mv-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Heading animated underline */
.mv-heading {
  position: relative;
  display: inline-block;
}

.mv-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.mv-heading.mv-revealed::after {
  width: 100%;
}

/* Points list â€” each point slides in from the left */
.mv-points-list li.mv-item {
  transform: translateX(-30px) translateY(0);
}

.mv-points-list li.mv-item.mv-revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Divider between Vision & Mission */
.mv-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  width: 100%;
}

.mv-divider-line {
  height: 1px;
  flex: 1;
  max-width: 100px;
  background: linear-gradient(90deg, transparent, var(--primary-300), transparent);
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.mv-divider.mv-revealed .mv-divider-line {
  transform: scaleX(1);
}

.mv-divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.mv-divider.mv-revealed .mv-divider-dot {
  transform: scale(1);
}

/* Icon wrap entrance â€” scale + rotate */
.mission-icon-wrap.mv-item {
  transform: translateY(20px) scale(0.5) rotate(-15deg);
}

.mission-icon-wrap.mv-item.mv-revealed {
  transform: translateY(0) scale(1) rotate(0deg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mission-block {
  padding: 2.5rem;
}

.mission-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(26, 86, 150, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary-500);
}

.mission-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.mission-block p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.mission-list {
  list-style: none;
}

.mission-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.mission-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* =============================================
   Messages / Leadership
   ============================================= */
.messages-section {
  background: var(--gradient-section-alt);
}

.messages-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.message-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background-color: #6e6769 !important;
  color: #ffffff !important;
}

.message-card .message-text,
.message-card .message-role,
.message-card .message-name {
  color: #ffffff !important;
}

.message-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.message-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-500);
  margin-bottom: 0.75rem;
}

.message-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.message-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 20, 60, 0.05);
}

.message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(26, 86, 150, 0.1);
  box-shadow: 0 4px 12px rgba(0, 20, 60, 0.08);
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.message-card:hover .message-avatar img {
  transform: scale(1.1);
}

.message-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.message-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.message-title {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =============================================
   Stats
   ============================================= */
.stats-section {
  padding: 3rem 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* =============================================
   Courses
   ============================================= */
.courses-section {
  background: var(--gradient-section-alt);
}

.course-showcase {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.detail-value {
  display: block;
  font-size: 0.88rem;
  color: var(--text-heading);
  font-weight: 500;
}

.course-departments h4 {
  font-size: 0.85rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.dept-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dept-chip {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  background: rgba(26, 86, 150, 0.04);
  border: 1px solid rgba(0, 20, 60, 0.05);
}

/* =============================================
   Faculty â€” Liquid Glass Cards
   ============================================= */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.faculty-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  background-color: #a07d86 !important;
  color: #ffffff !important;
}

.faculty-card h4,
.faculty-card .faculty-role,
.faculty-card .faculty-qual {
  color: #ffffff !important;
}

/* Extra prismatic shimmer for faculty cards */
.faculty-card::after {
  background: linear-gradient(
    135deg,
    rgba(100, 180, 255, 0.05) 0%,
    rgba(200, 140, 255, 0.06) 25%,
    rgba(255, 180, 220, 0.04) 50%,
    rgba(100, 255, 200, 0.05) 75%,
    rgba(100, 180, 255, 0.05) 100%
  );
  background-size: 200% 200%;
  animation: shimmerRotate 6s linear infinite;
}

@keyframes shimmerRotate {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.faculty-card:hover::after {
  opacity: 1;
  animation: shimmerRotate 3s linear infinite;
}

.faculty-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--av-color, var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(0, 20, 60, 0.12);
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.faculty-card:hover .faculty-avatar {
  transform: scale(1.1) translateZ(60px);
  box-shadow: 0 12px 32px rgba(43, 46, 51, 0.3);
}

.faculty-card h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease-out-expo);
}

.faculty-card:hover h4 {
  transform: translateZ(40px);
}

.faculty-role {
  display: block;
  font-size: 0.78rem;
  color: var(--primary-500);
  margin-bottom: 0.2rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease-out-expo);
}

.faculty-qual {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease-out-expo);
}

.faculty-card:hover .faculty-role,
.faculty-card:hover .faculty-qual {
  transform: translateZ(25px);
}

/* Faculty photo avatar (admin override) */
.faculty-avatar-photo {
  background: transparent !important;
  padding: 0;
  overflow: hidden;
}

.faculty-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.6s var(--ease-out-expo), filter 0.5s ease;
}

.faculty-card:hover .faculty-avatar-photo img {
  transform: scale(1.12);
  filter: brightness(1.08);
}

/* =============================================
   Leadership â€” CRAZY Animations System
   ============================================= */

/* --- Card entrance: start hidden --- */
.leader-card {
  opacity: 0;
  transform: perspective(800px) rotateY(-25deg) rotateX(10deg) translateY(60px) scale(0.85);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.leader-card.leader-entered {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(0) scale(1);
}

/* Continuous floating animation after entrance */
.leader-card.leader-entered {
  animation: leaderFloat 4s ease-in-out infinite;
  animation-delay: 1s;
}

.leader-card[data-leader-index="1"].leader-entered {
  animation-delay: 1.4s;
}

.leader-card[data-leader-index="2"].leader-entered {
  animation-delay: 1.8s;
}

@keyframes leaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
}

/* Override the stagger-children for leader cards */
.messages-carousel.revealed > .leader-card {
  /* Let the JS observer handle entrance instead */
  opacity: 0;
  transform: perspective(800px) rotateY(-25deg) rotateX(10deg) translateY(60px) scale(0.85);
}

.messages-carousel.revealed > .leader-card.leader-entered {
  opacity: 1;
  transform: perspective(800px) rotateY(0) rotateX(0) translateY(0) scale(1);
}

/* Hover: deep 3D tilt (JS handles real-time, this is fallback) */
.leader-card:hover {
  box-shadow:
    0 30px 80px rgba(26, 86, 150, 0.15),
    0 12px 32px rgba(0, 20, 60, 0.1),
    0 0 0 1px rgba(120, 200, 255, 0.15);
  z-index: 10;
  animation: none !important;
}

/* Aurora shimmer border on hover */
.leader-card::before {
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(120, 200, 255, 0.9) 15%,
    rgba(200, 140, 255, 0.8) 30%,
    rgba(255, 180, 220, 0.7) 50%,
    rgba(120, 255, 200, 0.8) 70%,
    rgba(120, 200, 255, 0.9) 85%,
    transparent 95%
  );
  height: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.leader-card:hover::before {
  opacity: 1;
  animation: auroraSlide 2s linear infinite;
}

@keyframes auroraSlide {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.leader-card::after {
  background:
    radial-gradient(
      400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(120, 200, 255, 0.08),
      rgba(180, 130, 255, 0.06),
      rgba(255, 160, 200, 0.04),
      transparent 60%
    );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.leader-card:hover::after {
  opacity: 1;
}

/* --- Avatar glow wrap --- */
.leader-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.leader-glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg,
    rgba(120, 200, 255, 0.6),
    rgba(200, 140, 255, 0.6),
    rgba(255, 160, 200, 0.6),
    rgba(120, 255, 200, 0.6),
    rgba(120, 200, 255, 0.6)
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: glowRingSpin 3s linear infinite;
  transition: opacity 0.5s ease;
}

.leader-card:hover .leader-glow-ring {
  opacity: 1;
}

@keyframes glowRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Sparkle particles --- */
.leader-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
  border-radius: inherit;
}

.sparkle-particle {
  position: absolute;
  left: var(--spark-x, 50%);
  top: var(--spark-y, 50%);
  width: var(--spark-size, 3px);
  height: var(--spark-size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.9),
    rgba(120, 200, 255, 0.6),
    transparent
  );
  opacity: 0;
  animation: sparkleAnim 2.5s ease-in-out var(--spark-delay, 0s) infinite;
  box-shadow: 0 0 6px rgba(120, 200, 255, 0.4);
}

.leader-card:hover .sparkle-particle {
  opacity: 1;
}

@keyframes sparkleAnim {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  20% { opacity: 1; transform: scale(1.2) translateY(-5px); }
  50% { opacity: 0.7; transform: scale(0.8) translateY(-15px); }
  80% { opacity: 0.3; transform: scale(1) translateY(-25px); }
  100% { opacity: 0; transform: scale(0) translateY(-35px); }
}

/* --- Leader card message-quote animated gradient --- */
.leader-card .message-quote {
  background: linear-gradient(135deg,
    var(--primary-400),
    var(--accent-400),
    #c084fc,
    var(--primary-400)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: quoteGradient 4s ease infinite;
  opacity: 0.5;
  font-size: 3.5rem;
}

@keyframes quoteGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Leader avatar photo zoom/pulse --- */
.leader-card .message-avatar {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease;
}

.leader-card:hover .message-avatar {
  transform: scale(1.15);
  box-shadow:
    0 0 20px rgba(26, 86, 150, 0.3),
    0 0 40px rgba(120, 200, 255, 0.15),
    0 8px 24px rgba(0, 20, 60, 0.2);
}

.leader-card:hover .message-avatar img {
  transform: scale(1.15);
  filter: brightness(1.1) contrast(1.05);
}

/* --- Leader zoom overlay: profile image fills card on hover --- */
.leader-zoom-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.leader-zoom-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.leader-card:hover .leader-zoom-overlay {
  opacity: 1;
  transform: scale(1);
}

/* Ensure all text content stays on top of the zoom overlay */
.leader-card .message-quote,
.leader-card .message-role,
.leader-card .message-text,
.leader-card .message-footer,
.leader-card .leader-sparkles {
  position: relative;
  z-index: 3;
}

/* --- Leader name glow on hover --- */
.leader-card:hover .message-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Leader role shimmer --- */
.leader-card .message-role {
  position: relative;
  overflow: hidden;
}

.leader-card:hover .message-role::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: roleShimmer 1.5s ease infinite;
}

@keyframes roleShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Leader card border glow pulse on hover */
.leader-card:hover {
  border-color: rgba(120, 200, 255, 0.25) !important;
}

/* =============================================
   Admissions
   ============================================= */
.admissions-section {
  background: var(--gradient-section-alt);
}

.admission-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.timeline-step {
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  max-width: 260px;
  background-color: #c58e57 !important;
  color: #ffffff !important;
}

.timeline-step h4,
.timeline-step p {
  color: #ffffff !important;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.timeline-step h4 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.timeline-connector {
  width: 40px;
  height: 2px;
  background: rgba(0, 20, 60, 0.04);
  margin-top: 3rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.timeline-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--primary-400), var(--gold-400));
  box-shadow: 0 0 8px 1px var(--primary-300);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.timeline-connector.revealed::after {
  width: 100%;
}

/* Event Shuffling cinematic */
@keyframes throwCardIn {
  0% { transform: translateY(100px) rotate(-10deg) scale(0.8); opacity: 0; }
  60% { transform: translateY(-10px) rotate(2deg) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}

.throw-in {
  opacity: 0;
}

.revealed .event-card.throw-in,
.revealed.event-card.throw-in {
  animation: throwCardIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* =============================================
   Wave Transition Divider
   ============================================= */
.wave-transition {
  width: 100%;
  height: 80px;
  background: var(--gradient-section-alt);
  position: relative;
  overflow: hidden;
  margin-bottom: -1px; /* collapse sub-pixel gap */
  z-index: 2;
}
.editorial-wave {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0px;
}
.wave-parallax > use {
  animation: waveScrollForever 15s cubic-bezier(.55,.5,.45,.5) infinite;
}
.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }

@keyframes waveScrollForever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

/* =============================================
   Exam Results
   ============================================= */
.results-section {
  background: var(--bg-deep);
  padding-top: 3rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.result-card {
  padding: 2rem;
  text-align: center;
  background-color: #d42301 !important;
  color: #ffffff;
  border: none;
}
.result-card h4,
.result-card p {
  color: #ffffff !important;
}

.result-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.result-card h4 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.result-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-500);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(26, 86, 150, 0.06);
  border: 1px solid rgba(26, 86, 150, 0.1);
}

.result-link:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* =============================================
   Events
   ============================================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.event-card {
  padding: 0;
  text-align: center;
  overflow: hidden;
}

/* Event cards without photos get normal padding */
.event-card:not(:has(.event-photo-wrap)) {
  padding: 2rem 1.5rem;
}

.event-emoji {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Event photo wrap */
.event-photo-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.event-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.event-card:hover .event-photo-wrap img {
  transform: scale(1.08);
  filter: brightness(1.06);
}

/* Event content below photo */
.event-card:has(.event-photo-wrap) .event-tag,
.event-card:has(.event-photo-wrap) h4,
.event-card:has(.event-photo-wrap) p {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.event-card:has(.event-photo-wrap) .event-tag {
  margin-top: 1rem;
}

.event-card:has(.event-photo-wrap) p:last-child {
  padding-bottom: 1.5rem;
}

.event-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(0, 20, 60, 0.06);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.event-tag.upcoming {
  color: var(--accent-600);
  border-color: rgba(16, 163, 127, 0.15);
  background: rgba(16, 163, 127, 0.04);
}

.event-card h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.event-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.event-date {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  font-weight: 500;
}

.event-upcoming {
  border-color: rgba(16, 163, 127, 0.12) !important;
}

/* =============================================
   Contact
   ============================================= */
.contact-section {
  background: var(--gradient-section-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
}

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
  padding: 2.5rem;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(248, 249, 252, 0.8);
  border: 1px solid rgba(0, 20, 60, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(46, 123, 196, 0.08);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* =============================================
   Footer â€” Clean White
   ============================================= */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(0, 20, 60, 0.05);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links-group h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.footer-links-group li {
  margin-bottom: 0.5rem;
}

.footer-links-group a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--primary-500);
}

.footer-address,
.footer-email {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-email {
  color: var(--primary-500);
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 20, 60, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-link {
  font-size: 1rem;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.admin-link:hover {
  opacity: 0.8;
}

/* =============================================
   Developer Dropdown
   ============================================= */
.developer-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

/* Blue and black combinational text */
.developer-btn {
  background: linear-gradient(90deg, #0033ff, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

/* Remove default triangle in WebKit */
.developer-btn::-webkit-details-marker {
  display: none;
}

.developer-btn:hover {
  opacity: 0.8;
}

.developer-dropdown[open] > summary::before {
  content: ' ';
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: transparent;
}

.developer-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem;
  min-width: 240px;
  list-style: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  z-index: 100;
  animation: slideUpFade 0.25s ease forwards;
}

.developer-menu li {
  margin-bottom: 0.6rem;
  color: #333333;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.developer-menu li:last-child {
  margin-bottom: 0;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Scroll Reveal â€” Multiple Unique Animations (Brighton-Inspired)
   ============================================= */

/* Default: fade up */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s ease;
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  filter: blur(0);
}

/* Fade from left */
[data-scroll-reveal="left"] {
  opacity: 0;
  transform: translateX(-50px);
}

[data-scroll-reveal="left"].revealed {
  transform: translateX(0);
}

/* Fade from right */
[data-scroll-reveal="right"] {
  opacity: 0;
  transform: translateX(50px);
}

[data-scroll-reveal="right"].revealed {
  transform: translateX(0);
}

/* Scale up */
[data-scroll-reveal="scale"] {
  opacity: 0;
  transform: scale(0.85);
}

[data-scroll-reveal="scale"].revealed {
  transform: scale(1);
}

/* Flip in */
[data-scroll-reveal="flip"] {
  opacity: 0;
  transform: perspective(800px) rotateY(-12deg) translateX(-20px);
}

[data-scroll-reveal="flip"].revealed {
  transform: perspective(800px) rotateY(0deg) translateX(0);
}

/* Blur in â€” Brighton signature */
[data-scroll-reveal="blur"] {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px) scale(0.97);
}

[data-scroll-reveal="blur"].revealed {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* Clip reveal from bottom */
[data-scroll-reveal="clip"] {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}

[data-scroll-reveal="clip"].revealed {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Unique Wobble Reveal */
[data-scroll-reveal="wobble"] {
  opacity: 0;
  transform: rotateX(45deg) scale(0.8) translateY(30px);
  transform-origin: center top;
  transition: opacity 0.6s ease, transform 0.8s var(--ease-spring);
}

[data-scroll-reveal="wobble"].revealed {
  opacity: 1;
  transform: rotateX(0deg) scale(1) translateY(0);
}

/* Elastic bounce */
[data-scroll-reveal="elastic"] {
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  transition: opacity 0.6s ease, transform 1s var(--ease-spring);
}

[data-scroll-reveal="elastic"].revealed {
  transform: translateY(0) scale(1);
}

/* Stagger children animation â€” Brighton-style smooth cascade */
.stagger-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 600ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 700ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 800ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(10) { transition-delay: 900ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(11) { transition-delay: 1000ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(12) { transition-delay: 1100ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(n+13) { transition-delay: 1200ms; opacity: 1; transform: translateY(0); }

/* Parallax-style floating */
.parallax-float {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .mv-block { padding: 2rem 1.5rem; }
  .messages-carousel { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .course-details-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .admission-timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline-connector {
    width: 2px;
    height: 30px;
    margin: 0;
  }

  .timeline-step { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-glass-pill { 
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 5;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    color: var(--text-heading);
  }

  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-bottom-links { flex-direction: column; }

  .announcements-bar { top: 55px; }

  .hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
}

@media (max-width: 480px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================
   Utility classes (replacing inline styles)
   ============================================= */
.u-hidden { display: none; }
.u-align-start-mt { align-self: flex-start; margin-top: 1rem; }
.faculty-avatar[data-av-color="navy"] { --av-color: #0e3460; }
.faculty-avatar[data-av-color="purple"] { --av-color: #7b2d8e; }
.faculty-avatar[data-av-color="teal"] { --av-color: #0d7c66; }
.faculty-avatar[data-av-color="red"] { --av-color: #a82020; }
.faculty-avatar[data-av-color="darkblue"] { --av-color: #1a5276; }
.faculty-avatar[data-av-color="gold"] { --av-color: #b8860b; }
.faculty-avatar[data-av-color="blue"] { --av-color: #2e86c1; }
.faculty-avatar[data-av-color="violet"] { --av-color: #6c3483; }

/* =============================================
   Leadership Cards — Crazy Animation Engine
   ============================================= */

.leader-card {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  will-change: transform;
}

.leader-entered {
  animation: leaderEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes leaderEntrance {
  0% { transform: translateY(40px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.leader-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
  border-radius: inherit;
}

.leader-card:hover .leader-sparkles {
  opacity: 1;
}

.sparkle-particle {
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: var(--spark-size);
  height: var(--spark-size);
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8);
  animation: sparkleFloat 3s ease-in-out var(--spark-delay) infinite;
  opacity: 0.6;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate(15px, -15px) scale(1.5); opacity: 0.9; box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.6); }
}

.leader-avatar-wrap {
  position: relative;
  display: inline-block;
}

.leader-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-300), var(--gold-500), var(--primary-400), var(--gold-300));
  z-index: -1;
  animation: ringSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.8);
  filter: blur(4px);
}

@keyframes ringSpin {
  100% { transform: rotate(360deg); }
}

.leader-card:hover .leader-glow-ring {
  opacity: 1;
  transform: scale(1.1);
}

.leader-card:hover .message-avatar img,
.leader-card:hover .faculty-avatar img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1) contrast(1.1);
}

/* =============================================
.stagger-children.revealed > *:nth-child(9) { transition-delay: 800ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(10) { transition-delay: 900ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(11) { transition-delay: 1000ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(12) { transition-delay: 1100ms; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(n+13) { transition-delay: 1200ms; opacity: 1; transform: translateY(0); }

/* Parallax-style floating */
.parallax-float {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .mv-block { padding: 2rem 1.5rem; }
  .messages-carousel { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .course-details-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .admission-timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline-connector {
    width: 2px;
    height: 30px;
    margin: 0;
  }

  .timeline-step { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-glass-pill { 
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 5;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    color: var(--text-heading);
  }

  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-bottom-links { flex-direction: column; }

  .announcements-bar { top: 55px; }

  .hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
}

@media (max-width: 480px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================
   Utility classes (replacing inline styles)
   ============================================= */
.u-hidden { display: none; }
.u-align-start-mt { align-self: flex-start; margin-top: 1rem; }
.faculty-avatar[data-av-color="navy"] { --av-color: #0e3460; }
.faculty-avatar[data-av-color="purple"] { --av-color: #7b2d8e; }
.faculty-avatar[data-av-color="teal"] { --av-color: #0d7c66; }
.faculty-avatar[data-av-color="red"] { --av-color: #a82020; }
.faculty-avatar[data-av-color="darkblue"] { --av-color: #1a5276; }
.faculty-avatar[data-av-color="gold"] { --av-color: #b8860b; }
.faculty-avatar[data-av-color="blue"] { --av-color: #2e86c1; }
.faculty-avatar[data-av-color="violet"] { --av-color: #6c3483; }

/* =============================================
   Leadership Cards — Crazy Animation Engine
   ============================================= */

.leader-card {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  will-change: transform;
}

.leader-entered {
  animation: leaderEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes leaderEntrance {
  0% { transform: translateY(40px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.leader-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
  border-radius: inherit;
}

.leader-card:hover .leader-sparkles {
  opacity: 1;
}

.sparkle-particle {
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: var(--spark-size);
  height: var(--spark-size);
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8);
  animation: sparkleFloat 3s ease-in-out var(--spark-delay) infinite;
  opacity: 0.6;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate(15px, -15px) scale(1.5); opacity: 0.9; box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.6); }
}

.leader-avatar-wrap {
  position: relative;
  display: inline-block;
}

.leader-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-300), var(--gold-500), var(--primary-400), var(--gold-300));
  z-index: -1;
  animation: ringSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.8);
  filter: blur(4px);
}

@keyframes ringSpin {
  100% { transform: rotate(360deg); }
}

.leader-card:hover .leader-glow-ring {
  opacity: 1;
  transform: scale(1.1);
}

.leader-card:hover .message-avatar img,
.leader-card:hover .faculty-avatar img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1) contrast(1.1);
}

/* =============================================
   Map Section
   ============================================= */
.map-section {
  line-height: 0;
  padding: 0;
}

.map-iframe {
  border: 0;
  display: block;
  filter: grayscale(10%) contrast(1.1);
  width: 100%;
}

/* =============================================
   Fee Structure Panel
   ============================================= */
.fee-structure-panel {
  max-width: 100%;
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.fee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.fee-header h4 {
  font-family: var(--font-display);
  color: var(--primary-700);
  margin: 0;
  font-size: 1.1rem;
}

.fee-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--bg-tertiary);
  color: var(--primary-600);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-heading);
}

.fee-amount {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-500);
}

.fee-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 0.8rem 0;
}

.fee-highlight .fee-amount {
  color: var(--accent-600);
  background: rgba(212, 168, 36, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* =============================================
   Faculty Filter
   ============================================= */
.faculty-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,20,60,0.1);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255,255,255,0.9);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,20,60,0.05);
}

.filter-btn.active {
  background: var(--primary-600);
  color: #fff;
  border-color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(26,86,150,0.2);
}

/* ---- Solitaire Card-Deal States ---- */
.faculty-card.solitaire-stacked {
  position: absolute;
  opacity: 0;
  transform: translate(var(--stack-x, 0px), var(--stack-y, 0px)) rotate(var(--stack-rot, 0deg)) scale(0.75);
  z-index: var(--stack-z, 1);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
  pointer-events: none;
}
.faculty-card.solitaire-dealing {
  position: relative !important;
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
  pointer-events: auto;
}
.faculty-card.solitaire-dealt {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
  pointer-events: auto;
  cursor: pointer;
}
.faculty-card.solitaire-dealt:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(0, 20, 60, 0.18);
}
/* =============================================
   Faculty Lightbox Popup — Cinematic Zoom
   ============================================= */
.faculty-lightbox {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.faculty-lightbox.active { pointer-events: auto; opacity: 1; visibility: visible; }
.faculty-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 10, 30, 0.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.faculty-lightbox-content {
  position: relative; z-index: 2; background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.2); border-radius: 24px;
  padding: 3rem 2.5rem 2.5rem; text-align: center; min-width: 320px; max-width: 420px;
  transform: scale(0.6) translateY(40px); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(100, 180, 255, 0.1);
}
.faculty-lightbox.active .faculty-lightbox-content { transform: scale(1) translateY(0); }
.faculty-lightbox-close {
  position: absolute; top: 12px; right: 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.5rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.3s, transform 0.3s;
}
.faculty-lightbox-close:hover { background: rgba(255, 80, 80, 0.4); transform: rotate(90deg); }
.faculty-lightbox-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 700; color: #fff; box-shadow: 0 8px 32px rgba(0, 20, 60, 0.3);
  border: 3px solid rgba(255,255,255,0.25); overflow: hidden; animation: lightboxAvatarPulse 2s infinite ease-in-out;
}
.faculty-lightbox-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes lightboxAvatarPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 20, 60, 0.3), 0 0 0 0 rgba(100, 180, 255, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(0, 20, 60, 0.3), 0 0 0 12px rgba(100, 180, 255, 0); }
}
.faculty-lightbox-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.faculty-lightbox-role { display: block; font-size: 0.9rem; color: rgba(180, 220, 255, 0.9); font-weight: 500; margin-bottom: 0.3rem; }
.faculty-lightbox-qual { display: block; font-size: 0.8rem; color: rgba(200, 200, 220, 0.7); }

/* =============================================
   Courses Background Video Integration
   ============================================= */
.video-section {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.video-section .section-desc {
  color: rgba(255, 255, 255, 0.85);
}
.video-background-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
#course-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease-in-out;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0, 20, 60, 0.85) 0%, rgba(26, 86, 150, 0.7) 100%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.relative-z {
  position: relative;
  z-index: 1;
}

/* Adjust the original brighton-card in the video section */
.course-showcase-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.cinematic-tools-layer {
  position: absolute;
  inset: -60px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cinematic-tool {
  position: absolute;
  font-size: 9rem;
  opacity: 0.7;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  will-change: transform, filter, opacity;
  z-index: 0;
}

.cinematic-tool.t1 {
  top: 5%;
  left: 2%;
  animation: floatToolCool1 14s infinite alternate ease-in-out;
}
.cinematic-tool.t2 {
  bottom: 10%;
  right: 5%;
  animation: floatToolCool2 17s infinite alternate ease-in-out;
}
.cinematic-tool.t3 {
  top: 30%;
  left: 70%;
  animation: floatToolCool3 19s infinite alternate ease-in-out;
}
.cinematic-tool.t4 {
  bottom: 5%;
  left: 15%;
  animation: floatToolCool4 15s infinite alternate ease-in-out;
}
.cinematic-tool.t5 {
  top: 55%;
  left: 40%;
  animation: floatToolCool5 21s infinite alternate ease-in-out;
}

@keyframes floatToolCool1 {
  0% { transform: translateY(0) rotate(0deg) scale(0.8) perspective(500px) rotateX(0deg); opacity: 0.5; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)) blur(1px); }
  100% { transform: translateY(120px) rotate(35deg) scale(1.15) perspective(500px) rotateX(15deg); opacity: 0.8; filter: drop-shadow(0 0 30px rgba(100, 180, 255, 0.7)) blur(0px); }
}
@keyframes floatToolCool2 {
  0% { transform: translateY(0) rotate(0deg) scale(1.1) perspective(500px) rotateY(0deg); opacity: 0.8; filter: drop-shadow(0 0 20px rgba(255,255,255,0.5)) blur(0px); }
  100% { transform: translateY(-100px) rotate(-25deg) scale(0.9) perspective(500px) rotateY(20deg); opacity: 0.5; filter: drop-shadow(0 0 15px rgba(200, 150, 255, 0.5)) blur(2px); }
}
@keyframes floatToolCool3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1) perspective(500px) rotateZ(0deg); opacity: 0.6; filter: drop-shadow(0 0 15px rgba(255,255,255,0.4)) blur(1px); }
  100% { transform: translate(-80px, 90px) rotate(45deg) scale(1.25) perspective(500px) rotateZ(10deg); opacity: 0.9; filter: drop-shadow(0 0 40px rgba(255, 200, 100, 0.8)) blur(0px); }
}
@keyframes floatToolCool4 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.8) perspective(500px) rotateY(0deg); opacity: 0.7; filter: drop-shadow(0 0 15px rgba(255,255,255,0.4)) blur(0px); }
  100% { transform: translate(70px, -60px) rotate(-35deg) scale(1.2) perspective(500px) rotateY(-15deg); opacity: 0.4; filter: drop-shadow(0 0 10px rgba(100, 255, 150, 0.4)) blur(2px); }
}
@keyframes floatToolCool5 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1.1) perspective(500px) rotateX(0deg); opacity: 0.5; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)) blur(2px); }
  100% { transform: translate(-50px, -80px) rotate(55deg) scale(0.8) perspective(500px) rotateX(-20deg); opacity: 0.8; filter: drop-shadow(0 0 25px rgba(255, 100, 150, 0.6)) blur(0px); }
}

.video-section .course-showcase.brighton-card.liquid-glass-tab {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #fff;
  position: relative;
  z-index: 1;
}

.faculty-principal-avatar {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden;
}

.faculty-principal-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.video-section .course-showcase.brighton-card h3,
.video-section .course-showcase.brighton-card h4 {
  color: #fff;
}
.video-section .course-detail.glass {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}
.video-section .course-detail .detail-label {
  color: rgba(255,255,255,0.7);
}
.video-section .course-detail .detail-value {
  color: #fff;
}
.video-section .course-detail .detail-icon {
  background: rgba(255,255,255,0.1);
}

/* Course Info Plain Text */
.course-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.course-info-line {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.6;
}
.course-info-line strong {
  color: #fff;
  font-weight: 600;
}

.dept-chip.glass {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}
.dept-chip.glass:hover, .dept-chip.glass.active {
  background: rgba(255,255,255,0.9);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* =============================================
   Fee Structure Separate Panel
   ============================================= */
.fee-section {
  background: linear-gradient(to bottom, #f8fafc 0%, #fff 100%);
  position: relative;
}
.fee-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}
.fee-modern-card {
  display: flex;
  flex-direction: column;
  padding: 3rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,20,60,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
@media(min-width: 768px) {
  .fee-modern-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }
}
.fee-plan {
  text-align: center;
  padding: 2rem;
  flex: 1;
}
.fee-plan h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.fee-duration {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fee-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-600);
  margin: 0;
  line-height: 1;
}
.fee-price.highlight-text {
  color: var(--accent-600);
}
.fee-divider-vert {
  width: 1px;
  height: 100px;
  background: rgba(0,0,0,0.08);
  margin: 0 2rem;
}
@media(max-width: 767px) {
  .fee-divider-vert {
    width: 100%;
    height: 1px;
    margin: 1rem 0;
  }
}
.map-link {
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.map-link:hover {
  text-decoration: underline;
}

/* =============================================
   Particle Cursor Trail Effect
   ============================================= */
.particle-cursor-container {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.cursor-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  animation: particleDrift var(--p-duration, 1.2s) ease-out forwards;
}

/* Color variants */
.cursor-particle.p-blue {
  background: rgba(140, 200, 255, 0.85);
  box-shadow: 0 0 6px rgba(140, 200, 255, 0.6), 0 0 12px rgba(100, 160, 240, 0.3);
}

.cursor-particle.p-gold {
  background: rgba(255, 210, 100, 0.85);
  box-shadow: 0 0 6px rgba(255, 210, 100, 0.6), 0 0 12px rgba(212, 168, 36, 0.3);
}

.cursor-particle.p-purple {
  background: rgba(190, 150, 255, 0.85);
  box-shadow: 0 0 6px rgba(190, 150, 255, 0.6), 0 0 12px rgba(150, 100, 220, 0.3);
}

.cursor-particle.p-white {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 14px rgba(200, 220, 255, 0.4);
}

.cursor-particle.p-teal {
  background: rgba(100, 230, 200, 0.85);
  box-shadow: 0 0 6px rgba(100, 230, 200, 0.6), 0 0 12px rgba(60, 200, 170, 0.3);
}

.cursor-particle.p-pink {
  background: rgba(255, 160, 200, 0.85);
  box-shadow: 0 0 6px rgba(255, 160, 200, 0.6), 0 0 12px rgba(240, 120, 170, 0.3);
}

/* Particle trail line (elongated shape on fast movement) */
.cursor-particle.has-trail {
  border-radius: 50% 50% 50% 20%;
}

@keyframes particleDrift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.9;
  }
  30% {
    transform: translate(var(--drift-x, 8px), var(--drift-y1, -15px)) scale(0.8) rotate(var(--spin, 45deg));
    opacity: 0.7;
  }
  70% {
    transform: translate(var(--drift-x2, -4px), var(--drift-y2, -35px)) scale(0.4) rotate(var(--spin2, 120deg));
    opacity: 0.3;
  }
  100% {
    transform: translate(var(--drift-x3, 6px), var(--drift-y3, -55px)) scale(0) rotate(var(--spin3, 200deg));
    opacity: 0;
  }
}

/* Stardust trail — smaller trailing dots */
.cursor-stardust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 4px rgba(200, 220, 255, 0.4);
  animation: stardustFade var(--sd-duration, 0.6s) ease-out forwards;
}

@keyframes stardustFade {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* =============================================
   Cinematic Click / Interaction Burst
   ============================================= */
.cinematic-burst-container {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  overflow: hidden;
}

/* Radial shockwave ring */
.cinematic-shockwave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(180, 210, 255, 0.6);
  background: radial-gradient(circle,
    rgba(180, 210, 255, 0.15) 0%,
    rgba(140, 180, 255, 0.05) 40%,
    transparent 70%
  );
  will-change: transform, opacity;
  animation: shockwaveExpand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes shockwaveExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Spark particles from click */
.cinematic-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  animation: sparkFly var(--spark-duration, 0.7s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.cinematic-spark.spark-primary {
  background: rgba(140, 180, 255, 0.9);
  box-shadow: 0 0 6px rgba(140, 180, 255, 0.6), 0 0 12px rgba(100, 140, 220, 0.3);
}

.cinematic-spark.spark-gold {
  background: rgba(255, 220, 140, 0.9);
  box-shadow: 0 0 6px rgba(212, 168, 36, 0.6), 0 0 12px rgba(212, 168, 36, 0.3);
}

.cinematic-spark.spark-white {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(200, 220, 255, 0.4);
}

.cinematic-spark.spark-purple {
  background: rgba(200, 160, 255, 0.9);
  box-shadow: 0 0 6px rgba(200, 160, 255, 0.6), 0 0 12px rgba(160, 120, 220, 0.3);
}

/* Streaking spark trail (line shape) */
.cinematic-spark.spark-streak {
  width: 2px;
  height: 8px;
  border-radius: 1px;
  transform-origin: center bottom;
}

@keyframes sparkFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--spark-x, 50px), var(--spark-y, -50px)) scale(0);
    opacity: 0;
  }
}

/* Light flash on click */
.cinematic-flash {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(180, 210, 255, 0.15) 30%,
    transparent 60%
  );
  will-change: transform, opacity;
  animation: flashPulse 0.5s ease-out forwards;
}

@keyframes flashPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Interactive element hover glow boost */
a:hover, button:hover, .glass-card:hover, .nav-link:hover, .btn:hover {
  cursor: pointer;
}

/* Hide particle system on mobile/touch devices for performance */
@media (hover: none), (max-width: 767px) {
  .particle-cursor-container,
  .cinematic-burst-container {
    display: none !important;
  }
}
