/* ==========================================
   CLASSEGA - Alumni Class Website
   ========================================== */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700&family=Rye&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  /* Primary Cowboy Palette (Saddle Brown / Leather) */
  --primary-900: #2d1305;
  --primary-800: #421e0a;
  --primary-700: #5c2b0e;
  --primary-600: #7b3b14;
  --primary-500: #8b4513;
  --primary-400: #a0522d;
  --primary-300: #cd853f;
  --primary-200: #deb887;
  --primary-100: #f5deb3;
  --primary-50: #ffefd5;

  /* Neutral Palette */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-heading: 'Rye', cursive;
  --font-body: 'Roboto Slab', serif;

  /* Spacing */
  --section-py: 100px;
  --container-px: 20px;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-brown: 0 10px 40px -10px rgba(139, 69, 19, 0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

/* ===== Layout ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

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

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-500);
  margin-bottom: 12px;
  position: relative;
  padding: 0 20px;
}

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

.section-subtitle::before { left: -20px; }
.section-subtitle::after { right: -20px; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Header / Navbar ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  transition: var(--transition);
}

.header.scrolled .logo {
  color: var(--primary-800);
}

.logo span {
  color: var(--primary-300);
}

.header.scrolled .logo span {
  color: var(--primary-500);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .nav-links a {
  color: var(--gray-600);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
  z-index: 1002;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.header.scrolled .nav-toggle span {
  background: var(--gray-800);
}



/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.35); /* Scales the video up slightly to crop out the watermark at the edges */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 19, 5, 0.7) 0%, rgba(45, 19, 5, 0.4) 100%);
  z-index: 0;
}

/* Desert Dust Particles */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 200, 150, 0.4);
  box-shadow: 0 0 10px rgba(255, 200, 150, 0.2);
  animation: dustFloat 10s infinite linear;
}

.hero-shape:nth-child(1) {
  width: 4px; height: 4px;
  top: 20%; right: 15%;
  animation-duration: 15s;
}

.hero-shape:nth-child(2) {
  width: 6px; height: 6px;
  bottom: 30%; left: 10%;
  animation-delay: -5s;
  animation-duration: 12s;
}

.hero-shape:nth-child(3) {
  width: 3px; height: 3px;
  top: 40%; left: 20%;
  animation-delay: -2s;
  animation-duration: 18s;
}

.hero-shape:nth-child(4) {
  width: 5px; height: 5px;
  bottom: 20%; right: 25%;
  animation-delay: -7s;
  animation-duration: 14s;
}

.hero-shape:nth-child(5) {
  width: 7px; height: 7px;
  top: 10%; right: 40%;
  animation-delay: -3s;
  animation-duration: 16s;
}

@keyframes dustFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(-50px, -20px) scale(1.5); }
  90% { opacity: 1; }
  100% { transform: translate(-100px, -40px) scale(1); opacity: 0; }
}

/* Particle dots */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 25%; left: 80%; animation-delay: -2s; animation-duration: 18s; }
.particle:nth-child(3) { top: 60%; left: 25%; animation-delay: -4s; animation-duration: 12s; }
.particle:nth-child(4) { top: 70%; left: 70%; animation-delay: -6s; animation-duration: 20s; }
.particle:nth-child(5) { top: 40%; left: 50%; animation-delay: -8s; animation-duration: 16s; }
.particle:nth-child(6) { top: 85%; left: 40%; animation-delay: -1s; animation-duration: 14s; }
.particle:nth-child(7) { top: 10%; left: 60%; animation-delay: -3s; animation-duration: 22s; }
.particle:nth-child(8) { top: 50%; left: 90%; animation-delay: -5s; animation-duration: 17s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  25% { transform: translate(20px, -40px); opacity: 0.8; }
  50% { transform: translate(-30px, 20px); opacity: 0.4; }
  75% { transform: translate(10px, -10px); opacity: 0.9; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 6px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-200), #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

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

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

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-800);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.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: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===== Statistics Section ===== */
.stats {
  position: relative;
  padding: 80px 0;
  background: var(--white);
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

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

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-brown);
}

.stat-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ===== About Section ===== */
.about {
  background: var(--gray-50);
}

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

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-200), var(--primary-50));
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-year-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-year-badge .year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-year-badge .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.about-content .section-subtitle {
  text-align: left;
  padding-left: 0;
}

.about-content .section-subtitle::before {
  display: none;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-text {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* Bottom row: spans full width below image & intro */
.about-bottom {
  grid-column: 1 / -1;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.about-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ===== Members Section ===== */
.members {
  background: var(--white);
}

.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.member-card {
  width: calc(25% - 18px);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

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

.member-avatar {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: transform 0.5s ease;
}

.member-card:hover .member-avatar {
  transform: scale(1.05);
}

.member-name {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(45, 19, 5, 0.25); /* Dark leather with transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  padding: 12px 16px;
  position: relative;
  z-index: 1;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-ig {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: end;
  margin-bottom: 65px; /* Positions it right above the name bar */
  margin-right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.member-ig:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== Gallery Section ===== */
.gallery {
  background: linear-gradient(180deg, var(--primary-900) 0%, #1a0f0a 100%);
  overflow: hidden;
}

.gallery .section-subtitle {
  color: var(--primary-300);
}

.gallery .section-subtitle::before,
.gallery .section-subtitle::after {
  background: var(--primary-600);
}

.gallery .section-title {
  color: var(--white);
}

.gallery .section-description {
  color: rgba(255, 255, 255, 0.5);
}

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

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

.gallery-item.span-2 {
  grid-column: span 2;
}

.gallery-item.tall {
  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.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 62, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.gallery-overlay p {
  color: var(--primary-200);
  font-size: 0.85rem;
  margin-top: 4px;
}

.gallery-overlay .gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  opacity: 0;
}

.gallery-item:hover .gallery-overlay .gallery-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: var(--transition-slow);
  object-fit: contain;
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-align: center;
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 2001;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-content .logo {
  color: var(--white);
  font-size: 1.8rem;
}

.footer-content p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 450px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-align: center;
}

.footer-bottom span:not(#currentYear) {
  color: var(--primary-400);
}

/* ===== Scroll Reveal ===== */
.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.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-image {
    order: -1;
    margin-bottom: 32px;
  }

  .about-content .section-subtitle,
  .about-content .section-title {
    text-align: center;
  }

  .about-text { text-align: left; }

  .about-features {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .about-bottom .about-text { text-align: left; }

  .member-card {
    width: calc(33.333% - 16px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.span-2 {
    grid-column: span 1;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    color: var(--gray-700) !important;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    width: 100%;
    text-align: center;
    background: transparent !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-50) !important;
    color: var(--primary-700) !important;
  }

  .nav-toggle {
    display: flex;
  }



  .section-title {
    font-size: 2rem;
  }

  .members-grid {
    gap: 16px;
  }

  .member-card {
    width: calc(50% - 8px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    grid-auto-rows: 180px;
  }
}

@media (max-width: 480px) {
  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  .members-grid {
    gap: 16px;
  }

  .member-card {
    width: 100%;
  }


  .stat-card {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-title {
    letter-spacing: 2px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* ===== Selection ===== */
::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}
