/* =============================================
   SVCOPT — Metallic Navy Blue & Silver Theme
   Sri Venkateswara College of Physiotherapy
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* === Metallic Navy & Silver Palette === */
  --navy-50: #eef2f7;
  --navy-100: #d0dae8;
  --navy-200: #a1b5d1;
  --navy-300: #7290ba;
  --navy-400: #4a6fa3;
  --navy-500: #1a3a6b;
  --navy-600: #142e55;
  --navy-700: #0e2240;
  --navy-800: #0a1830;
  --navy-900: #060e1e;

  --silver-50: #f8f9fb;
  --silver-100: #eef0f4;
  --silver-200: #dde1e8;
  --silver-300: #c5cbd5;
  --silver-400: #a8b0be;
  --silver-500: #8a94a6;
  --silver-600: #6e7a8e;

  --accent-400: #5eaacc;
  --accent-500: #3d8eb3;
  --accent-600: #2a7399;

  /* Background */
  --bg-primary: #f5f7fa;
  --bg-deep: #edf0f5;
  --bg-alt: #e8ecf2;

  /* Text */
  --text-heading: #0e2240;
  --text-primary: #1c2d45;
  --text-secondary: #4a5a72;
  --text-muted: #8a94a6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a3a6b, #3d8eb3);
  --gradient-hero: linear-gradient(135deg, #0a1830 0%, #1a3a6b 40%, #2a5080 70%, #3d8eb3 100%);
  --gradient-section: linear-gradient(180deg, #f5f7fa, #edf0f5);
  --gradient-section-alt: linear-gradient(180deg, #edf0f5, #f5f7fa);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(26, 58, 107, 0.08);

  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,58,107,0.25) transparent;
}
/* Slim Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(26,58,107,0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(26,58,107,0.5); }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: var(--font-body); border: none; outline: none; background: transparent; }

/* === Navy Blue Cursor Reactive Glow === */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,142,179,0.8) 0%, rgba(26,58,107,0.4) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
.cursor-glow.visible { opacity: 1; }
.cursor-glow.hover {
  width: 56px; height: 56px;
  background: radial-gradient(circle, rgba(61,142,179,0.9) 0%, rgba(26,58,107,0.5) 40%, transparent 70%);
}
.cursor-trail-dot {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(100,200,255,1);
  box-shadow: 0 0 10px rgba(100,200,255,0.8), 0 0 20px rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  animation: cursorDotFade 0.7s ease-out forwards, twinkle 0.4s ease-in-out infinite;
}
@keyframes cursorDotFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.5); }
  50% { opacity: 0.6; filter: brightness(1); }
}

.sparkle-twinkle {
  animation: twinkleBackground 4s ease-in-out infinite alternate;
  box-shadow: 0 0 8px #fff, 0 0 15px rgba(61,142,179,0.5);
  background: #fff;
}

@keyframes twinkleBackground {
  0%, 100% { opacity: 0.3; transform: translate(0,0) scale(1); }
  33% { opacity: 0.8; transform: translate(10px, -20px) scale(1.2); }
  66% { opacity: 0.5; transform: translate(-10px, 10px) scale(0.8); }
}

/* === Utility === */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--navy-400);
  padding: 0.35rem 1rem; border-radius: var(--radius-full);
  border: 1px solid rgba(26,58,107,0.1); background: rgba(26,58,107,0.03);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--text-heading); margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-secondary); font-size: 0.95rem;
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}
.glass-card {
  background: linear-gradient(135deg, rgba(18,38,68,0.06), rgba(26,58,107,0.04));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(26,58,107,0.08);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease-out-expo), background 0.6s ease;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(61,142,179,0.6) 50%, rgba(26,58,107,0.4) 50%, transparent 90%);
  transition: left 0.8s ease;
}
.glass-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(61,142,179,0.08), transparent 70%);
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(10,24,48,0.1), 0 8px 24px rgba(61,142,179,0.06),
              inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(18,38,68,0.09), rgba(26,58,107,0.06));
  border-color: rgba(61,142,179,0.15);
}
.glass-card:hover::before {
  left: 0%; animation: shimmerSlide 1.5s ease forwards;
}
.glass-card:hover::after { opacity: 1; }

@keyframes magicalTextShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.glass-card h2, .glass-card h3, .glass-card h4, .glass-card h5 {
  transition: all 0.3s ease;
}
.glass-card:hover h2,
.glass-card:hover h3,
.glass-card:hover h4,
.glass-card:hover h5 {
  background: linear-gradient(
    120deg, 
    var(--text-heading) 20%, 
    #b38728 40%, 
    #ffffff 50%, 
    #b38728 60%, 
    var(--text-heading) 80%
  );
  background-size: 200% auto;
  color: transparent !important;
  -webkit-background-clip: text;
  background-clip: text;
  animation: magicalTextShine 2.5s linear infinite;
  text-shadow: 0 0 12px rgba(212,175,55,0.4);
}
@keyframes shimmerSlide {
  0% { left: -100%; }
  100% { left: 0%; }
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; font-weight: 600; font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-medium);
  cursor: pointer;
}
.cta-btn.primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 20px rgba(26,58,107,0.25);
}
.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,58,107,0.35);
}
.cta-btn.secondary {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.25);
}

/* =============================================
   Preloader — Zoom Particle Burst
   ============================================= */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--gradient-hero);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Particles container */
.preloader-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.preloader-particles .p-dot {
  position: absolute; border-radius: 50%;
  background: rgba(61,142,179,0.6);
  top: 50%; left: 50%;
  animation: particleBurst 1.8s ease-out forwards;
}
@keyframes particleBurst {
  0% { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { opacity: 0; }
}

/* Logo wrapper with rings */
.preloader-logo-wrap {
  position: relative; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  animation: logoZoomIn 1.2s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes logoZoomIn {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(10deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.preloader-logo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: contain; z-index: 2;
  box-shadow: 0 0 40px rgba(61,142,179,0.4), 0 0 80px rgba(26,58,107,0.2);
  animation: logoGlow 2s ease-in-out infinite 1.2s;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(61,142,179,0.4), 0 0 80px rgba(26,58,107,0.2); }
  50% { box-shadow: 0 0 60px rgba(61,142,179,0.6), 0 0 120px rgba(26,58,107,0.3); }
}

/* Spinning rings */
.preloader-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(61,142,179,0.5);
  border-right-color: rgba(61,142,179,0.2);
  animation: ringRotate 1.5s linear infinite, ringFadeIn 0.6s ease 0.3s both;
}
.preloader-ring.ring-2 {
  inset: -18px;
  border-top-color: rgba(26,58,107,0.3);
  border-left-color: rgba(26,58,107,0.15);
  animation: ringRotateReverse 2s linear infinite, ringFadeIn 0.6s ease 0.5s both;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
@keyframes ringRotateReverse { to { transform: rotate(-360deg); } }
@keyframes ringFadeIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.preloader-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  animation: titleFadeScale 1.2s cubic-bezier(0.34,1.56,0.64,1) 0.5s both;
  text-shadow: 0 0 10px rgba(61,142,179,0.5);
}
.gold-text {
  color: #fcf6ba;
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 2px 10px rgba(212, 175, 55, 0.3);
}
@keyframes titleFadeScale {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; filter: blur(10px); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

.preloader-text {
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
  font-style: italic; text-align: center; max-width: 300px;
  animation: fadeInUp 1s ease 0.8s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dissolve out animation */
.preloader.ending .preloader-logo-wrap,
.preloader.ending .preloader-title,
.preloader.ending .preloader-text {
  animation: dissolveOut 0.8s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
@keyframes dissolveOut {
  0% { filter: blur(0); transform: scale(1); opacity: 1; }
  100% { filter: blur(15px); transform: scale(1.4); opacity: 0; letter-spacing: 5px; }
}

/* =============================================
   Navigation
   ============================================= */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0.8rem 0;
  transition: all var(--transition-medium);
}
body.has-announcements .site-nav {
  top: 36px;
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(10,24,48,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
}
.nav-glass-pill {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  transition: all var(--transition-medium);
}
.site-nav.scrolled .nav-glass-pill {
  background: transparent; border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: none;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; }
.nav-logo span {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: #fff; transition: color var(--transition-medium);
}
.site-nav.scrolled .nav-logo span { color: var(--text-heading); }
.nav-links {
  position: relative;
  display: flex; align-items: center; gap: 0.3rem;
  z-index: 1;
}
.nav-indicator-pill {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  z-index: -1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}
.site-nav.scrolled .nav-indicator-pill {
  background: rgba(26,58,107,0.06);
}
.nav-link {
  font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.9rem; border-radius: var(--radius-full);
  transition: all var(--transition-fast); cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.12);
}
.site-nav.scrolled .nav-link { color: var(--text-secondary); }
.site-nav.scrolled .nav-link:hover, .site-nav.scrolled .nav-link.active {
  color: var(--navy-500); background: rgba(26,58,107,0.06);
}
@media (min-width: 769px) {
  .nav-link:hover, .nav-link.active {
    background: transparent !important;
    color: #fff !important;
  }
  .site-nav.scrolled .nav-link:hover, .site-nav.scrolled .nav-link.active {
    color: var(--navy-500) !important;
    background: transparent !important;
  }
}
.nav-cta {
  padding: 0.5rem 1.4rem; font-size: 0.78rem; font-weight: 600;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.nav-cta:hover { background: rgba(255,255,255,0.25); }
.site-nav.scrolled .nav-cta {
  background: var(--gradient-primary); color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(26,58,107,0.15);
}
/* Settings gear icon in top-right — metallic silver */
.nav-settings {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #e6e9f0 0%, #aeb7c7 45%, #f4f6f9 55%, #8d98a8 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 2px #fff;
  transition: all 0.4s var(--ease-spring);
  margin-left: 0.5rem; flex-shrink: 0;
}
.nav-settings svg {
  width: 14px; height: 14px;
  stroke: #1c2d45; fill: none;
  stroke-width: 1.8; transition: stroke 0.3s ease;
}
.nav-settings:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(135deg, #f4f6f9 0%, #c1c9d8 45%, #ffffff 55%, #aeb7c7 100%);
  border-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 1px 3px #fff;
}
.nav-settings:hover svg { stroke: #0e2240; }

.site-nav.scrolled .nav-settings {
  background: linear-gradient(135deg, #e6e9f0 0%, #aeb7c7 45%, #f4f6f9 55%, #8d98a8 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.site-nav.scrolled .nav-settings svg { stroke: #1c2d45; }
.site-nav.scrolled .nav-settings:hover {
  background: linear-gradient(135deg, #f4f6f9 0%, #c1c9d8 45%, #ffffff 55%, #aeb7c7 100%);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.site-nav.scrolled .nav-settings:hover svg { stroke: #0e2240; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.5rem; z-index: 10;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all var(--transition-fast);
}
.site-nav.scrolled .hamburger span { background: var(--text-heading); }

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 14, 30, 0.5) 0%, rgba(26, 58, 107, 0.3) 50%, rgba(10, 24, 48, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
}
.hero-particles .particle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: floatParticle 8s ease-in-out infinite;
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-30px) translateX(15px); opacity: 0.7; }
}
.hero-content {
  position: relative; z-index: 4; text-align: left;
  max-width: 800px; padding: 0;
}
.hero-logo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: contain; margin: 0 0 0.5rem 0;
  box-shadow: 0 0 50px rgba(61,142,179,0.3);
  animation: heroLogoPulse 3s ease-in-out infinite;
}
@keyframes heroLogoPulse {
  0%, 100% { box-shadow: 0 0 50px rgba(61,142,179,0.3); }
  50% { box-shadow: 0 0 80px rgba(61,142,179,0.5); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800;
  color: #fff; margin-bottom: 0.5rem;
  line-height: 1.15;
}
.hero .hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  max-width: 550px; margin: 0 0 2rem 0; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; color: rgba(255,255,255,0.5); font-size: 0.7rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   Announcements Bar
   ============================================= */
.u-hidden { display: none !important; }
.announcements-bar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1001;
  background: var(--navy-800); color: rgba(255,255,255,0.85);
  padding: 0.5rem 0; font-size: 0.78rem; overflow: hidden;
}
.announcements-bar .container {
  width: 100%; max-width: none; padding: 0; margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
  mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
}
.announcements-bar .marquee {
  display: inline-flex;
  white-space: nowrap;
  gap: 4rem;
  padding-left: 100%; /* Start off-screen right */
  animation: marqueeSingle 30s linear infinite;
}
@keyframes marqueeSingle {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.announcements-bar .marquee span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
}

/* =============================================
   About
   ============================================= */
.about-section { background: var(--gradient-section); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700;
  color: var(--text-heading); margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8;
  margin-bottom: 1rem;
}
.about-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.stat-item { text-align: center; }
.stat-value {
  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;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Vision & Mission */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-block {
  padding: 2.5rem 2rem; border-radius: var(--radius-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transform-style: preserve-3d;
  animation: mvFloat3D 6s ease-in-out infinite;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}
/* Animated background design inside the cards */
.mv-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 30%, rgba(30,50,90,0.6) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(20,30,60,0.6) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: mvBgWaver 8s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(-10px);
}
/* 3D Animated Flowing Motion Ribbons inside the cards */
.mv-block::after {
  content: '';
  position: absolute;
  top: -80%; left: -80%;
  width: 360%; height: 360%;
  background:
    linear-gradient(125deg,
      transparent 0%,
      rgba(80,160,255,0.00) 28%,
      rgba(80,160,255,0.13) 30%,
      rgba(120,200,255,0.18) 32%,
      rgba(80,160,255,0.13) 34%,
      transparent 36%,
      transparent 48%,
      rgba(180,120,255,0.10) 50%,
      rgba(200,140,255,0.16) 52%,
      rgba(180,120,255,0.10) 54%,
      transparent 56%,
      transparent 70%,
      rgba(100,220,200,0.09) 72%,
      rgba(130,240,210,0.14) 74%,
      rgba(100,220,200,0.09) 76%,
      transparent 78%
    ),
    linear-gradient(55deg,
      transparent 0%,
      rgba(255,180,80,0.00) 18%,
      rgba(255,200,100,0.11) 20%,
      rgba(255,215,120,0.15) 22%,
      rgba(255,200,100,0.11) 24%,
      transparent 26%,
      transparent 42%,
      rgba(80,200,180,0.08) 44%,
      rgba(100,220,195,0.13) 46%,
      rgba(80,200,180,0.08) 48%,
      transparent 50%
    );
  animation: mvRibbon3DFlow 10s ease-in-out infinite, mvRibbon3DTilt 14s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
}
.mv-block:nth-child(2)::after {
  animation: mvRibbon3DFlow 13s ease-in-out infinite reverse, mvRibbon3DTiltAlt 18s ease-in-out infinite alternate;
  background:
    linear-gradient(100deg,
      transparent 0%,
      rgba(60,180,255,0.00) 22%,
      rgba(60,180,255,0.12) 24%,
      rgba(100,210,255,0.17) 26%,
      rgba(60,180,255,0.12) 28%,
      transparent 30%,
      transparent 44%,
      rgba(220,100,200,0.09) 46%,
      rgba(240,120,220,0.14) 48%,
      rgba(220,100,200,0.09) 50%,
      transparent 52%,
      transparent 68%,
      rgba(200,220,80,0.08) 70%,
      rgba(220,240,100,0.12) 72%,
      rgba(200,220,80,0.08) 74%,
      transparent 76%
    ),
    linear-gradient(160deg,
      transparent 10%,
      rgba(80,255,160,0.07) 22%,
      rgba(100,255,180,0.12) 24%,
      rgba(80,255,160,0.07) 26%,
      transparent 38%,
      transparent 54%,
      rgba(255,120,80,0.07) 56%,
      rgba(255,140,100,0.11) 58%,
      rgba(255,120,80,0.07) 60%,
      transparent 72%
    );
}
@keyframes mvRibbon3DFlow {
  0%   { transform: translate(0%, 0%) perspective(600px) rotateX(0deg) rotateZ(0deg); }
  25%  { transform: translate(8%, 12%) perspective(600px) rotateX(8deg) rotateZ(3deg); }
  50%  { transform: translate(16%, 6%) perspective(600px) rotateX(0deg) rotateZ(-4deg); }
  75%  { transform: translate(8%, 18%) perspective(600px) rotateX(-8deg) rotateZ(2deg); }
  100% { transform: translate(0%, 0%) perspective(600px) rotateX(0deg) rotateZ(0deg); }
}
@keyframes mvRibbon3DTilt {
  0%   { transform: perspective(600px) rotateY(0deg) rotateX(0deg) scale(1); }
  33%  { transform: perspective(600px) rotateY(12deg) rotateX(6deg) scale(1.03); }
  66%  { transform: perspective(600px) rotateY(-10deg) rotateX(-4deg) scale(1.01); }
  100% { transform: perspective(600px) rotateY(6deg) rotateX(8deg) scale(1.02); }
}
@keyframes mvRibbon3DTiltAlt {
  0%   { transform: perspective(600px) rotateY(0deg) rotateX(0deg) scale(1); }
  33%  { transform: perspective(600px) rotateY(-14deg) rotateX(5deg) scale(1.02); }
  66%  { transform: perspective(600px) rotateY(8deg) rotateX(-7deg) scale(1.03); }
  100% { transform: perspective(600px) rotateY(-6deg) rotateX(4deg) scale(1.01); }
}
@keyframes mvBgWaver {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.mv-block:nth-child(2) {
  animation-delay: 1.5s;
}
@keyframes mvFloat3D {
  0%, 100% { transform: perspective(800px) translateY(0) rotateX(0deg) rotateY(0deg); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
  50% { transform: perspective(800px) translateY(-10px) rotateX(4deg) rotateY(-3deg); box-shadow: -8px 20px 30px rgba(0,0,0,0.12); }
}
.mv-block h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text-heading); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  transform: translateZ(20px);
  animation: mvInnerFloat 3s ease-in-out infinite alternate;
  position: relative; z-index: 1;
}
@keyframes mvInnerFloat {
  0% { transform: translateZ(20px) translateY(0); }
  100% { transform: translateZ(30px) translateY(-5px); }
}
.mv-block p { 
  color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; 
  transform: translateZ(10px); 
  animation: mvInnerFloatP 3s ease-in-out infinite alternate 1.5s;
  position: relative; z-index: 1;
}
@keyframes mvInnerFloatP {
  0% { transform: translateZ(10px) translateY(0); }
  100% { transform: translateZ(15px) translateY(-3px); }
}

/* =============================================
   Leadership / Messages
   ============================================= */
.leaders-block {
  margin-top: 3rem;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(10, 25, 60, 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(61, 142, 179, 0.15);
}
.messages-carousel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.leader-card {
  padding: 2.5rem 2rem; text-align: center;
  position: relative;
}
/* Peach-green animated border for leader cards */
.leader-card::before {
  content: "";
  position: absolute !important;
  inset: -2px !important;
  border-radius: inherit !important;
  padding: 2px !important;
  background: conic-gradient(
    from var(--border-angle, 0deg) at 50% 50%,
    rgba(255, 186, 153, 0.0) 0deg,
    rgba(255, 186, 153, 0.7) 60deg,
    rgba(130, 220, 160, 0.7) 130deg,
    rgba(200, 240, 200, 0.4) 180deg,
    rgba(130, 220, 160, 0.7) 230deg,
    rgba(255, 186, 153, 0.7) 300deg,
    rgba(255, 186, 153, 0.0) 360deg
  ) !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  opacity: 0.45;
  transition: opacity 0.4s ease !important;
  pointer-events: none;
  animation: leaderBorderSpin 6s linear infinite !important;
  z-index: 2;
}
.leader-card:hover::before {
  opacity: 1 !important;
  animation-duration: 2s !important;
}
@keyframes leaderBorderSpin {
  from { --border-angle: 0deg; }
  to   { --border-angle: 360deg; }
}
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.leader-card::after {
  content: "";
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: radial-gradient(
    circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 186, 153, 0.07),
    rgba(130, 220, 160, 0.05),
    transparent 100%
  ) !important;
  opacity: 0;
  transition: opacity 0.5s ease !important;
  pointer-events: none;
  animation: none !important;
  z-index: 0;
}
.leader-card:hover::after {
  opacity: 1 !important;
}
.message-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.6rem; color: #fff;
  font-family: var(--font-display); font-weight: 700;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease;
  border: 3px solid rgba(255,255,255,0.25);
}
.message-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  cursor: zoom-in;
}

/* Expandable Avatar within Card */
.message-avatar.expanded, .faculty-avatar.expanded {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  border: none !important;
  z-index: 100 !important;
  cursor: zoom-out !important;
  transform: none !important;
}
.message-avatar.expanded img, .faculty-avatar.expanded img {
  border-radius: 0 !important;
  cursor: zoom-out !important;
}

.leader-card:hover .message-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(26,58,107,0.2);
}
.leader-card:hover .message-avatar.expanded {
  transform: none !important;
  box-shadow: none;
}
.message-quote {
  font-size: 2.5rem; opacity: 0.25; font-family: var(--font-display);
  color: rgba(255,255,255,0.6);
}
.message-text {
  color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.7;
  font-style: italic; margin-bottom: 1.2rem;
}
.message-name {
  font-weight: 700; color: #ffffff; font-size: 0.92rem;
  transition: all 0.3s ease;
}
.leader-card:hover .message-name {
  background: linear-gradient(135deg, #fcf6ba, #b38728);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.message-role {
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.08em;
}
/* Click to View CTA */
.click-to-view {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, rgba(61,142,179,0.4), rgba(26,58,107,0.5));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.leader-card:hover .click-to-view {
  background: linear-gradient(135deg, rgba(61,142,179,0.7), rgba(26,58,107,0.8));
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(61,142,179,0.3);
}

/* =============================================
   Facility Cards (Stats Row)
   ============================================= */
.stats-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 2rem;
  justify-content: center;
}

.facility-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.facility-card:hover {
  transform: translateY(-8px);
}

/* ── Image wrapper: taller image, card size unchanged ── */
.facility-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}
.facility-img-wrap img {
  width: 100%; height: 130%;   /* oversized so zoom has room */
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out-expo);
  display: block;
}
.facility-card:hover .facility-img-wrap img {
  transform: scale(1.08) translateY(-3%);
}

/* Base overlay (depth gradient) - kept very subtle or removed as per user request to 'remove tint to the images' */
.facility-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

/* ── Per-card image-matched tints (Moved to Body) ── */

/* RVS Hospital — warm rose-red */
.facility-card--hospital {
  border-color: rgba(200,60,60,0.2) !important;
}
.facility-card--hospital .facility-body {
  background: linear-gradient(160deg, rgba(180,40,50,0.12), rgba(220,80,70,0.08));
  border-top: 1px solid rgba(200,60,60,0.2);
}
.facility-card--hospital:hover {
  box-shadow: 0 24px 60px rgba(180,40,50,0.12) !important;
}
.facility-card--hospital .facility-title {
  color: #b82830;
}

/* Specialized Labs — cool teal/cyan */
.facility-card--lab {
  border-color: rgba(20,150,150,0.2) !important;
}
.facility-card--lab .facility-body {
  background: linear-gradient(160deg, rgba(10,130,130,0.12), rgba(20,160,160,0.08));
  border-top: 1px solid rgba(20,150,150,0.2);
}
.facility-card--lab:hover {
  box-shadow: 0 24px 60px rgba(10,130,130,0.12) !important;
}
.facility-card--lab .facility-title {
  color: #0a8080;
}

/* Central Library — warm amber/golden */
.facility-card--library {
  border-color: rgba(190,130,25,0.2) !important;
}
.facility-card--library .facility-body {
  background: linear-gradient(160deg, rgba(170,110,20,0.12), rgba(200,140,30,0.08));
  border-top: 1px solid rgba(190,130,25,0.2);
}
.facility-card--library:hover {
  box-shadow: 0 24px 60px rgba(170,110,20,0.12) !important;
}
.facility-card--library .facility-title {
  color: #8a6010;
}

/* ── Shared body layout ── */
.facility-body {
  padding: 1.2rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  flex: 1;
}
.facility-title {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700;
  margin: 0; line-height: 1.3;
}
.facility-desc {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Keep old single-value stat helpers for other uses */
.stat-emoji { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-number {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-description { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.25rem; }




/* =============================================
   Courses — with 3D Translucent Slideshow Background
   ============================================= */
.courses-section {
  background: var(--gradient-section-alt);
  position: relative; overflow: hidden;
}
.courses-bg-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.courses-bg-slideshow .slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  animation: kenBurns3D 15s ease-in-out infinite;
}
.courses-bg-slideshow .slide-img.active { opacity: 1; }
@keyframes kenBurns3D {
  0% { transform: scale(1) perspective(800px) rotateY(0deg); }
  50% { transform: scale(1.1) perspective(800px) rotateY(3deg); }
  100% { transform: scale(1) perspective(800px) rotateY(0deg); }
}
.slideshow-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(245,247,250,0.65) 0%, rgba(237,240,245,0.75) 50%, rgba(245,247,250,0.65) 100%);
}
.courses-section .container { position: relative; z-index: 2; }

.course-card { padding: 2.5rem 2rem; }
.course-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--text-heading); margin-bottom: 1rem;
}
.course-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }
.course-details-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.course-detail {
  padding: 1.5rem; text-align: center;
  background: rgba(26,58,107,0.03); border-radius: var(--radius-md);
  border: 1px solid rgba(26,58,107,0.06);
}
.course-detail h4 { font-size: 1rem; color: var(--text-heading); margin-bottom: 0.5rem; }
.course-detail p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* =============================================
   Section-Specific Card Tinting
   Each section gets its own unique dim card color
   ============================================= */
/* About — golden lavender tone */
#about .glass-card {
  background: linear-gradient(135deg, rgba(230,220,180,0.15), rgba(200,180,240,0.12));
  border-color: rgba(230,220,180,0.2);
}
#about .glass-card:hover {
  background: linear-gradient(135deg, rgba(230,220,180,0.22), rgba(200,180,240,0.18));
  border-color: rgba(200,180,240,0.3);
}
/* Stronger tint specifically for Mission & Vision blocks */
#about .mv-block.glass-card {
  background: linear-gradient(135deg, rgba(10,20,40,0.85), rgba(15,25,50,0.80));
  border-color: rgba(30,50,90,0.4);
}
#about .mv-block.glass-card:hover {
  background: linear-gradient(135deg, rgba(10,20,40,0.95), rgba(15,25,50,0.90));
  border-color: rgba(50,80,120,0.6);
}
#about .mv-block.glass-card h3 {
  color: #ffffff;
}
#about .mv-block.glass-card p {
  color: rgba(255, 255, 255, 0.85);
}
/* Messages — light teal and peach brown */
#messages .glass-card {
  background: linear-gradient(135deg, rgba(0,180,160,0.07), rgba(220,150,110,0.08));
  border-color: rgba(0,180,160,0.08);
}
#messages .glass-card:hover {
  background: linear-gradient(135deg, rgba(0,180,160,0.11), rgba(220,150,110,0.12));
  border-color: rgba(0,180,160,0.15);
}
/* Courses — deep teal */
#courses .glass-card {
  background: linear-gradient(135deg, rgba(15,55,60,0.07), rgba(20,70,75,0.05));
  border-color: rgba(15,55,60,0.08);
}
#courses .glass-card:hover {
  background: linear-gradient(135deg, rgba(15,55,60,0.11), rgba(20,70,75,0.08));
  border-color: rgba(40,140,150,0.15);
}
/* Faculty — navy blue and light maroon */
#faculty .glass-card {
  background: linear-gradient(135deg, rgba(15,35,85,0.28), rgba(170,70,90,0.11));
  border-color: rgba(15,35,85,0.3);
}
#faculty .glass-card:hover {
  background: linear-gradient(135deg, rgba(15,35,85,0.33), rgba(170,70,90,0.16));
  border-color: rgba(170,70,90,0.4);
}
/* Events — deep charcoal bronze */
#events .glass-card {
  background: linear-gradient(135deg, rgba(60,45,20,0.07), rgba(70,55,30,0.05));
  border-color: rgba(60,45,20,0.08);
}
#events .glass-card:hover {
  background: linear-gradient(135deg, rgba(60,45,20,0.11), rgba(70,55,30,0.08));
  border-color: rgba(160,120,50,0.15);
}
/* Academics — light red */
#academics .glass-card {
  background: linear-gradient(135deg, rgba(255,100,100,0.18), rgba(255,140,140,0.15));
  border-color: rgba(255,100,100,0.22);
}
#academics .glass-card:hover {
  background: linear-gradient(135deg, rgba(255,100,100,0.24), rgba(255,140,140,0.19));
  border-color: rgba(255,80,80,0.35);
}

.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
  margin-top: 2rem;
}
.results-grid .glass-card {
  padding: 1.5rem;
  transform-style: preserve-3d;
  animation: resultTabFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes resultTabFloat {
  0% { transform: perspective(800px) rotateX(3deg) rotateY(-3deg) translateZ(0); }
  100% { transform: perspective(800px) rotateX(-2deg) rotateY(4deg) translateZ(0); }
}
.results-grid h4 {
  font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-heading);
}
.results-grid p {
  color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1rem;
}
.btn-result {
  display: inline-block; padding: 0.5rem 1rem; background: var(--gradient-primary); color: #fff;
  border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; text-align: center;
}
.btn-result:hover { background: var(--navy-800); transform: translateY(-2px); }

/* Admissions — dark plum */
#admissions .glass-card {
  background: linear-gradient(135deg, rgba(50,25,55,0.07), rgba(65,35,70,0.05));
  border-color: rgba(50,25,55,0.08);
}
#admissions .glass-card:hover {
  background: linear-gradient(135deg, rgba(50,25,55,0.11), rgba(65,35,70,0.08));
  border-color: rgba(130,65,140,0.15);
}
/* Gallery section */
#gallery .glass-card {
  background: linear-gradient(135deg, rgba(18,50,45,0.07), rgba(25,65,55,0.05));
  border-color: rgba(18,50,45,0.08);
}
/* Contact — shaded light brown */
#contact .glass-card {
  background: linear-gradient(135deg, rgba(160,120,80,0.12), rgba(180,140,100,0.08));
  border-color: rgba(160,120,80,0.15);
}
#contact .glass-card:hover {
  background: linear-gradient(135deg, rgba(160,120,80,0.18), rgba(180,140,100,0.14));
  border-color: rgba(160,120,80,0.25);
}

/* Fee Structure */
.fee-table {
  width: 100%; border-collapse: collapse; margin-top: 1.5rem;
}
.fee-table th, .fee-table td {
  padding: 0.85rem 1.2rem; text-align: left;
  border-bottom: 1px solid rgba(26,58,107,0.08);
  font-size: 0.88rem;
}
.fee-table th {
  background: var(--navy-800); color: #fff;
  font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.fee-table tr:hover td { background: rgba(26,58,107,0.03); }

/* =============================================
   Faculty
   ============================================= */
.faculty-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.faculty-card {
  padding: 1.5rem 1.5rem; text-align: center;
  transform-style: preserve-3d;
}
.faculty-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: #fff; background: var(--av-color, var(--navy-500));
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo);
}
.faculty-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%;
  transition: transform 0.6s var(--ease-out-expo), filter 0.5s ease;
}
.faculty-card:hover .faculty-avatar img {
  transform: scale(1.1); filter: brightness(1.05);
}
.faculty-card:hover .faculty-avatar.expanded img {
  transform: none !important; filter: none !important;
}
.faculty-card h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.faculty-role {
  display: block; font-size: 0.78rem; color: var(--navy-400);
  margin-bottom: 0.2rem; font-weight: 500;
}
.faculty-qual {
  display: block; font-size: 0.7rem; color: var(--text-muted);
}
.faculty-avatar[data-av-color="navy"] { --av-color: #0e2240; }
.faculty-avatar[data-av-color="teal"] { --av-color: #0d6e6e; }
.faculty-avatar[data-av-color="purple"] { --av-color: #5a2d82; }
.faculty-avatar[data-av-color="darkblue"] { --av-color: #1a4a7a; }
.faculty-avatar[data-av-color="gold"] { --av-color: #8a6d2e; }

/* =============================================
   Admissions
   ============================================= */
.admissions-section { background: var(--gradient-section-alt); }
.admission-timeline {
  display: flex; align-items: stretch; gap: 0; justify-content: center;
}
.timeline-step {
  padding: 2rem 1.5rem; text-align: center; flex: 1; max-width: 260px;
  background: var(--navy-700) !important; color: #fff !important;
  border-radius: var(--radius-md); margin: 0;
  position: relative; z-index: 1;
}
.timeline-step h4, .timeline-step p { color: #fff !important; }

/* --- 3D Animated Step Icons --- */
.step-3d-icon {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 10px 15px rgba(10,24,48,0.4));
  animation: float3D 4s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform, filter;
}
@keyframes float3D {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
    filter: drop-shadow(0 10px 15px rgba(10,24,48,0.4));
  }
  25% {
    transform: translateY(-8px) rotateX(10deg) rotateY(10deg) scale(1.05);
    filter: drop-shadow(10px 18px 20px rgba(10,24,48,0.3));
  }
  50% {
    transform: translateY(-15px) rotateX(0deg) rotateY(15deg) scale(1.08); /* Peak */
    filter: drop-shadow(0 25px 25px rgba(10,24,48,0.2));
  }
  75% {
    transform: translateY(-8px) rotateX(-10deg) rotateY(5deg) scale(1.05);
    filter: drop-shadow(-10px 18px 20px rgba(10,24,48,0.3));
  }
}
/* Stagger the animation so they float at different times */
.admission-timeline > *:nth-child(1) .step-3d-icon { animation-delay: 0s; }
.admission-timeline > *:nth-child(3) .step-3d-icon { animation-delay: 1s; }
.admission-timeline > *:nth-child(5) .step-3d-icon { animation-delay: 2s; }
.admission-timeline > *:nth-child(7) .step-3d-icon { animation-delay: 3s; }

.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.5; margin-bottom: 0.75rem;
}
.timeline-step h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.timeline-step p { font-size: 0.85rem; line-height: 1.6; }

/* --- Animated Arrow Connectors --- */
.timeline-arrow {
  display: flex; align-items: center; justify-content: center;
  position: relative; width: 60px; flex-shrink: 0;
  z-index: 0;
}
/* Glowing animated line */
.timeline-arrow .arrow-line {
  position: absolute;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(61,142,179,0.1), rgba(61,142,179,0.5), rgba(26,58,107,0.5), rgba(26,58,107,0.1));
  background-size: 200% 100%;
  animation: arrowFlow 2s ease-in-out infinite;
  border-radius: 2px;
}
.timeline-arrow .arrow-line::before {
  content: '';
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(61,142,179,0.8);
  box-shadow: 0 0 10px rgba(61,142,179,0.6), 0 0 20px rgba(61,142,179,0.3);
  transform: translateY(-50%);
  animation: arrowDotTravel 2s ease-in-out infinite;
}
/* Pulsing chevron head */
.timeline-arrow .arrow-chevron {
  position: relative; z-index: 2;
  font-size: 1.6rem; font-weight: 700;
  color: rgba(61,142,179,0.9);
  text-shadow: 0 0 12px rgba(61,142,179,0.5), 0 0 24px rgba(61,142,179,0.2);
  animation: arrowPulse 2s ease-in-out infinite;
  line-height: 1;
}
@keyframes arrowFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes arrowDotTravel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1) translateX(0); }
  50% { opacity: 1; transform: scale(1.3) translateX(3px); }
}
/* Vertical arrow animations (mobile) */
@keyframes arrowFlowV {
  0% { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}
@keyframes arrowDotTravelV {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}
@keyframes arrowPulseV {
  0%, 100% { opacity: 0.5; transform: rotate(90deg) scale(1) translateX(0); }
  50% { opacity: 1; transform: rotate(90deg) scale(1.3) translateX(3px); }
}

/* =============================================
   Events
   ============================================= */
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.event-card { padding: 2rem 1.5rem; text-align: center; }
.event-emoji { font-size: 2.2rem; margin-bottom: 1rem; }
.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(10,24,48,0.06);
  border-radius: var(--radius-full); margin-bottom: 0.75rem;
}
.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; }

/* Immersive Gallery Stacks */
.gallery-stacks-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 860px) {
  .gallery-stacks-container { grid-template-columns: 1fr; }
}

.gallery-stack-section {
  display: flex; flex-direction: column; gap: 1rem;
}
.stack-header {
  padding-left: 0.5rem;
}
.stack-header h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--text-heading); margin-bottom: 0.25rem;
}
.stack-header p {
  color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5;
}

.stack-view-area {
  position: relative;
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
  cursor: crosshair;
}

@media (max-width: 1024px) {
  .stack-view-area { aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .stack-view-area { aspect-ratio: 4/5; }
}

.stack-video-wrap {
  position: absolute; inset: 0; z-index: 1;
}
.stack-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85);
}

.stack-layers {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
.stack-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
}

.stack-hint {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  z-index: 10; padding: 0.6rem 1.2rem;
  background: rgba(10,24,48,0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  border-radius: var(--radius-full); pointer-events: none;
  opacity: 0.8; letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Lightbox Upgrades */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,24,48,0.96);
  display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  padding: 2rem;
}
.lightbox.active { display: flex; }

.lightbox-content {
  display: flex; gap: 2rem; max-width: 1100px; width: 95%; height: auto; max-height: 90vh;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 1.5rem; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: lbCenterIn 0.5s var(--ease-out-expo) both;
}
@keyframes lbCenterIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-media {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  background: #000; border-radius: var(--radius-md); overflow: hidden;
  min-height: 300px;
}
.lightbox-media img, .lightbox-media video {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  display: none;
}
#lightbox-video::-webkit-media-controls-volume-control-container,
#lightbox-video::-webkit-media-controls-mute-button {
  display: none !important;
}

/* Specific layout for Faculty vs Gallery */
.lightbox.is-faculty .lightbox-content { flex-direction: row; }
.lightbox.is-video .lightbox-content, .lightbox.is-image .lightbox-content { flex-direction: column; max-width: 800px; }

.lightbox.is-video video, .lightbox.is-image img, .lightbox.is-faculty img {
  display: block;
}

.lightbox-info {
  flex: 0 0 320px; display: flex; flex-direction: column; justify-content: center;
  padding: 1rem; color: #fff;
}
.lightbox:not(.is-faculty) .lightbox-info { display: none; }

.lb-info-inner h3 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  background: var(--gradient-primary); -webkit-background-clip: text;
  background-clip: text; color: transparent; margin-bottom: 0.5rem;
}
.lb-role { font-size: 1rem; font-weight: 600; color: var(--accent-400); margin-bottom: 0.5rem; }
.lb-qual { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }

.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer; z-index: 10001;
  transition: all 0.3s ease;
}
.lightbox-close:hover { background: #fff; color: #000; transform: rotate(90deg); }

@media (max-width: 850px) {
  .lightbox-content { flex-direction: column !important; overflow-y: auto; max-width: 500px; }
  .lightbox-info { flex: none; padding-top: 1.5rem; text-align: center; }
  .lb-qual { border-top: none; }
}

/* =============================================
   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; }
/* Clickable contact cards */
.contact-item-link {
  text-decoration: none; color: inherit;
  transition: all 0.46s var(--ease-out-expo);
}
.contact-item-link:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 40px rgba(26,58,107,0.1);
  border-color: rgba(61,142,179,0.2);
}
.contact-item-link:hover h5 {
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.directions-hint {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.72rem; font-weight: 600; color: var(--accent-500);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.46s var(--ease-out-expo);
}
.contact-item-link:hover .directions-hint {
  opacity: 1; transform: translateX(0);
}
.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(10,24,48,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(--navy-400);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.08); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(10,24,48,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 img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.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(--navy-500); }
.footer-address, .footer-email {
  color: var(--text-secondary); font-size: 0.82rem; line-height: 1.7;
}
.footer-email { color: var(--navy-500); margin-top: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(10,24,48,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; }
.developer-btn {
  background: linear-gradient(90deg, #1a3a6b, #3d8eb3);
  -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;
}
.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: #333; 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 Animations
   ============================================= */
[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); }
[data-scroll-reveal="left"] { opacity: 0; transform: translateX(-50px); }
[data-scroll-reveal="left"].revealed { transform: translateX(0); }
[data-scroll-reveal="right"] { opacity: 0; transform: translateX(50px); }
[data-scroll-reveal="right"].revealed { transform: translateX(0); }
[data-scroll-reveal="scale"] { opacity: 0; transform: scale(0.85); }
[data-scroll-reveal="scale"].revealed { transform: scale(1); }
[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); }
[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 */
.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); }

/* Leader card entrance */
.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;
}
.leader-card.leader-entered {
  opacity: 1; transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(0) scale(1);
  animation: leaderFloat 4s ease-in-out infinite; animation-delay: 1s;
}
@keyframes leaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}
.leader-card:hover {
  box-shadow: 0 30px 80px rgba(26,58,107,0.12), 0 12px 32px rgba(10,24,48,0.08);
  z-index: 10; animation: none !important;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .mv-grid, .messages-carousel { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
  .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-step { max-width: 100%; margin: 0; }
  .timeline-arrow {
    width: auto; height: 50px;
    flex-direction: column;
  }
  .timeline-arrow .arrow-line {
    width: 2px; height: 100%;
    background: linear-gradient(180deg, rgba(61,142,179,0.1), rgba(61,142,179,0.5), rgba(26,58,107,0.5), rgba(26,58,107,0.1));
    background-size: 100% 200%;
    animation: arrowFlowV 2s ease-in-out infinite;
  }
  .timeline-arrow .arrow-line::before {
    top: 0; left: 50%;
    transform: translateX(-50%);
    animation: arrowDotTravelV 2s ease-in-out infinite;
  }
  .timeline-arrow .arrow-chevron {
    transform: rotate(90deg);
    animation: arrowPulseV 2s ease-in-out infinite;
  }
}
@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, minmax(0, 300px)); justify-content: center; }
  .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); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: minmax(0, 1fr); justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Utility */
.u-hidden { display: none; }

/* Background animation */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 60%, rgba(26,58,107,0.02) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 30%, rgba(61,142,179,0.02) 0%, transparent 70%);
  animation: mesmerizeBg 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes mesmerizeBg {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* =============================================
   Android & Mobile Touch Friendly Overrides
   ============================================= */
@media (max-width: 768px) {
  /* Remove scrollbar for mobile/android devices */
  ::-webkit-scrollbar {
    display: none !important;
  }
  * {
    scrollbar-width: none !important;
  }

  /* Disable custom cursor stuck on touch */
  .cursor-glow, .cursor-trail-dot {
    display: none !important;
  }

  /* Reduce hover tilt intensity on cards for touch */
  .glass-card {
    transform: none !important;
  }
  .glass-card:hover {
    transform: translateY(-2px) !important;
  }
  
  /* Better tap targets */
  .nav-link, .cta-btn, .footer-links-group a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  .contact-item-grouped {
    flex-direction: column !important;
  }
  .contact-item-grouped .contact-sub-item {
    padding: 0.5rem 0;
  }
}

/* Specific to touch devices regardless of screen size */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow, .cursor-trail-dot {
    display: none !important;
  }
  ::-webkit-scrollbar {
    display: none !important;
  }
  * {
    scrollbar-width: none !important;
  }
}
