/* ==========================================
   COLOR SYSTEM & ROOT VARIABLES
   ========================================== */
:root {
  --bg-dark: #050508;
  --bg-surface: #0e0e14;
  --bg-glass: rgba(14, 14, 20, 0.78);
  --border-color: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-muted: #9a9ab0;
  
  --accent-color: #ff5522;
  --accent-secondary: #ff0055;
  --accent-glow: rgba(255, 85, 34, 0.4);
  
  --wave-rgb-1: 255, 85, 34;
  --wave-rgb-2: 255, 0, 85;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="vibrant"] {
  --bg-dark: #08030b;
  --bg-surface: #140818;
  --bg-glass: rgba(20, 8, 24, 0.78);
  --border-color: rgba(255, 42, 141, 0.2);
  
  --accent-color: #ff2a8d;
  --accent-secondary: #9d00ff;
  --accent-glow: rgba(255, 42, 141, 0.4);
  
  --wave-rgb-1: 255, 42, 141;
  --wave-rgb-2: 157, 0, 255;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.6s var(--transition-smooth);
}

/* Background Canvas Waves */
#waveCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================
   GLASSMORPHISM NAVBAR
   ========================================== */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s var(--transition-smooth);
}

header.scrolled {
  padding: 16px 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}

.logo span { color: var(--accent-color); }

.desktop-nav ul { display: flex; list-style: none; gap: 32px; }

.desktop-nav ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px; font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active { color: var(--text-main); }

.desktop-nav ul li a.active::after {
  content: ''; position: absolute;
  bottom: -6px; left: 0; width: 100%; height: 2px;
  background: var(--accent-color);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle, .hamburger-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
}

.hamburger-btn { display: none; }

.btn-glow {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #fff; text-decoration: none;
  padding: 12px 28px; border-radius: 30px;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform 0.3s;
}

.btn-glow:hover { transform: translateY(-3px); }

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 2000;
  padding: 80px 30px 30px;
  transition: right 0.4s var(--transition-smooth);
}

.mobile-drawer.active { right: 0; }
.drawer-close { position: absolute; top: 24px; right: 24px; font-size: 24px; cursor: pointer; }
.mobile-drawer ul { list-style: none; }
.mobile-drawer ul li { margin-bottom: 24px; }
.mobile-drawer ul li a { color: var(--text-main); text-decoration: none; font-size: 18px; font-weight: 700; }

/* ==========================================
   SCHOOL SECTION LAYOUTS
   ========================================== */
.school-wrapper {
  padding: 140px 60px 60px;
  max-width: 1350px;
  margin: 0 auto;
}

.school-hero {
  text-align: center;
  margin-bottom: 60px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px; color: var(--accent-color);
  margin-bottom: 20px;
}

.school-title {
  font-family: 'Syne', sans-serif;
  font-size: 52px; font-weight: 800;
  line-height: 1.15; margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.school-tagline {
  font-size: 16px; color: var(--text-muted);
  max-width: 680px; margin: 0 auto;
  line-height: 1.6;
}

/* Introduction Dual Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.glass-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  color: var(--accent-color);
}

.glass-card p {
  color: var(--text-muted);
  font-size: 15px; line-height: 1.7;
  margin-bottom: 18px;
}

.address-box {
  margin-top: 30px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
}

.address-icon {
  width: 46px; height: 46px;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}

.address-details strong { display: block; font-size: 14px; margin-bottom: 2px; }
.address-details span { font-size: 13px; color: var(--text-muted); }

/* ==========================================
   IMAGE ANIMATIONS & HOVER EFFECTS
   ========================================== */
.featured-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cover-image-card {
  position: relative;
  height: 240px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.5s var(--transition-smooth), border-color 0.5s, box-shadow 0.5s;
}

.card-zoom img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth), filter 0.8s;
}

/* Enhanced Zoom & Glow on Hover */
.cover-image-card:hover,
.gallery-cover-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.card-zoom:hover img {
  transform: scale(1.12);
  filter: brightness(1.05);
}

.image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85));
  display: flex; align-items: flex-end;
  padding: 20px 24px;
}

.image-overlay span {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700; color: #fff;
}

/* Campus Gallery Section */
.gallery-section { margin-bottom: 80px; }

.section-header {
  text-align: center; margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 36px; margin-bottom: 10px;
}

.section-header p { color: var(--text-muted); font-size: 15px; }

.campus-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-cover-item {
  position: relative;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: transform 0.5s var(--transition-smooth), border-color 0.5s, box-shadow 0.5s;
}

.cover-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 24px;
  transition: transform 0.4s var(--transition-smooth);
}

.cover-caption h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px; color: #fff;
}

.cover-caption p {
  font-size: 13px; color: #c0c0d0; line-height: 1.4;
}

/* ==========================================
   SCROLL ANIMATION CLASSES
   ========================================== */
.fade-in-up, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.fade-in-up.appear, .fade-in-left.appear, .fade-in-right.appear {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ==========================================
   MOBILE & TABLET OPTIMIZATIONS
   ========================================== */
@media (max-width: 992px) {
  header, header.scrolled { padding: 16px 20px; }
  .desktop-nav { display: none; }
  .hamburger-btn { display: flex; }
  
  .school-wrapper { padding: 110px 20px 40px; }
  .school-title { font-size: 34px; }
  
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .glass-card { padding: 24px; }
  
  .campus-gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-cover-item { height: 280px; }
}