/* ============================================
   iTrax Club — Design System & Global Styles
   Inspired by a3k.tech transitions
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- SURGICAL SCROLLBAR REMOVAL (Add to top of file) --- */

/* 1. Universal hide for Chrome, Safari, and Edge */
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 2. Universal hide for Firefox and IE */
html {
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* IE/Edge */
}

/* 3. Essential Wiggle Protection */
body {
  overflow-x: hidden !important;
  /* Prevents horizontal scroll from side-animations */
  scrollbar-width: none !important;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}

:root {
  /* ---- Colors (Elite Navy & Cyan) ---- */
  --bg-primary: #030712;
  /* Tailwind slate-950 */
  --bg-secondary: #081028;
  /* Slightly lighter navy */
  --bg-card: rgba(15, 23, 42, 0.4);
  /* Sheer slate-800 */
  --bg-card-hover: rgba(15, 23, 42, 0.7);
  --surface: rgba(15, 23, 42, 0.6);

  --accent-deep: #1e3a8a;
  /* blue-900 */
  --accent: #2563eb;
  /* blue-600 */
  --accent-bright: #38bdf8;
  /* sky-400 */
  --accent-glow: rgba(56, 189, 248, 0.15);

  --live-red: #f43f5e;
  /* rose-500 */
  --live-glow: rgba(244, 63, 94, 0.4);

  --text: #f8fafc;
  /* slate-50 */
  --text-muted: #cbd5e1;
  /* slate-300 for better contrast */
  --text-dim: #94a3b8;
  /* slate-400 for better readability */

  /* ---- Typography ---- */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ---- Spacing ---- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

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

  /* ---- Transitions ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
  /* Firefox: hide scrollbar */
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  max-width: 100vw;
  cursor: none;
  /* Hide default cursor for custom cursor */
}

/* ====================
   GLOBAL WRAPPER
   ==================== */
.page-wrapper {
  width: 100%;
  position: relative;
}

/* ====================
   HIDE ALL SCROLLBARS
   (page still scrolls, but no visible scrollbar)
   ==================== */
::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

/* ====================
   CUSTOM CURSOR & TRANSITIONS
   ==================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  /* Above everything */
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-bright);
  border-radius: 50%;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Page Transition Wipe */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #030712;
  /* Deep Navy */
  z-index: 99999;
  pointer-events: none;
  transform: translateY(100%);
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Parallax gradient meshes instead of hard radial glows */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

body::after {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.03) 0%, transparent 40%);
  transform: translate(20vw, 20vh);
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
  cursor: none;
}

a:hover {
  color: #7dd3fc;
}

button,
.btn,
.social-links a {
  cursor: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ====================
   PAGE LOADER
   ==================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 6px;
  color: var(--accent-bright);
  position: relative;
}
/* Logo images pointer-events disabled to prevent Google Lens/visual search icon overlays */
.navbar .logo img,
.hero-logo,
.fcb-top img {
  pointer-events: none;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(56, 189, 248, 0.15);
  margin: var(--space-lg) auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  animation: loaderProgress 1.2s var(--ease-out) forwards;
}

@keyframes loaderProgress {
  to {
    width: 100%;
  }
}

/* ====================
   ANIMATED GRID BACKGROUND
   ==================== */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Floating particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-bright);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 15s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 10s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-duration: 14s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  left: 70%;
  animation-duration: 11s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-duration: 13s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  left: 15%;
  animation-duration: 16s;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  left: 60%;
  animation-duration: 9s;
  animation-delay: 2.5s;
}

.particle:nth-child(9) {
  left: 35%;
  animation-duration: 12s;
  animation-delay: 7s;
}

.particle:nth-child(10) {
  left: 80%;
  animation-duration: 14s;
  animation-delay: 4.5s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
    transform: translateY(80vh) scale(1);
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}

/* ====================
   NAVBAR
   ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 10, 31, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  transition: all 0.4s var(--ease-out);
  transform: translateY(-100%);
  animation: navSlideDown 0.8s var(--ease-out) 1.2s forwards;
}

@keyframes navSlideDown {
  to {
    transform: translateY(0);
  }
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar .logo img {
  height: 120px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transition: transform 0.4s var(--ease-spring);
  mix-blend-mode: lighten;
}

.navbar .logo img:hover {
  transform: scale(1.08) rotate(-2deg);
}

.navbar .logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  transition: width 0.35s var(--ease-out), left 0.35s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 73px;
    /* Right below navbar */
    left: 0;
    right: 0;
    background: rgba(6, 10, 31, 0.98);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    flex-direction: column;
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Animation setup */
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-spring);
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
    padding: var(--space-sm) var(--space-xl);
    display: block;
    width: 100%;
    text-align: center;
  }
}


/* ====================
   HERO SECTION
   ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden; /* Prevent orbits from spilling */
  max-width: 100vw; /* Hard limit horizontal spread on mobile */
  box-sizing: border-box;
}

.hero-logo {
  width: 550px;
  /* Increased from 410px */
  max-width: 90vw;
  /* Prevent overflow on small screens */
  margin-bottom: var(--space-xl);
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.3));
  border-radius: var(--radius-lg);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.7) translateY(30px);
  animation: heroLogoIn 1s var(--ease-spring) 1.4s forwards;
  mix-blend-mode: lighten;
}

@keyframes heroLogoIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Continuous hover float for logo */
.hero-logo.loaded {
  animation: heroLogoIn 1s var(--ease-spring) 1.4s forwards, float 6s ease-in-out 2.4s infinite;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #fff 20%, var(--accent-bright) 50%, var(--accent) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s var(--ease-out) 1.6s forwards;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s var(--ease-out) 1.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s var(--ease-out) 2s forwards;
}

/* Animated orbits behind hero */
.hero-orbits {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  max-width: 100vw;
  max-height: 100vh;
  animation: fadeIn 2s var(--ease-out) 1.2s forwards;
}

.hero-orbits .ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.hero-orbits .ring:nth-child(1) {
  width: 100%;
  height: 100%;
}

.hero-orbits .ring:nth-child(2) {
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
  animation-duration: 30s;
  animation-direction: reverse;
  border-color: rgba(56, 189, 248, 0.08);
}

.hero-orbits .ring:nth-child(3) {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation-duration: 25s;
  border-color: rgba(37, 99, 235, 0.06);
}

/* Crosshair decorative element */
.crosshair {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.15;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent-bright);
}

.crosshair::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.crosshair::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* ====================
   BUTTONS
   ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-bright);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-bright);
  transform: translateY(-3px) scale(1.02);
  color: var(--accent-bright);
}

/* ====================
   SECTIONS
   ==================== */
.section {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 1200px;
  width: 100%;
  /* Ensure secton respects max container on mobile */
  margin: 0 auto;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-header .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  margin: var(--space-lg) auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out) 0.3s;
}

.section-header.visible .accent-line {
  transform: scaleX(1);
}

/* Section icon (replaces emojis) */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.15);
  margin-bottom: var(--space-md);
  color: var(--accent-bright);
}

.section-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ====================
   BENTO GRID LAYOUTS & CARDS
   ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl) var(--space-lg);
  position: relative;
  z-index: 10;
}

/* --- MINIMALIST HOMEPAGE DESIGN SYSTEM --- */
.massive-text-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
}

.massive-text-container {
  max-width: 1200px;
  width: 100%;
}

.massive-text {
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.text-accent {
  color: var(--accent-bright);
}

.horizontal-scroll-section {
  padding: var(--space-3xl) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.massive-outline-text {
  font-size: clamp(6rem, 15vw, 18rem);
  font-family: var(--font-heading);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1;
}

.massive-outline-text .filled {
  color: var(--accent-bright);
  -webkit-text-stroke: 0;
}

.scroll-link,
.scroll-link:visited,
.scroll-link:active,
.scroll-link:focus {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  display: inline-block;
  padding: 0 1vw;
}

.scroll-link.filled {
  color: #ffffff;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.scroll-link:hover {
  color: #ffffff;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.immersive-features {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  margin-bottom: 20vh;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  max-width: 500px;
}

.feature-title {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-image-container {
  flex: 1.5;
  height: 70vh;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.02);
}

.feature-image-container img {
  width: 100%;
  height: 130%; /* Extra height for parallax scrolling */
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  will-change: transform;
}

@media (max-width: 900px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    text-align: left;
  }
  .feature-image-container {
    width: 100%;
    height: 50vh;
  }
}

.massive-stats-section {
  padding: 15vh var(--space-xl) 25vh;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-3xl);
}

.massive-stat {
  text-align: center;
}

.massive-stat .stat-num {
  font-size: clamp(6rem, 15vw, 15rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text) 20%, rgba(255,255,255,0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.massive-stat .stat-desc {
  font-size: 1.2rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

/* The Glassy Bento Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  /* Massive pill/bento radius */
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.6s var(--ease-spring), background-color 0.4s var(--ease-out);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1;
  min-width: 0;
  /* Prevents CSS grid blowout */
  max-width: 100%;
}

/* Internal subtle radial gradient strictly on hover for soft illumination */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.card:hover::before {
  opacity: 1;
}

.card-image {
  display: block;
  flex-shrink: 0;
  /* Prevents flex-column from crushing the width back down */
  width: calc(100% + 4rem);
  /* Counteracts the 2rem card padding */
  max-width: none;
  /* Prevents global img constraints from leaving gaps */
  margin: -2rem -2rem var(--space-lg) -2rem;
  /* Hardcoded to pull image fully out of the padded container */
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.6s var(--ease-spring);
}

.card:hover .card-image {
  transform: scale(1.03);
}

/* Grid helpers for legacy fallback until HTML is updated */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ====================
   STATS
   ==================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-3xl) var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ====================
   ABOUT CARDS
   ==================== */
.about-card {
  text-align: center;
}

.about-card .icon-wrap {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--accent-bright);
  transition: all 0.5s var(--ease-spring);
}

.about-card .icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card:hover .icon-wrap {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 25px var(--accent-glow);
  border-color: var(--accent-bright);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ====================
   EXECOM / TEAM CARDS
   ==================== */
/* ====================
   EXECOM / TEAM CARDS (POSTER DESIGN)
   ==================== */
.group-header {
  width: 100%;
  text-align: center;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-xl);
}

.group-header h2 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--text), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.group-header .accent-line {
  display: block;
  width: 40px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 3px;
}

.poster-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(8, 16, 40, 0.75) 100%);
  border: 1px solid rgba(56, 189, 248, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.5s var(--ease-spring);
  height: 100%;
}

.poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-bright);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.12);
}

.poster-avatar {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-bright);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(56, 189, 248, 0.1));
  border: 1.5px solid rgba(56, 189, 248, 0.15);
  box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), border-color 0.5s, box-shadow 0.5s;
}

/* scanlines effect inside the avatar */
.poster-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.poster-card:hover .poster-avatar {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent-bright);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.poster-info {
  width: 100%;
}

.poster-card .name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.poster-card .role {
  font-size: 0.8rem;
  color: var(--accent-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: var(--space-sm);
}

.poster-card .bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  min-height: 52px;
}

/* SVG Social link buttons */
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-spring);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-3px) scale(1.08);
}

/* ====================
   EVENTS
   ==================== */
.event-card {
  display: flex;
  flex-direction: column;
}

.event-card .event-date {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--accent-bright);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.event-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.event-card .event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-live {
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse-dot 1.5s infinite;
}

.badge-upcoming {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-bright);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-category {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

/* Live event card styling removed at user request */

/* ====================
   PAGE HEADER (for sub-pages)
   ==================== */
.page-header {
  padding-top: 185px !important; /* Force page headers to always clear the fixed navbar */
  padding-bottom: var(--space-xl);
  text-align: center;
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 180px !important;
  }
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #fff, var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ====================
   FOOTER
   ==================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  padding: var(--space-2xl);
  text-align: center;
  margin-top: var(--space-3xl);
}

.footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-bright);
}

/* ====================
   SCROLL REVEAL ANIMATIONS (enhanced)
   ==================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Staggered children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.12s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.19s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.26s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.33s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 0.40s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(7) {
  transition-delay: 0.47s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(8) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-spring);
}

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

/* Premium Scroll Reveals (dottodot.es inspired) */
.reveal-clip {
  display: block;
}
.reveal-clip > span {
  display: inline-block;
  clip-path: inset(100% 0 0 0);
  transform: translateY(60px) skewY(3deg);
  transform-origin: left top;
  transition: clip-path 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal-clip.visible > span {
  clip-path: inset(0% 0 0 0);
  transform: translateY(0) skewY(0);
}

.reveal-skew {
  opacity: 0;
  transform: translateY(50px) skewY(2deg);
  transform-origin: left top;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal-skew.visible {
  opacity: 1;
  transform: translateY(0) skewY(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-up-hard {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up-hard.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================
   LAYOUT UTILITIES
   ==================== */
.row-layout {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xl);
  text-align: left;
}

.half-bg-image {
  width: 50% !important;
  height: 100% !important;
  margin: 0 !important;
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.25;
  z-index: -2;
  object-fit: cover;
  border-bottom: none !important;
}

.content-overlay {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

@media (max-width: 768px) {
  .row-layout {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left;
  }
  
  .half-bg-image {
    width: 100% !important;
    height: 50% !important;
    right: 0;
    top: 0;
    opacity: 0.15;
  }

  .content-overlay {
    max-width: 100%;
  }
}

/* ====================
   KEYFRAMES
   ==================== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(56, 189, 248, 0.1);
  }
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {

  .col-span-3,
  .col-span-4 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {

  /* Hide custom scrollbar on mobile — prevents double scrollbar */
  ::-webkit-scrollbar {
    display: none;
  }

  html,
  body {
    scrollbar-width: none;
    /* Firefox */
  }

  .navbar {
    padding: var(--space-md);
  }

  /* The hamburger and nav-links mobile styles are handled higher up in the file */

  /* Reset spans and bento aesthetics for mobile */
  .col-span-1,
  .col-span-2,
  .col-span-3,
  .col-span-4 {
    grid-column: span 1 !important;
  }

  .row-span-1,
  .row-span-2 {
    grid-row: span 1;
  }

  .bento-grid .stagger-down {
    margin-top: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    /* Single column on mobile */
  }

  .bento-grid .card {
    flex-direction: column !important;
    padding: var(--space-lg);
    /* Reduce card padding on mobile */
  }

  .card-image {
    width: calc(100% + 3rem);
    /* Match new padding (1.5rem + 1.5rem) */
    margin: -1.5rem -1.5rem var(--space-lg) -1.5rem;
  }

  .stats-bar {
    gap: var(--space-xl);
  }

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

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
  }

  .hero-logo {
    width: 160px;
  }

  .grid-bg {
    display: none;
  }

  /* Events mobile adjustments */
  .event-card .event-footer {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .countdown-item .count-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    letter-spacing: -0.02em;
  }

  .hero .tagline {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

/* ====================
   UTILITY
   ==================== */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  margin: var(--space-3xl) 0;
}

/* Countdown styles */
.countdown {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.countdown-item {
  text-align: center;
}

.countdown-item .count-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1;
}

.countdown-item .count-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

/* --- ADMIN PANEL & MODALS --- */
.admin-login-trigger {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s;
}

.admin-login-trigger:hover {
  color: var(--accent-bright);
}

.admin-status-bar {
  position: fixed;
  top: 73px; /* Just below navbar */
  left: 0;
  right: 0;
  background: rgba(37, 99, 235, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: var(--space-sm) var(--space-2xl);
  animation: slideDown 0.4s var(--ease-out);
}

.status-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-bright);
}

.admin-actions {
  display: flex;
  gap: var(--space-md);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: var(--space-2xl);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
  animation: scaleUp 0.4s var(--ease-spring);
}

.modal-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #fff, var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.modal-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

/* Edit / Delete overlay controls for admin event cards */
.admin-card-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.admin-card-controls button {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-edit {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-edit:hover {
  background: var(--accent-bright);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-delete:hover {
  background: var(--live-red);
  color: #fff;
}

@media (max-width: 768px) {
  .admin-status-bar {
    top: 73px;
    padding: var(--space-sm) var(--space-md);
  }
  .status-content {
    font-size: 0.8rem;
  }
}

/* --- GALLERY MEDIA & FILTER BAR --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid rgba(56, 189, 248, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-bright);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.15);
}

.gallery-media {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.5s var(--ease-spring), border-color 0.5s, box-shadow 0.5s;
}

.gallery-media:hover {
  transform: scale(1.02);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

/* ================================================
   EXECOM FLIP CARD SYSTEM
   ================================================ */

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-2xl);
}

/* --- Card Shell --- */
.flip-card {
  height: 390px;
  perspective: 1200px;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-lg);
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius-lg);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Fix pointer events on flip card sides so back-side links are clickable */
.flip-card .flip-card-front {
  pointer-events: auto;
}
.flip-card .flip-card-back {
  pointer-events: none;
}
.flip-card.is-flipped .flip-card-front {
  pointer-events: none;
}
.flip-card.is-flipped .flip-card-back {
  pointer-events: auto;
}

/* ---- FRONT — Poster Style ---- */
.flip-card-front {
  background: #050c1a;
  border: 1.5px solid rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.flip-card:hover .flip-card-front {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56,189,248,0.15);
}

/* Watermark repeating role text */
.fcf-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  padding: 0.5rem 0;
}

.fcf-watermark span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  opacity: 0.055;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  user-select: none;
}

/* Photo layer */
.fcf-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 88px;
  z-index: 1;
  overflow: hidden;
}

.fcf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.95) contrast(1.05);
  pointer-events: none;
  transition: transform 0.55s var(--ease-out);
  transform: scaleX(var(--img-scale-x, var(--img-scale, 1.15))) scaleY(var(--img-scale-y, var(--img-scale, 1.15))) translateY(var(--img-y, 0px));
}

.flip-card:hover .fcf-photo img {
  transform: scaleX(calc(var(--img-scale-x, var(--img-scale, 1.15)) + 0.07)) scaleY(calc(var(--img-scale-y, var(--img-scale, 1.15)) + 0.07)) translateY(var(--img-y, 0px));
}

/* Initials fallback (when no photo) */
.fcf-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a1628 0%, #132245 100%);
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* Gradient vignette fading photo into nameplate */
.fcf-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 88px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #050c1a);
  z-index: 2;
  pointer-events: none;
}

/* Name plate */
.fcf-nameplate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  padding: 0.8rem 1rem 0.7rem;
  z-index: 3;
  background: #050c1a;
  border-top: 2.5px solid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.fcf-role-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
}

.fcf-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* "Tap to flip" hint */
.fcf-hint {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  pointer-events: none;
}

/* ---- BACK — Bio Style ---- */
.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #091525 0%, #040d1c 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Back watermark — same role text cloned from front, lower opacity */
.fcb-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  padding: 0.5rem 0;
  opacity: 0.6; /* applied on top of the span opacity */
}

.fcb-watermark span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  opacity: 0.045;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  user-select: none;
}

/* Ensure all back content sits above the watermark */
.flip-card-back > *:not(.fcb-watermark) {
  position: relative;
  z-index: 1;
}

.fcb-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.fcb-top img {
  height: 24px;
  width: auto;
  mix-blend-mode: lighten;
  opacity: 0.85;
}

.fcb-badge {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(56, 189, 248, 0.65);
  font-family: var(--font-body);
}

.fcb-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 3px;
}

.fcb-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
}

.fcb-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: var(--font-body);
}

.fcb-socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.5rem;
}

/* ---- Team Accent Colors ---- */
.accent-cyan .fcf-nameplate   { border-color: #38bdf8; }
.accent-cyan .fcf-role-label  { color: #38bdf8; }
.accent-cyan .fcb-role         { color: #38bdf8; }

.accent-purple .fcf-nameplate  { border-color: #a78bfa; }
.accent-purple .fcf-role-label { color: #a78bfa; }
.accent-purple .fcb-role       { color: #a78bfa; }
.accent-purple .fcf-initials   { color: #a78bfa; }

.accent-pink .fcf-nameplate    { border-color: #f472b6; }
.accent-pink .fcf-role-label   { color: #f472b6; }
.accent-pink .fcb-role         { color: #f472b6; }
.accent-pink .fcf-initials     { color: #f472b6; }

.accent-green .fcf-nameplate   { border-color: #4ade80; }
.accent-green .fcf-role-label  { color: #4ade80; }
.accent-green .fcb-role        { color: #4ade80; }
.accent-green .fcf-initials    { color: #4ade80; }

.accent-orange .fcf-nameplate  { border-color: #fb923c; }
.accent-orange .fcf-role-label { color: #fb923c; }
.accent-orange .fcb-role       { color: #fb923c; }
.accent-orange .fcf-initials   { color: #fb923c; }

.accent-amber .fcf-nameplate   { border-color: #fbbf24; }
.accent-amber .fcf-role-label  { color: #fbbf24; }
.accent-amber .fcb-role        { color: #fbbf24; }
.accent-amber .fcf-initials    { color: #fbbf24; }

.accent-red .fcf-nameplate     { border-color: #f87171; }
.accent-red .fcf-role-label    { color: #f87171; }
.accent-red .fcb-role          { color: #f87171; }
.accent-red .fcf-initials      { color: #f87171; }

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

@media (max-width: 768px) {
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  /* Make the single teacher card grid narrower to match the mobile aspect ratio */
  .flip-grid[style*="grid-template-columns"] {
    grid-template-columns: 220px !important;
  }
  .flip-card {
    height: 380px;
  }
}

@media (max-width: 500px) {
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  /* Make the single teacher card grid narrower on small screens */
  .flip-grid[style*="grid-template-columns"] {
    grid-template-columns: 190px !important;
  }
  .flip-card {
    height: 330px;
  }
  .fcf-nameplate {
    height: 70px;
    padding: 0.5rem 0.6rem;
  }
  .fcf-gradient {
    bottom: 70px;
    height: 50px;
  }
  .fcf-role-label {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }
  .fcf-name {
    font-size: 0.72rem;
  }
  .flip-card-back {
    padding: 0.7rem;
  }
  .fcb-top {
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }
  .fcb-badge {
    font-size: 0.52rem;
  }
  .fcb-name {
    font-size: 0.78rem;
  }
  .fcb-role {
    font-size: 0.6rem !important;
    margin-bottom: 0.4rem !important;
  }
  .fcb-bio {
    font-size: 0.62rem;
    line-height: 1.25;
  }
  .fcf-watermark span {
    font-size: 1.5rem;
  }
}

/* ============================================
   EVENTS & GALLERY GRID (COLLAGE SYSTEM)
   ============================================ */
.collage-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.collage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  grid-column: span 4; /* Default 3 columns in 12-column grid */
}

.collage-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-5px);
}

.col-span-2 {
  grid-column: span 6; /* 2 columns (half width) */
}

@media (max-width: 900px) {
  .collage-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .collage-card,
  .collage-card.col-span-2 {
    grid-column: span 1 !important;
  }
}

.gallery-media {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-media:hover {
  transform: scale(1.05);
}

/* Mobile overrides for specific member photos */
@media (max-width: 768px) {
  #card-neha img { --img-scale: 1.15 !important; --img-y: 10px !important; }
  #card-divya img { --img-scale: 1.15 !important; --img-y: 5px !important; }
  #card-amina img { --img-scale: 1.5 !important; --img-y: -5px !important; }
  #card-merin img { --img-scale: 1.3 !important; --img-y: -5px !important; }
  #card-freddie img { --img-scale: 1.2 !important; --img-y: -10px !important; }
  #card-nandana img { --img-scale: 1.15 !important; --img-y: 5px !important; }
  #card-mathew img { --img-scale: 1.15 !important; --img-y: 0px !important; }
  #card-mithra img { --img-scale: 1.35 !important; --img-y: 8px !important; }
  #card-gautham img { --img-scale: 1.15 !important; --img-y: 5px !important; }
  #card-nathaniel img { --img-scale: 1.8 !important; --img-y: -5px !important; }
}

@media (max-width: 500px) {
  #card-neha img { --img-scale: 1.1 !important; --img-y: 15px !important; }
  #card-divya img { --img-scale: 1.1 !important; --img-y: 8px !important; }
  #card-amina img { --img-scale: 1.4 !important; --img-y: 0px !important; }
  #card-merin img { --img-scale: 1.25 !important; --img-y: 0px !important; }
  #card-freddie img { --img-scale: 1.15 !important; --img-y: -5px !important; }
  #card-nandana img { --img-scale: 1.1 !important; --img-y: 8px !important; }
  #card-mathew img { --img-scale: 1.1 !important; --img-y: 5px !important; }
  #card-mithra img { --img-scale: 1.25 !important; --img-y: 5px !important; }
  #card-gautham img { --img-scale: 1.1 !important; --img-y: 8px !important; }
  #card-nathaniel img { --img-scale: 1.6 !important; --img-y: 0px !important; }
}

/* ============================================
   BENTO GRID SYSTEM FOR GALLERY
   ============================================ */
.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px; /* Base height for 1x1 card */
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* Bento card spans */
.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  cursor: pointer;
}

.bento-card.span-normal {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-card.span-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card.span-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-card.span-hero {
  grid-column: span 2;
  grid-row: span 2;
}

/* Media (image/video) container to fill the bento card */
.bento-media-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bento-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  border-radius: var(--radius-lg);
  border: none;
}

.bento-card:hover .bento-media {
  transform: scale(1.05);
}

.bento-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
}

/* Overlay gradient for text readability */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0.4) 50%, rgba(3, 7, 18, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Card content */
.bento-content {
  position: relative;
  z-index: 3;
  padding: var(--space-xl);
  color: var(--text);
  width: 100%;
  pointer-events: none;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--text);
}

.bento-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badge style inside the content */
.bento-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Responsive bento layouts */
@media (max-width: 1024px) {
  .gallery-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-hero {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-card.span-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .gallery-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .bento-card.span-hero,
  .bento-card.span-wide,
  .bento-card.span-tall,
  .bento-card.span-normal {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* ============================================
   LIGHTBOX VIEWER SYSTEM
   ============================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  align-items: center;
  justify-content: center;
}

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

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1010;
  transition: color 0.3s var(--ease);
}

.lightbox-close-btn:hover {
  color: var(--text);
}

.lightbox-content {
  width: 95vw;
  height: 85vh;
  max-width: 1400px;
  background: #081028;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 120px 1fr 350px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Left Panel: Thumbnails */
.lightbox-sidebar {
  background: rgba(3, 7, 18, 0.4);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: var(--space-md) 0;
}

.lightbox-thumbnails-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-xs);
}

/* Custom scrollbar for thumbnails */
.lightbox-thumbnails-scroll::-webkit-scrollbar {
  display: none;
}

.lightbox-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.lightbox-thumb img,
.lightbox-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active {
  border-color: var(--accent-bright);
  opacity: 1;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.thumb-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs) 0;
  transition: color 0.3s;
  display: flex;
  justify-content: center;
}

.thumb-nav-btn:hover {
  color: var(--text);
}

/* Center Panel: Main Viewer */
.lightbox-main-viewer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: var(--space-xl);
  background: #030712;
  height: 100%;
  overflow: hidden;
}

.lightbox-media-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-media-container img,
.lightbox-media-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-media-container iframe {
  width: 100%;
  height: 100%;
  max-height: 500px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
}

.lightbox-nav-arrow {
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 10;
  user-select: none;
}

.lightbox-nav-arrow:hover {
  background: var(--accent);
  border-color: var(--accent-bright);
}

.lightbox-nav-arrow.prev {
  position: absolute;
  left: 1.5rem;
}

.lightbox-nav-arrow.next {
  position: absolute;
  right: 1.5rem;
}

/* Right Panel: Information */
.lightbox-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #081028;
  border-left: 1px solid var(--border-light);
  padding: var(--space-2xl);
  overflow: hidden;
}

.lightbox-info-scroll {
  flex: 1;
  overflow-y: auto;
}

/* Custom scrollbar for info panel */
.lightbox-info-scroll::-webkit-scrollbar {
  display: none;
}

.lightbox-info-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.lightbox-subtitle {
  font-size: 0.9rem;
  color: var(--accent-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.lightbox-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.lightbox-divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: var(--space-lg);
}

.lightbox-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.lightbox-desc-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.lightbox-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.lightbox-tag {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--accent-bright);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.lightbox-action-container {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--accent-bright);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.lightbox-btn:hover {
  background: var(--accent-bright);
  color: #030712;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.lightbox-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Responsive Lightbox */
@media (max-width: 1024px) {
  .lightbox-content {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1.5fr;
    height: 90vh;
  }
  .lightbox-sidebar {
    display: none; /* Hide thumbnails on tablet/mobile for space */
  }
  .lightbox-info-panel {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: var(--space-xl);
  }
  .lightbox-main-viewer {
    padding: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .lightbox-content {
    grid-template-rows: 1.2fr 1.8fr;
  }
  .lightbox-nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  .lightbox-nav-arrow.prev {
    left: 0.5rem;
  }
  .lightbox-nav-arrow.next {
    right: 0.5rem;
  }
}

/* ============================================
   ABOUT & CONTACT PAGE: PAGE HEADER PADDING
   ============================================ */
.about-hero-section {
  padding-top: 185px !important;
  padding-bottom: 8vh;
  position: relative;
  overflow: hidden;
}

.contact-section-wrapper {
  padding-top: 185px !important;
  padding-bottom: 10vh;
}

@media (max-width: 768px) {
  .about-hero-section,
  .contact-section-wrapper {
    padding-top: 180px !important;
  }
}

/* ============================================
   ABOUT PAGE: DYNAMIC TECH UPGRADES
   ============================================ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--space-2xl), 5vw, var(--space-3xl));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  align-items: center;
}

@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
}

/* INTERACTIVE WEB TERMINAL */
.terminal-window {
  background: rgba(3, 7, 18, 0.7);
  border: 1.5px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.03);
  overflow: hidden;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Courier New', Courier, monospace;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.terminal-window:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.08);
}

.terminal-header {
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #eab308; }
.terminal-dot.green { background-color: #22c55e; }

.terminal-title {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 1.25rem;
  height: 280px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
  width: 4px;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 2px;
}

.terminal-line {
  margin: 0;
  word-break: break-all;
}

.terminal-prompt {
  color: var(--accent-bright);
}

.terminal-output {
  color: var(--text-muted);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--accent-bright);
  animation: cursorBlink 1s infinite step-end;
  vertical-align: middle;
}

@keyframes cursorBlink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent-bright) }
}

.terminal-real-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  width: 100%;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* INTERACTIVE INITIATIVE CARD DETAILS */
.initiative-preview-box {
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  padding: var(--space-md);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  overflow: hidden;
  height: 130px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Custom styles for inner-card interactive animations */
.code-editor-sim {
  color: #38bdf8;
  text-align: left;
}

.code-keyword { color: #f43f5e; }
.code-string { color: #10b981; }
.code-fn { color: #a855f7; }

/* Pulse Wave Visualizer for Tech Talks Card */
.wave-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 50px;
  width: 100%;
}

.wave-bar {
  width: 4px;
  height: 10px;
  background: var(--accent-bright);
  border-radius: 2px;
  animation: wavePulse 1.2s infinite ease-in-out alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 32px; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; height: 12px; }
.wave-bar:nth-child(5) { animation-delay: 0.1s; height: 26px; }
.wave-bar:nth-child(6) { animation-delay: 0.3s; height: 14px; }
.wave-bar:nth-child(7) { animation-delay: 0.5s; height: 20px; }

@keyframes wavePulse {
  0% { transform: scaleY(0.4); opacity: 0.5; }
  100% { transform: scaleY(1.5); opacity: 1; }
}

/* File explorer sim */
.file-tree-sim {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  color: var(--text-muted);
}
.file-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.file-item.active {
  color: var(--accent-bright);
}

/* Simulated compilation tracker */
.compilation-sim {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.progress-bar-sim {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.progress-fill-sim {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  animation: fillProgress 3s infinite ease-in-out alternate;
}

@keyframes fillProgress {
  0% { width: 10%; }
  50% { width: 85%; }
  100% { width: 100%; }
}

/* ============================================
   EVENTS TAB SWITCHER SYSTEM
   ============================================ */
.event-tabs-container {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  z-index: 10;
  position: relative;
}

.tab-btn {
  padding: 0.8rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab-btn:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 18px var(--accent-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   ABOUT PAGE: CORE VALUES BENTO GRID
   ============================================ */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.value-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.value-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 189, 248, 0.08);
  transform: translateY(-4px);
}

.value-icon {
  width: 52px;
  height: 52px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .about-values-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .about-values-grid {
    padding: 0 var(--space-md);
  }
}

/* ============================================
   ABOUT PAGE: SECTION ICON
   ============================================ */
.section-icon {
  width: 52px;
  height: 52px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.section-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-bright);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   ABOUT PAGE: ABOUT GRID CONTAINER (Mission/Foundation)
   ============================================ */
.about-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.foundation-card,
.mission-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.foundation-card::before,
.mission-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.foundation-card:hover,
.mission-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.card-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.foundation-card p,
.mission-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .about-grid-container {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }
}

/* ============================================
   CONTACTS PAGE: AWWWARDS-STYLE LAYOUT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-2xl), 6vw, var(--space-3xl));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  align-items: start;
}

.contact-typography-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: sticky;
  top: 120px;
}

.contact-massive-head {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

/* Contact stacked list */
.contact-stacked-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md); /* Tighten spacing between groups to match reference */
  margin-top: var(--space-md); /* Reduced margin directly under CONTACTS heading */
}

.contact-stacked-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem; /* Tight spacing between label, name, and phone */
}

.contact-stacked-item .stacked-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright); /* Sky blue: #38bdf8 */
}

.contact-stacked-item .stacked-name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: #ffffff;
}

.contact-stacked-item .stacked-phone {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-stacked-item .stacked-phone:hover {
  opacity: 0.8;
}

/* ============================================
   CONTACTS PAGE: MINIMALIST FORM
   ============================================ */
.contact-form-wrapper {
  padding-top: 5px; /* Aligns form header perfectly with the top of the CONTACTS heading */
}

.form-header-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted); /* #94a3b8 */
  margin-bottom: var(--space-lg);
}

.minimalist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md); /* More compact vertical gap */
}

.minimalist-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.minimalist-group label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.minimalist-group input,
.minimalist-group textarea {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.25rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}

.minimalist-group input::placeholder,
.minimalist-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.35);
}

.minimalist-group input:focus,
.minimalist-group textarea:focus {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.6);
}

/* ============================================
   BLUE SUBMIT PILL BUTTON
   ============================================ */
.blue-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.8rem;
  background: var(--accent-bright);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.blue-pill:hover {
  transform: translateY(-2px);
  background: #2ea9e6;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.full-width-pill {
  width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
    gap: var(--space-xl);
  }

  .contact-typography-container {
    position: static;
  }

  .contact-massive-head {
    font-size: clamp(3.5rem, 12vw, 6rem);
  }
}

/* ============================================
   LIGHT BLUE HACKED THEME
   ============================================ */
body.theme-light-hacked {
  --bg-primary: #e0f2fe; /* Signature light blue sky-100 */
  --bg-secondary: #bae6fd; /* Slightly darker sky-200 */
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --surface: rgba(255, 255, 255, 0.7);
  --border-light: rgba(56, 189, 248, 0.25);
  
  --accent-deep: #0369a1; /* sky-700 */
  --accent: #0284c7; /* sky-600 */
  --accent-bright: #0369a1; /* high contrast deep sky */
  --accent-glow: rgba(3, 105, 161, 0.12);
  
  --text: #092b5c; /* Signature deep blue text (opposite of white) */
  --text-muted: #0284c7; /* Sky-600 label tags */
  --text-dim: #0a4f91; /* Medium signature blue for descriptions */
}

/* Specific elements styles for light mode theme */
body.theme-light-hacked .grid-bg {
  background-image: linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px) !important;
  opacity: 0.7;
}

body.theme-light-hacked .particle {
  background: var(--accent) !important;
  opacity: 0.6;
}

body.theme-light-hacked .navbar {
  background: rgba(224, 242, 254, 0.8) !important;
  border-bottom-color: rgba(56, 189, 248, 0.2) !important;
  backdrop-filter: blur(12px) !important;
}

body.theme-light-hacked .navbar .logo img {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

body.theme-light-hacked .nav-links a {
  color: #092b5c !important;
}

body.theme-light-hacked .nav-links a.active,
body.theme-light-hacked .nav-links a:hover {
  color: #0284c7 !important;
}

/* Light mode mobile menu overlay background override */
@media (max-width: 768px) {
  body.theme-light-hacked .nav-links {
    background: rgba(224, 242, 254, 0.98) !important;
    border-bottom-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 10px 30px rgba(9, 43, 92, 0.1) !important;
  }
}

body.theme-light-hacked .value-card,
body.theme-light-hacked .foundation-card,
body.theme-light-hacked .mission-card {
  border-color: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 10px 30px rgba(3, 105, 161, 0.05) !important;
}

body.theme-light-hacked .value-card:hover,
body.theme-light-hacked .foundation-card:hover,
body.theme-light-hacked .mission-card:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 12px 35px rgba(3, 105, 161, 0.1) !important;
}

/* Ensure the code simulators and terminal remain dark for high-tech contrast */
body.theme-light-hacked .terminal-window,
body.theme-light-hacked .code-editor-sim {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  /* Reset text vars locally so children use dark-mode palette */
  --text: #f8fafc !important;
  --text-muted: #cbd5e1 !important;
  --text-dim: #94a3b8 !important;
  --accent-bright: #38bdf8 !important;
}

/* Explicit direct color overrides so terminal text is always visible in light mode */
body.theme-light-hacked .terminal-body {
  color: #f8fafc !important;
}

body.theme-light-hacked .terminal-prompt {
  color: #38bdf8 !important;
}

body.theme-light-hacked .terminal-output {
  color: #cbd5e1 !important;
}

body.theme-light-hacked .terminal-title {
  color: #94a3b8 !important;
}

body.theme-light-hacked .terminal-input-row,
body.theme-light-hacked .terminal-line {
  color: #f8fafc !important;
}

/* Fixed values icon background */
body.theme-light-hacked .value-icon,
body.theme-light-hacked .section-icon {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

body.theme-light-hacked .value-icon svg,
body.theme-light-hacked .section-icon svg {
  stroke: #0284c7 !important;
}

body.theme-light-hacked .footer p,
body.theme-light-hacked .footer a {
  color: #0369a1 !important;
}

/* Styling flip cards to follow the light theme in hacked mode */
body.theme-light-hacked .flip-card-front {
  background: #e0f2fe !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 10px 30px rgba(9, 43, 92, 0.04) !important;
}

body.theme-light-hacked .flip-card-back {
  background: #e0f2fe !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 10px 30px rgba(9, 43, 92, 0.04) !important;
}

/* Retain high readability white text on the dark front nameplate */
body.theme-light-hacked .fcf-nameplate {
  background: #050c1a !important;
}

body.theme-light-hacked .fcf-name {
  color: #ffffff !important;
}

/* High contrast watermarks in light mode */
body.theme-light-hacked .fcf-watermark span {
  color: #092b5c !important;
  opacity: 0.075 !important;
}

body.theme-light-hacked .fcb-watermark span {
  color: #092b5c !important;
  opacity: 0.055 !important;
}

/* Adjust card hints and badges */
body.theme-light-hacked .fcf-hint {
  color: rgba(9, 43, 92, 0.45) !important;
}

body.theme-light-hacked .fcb-badge {
  color: #0284c7 !important;
}

body.theme-light-hacked .fcb-bio {
  color: #0a4f91 !important; /* Make bio text high contrast */
}

/* Fix brand logo on back of card */
body.theme-light-hacked .fcb-top img {
  mix-blend-mode: normal !important;
  opacity: 0.9 !important;
}

/* Back socials styling */
body.theme-light-hacked .fcb-socials {
  border-top-color: rgba(56, 189, 248, 0.25) !important;
}

body.theme-light-hacked .social-btn {
  background: rgba(3, 105, 161, 0.06) !important;
  border-color: rgba(3, 105, 161, 0.15) !important;
  color: #0a4f91 !important;
}

body.theme-light-hacked .social-btn:hover {
  background: rgba(3, 105, 161, 0.12) !important;
  border-color: #0369a1 !important;
  color: #0369a1 !important;
}

/* Light mode high-contrast accent overrides for card roles */
body.theme-light-hacked .accent-cyan .fcb-role { color: #0284c7 !important; }
body.theme-light-hacked .accent-purple .fcb-role { color: #7c3aed !important; }
body.theme-light-hacked .accent-pink .fcb-role { color: #db2777 !important; }
body.theme-light-hacked .accent-green .fcb-role { color: #16a34a !important; }
body.theme-light-hacked .accent-orange .fcb-role { color: #ea580c !important; }
body.theme-light-hacked .accent-amber .fcb-role { color: #d97706 !important; }
body.theme-light-hacked .accent-red .fcb-role { color: #dc2626 !important; }


/* Fix hero-logo from disappearing/blending out in light mode */
body.theme-light-hacked .hero-logo {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 25px rgba(3, 105, 161, 0.25)) !important;
}

/* Make horizontal scroll watermark text stand out in signature deep blue instead of white */
body.theme-light-hacked .scroll-link {
  -webkit-text-stroke: 2px var(--text) !important;
}

body.theme-light-hacked .scroll-link.filled,
body.theme-light-hacked .scroll-link:hover {
  color: var(--text) !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 0 35px rgba(9, 43, 92, 0.25) !important;
}

body.theme-light-hacked .massive-outline-text {
  -webkit-text-stroke: 2px var(--text) !important;
}

body.theme-light-hacked .massive-outline-text .filled {
  color: var(--text) !important;
  -webkit-text-stroke: 0 !important;
}

/* Retain high readability white text on dark bento gallery overlay backgrounds */
body.theme-light-hacked .bento-card {
  --text: #ffffff !important;
  --text-muted: rgba(255, 255, 255, 0.7) !important;
}

body.theme-light-hacked .bento-title {
  color: #ffffff !important;
}

body.theme-light-hacked .bento-meta {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Styled filter buttons & event tab buttons in light mode */
body.theme-light-hacked .filter-btn,
body.theme-light-hacked .tab-btn {
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(3, 105, 161, 0.2) !important;
  color: var(--text-dim) !important;
}

body.theme-light-hacked .filter-btn:hover,
body.theme-light-hacked .filter-btn.active,
body.theme-light-hacked .tab-btn:hover,
body.theme-light-hacked .tab-btn.active {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(3, 105, 161, 0.15) !important;
}

/* Badge outline visibility in light mode */
body.theme-light-hacked .collage-card .badge-outline {
  border-color: rgba(3, 105, 161, 0.25) !important;
  color: var(--text-muted) !important;
}

/* Sharper page header text gradient in light mode */
body.theme-light-hacked .page-header h1 {
  background: linear-gradient(135deg, var(--text), var(--accent-bright)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Light Mode overrides for the Lightbox modal gallery viewer */
body.theme-light-hacked .lightbox-modal {
  background: rgba(224, 242, 254, 0.96) !important;
}

body.theme-light-hacked .lightbox-content {
  background: #f0f9ff !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 25px 60px -12px rgba(9, 43, 92, 0.2) !important;
}

body.theme-light-hacked .lightbox-sidebar {
  background: rgba(224, 242, 254, 0.4) !important;
  border-right-color: rgba(56, 189, 248, 0.25) !important;
}

body.theme-light-hacked .lightbox-main-viewer {
  background: #e0f2fe !important;
}

body.theme-light-hacked .lightbox-info-panel {
  background: #f0f9ff !important;
  border-left-color: rgba(56, 189, 248, 0.25) !important;
}

body.theme-light-hacked .lightbox-desc-text {
  color: var(--text-dim) !important;
}

body.theme-light-hacked .lightbox-tag {
  background: rgba(3, 105, 161, 0.06) !important;
  border-color: rgba(3, 105, 161, 0.15) !important;
  color: var(--accent-bright) !important;
}

body.theme-light-hacked .lightbox-divider {
  background: rgba(56, 189, 248, 0.25) !important;
}

body.theme-light-hacked .lightbox-action-container {
  border-top-color: rgba(56, 189, 248, 0.25) !important;
}

body.theme-light-hacked .lightbox-btn {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: #ffffff !important;
}

body.theme-light-hacked .lightbox-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(3, 105, 161, 0.2) !important;
}

body.theme-light-hacked .lightbox-nav-arrow {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: var(--text) !important;
}

body.theme-light-hacked .lightbox-nav-arrow:hover {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: #ffffff !important;
}

body.theme-light-hacked .lightbox-close-btn {
  color: var(--text-dim) !important;
}

body.theme-light-hacked .lightbox-close-btn:hover {
  color: var(--text) !important;
}

body.theme-light-hacked .thumb-nav-btn {
  color: var(--text-dim) !important;
}

body.theme-light-hacked .thumb-nav-btn:hover {
  color: var(--text) !important;
}

body.theme-light-hacked .lightbox-thumb.active {
  border-color: var(--accent-bright) !important;
}