/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary Ocean Palette */
  --deep-ocean: #0A1628;
  --navy: #0F2444;
  --royal-blue: #1B4DDB;
  --ocean-blue: #1565C0;
  --aqua: #00BCD4;
  --light-aqua: #4DD0E1;
  --sky: #E3F2FD;
  
  /* Accent Colors */
  --gold: #F5A623;
  --warm-gold: #FFD54F;
  --coral: #FF6B6B;
  --emerald: #2ECC71;
  
  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #EDF2F7;
  --gray: #94A3B8;
  --dark-gray: #475569;
  --charcoal: #1E293B;
  --black: #0F172A;
  
  /* Gradients */
  --gradient-ocean: linear-gradient(135deg, #0A1628 0%, #1B4DDB 50%, #00BCD4 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(27, 77, 219, 0.85) 50%, rgba(0, 188, 212, 0.78) 100%);
  --gradient-gold: linear-gradient(135deg, #F5A623 0%, #FFD54F 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-section: linear-gradient(180deg, #F8FAFC 0%, #E3F2FD 100%);
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 188, 212, 0.3);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-ocean);
}

.container {
  width: min(90%, var(--container-width));
  margin: 0 auto;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--aqua);
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--aqua);
}

.section-subtitle::before { right: calc(100% + 12px); }
.section-subtitle::after { left: calc(100% + 12px); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--deep-ocean), var(--royal-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--dark-gray);
  font-size: 1.05rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 1300px);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aqua);
}

/* SVG Logo Fallback */
.nav-logo-svg {
  width: 48px;
  height: 48px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .school-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-text .school-tag {
  font-size: 0.7rem;
  color: var(--aqua);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aqua);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--deep-ocean) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-xl);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-ocean);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Placeholder for hero background */
.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

/* Animated Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  animation: fadeInDown 1s ease 0.2s both;
}

.hero-badge span {
  color: var(--warm-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 8px;
  animation: fadeInUp 1s ease 0.4s both;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--light-aqua);
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 400;
  animation: fadeInUp 1s ease 0.55s both;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 1s ease 0.7s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.85s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--deep-ocean);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(-3px);
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 6;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--aqua);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ===== ANNOUNCEMENT TICKER ===== */
.ticker-bar {
  background: var(--gradient-gold);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep-ocean);
}

.ticker-item .icon {
  font-size: 1.1rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Placeholder */
.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sky), #B3E5FC);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ocean-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.image-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.image-placeholder .placeholder-text {
  opacity: 0.7;
  font-size: 0.8rem;
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.about-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.about-content .about-lead {
  font-size: 1.1rem;
  color: var(--royal-blue);
  font-weight: 500;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--dark-gray);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--charcoal);
}

.about-feature .check-icon {
  width: 24px;
  height: 24px;
  background: var(--aqua);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--gradient-ocean);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--warm-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== ACADEMICS SECTION ===== */
.academics {
  padding: var(--section-padding);
  background: var(--gradient-section);
}

.academics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.academic-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.academic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.academic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 188, 212, 0.2);
}

.academic-card:hover::before {
  transform: scaleX(1);
}

.academic-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.academic-card:hover .academic-icon {
  transform: scale(1.1) rotate(5deg);
}

.academic-icon.pre-nursery { background: #FFF3E0; }
.academic-icon.nursery { background: #E8F5E9; }
.academic-icon.primary { background: #E3F2FD; }
.academic-icon.middle { background: #F3E5F5; }

.academic-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--deep-ocean);
}

.academic-card p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.academic-card .grade-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 16px;
  background: var(--sky);
  color: var(--royal-blue);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  padding: var(--section-padding);
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.why-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--gradient-ocean);
  transition: var(--transition-slow);
  z-index: 0;
  border-radius: var(--radius-md);
}

.why-card:hover::after {
  height: 100%;
}

.why-card > * {
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.why-card:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.why-card:hover h3,
.why-card:hover p {
  color: var(--white);
}

.why-card:hover .why-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--warm-gold);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--royal-blue);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* ===== FACILITIES SECTION ===== */
.facilities {
  padding: var(--section-padding);
  background: var(--gradient-section);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.facility-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.facility-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.facility-card:hover .facility-image img {
  transform: scale(1.08);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.facility-card:hover .facility-overlay {
  opacity: 1;
}

.facility-body {
  padding: 20px;
}

.facility-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.facility-body p {
  color: var(--dark-gray);
  font-size: 0.88rem;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  padding: var(--section-padding);
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 2rem;
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition-fast);
  background: none;
  border: none;
}

.lightbox-close:hover {
  color: var(--coral);
  transform: rotate(90deg);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--section-padding);
  background: var(--deep-ocean);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.testimonials .section-title {
  background: linear-gradient(135deg, var(--white), var(--light-aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--aqua);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.testimonial-name {
  color: var(--warm-gold);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.testimonial-stars {
  color: var(--warm-gold);
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.testimonial-dot.active {
  background: var(--aqua);
  width: 30px;
  border-radius: 5px;
}

/* ===== EVENTS SECTION ===== */
.events {
  padding: var(--section-padding);
  background: var(--gradient-section);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.event-date-badge {
  background: var(--gradient-ocean);
  color: var(--white);
  padding: 16px;
  text-align: center;
}

.event-date-badge .day {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.event-body {
  padding: 20px;
  flex: 1;
}

.event-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.event-body p {
  color: var(--dark-gray);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.event-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--sky);
  color: var(--royal-blue);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== ADMISSIONS SECTION ===== */
.admissions {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}

.admissions-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.admission-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admission-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.admission-step:hover {
  background: var(--sky);
  transform: translateX(8px);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--gradient-ocean);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--dark-gray);
  font-size: 0.88rem;
}

.admission-cta {
  background: var(--gradient-ocean);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.admission-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.admission-cta h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.admission-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.admission-cta .btn-primary {
  font-size: 1rem;
  padding: 16px 40px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--gradient-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-ocean);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--dark-gray);
  font-size: 0.88rem;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: var(--transition-fast);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--aqua);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-ocean);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 77, 219, 0.35);
}

/* Map placeholder */
.contact-map {
  margin-top: 24px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--light-gray);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--deep-ocean);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .school-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.footer-social:hover {
  background: var(--aqua);
  transform: translateY(-3px);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--aqua);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item .icon {
  color: var(--aqua);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--aqua);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-ocean);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid,
  .admissions-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .about-image {
    height: 300px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .academics-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
  
  .testimonial-card {
    padding: 24px;
  }
  
  .contact-form {
    padding: 24px;
  }
}
