/* ==========================================
   COLOR SYSTEM & ROOT VARIABLES
   ========================================== */
:root {
  --bg-dark: #050508;
  --bg-surface: #0e0e14;
  --bg-glass: rgba(14, 14, 20, 0.82);
  --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.82);
  --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;
}

#waveCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* NAVBAR */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 20px 60px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  background: var(--bg-glass);
  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;
  position: relative; transition: color 0.3s;
}
.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: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger-btn { display: none; }

.btn-glow {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #fff; text-decoration: none;
  padding: 10px 24px; border-radius: 30px;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.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; }

/* GALLERY WRAPPER */
.gallery-wrapper {
  padding: 130px 60px 60px;
  max-width: 1350px; margin: 0 auto;
}

.gallery-hero { text-align: center; margin-bottom: 36px; }

.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: 16px;
}

.gallery-title {
  font-family: 'Syne', sans-serif;
  font-size: 46px; font-weight: 800; margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-subtitle {
  font-size: 15px; color: var(--text-muted);
  max-width: 680px; margin: 0 auto; line-height: 1.6;
}

/* CATEGORY FILTERS */
.filter-bar {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 26px; border-radius: 30px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-color);
  color: #fff; border-color: var(--accent-color);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ACTIVITIES & SPORTS GRID (4 CARDS) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gallery-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  cursor: pointer;
}

.img-box {
  position: relative;
  width: 100%; height: 340px;
  overflow: hidden;
}

.card-zoom img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.gallery-card:hover .card-zoom img,
.teacher-img-wrapper:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background 0.4s var(--transition-smooth);
}

.category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-color);
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  color: var(--accent-color); margin-bottom: 10px;
  width: fit-content; backdrop-filter: blur(8px);
}

.card-overlay h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700; margin-bottom: 6px;
  color: #fff;
}

.card-overlay p {
  font-size: 13px; color: #c0c0d0; line-height: 1.4;
}

.hover-prompt {
  margin-top: 12px; font-size: 12px; font-weight: 700;
  color: var(--accent-color); opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--transition-smooth);
}

.gallery-card:hover .hover-prompt {
  opacity: 1; transform: translateY(0);
}

/* ==========================================
   TEACHERS SECTION (LARGE IMAGE + INTRO)
   ========================================== */
.teachers-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 20px;
}

.teacher-row {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.teacher-row.reverse {
  flex-direction: row-reverse;
}

.teacher-img-wrapper {
  flex: 1;
  max-width: 460px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.teacher-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.teacher-info {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
  width: fit-content;
  margin-bottom: 12px;
}

.teacher-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.teacher-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.teacher-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* SCROLL ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.fade-in-up.appear {
  opacity: 1; transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  z-index: 3000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--transition-smooth), visibility 0.4s;
}

.lightbox-modal.active {
  opacity: 1; visibility: visible;
}

.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 28px; color: #fff; cursor: pointer; z-index: 10;
}

.lightbox-content {
  max-width: 800px; width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px; overflow: hidden;
}

.lightbox-content img {
  width: 100%; max-height: 480px; object-fit: cover;
}

.lightbox-caption { padding: 24px; }
.lightbox-caption h3 { font-family: 'Syne', sans-serif; font-size: 22px; margin-bottom: 8px; }
.lightbox-caption p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* MOBILE & TABLET OPTIMIZATION */
@media (max-width: 992px) {
  header { padding: 16px 20px; }
  .desktop-nav { display: none; }
  .hamburger-btn { display: flex; }
  
  .gallery-wrapper { padding: 100px 20px 40px; }
  .gallery-title { font-size: 32px; }
  
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .img-box { height: 260px; }
  
  .teacher-row, .teacher-row.reverse {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  
  .teacher-img-wrapper {
    max-width: 100%;
    width: 100%;
    height: 280px;
  }
  
  .teacher-info h2 { font-size: 24px; }
}