/* ==========================================
   COLOR SYSTEM & ROOT VARIABLES
   ========================================== */
:root {
  --bg-dark: #050508;
  --bg-surface: #0e0e14;
  --bg-glass: rgba(14, 14, 20, 0.85);
  --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.85);
  --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);
}

#waveCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* NAVBAR & DRAWER */
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; align-items: center; }
.desktop-nav ul li { position: relative; }

.desktop-nav ul li a {
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 600;
  position: relative; transition: color 0.3s;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0;
}

.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: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent-color);
}

/* ATTRACTIVE NAVIGATION DROPDOWN MENU */
.dropdown-icon {
  font-size: 11px;
  transition: transform 0.4s var(--transition-smooth);
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.95);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px;
  min-width: 190px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px) scale(1);
}

.dropdown-item {
  padding: 10px 16px !important;
  border-radius: 10px;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.3s var(--transition-smooth) !important;
}

.dropdown-item::after { display: none !important; }

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-color) !important;
  transform: translateX(4px);
}

.dropdown-item i {
  font-size: 14px;
  color: 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 & SUBMENU */
.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);
  overflow-y: auto;
}
.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: 20px; }
.mobile-drawer ul li a { color: var(--text-main); text-decoration: none; font-size: 18px; font-weight: 700; }

.drawer-sub-menu {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--border-color);
}

.drawer-sub-menu li {
  margin-bottom: 12px !important;
}

.drawer-sub-menu li a {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-sub-menu li a:hover {
  color: var(--accent-color) !important;
}

/* STUDENTS WRAPPER */
.students-wrapper {
  padding: 130px 60px 60px;
  max-width: 1400px; margin: 0 auto;
}

.page-header {
  text-align: center; margin-bottom: 50px;
}

.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;
}

.page-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;
}

.page-subtitle {
  font-size: 15px; color: var(--text-muted);
  max-width: 680px; margin: 0 auto; line-height: 1.6;
}

/* GRID LAYOUT (4 IN LINE DESKTOP, 2 IN LINE MOBILE) */
.students-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* SCROLL REVEAL 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.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* CARD & IMAGE ANIMATIONS ON HOVER */
.student-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--transition-smooth), border-color 0.5s, box-shadow 0.5s;
}

.student-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.img-container {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth), filter 0.8s;
}

.student-card:hover .img-container img {
  transform: scale(1.12);
  filter: brightness(1.08);
}

/* Hover slow zoom & Overlay */
.hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s var(--transition-smooth);
}

.student-card:hover .hover-overlay {
  opacity: 1;
}

.hover-overlay span {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transform: translateY(10px);
  transition: transform 0.35s var(--transition-smooth);
}

.student-card:hover .hover-overlay span {
  transform: translateY(0);
}

.card-info {
  padding: 20px;
}

.card-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.card-info .role {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.card-info .short-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* POPUP MODAL STYLING */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--transition-smooth), visibility 0.4s;
}

.modal-backdrop.active {
  opacity: 1; visibility: visible;
}

.modal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  max-width: 750px; width: 100%;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.4s var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  font-size: 22px; color: var(--text-muted);
  cursor: pointer; z-index: 10;
  transition: color 0.3s;
}
.modal-close:hover { color: var(--accent-color); }

.modal-body {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.modal-img-box {
  height: 100%; width: 100%;
}

.modal-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 36px;
}

.modal-badge {
  font-size: 12px; font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 30px; margin: 6px 0 14px;
}

.modal-divider {
  width: 50px; height: 3px;
  background: var(--accent-color);
  margin-bottom: 16px;
}

.modal-info p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 24px;
}

.modal-details-grid {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; background: rgba(255, 255, 255, 0.03);
  padding: 14px; border-radius: 12px;
  border: 1px solid var(--border-color);
}

.modal-details-grid strong { color: var(--text-main); }
.status-active { color: #00ff88; font-weight: 700; }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .students-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  header { padding: 16px 20px; }
  .desktop-nav { display: none; }
  .hamburger-btn { display: flex; }
  
  .students-wrapper { padding: 100px 20px 40px; }
  .page-title { font-size: 32px; }
  
  /* 2 IN LINE ON MOBILE DEVICES */
  .students-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .img-container { height: 180px; }
  .card-info { padding: 14px; }
  .card-info h3 { font-size: 16px; }
  .card-info .short-bio { font-size: 12px; }
  
  .modal-body { grid-template-columns: 1fr; }
  .modal-img-box { height: 220px; }
  .modal-info { padding: 20px; }
}