/* =============================================================
   AI DEV CMRU – Main Stylesheet
   style.css
   ============================================================= */

/* ── FONTS & VARIABLES ────────────────────────────────────────── */
:root {
  --cyber-blue:   #00d4ff;
  --cyber-purple: #a855f7;
  --neon-green:   #00ff88;
  --neon-pink:    #ff006e;
  --dark-bg:      #050510;
  --dark-card:    #0a0a1a;
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --font-orb:     'Orbitron', sans-serif;
  --font-inter:   'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: var(--font-inter);
  overflow-x: hidden;
  cursor: none; /* We use custom cursor */
}

/* ── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyber-blue), var(--cyber-purple));
  border-radius: 3px;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────────── */
.cursor-glow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  pointer-events: none;
}
.cursor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyber-blue);
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  box-shadow: 0 0 10px var(--cyber-blue), 0 0 20px var(--cyber-blue);
}
body:hover .cursor-glow { opacity: 1; }

/* ── SELECTION ─────────────────────────────────────────────────── */
::selection {
  background: rgba(0,212,255,0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--cyber-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-text {
  text-shadow: 0 0 20px var(--cyber-blue), 0 0 40px rgba(0,212,255,0.5);
}
.glow-text-sm {
  text-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.hero-text-glow {
  text-shadow: 0 0 30px rgba(255,255,255,0.2), 0 0 60px rgba(255,255,255,0.1);
}
.typing-cursor {
  animation: blinkCursor 0.75s step-end infinite;
  color: var(--cyber-blue);
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════════ */
#loading-screen {
  background: radial-gradient(ellipse at center, #0a0a2e 0%, var(--dark-bg) 70%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}

/* Brain Rings Loader */
.loader-brain {
  position: relative;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spinRing 2s linear infinite;
}
.ring-1 {
  width: 100px; height: 100px;
  border-top-color: var(--cyber-blue);
  border-right-color: transparent;
  animation-duration: 1.2s;
}
.ring-2 {
  width: 74px; height: 74px;
  border-right-color: var(--cyber-purple);
  border-bottom-color: transparent;
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.ring-3 {
  width: 48px; height: 48px;
  border-bottom-color: var(--neon-pink);
  border-left-color: transparent;
  animation-duration: 1s;
}
.brain-icon { z-index: 1; }
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.glass-nav {
  background: rgba(5,5,16,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled .glass-nav {
  background: rgba(5,5,16,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 1px 0 rgba(0,212,255,0.1);
}

/* Nav links */
.nav-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--cyber-blue);
  transition: left 0.3s, right 0.3s;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(0,212,255,0.07);
}
.nav-link:hover::after, .nav-link.active::after {
  left: 14px; right: 14px;
}

/* Mobile nav link */
.mobile-nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: #9ca3af;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-link:hover {
  color: var(--cyber-blue);
  background: rgba(0,212,255,0.07);
}

/* Nav Buttons */
.nav-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-btn:hover {
  color: var(--cyber-blue);
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
}
.nav-btn.active {
  color: var(--cyber-blue);
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
}

/* Logo Orb */
.logo-orb {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(0,212,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.3s;
}
.logo-orb:hover {
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.logo-orb-sm {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(0,212,255,0.3);
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
#hero {
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0,50,80,0.5) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(80,0,100,0.3) 0%, transparent 60%);
}

/* Grid Background */
.grid-background {
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Glass Badge */
.glass-badge {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-green);
  letter-spacing: 0.15em;
}

/* Hero Title Lines */
.hero-title-line {
  display: block;
  line-height: 1;
}

/* Floating Lights */
.floating-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatLight 8s ease-in-out infinite;
}
.light-1 { width:400px;height:400px;background:var(--cyber-blue);  top:-10%;left:-5%;   animation-delay:0s;  animation-duration:9s; }
.light-2 { width:300px;height:300px;background:var(--cyber-purple);top:30%;right:-5%;  animation-delay:1.5s;animation-duration:11s;}
.light-3 { width:250px;height:250px;background:var(--neon-pink);   bottom:10%;left:30%;animation-delay:3s;  animation-duration:7s; }
.light-4 { width:200px;height:200px;background:var(--neon-green);  top:50%;left:10%;  animation-delay:4.5s;animation-duration:13s;}
.light-5 { width:350px;height:350px;background:var(--cyber-blue);  bottom:-5%;right:5%;animation-delay:2s; animation-duration:10s;}
@keyframes floatLight {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-30px) scale(1.1); }
  66%     { transform: translate(-20px,20px) scale(0.9); }
}

/* Floating AI Icons */
.floating-icon {
  position: absolute;
  animation: floatIcon 6s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-20px) rotate(5deg); }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  color: #fff;
  font-family: var(--font-orb);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid rgba(0,212,255,0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,212,255,0.3), 0 0 30px rgba(0,212,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,212,255,0.5), 0 0 50px rgba(0,212,255,0.2);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: var(--font-orb);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  color: #fff;
  font-family: var(--font-inter);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}
.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,212,255,0.4);
}

/* Ripple Effect */
.ripple-btn { overflow: hidden; }
.ripple-btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BADGE
   ═══════════════════════════════════════════════════════════════ */
.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyber-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   GLASS CARDS (About Section)
   ═══════════════════════════════════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.05);
}

.card-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

/* Shine Effect on cards */
.card-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.glass-card:hover .card-shine { left: 150%; }

/* Smaller glass card variant */
.glass-card-sm {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card-sm:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyber-blue), var(--cyber-purple), var(--neon-pink));
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  padding-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  font-family: var(--font-orb);
  font-size: 0.75rem;
  color: #fff;
  border: 2px solid;
}
.dot-1 { background: rgba(0,212,255,0.2);   border-color: var(--cyber-blue); }
.dot-2 { background: rgba(0,255,136,0.2);   border-color: var(--neon-green); }
.dot-3 { background: rgba(168,85,247,0.2);  border-color: var(--cyber-purple); }
.dot-4 { background: rgba(251,191,36,0.2);  border-color: #fbbf24; }
.dot-5 { background: rgba(248,113,113,0.2); border-color: #f87171; }
.dot-6 { background: rgba(0,212,255,0.15);  border-color: var(--cyber-blue); box-shadow: 0 0 20px rgba(0,212,255,0.5); }

/* Timeline icon */
.timeline-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Timeline card */
.timeline-card {
  width: 100%;
  max-width: 400px;
}
.timeline-final {
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 0 30px rgba(0,212,255,0.1);
}

/* Tech tags */
.tech-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyber-blue);
  transition: background 0.2s;
}
.tech-tag:hover { background: rgba(0,212,255,0.15); }
.tech-tag.tag-gold {
  background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.3);
  color: #fbbf24;
}
.tech-tag-sm {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #9ca3af;
}

/* Responsive Timeline */
@media (max-width: 640px) {
  .timeline-container::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 55px;
  }
  .timeline-dot { left: 20px; }
  .timeline-card { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s, border-color 0.3s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  border-color: rgba(0,212,255,0.2);
}
.project-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-img-content {
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s;
}
.project-card:hover .project-img-content { transform: scale(1.1); }
.project-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyber-blue);
  letter-spacing: 0.05em;
}
.project-body { padding: 20px; }

/* Project glow */
.project-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s;
  box-shadow: 0 0 30px var(--glow-color, var(--cyber-blue));
  pointer-events: none;
}
.project-card:hover .project-glow { opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   WHY JOIN SECTION
   ═══════════════════════════════════════════════════════════════ */
.why-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.1);
}
.gallery-item-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 20px;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-item-inner {
  background: rgba(0,212,255,0.05);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img-wrap {
  width: 600px;
  max-width: 90vw;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border-radius: 20px;
  border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lightbox-close {
  position: absolute;
  top: -50px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,0,110,0.3); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover { background: rgba(0,212,255,0.3); transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { background: rgba(0,212,255,0.3); transform: translateY(-50%) scale(1.1); }
.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   STATISTICS
   ═══════════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(0,212,255,0.25); }
.stat-card:hover::before { opacity: 1; }

.stat-icon { margin-bottom: 16px; }
.stat-number {
  font-family: var(--font-orb);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-family: var(--font-orb);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}
.stat-label-th {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════════
   COMMITTEE
   ═══════════════════════════════════════════════════════════════ */
.committee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform 0.3s;
}
.committee-card:hover { transform: translateY(-8px); }

.committee-avatar {
  position: relative;
  width: 100px; height: 100px;
}
.avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.committee-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spinRingCommittee 4s linear infinite;
}
.ring-gold   { border-top-color: #fbbf24; border-right-color: transparent; }
.ring-silver { border-top-color: #9ca3af; border-right-color: transparent; }
.ring-cyan   { border-top-color: var(--cyber-blue);   border-right-color: transparent; }
.ring-purple { border-top-color: var(--cyber-purple); border-right-color: transparent; }
@keyframes spinRingCommittee { to { transform: rotate(360deg); } }

.committee-info {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
}
.committee-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.role-gold   { color: #fbbf24; }
.role-silver { color: #9ca3af; }
.role-cyan   { color: var(--cyber-blue); }
.role-purple { color: var(--cyber-purple); }

.committee-skills { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.skill-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s;
}
.skill-dot:hover { transform: scale(1.5); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
}
.testimonial-card {
  min-width: 100%;
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
}
.testimonial-quote { margin-bottom: 16px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Carousel Controls */
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
  color: var(--cyber-blue);
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--cyber-blue);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--cyber-blue);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ (ACCORDION)
   ═══════════════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(0,212,255,0.25); }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: #e5e7eb;
  font-family: var(--font-inter);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.faq-question:hover { color: #fff; }
.faq-item.open .faq-question { color: var(--cyber-blue); }
.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
  font-size: 0.75rem;
  color: #6b7280;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--cyber-blue); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: #9ca3af;
  font-family: var(--font-inter);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.social-link:hover {
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.15);
  transform: translateX(4px);
}
.social-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* QR Placeholder */
.qr-placeholder {
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(0,212,255,0.3);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Map Placeholder */
.map-placeholder {
  height: 200px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5,5,16,0.8), rgba(10,10,30,0.8));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Join CTA Card */
.join-cta-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(168,85,247,0.06));
  border-color: rgba(0,212,255,0.2);
  position: relative;
  overflow: hidden;
}
.join-cta-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  top: -50px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,212,255,0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 8px 25px rgba(0,212,255,0.5);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   MATRIX RAIN CANVAS
   ═══════════════════════════════════════════════════════════════ */
#matrix-canvas { opacity: 0; transition: opacity 0.7s; }
#matrix-canvas.active { opacity: 0.12; }

/* ═══════════════════════════════════════════════════════════════
   SECTION SEPARATORS (subtle glow line)
   ═══════════════════════════════════════════════════════════════ */
section + section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.1) 50%, transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════════
   NEON BORDER ANIMATION
   ═══════════════════════════════════════════════════════════════ */
@keyframes neonBorder {
  0%,100% { box-shadow: 0 0 5px var(--cyber-blue), 0 0 10px rgba(0,212,255,0.3); }
  50%     { box-shadow: 0 0 15px var(--cyber-blue), 0 0 30px rgba(0,212,255,0.5); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stat-number { font-size: 2.2rem; }
  .lightbox-prev { left: -10px; }
  .lightbox-next { right: -10px; }
  .testimonial-card { padding: 24px 20px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

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

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE SUPPORT
   ═══════════════════════════════════════════════════════════════ */
body.light-mode {
  --dark-bg:      #f0f4ff;
  --dark-card:    #e8eeff;
  --glass-bg:     rgba(0,0,0,0.04);
  --glass-border: rgba(0,0,0,0.08);
  color: #0a0a1a;
}
body.light-mode .nav-link { color: #374151; }
body.light-mode .glass-nav {
  background: rgba(240,244,255,0.85);
  border-bottom-color: rgba(0,0,0,0.08);
}
body.light-mode .glow-text {
  text-shadow: 0 0 20px rgba(0,150,200,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════ */
#scroll-progress {
  transition: width 0.1s linear;
  height: 3px;
  top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HOVER PHYSICS (tilt)
   ═══════════════════════════════════════════════════════════════ */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
