/*
  AIML Department Website Styles
  - Modern, responsive, accessible
  - Gradient branding, glass cards, subtle shadows
*/

:root {
  /* Enhanced theme palette */
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.85);
  --text: #111827;
  --muted: #6b7280;
  --primary: #3b82f6;     /* enhanced blue */
  --primary-2: #06b6d4;   /* enhanced cyan */
  --primary-3: #8b5cf6;   /* enhanced purple */
  --accent: #ec4899;      /* pink accent */
  --accent-2: #f59e0b;    /* amber accent */
  --danger: #ef4444;
  --success: #10b981;
  --ring: rgba(59, 130, 246, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);
  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
  --gradient-accent: linear-gradient(135deg, #ec4899, #f59e0b);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,0.10), transparent 60%),
              radial-gradient(1000px 500px at -10% 10%, rgba(34,211,238,0.10), transparent 60%),
              var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(20px);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
  color: var(--text); 
}
.brand-logo {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; font-weight: 800;
  box-shadow: 0 10px 25px rgba(108,92,231,0.35);
}
.brand-text small { color: var(--muted); display: block; margin-top: -6px; }
/* Brand logo image */
.brand-logo-img { 
  width: 44px; 
  height: 44px; 
  object-fit: contain; 
  border-radius: 8px; 
  background: #f0f0f0; 
  display: block !important;
  position: relative;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { 
  color: var(--text); 
  text-decoration: none; 
  padding: 12px 16px; 
  border-radius: 12px; 
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  opacity: 0.1;
}
.nav-links a:hover {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}
.nav-links a:hover::before {
  left: 0;
}

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0; }

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  padding: 14px 24px; 
  border-radius: var(--radius); 
  text-decoration: none; 
  border: 1px solid transparent; 
  color: var(--text); 
  cursor: pointer; 
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.btn-sm { padding: 10px 16px; border-radius: 12px; font-size: 14px; }
.btn-primary { 
  background: var(--gradient-primary); 
  color: white; 
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.2));
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.45);
  scale: 1.02;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-ghost { 
  background: var(--glass-bg); 
  backdrop-filter: blur(10px);
  border-color: var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.btn-ghost:hover { 
  background: rgba(255,255,255,0.15); 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  /* Fallback background - will be overridden by inline style */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Specific background image styling */
.hero[style*="background-image"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(139, 92, 246, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.03) 0%, transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.02) 0%, transparent 70%);
  animation: gradientShift 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes gradientShift {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.hero-inner { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 32px; 
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Text readability enhancement */
.hero-content {
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -20px;
  right: -20px;
  bottom: -15px;
  background: transparent;
  border-radius: 20px;
  backdrop-filter: none;
  border: none;
  z-index: -1;
}
.hero-bg .blob { position: absolute; filter: none; opacity: 0; }
.hero-bg .b1 { 
  width: 600px; 
  height: 600px; 
  border-radius: 50%; 
  background: radial-gradient(circle at 30% 30%, var(--primary), transparent 60%); 
  top: -150px; 
  right: -150px; 
  animation: float 20s ease-in-out infinite;
}
.hero-bg .b2 { 
  width: 500px; 
  height: 500px; 
  border-radius: 50%; 
  background: radial-gradient(circle at 70% 70%, var(--primary-3), transparent 60%); 
  bottom: -180px; 
  left: -120px; 
  animation: float 24s ease-in-out infinite reverse;
}
.hero-bg .b3 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 70%);
  top: 20%;
  left: 10%;
  animation: float 18s ease-in-out infinite;
  filter: blur(30px);
  opacity: 0.2;
}
.grid-overlay { position:absolute; inset:0; background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%); pointer-events:none; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(16px) } }
@keyframes shine { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

/* Hero enhancements */
.hero-divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 100px; z-index: 1; pointer-events: none; }
.hero-divider svg { display:block; width: 100%; height: 100%; }
.hero { color: #ffffff; }
.hero .hero-subtitle { color: rgba(255,255,255,0.95); }
.hero .stat-card { 
  background: rgba(0, 0, 0, 0.35); 
  backdrop-filter: blur(8px); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero .stat-card .label { color: rgba(255,255,255,0.9); }
.hero-bg { 
  position: absolute; 
  inset: 0; 
  z-index: 1;
  pointer-events: none;
}
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 12px; opacity: 0.9; transition: opacity 200ms ease; z-index: 3; }
.scroll-cue:hover { opacity: 1; }
.scroll-cue .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 0 0 6px rgba(108,92,231,0.15); animation: pulse 2s infinite ease-in-out; }
.scroll-cue .fa-chevron-down { animation: bounce 1.8s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.hero-title { 
  font-size: clamp(32px, 5vw, 72px); 
  line-height: 1.15; 
  margin: 0 0 24px; 
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}
.grad {
  background: linear-gradient(135deg, #67e8f9, #22d3ee, #06b6d4, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradientShine 4s ease-in-out infinite;
  position: relative;
  font-weight: 800;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* Fallback for browsers that don't support background-clip */
.grad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  text-shadow: none;
  z-index: -1;
}
@keyframes gradientShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}
.hero-subtitle { 
  color: #ffffff; 
  font-size: clamp(16px, 2vw, 22px); 
  max-width: 60ch;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 32px;
  font-weight: 500;
  opacity: 0.95;
}
.hero-cta { 
  display: flex; 
  gap: 16px; 
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

.hero-stats { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  margin-top: 48px;
}
.stat-card { 
  background: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(20px); 
  border: 1px solid rgba(255, 255, 255, 0.3); 
  border-radius: var(--radius-lg); 
  padding: 24px 16px; 
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(59, 130, 246, 0.3));
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat { 
  font-size: clamp(24px, 4vw, 36px); 
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}
.stat-card .label { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: rgba(255, 255, 255, 0.9); 
  font-size: 13px; 
  justify-content: center;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Progress Bar for Stats */
.stat-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin: 8px 0 4px;
  overflow: hidden;
  position: relative;
}
.stat-progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Stat Card Entrance Animation */
.stat-animate {
  animation: statEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes statEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-media { position: relative; }
.hero-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); box-shadow: var(--shadow); }
.hero-card img { display:block; width:100%; height:auto; aspect-ratio: 4/3; object-fit: cover; }
.media-badge { position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,0.85); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.08); font-size: 12px; }
.floating-badges { display:flex; gap:8px; flex-wrap: wrap; margin-top: 12px; }
.floating-badges .badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 8px 10px; border-radius: 999px; font-size: 12px; }

/* Sections */
.section { 
  padding: 100px 0; 
  position: relative;
}
.section.alt { 
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
  position: relative;
  overflow: hidden;
}
.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.section-head { 
  text-align: center; 
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.section-head h2 { 
  font-size: clamp(28px, 4vw, 48px); 
  margin: 0 0 20px; 
  letter-spacing: -0.02em;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p { 
  color: var(--muted); 
  margin: 0 auto; 
  max-width: 70ch;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

/* Floating Action Button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-cta.show {
  opacity: 1;
  visibility: visible;
}
.floating-cta .btn {
  padding: 16px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(20px);
}
.floating-cta .btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

/* Loading Animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
  color: white;
}
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader-text {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.9;
}

/* Smooth page transitions */
body {
  animation: fadeInPage 0.8s ease-in-out;
}
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered animations */
.section, .card, .faculty-card, .activity-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Enhanced floating badges */
.floating-badges .badge {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.floating-badges .badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.floating-badges .badge:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.floating-badges .badge:hover::before {
  left: 100%;
}

.cards { display: grid; gap: 24px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { 
  background: var(--glass-bg); 
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); 
  border-radius: var(--radius-lg); 
  padding: 28px; 
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover {
  transform: translateY(-8px) rotateX(2deg);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.card:hover::before {
  transform: scaleX(1);
}
.card img { display:block; width:100%; height:auto; border-radius: 12px; object-fit: cover; }
/* Uniform sizing for Achievements images */
#achievements .card img { width: 100%; height: auto; object-fit: contain; border-radius: 12px; background: #ffffff; display: block; }
.card h3 { margin: 2px 0 8px; }
.card .list { margin: 12px 0 0; padding-left: 16px; color: var(--muted); }
.card .list li { margin: 8px 0; }
.link { color: #b2cdff; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Faculty */
.faculty-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.faculty-card { 
  background: var(--glass-bg); 
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: var(--shadow-lg);
  position: relative;
}
.faculty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}
.faculty-card:hover { 
  transform: translateY(-12px) rotateY(5deg);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  border-color: var(--primary);
}
.faculty-card:hover::before {
  transform: scaleX(1);
}
.faculty-card img { 
  width: 100%; 
  height: 280px; 
  object-fit: cover; 
  object-position: center 20%;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #f8f9fa;
  min-height: 280px;
  transition: transform 0.3s ease;
}

.faculty-card:hover img {
  transform: scale(1.02);
}

/* Leadership specific styling */
#leadership .faculty-card {
  border: 2px solid rgba(37,99,235,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

#leadership .faculty-card:hover {
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

#leadership .faculty-card img {
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
}

#leadership .faculty-card .info {
  padding: 20px;
  text-align: center;
}

#leadership .faculty-card .info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

#leadership .faculty-card .role {
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
  margin: 0;
}

/* Image loading fallback */
.faculty-card img:not([src]),
.faculty-card img[src=""],
.faculty-card img[src="#"] {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  position: relative;
}

.faculty-card img:not([src])::after,
.faculty-card img[src=""]::after,
.faculty-card img[src="#"]::after {
  content: "👤";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #94a3b8;
}
.faculty-card .info { 
  padding: 16px; 
  background: var(--surface);
}
.faculty-card .info h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 600;
}
.faculty-card .role { 
  color: var(--muted); 
  margin: 4px 0; 
  font-size: 14px; 
}
.faculty-card .tags { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  margin-top: 8px;
}
.faculty-card .tags span { 
  background: rgba(37,99,235,0.08); 
  border: 1px solid rgba(37,99,235,0.12); 
  padding: 4px 8px; 
  border-radius: 999px; 
  font-size: 12px; 
  color: var(--primary);
}

/* Toppers Slider - Improved Cards Only */

/* Enhanced Toppers Slider */
.toppers {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.toppers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #6366f1 0%, 
    #8b5cf6 25%, 
    #06b6d4 50%, 
    #10b981 75%, 
    #f59e0b 100%);
  border-radius: 16px 16px 0 0;
}

.topper-track {
  display: flex;
  gap: 24px;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 0;
}

.topper-card {
  min-width: 320px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.topper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topper-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.topper-card:hover::before {
  opacity: 1;
}

.topper-card:nth-child(1)::before {
  background: linear-gradient(90deg, #fbbf24, #f59e0b); /* Gold for 1st place */
}

.topper-card:nth-child(2)::before {
  background: linear-gradient(90deg, #9ca3af, #6b7280); /* Silver for 2nd place */
}

.topper-card:nth-child(3)::before {
  background: linear-gradient(90deg, #cd7c2f, #92400e); /* Bronze for 3rd place */
}

.topper-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.topper-card:hover img {
  transform: scale(1.05);
}

.topper-card .meta {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.topper-card .meta h4 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.topper-card .meta p {
  color: #f59e0b;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topper-card .meta p::before {
  content: "🏆";
  font-size: 20px;
}

.topper-card:nth-child(2) .meta p {
  color: #9ca3af;
}

.topper-card:nth-child(2) .meta p::before {
  content: "🥈";
}

.topper-card:nth-child(3) .meta p {
  color: #cd7c2f;
}

.topper-card:nth-child(3) .meta p::before {
  content: "🥉";
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.slider-controls button {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6366f1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
  background: #6366f1;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.slider-controls button:active {
  transform: scale(0.95);
}

/* Enhanced Cards Section */
#students .cards {
  gap: 24px;
}

#students .card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

#students .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#students .card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

#students .card:hover::before {
  transform: scaleX(1);
}

#students .card h3 {
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#students .card h3::before {
  font-size: 28px;
}

#students .card:nth-child(1) h3::before {
  content: "🏢";
}

#students .card:nth-child(2) h3::before {
  content: "💼";
}

#students .card:nth-child(3) h3::before {
  content: "📚";
}

#students .card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

#students .card .link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

#students .card .link:hover {
  color: #4f46e5;
  transform: translateX(4px);
}

#students .card .link i {
  transition: transform 0.3s ease;
}

#students .card:hover .link i {
  transform: translateX(4px);
}

/* Activities */
.activity-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.activity-card { border-radius: 16px; overflow: hidden; border:1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); transition: 220ms ease; }
.activity-card:hover { transform: translateY(-3px); }
.activity-card img { width:100%; height: 200px; object-fit: cover; }
.activity-card .content { padding: 12px; }

/* Student Lists - Enhanced Design */
#stacks {
  background: linear-gradient(135deg, #fafbff 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

#stacks::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

#stacks .container {
  position: relative;
  z-index: 2;
}

#stacks .section-head h2 {
  background: linear-gradient(135deg, #1e293b, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-bottom: 12px;
}

#stacks .section-head p {
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  max-width: 600px;
}

.stack-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px; 
  margin-top: 48px;
}

.stack-box { 
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 0;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  display: flex; 
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.stack-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    #6366f1 0%, 
    #8b5cf6 25%, 
    #06b6d4 50%, 
    #10b981 75%, 
    #f59e0b 100%);
  border-radius: 20px 20px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.stack-box:hover::before {
  transform: scaleX(1);
}

.stack-box::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(from 0deg, 
    rgba(99, 102, 241, 0.15), 
    rgba(139, 92, 246, 0.15), 
    rgba(6, 182, 212, 0.15), 
    rgba(16, 185, 129, 0.15),
    rgba(99, 102, 241, 0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stack-box:hover {
  transform: translateY(-8px) rotateX(1deg);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(99, 102, 241, 0.1) inset;
  border-color: rgba(99, 102, 241, 0.2);
}

.stack-box:hover::after {
  opacity: 1;
  animation: stackBorderRotate 4s linear infinite;
}

@keyframes stackBorderRotate {
  to { transform: rotate(360deg); }
}

.stack-box header {
  position: relative;
  padding: 24px 24px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(248,250,252,0.6));
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.stack-box header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
  pointer-events: none;
}

.stack-box header h3 { 
  position: relative;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.stack-box header h3 a {
  color: #1e293b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.stack-box header h3 a::before {
  content: "📚";
  font-size: 24px;
  padding: 8px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.stack-box:nth-child(1) header h3 a::before {
  background: linear-gradient(135deg, #fefce8, #fef3c7);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  content: "🌟";
}

.stack-box:nth-child(2) header h3 a::before {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  content: "🚀";
}

.stack-box:nth-child(3) header h3 a::before {
  background: linear-gradient(135deg, #fdf4ff, #f3e8ff);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
  content: "💎";
}

.stack-box:nth-child(4) header h3 a::before {
  background: linear-gradient(135deg, #fff1f2, #fce7e7);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
  content: "🎓";
}

.stack-box:hover header h3 a::before {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stack-box:hover header h3 a {
  color: #6366f1;
  transform: translateX(4px);
}

.stack-content {
  position: relative;
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  min-height: 140px;
  max-height: 300px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 0 0 20px 20px;
  gap: 16px;
}

.stack-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
  transform: translateX(-50%);
}

.stack-content p {
  margin: 0;
  font-weight: 500;
  position: relative;
}

.stack-content p::before {
  content: "👥";
  display: block;
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.stack-box:hover .stack-content p::before {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Download button styles */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: linear-gradient(135deg, #5856eb, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  color: white;
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.download-btn i {
  font-size: 16px;
}

.stack-content table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stack-content th, .stack-content td { 
  border-bottom: 1px solid rgba(148, 163, 184, 0.1); 
  padding: 12px 16px; 
  text-align: left;
  transition: background-color 0.2s ease;
}

.stack-content th { 
  position: sticky; 
  top: 0; 
  background: linear-gradient(135deg, #f8fafc, #f1f5f9); 
  z-index: 1;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.stack-content tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

.uploader { 
  display: none; /* Hide uploader since we're using direct PDF links */
}

/* Responsive improvements */
@media (max-width: 1000px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stack-box {
    padding: 0;
  }
  
  .stack-box header {
    padding: 20px 20px 14px;
  }
  
  .stack-content {
    padding: 20px;
    min-height: 120px;
  }
}

/* Contact */
.contact { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.contact-list { list-style: none; padding:0; margin: 0; color: var(--muted); }
.contact-list li { margin: 10px 0; }
.contact-list i { width: 18px; color: #b2cdff; margin-right: 10px; }
.contact-form { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.contact-form .form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 15px;
}
.contact-form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.contact-form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
label { display:block; font-weight: 600; font-size: 14px; color: #d6dcf0; }
input, textarea { width:100%; margin-top: 6px; padding: 12px; color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15); }

/* Footer */
.site-footer { border-top: 1px solid rgba(0,0,0,0.06); padding: 20px 0; background: #ffffff; }
.footer { display:flex; align-items:center; justify-content: space-between; }
.footer .socials { display:flex; gap: 10px; }
.footer .socials a { color: var(--muted); }
.footer .socials a:hover { color: #b2cdff; }

/* Department Gallery */
.department-gallery {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background: var(--surface);
}

.gallery-track {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 40px 20px 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-slide.active .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-caption h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.gallery-caption p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 20px;
}

.gallery-controls button {
  pointer-events: auto;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-controls button:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1);
}

.gallery-controls button i {
  color: #333;
  font-size: 18px;
}

.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.gallery-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dots .dot.active {
  background: rgba(255,255,255,1);
  transform: scale(1.3);
}

.gallery-dots .dot:hover {
  background: rgba(255,255,255,0.8);
}

/* Gallery Animation Effects */
@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-30px); opacity: 0; }
}

.gallery-slide.slide-in {
  animation: slideIn 0.6s ease-in-out;
}

.gallery-slide.slide-out {
  animation: slideOut 0.6s ease-in-out;
}

/* Responsive Gallery */
@media (max-width: 720px) {
  .gallery-track {
    height: 280px;
  }
  
  .gallery-controls {
    padding: 0 15px;
  }
  
  .gallery-controls button {
    width: 40px;
    height: 40px;
  }
  
  .gallery-caption {
    padding: 30px 15px 15px;
  }
  
  .gallery-caption h4 {
    font-size: 16px;
  }
  
  .gallery-caption p {
    font-size: 13px;
  }
}

/* About Us Section */
.about-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: #ffffff; /* switched to white background */
  color: var(--text);
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: none; /* hide overlays on white background */
}

.ai-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 60px 60px;
  animation: particleFloat 20s linear infinite;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.9) 0%, 
    rgba(118, 75, 162, 0.8) 50%, 
    rgba(147, 51, 234, 0.9) 100%);
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin: 0 0 30px;
  letter-spacing: -0.02em;
}

.glowing-text {
  background: linear-gradient(135deg, #ffffff, #e0e7ff, #c7d2fe, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: glowPulse 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

/* Ensure About Us title is readable on white background */
.about-section .about-title.glowing-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
  text-shadow: none;
  filter: none;
  animation: none;
}

@keyframes glowPulse {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
  }
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(-20px) translateX(-5px); }
  75% { transform: translateY(-10px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

.tagline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.lightbulb-icon {
  font-size: clamp(32px, 4vw, 48px);
  display: inline-block;
  animation: glowPulseIcon 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.6));
}

.tagline-text {
  background: linear-gradient(135deg, #1e293b, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
  letter-spacing: 0.5px;
}

.tagline-text strong {
  font-weight: 700;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulseIcon {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.6));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(255, 193, 7, 0.9));
    transform: scale(1.1);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.about-description {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  margin-bottom: 50px;
  text-align: center;
  color: var(--text);
  font-weight: 400;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.highlight-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.highlight-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px;
  color: var(--text);
}

.highlight-content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

/* Mission & Vision enhanced design */
#mission {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

#mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

#mission .container {
  position: relative;
  z-index: 2;
}

#mission .section-head h2 {
  background: linear-gradient(135deg, #1e293b, #475569, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-bottom: 16px;
}

#mission .section-head p {
  color: #64748b;
  font-size: 18px;
  font-weight: 500;
}

#mission .cards {
  gap: 24px;
  margin-top: 48px;
}

#mission .card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  overflow: hidden;
}

#mission .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #8b5cf6 100%);
  border-radius: 20px 20px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#mission .card:hover::before {
  transform: scaleX(1);
}

#mission .card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(from 0deg, 
    rgba(37, 99, 235, 0.1), 
    rgba(34, 211, 238, 0.2), 
    rgba(139, 92, 246, 0.1), 
    rgba(37, 99, 235, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#mission .card:hover {
  transform: translateY(-8px) rotateX(1deg);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(37, 99, 235, 0.05) inset;
  border-color: rgba(37, 99, 235, 0.2);
}

#mission .card:hover::after {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  to { transform: rotate(360deg); }
}

#mission .card h3 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#mission .card h3::before {
  content: "";
  width: 6px;
  height: 32px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

#mission .card:hover h3::before {
  height: 40px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

#mission .card p {
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 16px;
}

#mission .card .list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

#mission .card .list li {
  position: relative;
  padding: 12px 0 12px 32px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s ease;
}

#mission .card .list li:last-child {
  border-bottom: none;
}

#mission .card .list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 50%;
  box-shadow: 
    0 0 0 2px rgba(37, 99, 235, 0.2),
    0 2px 4px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

#mission .card:hover .list li::before {
  transform: scale(1.2);
  box-shadow: 
    0 0 0 3px rgba(37, 99, 235, 0.3),
    0 3px 6px rgba(37, 99, 235, 0.4);
}

#mission .card .list li strong {
  color: #2563eb;
  font-weight: 600;
}

#mission .card:hover .list li {
  padding-left: 36px;
  color: #334155;
}

/* Special styling for Vision card */
#mission .card:nth-child(1) h3::before {
  background: linear-gradient(180deg, #8b5cf6, #a855f7);
}

#mission .card:nth-child(1):hover h3::before {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

#mission .card:nth-child(1) .list li::before {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 
    0 0 0 2px rgba(139, 92, 246, 0.2),
    0 2px 4px rgba(139, 92, 246, 0.3);
}

#mission .card:nth-child(1):hover .list li::before {
  box-shadow: 
    0 0 0 3px rgba(139, 92, 246, 0.3),
    0 3px 6px rgba(139, 92, 246, 0.4);
}

/* Special styling for PSO card */
#mission .card:nth-child(3) h3::before {
  background: linear-gradient(180deg, #06b6d4, #0891b2);
}

#mission .card:nth-child(3):hover h3::before {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

#mission .card:nth-child(3) .list li::before {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 
    0 0 0 2px rgba(6, 182, 212, 0.2),
    0 2px 4px rgba(6, 182, 212, 0.3);
}

#mission .card:nth-child(3):hover .list li::before {
  box-shadow: 
    0 0 0 3px rgba(6, 182, 212, 0.3),
    0 3px 6px rgba(6, 182, 212, 0.4);
}

/* Utilities */
.mt-lg { margin-top: 24px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards.two { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .faculty-grid { grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Navigation */
  .nav-toggle { display: block; }
  .nav-links { 
    position: absolute; 
    top: 62px; 
    right: 4vw; 
    left: 4vw; 
    background: rgba(255,255,255,0.98); 
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 12px; 
    padding: 15px; 
    display: none; 
    flex-direction: column; 
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  .nav-links.show { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  .nav-links a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
  }

  /* Hero Section Mobile - More Compact */
  .hero {
    padding: 60px 0 40px;
    min-height: auto;
  }
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  .hero-cta {
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .hero-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .stat-card .stat {
    font-size: 28px;
  }
  .stat-card .label {
    font-size: 12px;
  }

  /* General Layout - More Compact */
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 40px 0;
  }
  .section-head h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .section-head p {
    font-size: 15px;
    line-height: 1.4;
  }

  /* Cards - More Compact */
  .cards.three { 
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 18px 16px;
  }
  .card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .card p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  /* Faculty Grid - More Compact */
  .faculty-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .faculty-card {
    max-width: none;
  }
  .faculty-card img {
    height: 200px;
  }
  .faculty-card .info {
    padding: 12px;
  }
  .faculty-card .info h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .faculty-card .role {
    font-size: 12px;
  }
  #leadership .faculty-card img {
    height: 280px;
    object-position: center 30%;
  }

  /* Students & Toppers Mobile - More Compact */
  .toppers {
    padding: 12px;
    margin-bottom: 20px;
  }
  .topper-track {
    gap: 12px;
    padding: 6px 0;
  }
  .topper-card {
    min-width: 240px;
  }
  .topper-card img {
    height: 150px;
  }
  .topper-card .meta {
    padding: 12px;
  }
  .topper-card .meta h4 {
    font-size: 13px;
    line-height: 1.2;
  }
  .topper-card .meta p {
    font-size: 18px;
  }
  .slider-controls button {
    width: 32px;
    height: 32px;
    margin: 0 6px;
  }

  /* Activity Grid - More Compact */
  .activity-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .activity-card {
    max-width: none;
  }
  .activity-card img {
    height: 120px;
  }
  .activity-card .content {
    padding: 10px;
  }
  .activity-card .content h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .activity-card .content p {
    font-size: 12px;
    margin: 0;
  }

  /* Student Lists (Stacks) - More Compact */
  .stack-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stack-box {
    padding: 0;
  }
  .stack-box header {
    padding: 14px 14px 10px;
  }
  .stack-box header h3 {
    font-size: 16px;
  }
  .stack-content {
    padding: 14px;
    min-height: 100px;
    gap: 10px;
  }
  .stack-content p {
    font-size: 12px;
    margin: 0;
  }
  .download-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* About Us responsive - More Compact */
  .about-section {
    padding: 40px 0;
  }
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }
  .highlight-card {
    flex-direction: row;
    text-align: left;
    padding: 16px;
    gap: 12px;
  }
  .highlight-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 0;
  }
  .highlight-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .highlight-content p {
    font-size: 13px;
    line-height: 1.3;
  }
  .tagline-container {
    flex-direction: column;
    gap: 5px;
  }
  .about-intro {
    font-size: 14px;
    margin-bottom: 25px;
  }

  /* Contact Form */
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .form-row {
    flex-direction: column;
  }
  .contact-list {
    margin-bottom: 20px;
  }
  .contact-list li {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

/* Extra Small Screens (320px - 480px) - Ultra Compact */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  
  /* Hero adjustments for very small screens */
  .hero {
    padding: 40px 0 30px;
  }
  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
  .stat-card {
    padding: 12px 8px;
  }
  .stat-card .stat {
    font-size: 24px;
  }
  .stat-card .label {
    font-size: 11px;
  }
  
  /* Toppers slider for very small screens */
  .toppers {
    padding: 12px;
  }
  .topper-card {
    min-width: 250px;
  }
  .topper-card img {
    height: 160px;
  }
  .topper-card .meta {
    padding: 12px;
  }
  .topper-card .meta h4 {
    font-size: 14px;
  }
  .topper-card .meta p {
    font-size: 18px;
  }
  
  /* Cards and sections - Ultra Compact */
  .section {
    padding: 30px 0;
  }
  .section-head h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  .section-head p {
    font-size: 13px;
  }
  .card {
    padding: 14px 12px;
  }
  .cards.three {
    gap: 12px;
  }
  
  /* Faculty cards */
  .faculty-card {
    max-width: 280px;
  }
  
  /* Student lists - Single column for very small screens */
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stack-box header {
    padding: 12px 12px 8px;
  }
  .stack-box header h3 {
    font-size: 14px;
  }
  .stack-content {
    padding: 12px;
    min-height: 80px;
  }
  .download-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
  
  /* Navigation improvements */
  .nav-links {
    right: 16px;
    left: 16px;
    padding: 12px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 20px 16px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Make buttons and links more touch-friendly */
  .btn, .download-btn, .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-controls button {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover, .topper-card:hover, .faculty-card:hover, .activity-card:hover {
    transform: none;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  /* Reduce motion for better performance on mobile */
  *, *::before, *::after {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }
  
  /* Optimize images for mobile */
  img {
    image-rendering: optimizeSpeed;
  }
  
  /* Reduce blur effects on mobile for better performance */
  .toppers, .card {
    backdrop-filter: none;
  }
}

/* Welcome Popup Styles */
.welcome-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.welcome-popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.popup-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: popupSlideIn 0.4s ease-out forwards;
}

.welcome-popup.show .popup-content {
  transform: scale(1) translateY(0);
}

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

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #1e293b;
  transform: scale(1.1);
}

.popup-header {
  padding: 32px 32px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.popup-logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin-bottom: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.popup-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.popup-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.popup-body {
  padding: 24px 32px;
}

.welcome-message h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px;
  text-align: center;
}

.welcome-message p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px;
  text-align: center;
}

.popup-highlights {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.highlight-item i {
  font-size: 24px;
  color: #6366f1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  padding: 12px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-item span {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.popup-cta-text {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 20px 0 0;
}

.popup-footer {
  padding: 20px 32px 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.popup-footer .btn {
  flex: 1;
  max-width: 150px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* Mobile responsive popup */
@media (max-width: 480px) {
  .popup-content {
    width: 95%;
    margin: 20px;
    border-radius: 16px;
  }
  
  .popup-header {
    padding: 24px 20px 16px;
  }
  
  .popup-header h2 {
    font-size: 20px;
  }
  
  .popup-body {
    padding: 20px 20px;
  }
  
  .welcome-message h3 {
    font-size: 18px;
  }
  
  .welcome-message p {
    font-size: 14px;
  }
  
  .popup-highlights {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  
  .highlight-item {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
  
  .highlight-item i {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .popup-footer {
    padding: 16px 20px 24px;
    flex-direction: column;
  }
  
  .popup-footer .btn {
    max-width: none;
  }
}

/* Prevent body scroll when popup is open */
body.popup-open {
  overflow: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .welcome-popup,
  .popup-content {
    transition: none !important;
    animation: none !important;
  }
}

/* Subtle hero background pan animation */
@keyframes heroPan { 0% { background-position: 50% 50%; } 50% { background-position: 48% 52%; } 100% { background-position: 50% 50%; } }

/* Light theme overrides for borders and surfaces */
.stat-card,
.hero-card,
.floating-badges .badge,
.toppers,
.topper-card,
.activity-card,
.faculty-card,
.contact-form { border-color: rgba(0,0,0,0.08) !important; }

.toppers,
.topper-card,
.activity-card,
.card,
.faculty-card,
.contact-form { background: #ffffff !important; }
