@import './tokens.css';

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

:root {
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 229, 153, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 40%, rgba(0, 242, 254, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease;
}

html.light body {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 168, 110, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 40%, rgba(2, 132, 199, 0.06) 0%, transparent 50%);
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Neomorphic Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Background Cyber Canvas */
#cyberCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}
html.light #cyberCanvas,
[data-theme='light'] #cyberCanvas {
  opacity: 0.85;
}

/* ==========================================================================
   Typography & Technical Branding
   ========================================================================== */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .text-gradient-accent {
  background: linear-gradient(135deg, #0f172a 20%, var(--accent) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header-left {
  max-width: 680px;
}

.section-mono {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Subtle Technical Grid Overlay */
.bg-grid {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
html.light .bg-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

/* ==========================================================================
   Neomorphism UI System (Neu-Cyber Design)
   ========================================================================== */
/* Flat Neomorphic Surface */
.neu-flat {
  background: var(--surface);
  box-shadow: var(--neu-flat);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

/* Inset Neomorphic Cavity */
.neu-inset {
  background: var(--surface-2);
  box-shadow: var(--neu-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Neomorphic Card (Primary) */
.glass-card,
.neu-card {
  background: var(--surface);
  box-shadow: var(--neu-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-framer), box-shadow 0.4s var(--ease-framer), border-color 0.35s ease;
  transform-style: preserve-3d;
}

/* Dynamic Specular Spotlight Glare */
.glass-card::before,
.neu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    550px circle at var(--card-mouse-x, -500px) var(--card-mouse-y, -500px),
    rgba(0, 229, 153, 0.12),
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

/* Glowing Top Laser Rim */
.glass-card::after,
.neu-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.glass-card:hover,
.neu-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 
    16px 16px 36px rgba(0, 0, 0, 0.7),
    -10px -10px 28px rgba(255, 255, 255, 0.03),
    0 0 25px rgba(0, 229, 153, 0.22);
}
html.light .glass-card:hover,
html.light .neu-card:hover {
  box-shadow: 
    14px 14px 30px rgba(166, 178, 198, 0.65),
    -12px -12px 28px rgba(255, 255, 255, 1),
    0 0 25px rgba(0, 168, 110, 0.18);
}

.glass-card:hover::before,
.neu-card:hover::before,
.glass-card:hover::after,
.neu-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Buttons & Interactive Neomorphic Controls
   ========================================================================== */
.btn-primary,
.btn-secondary,
.neu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease-framer);
  user-select: none;
  text-decoration: none;
}

/* Primary Button: Convex Emerald Glow */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00c982 100%);
  color: var(--accent-contrast);
  box-shadow: 
    0 6px 20px -4px rgba(0, 229, 153, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 10px 28px -4px rgba(0, 229, 153, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  color: var(--accent-contrast);
}
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    inset 2px 2px 6px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0, 229, 153, 0.4);
}

/* Secondary Button: Neomorphic Convex Tile */
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--neu-btn);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--accent);
  box-shadow: var(--neu-btn-hover);
  transform: translateY(-2px);
}
.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--neu-btn-pressed);
}

/* Neomorphic Pill Badges */
.neu-pill,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-pill);
  font-size: 0.8rem;
  color: var(--text);
  transition: all 0.25s ease;
}
.hero-badge:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Neomorphic Drag & Drop Upload Zone */
.neu-dropzone {
  background: var(--surface-2);
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-inset);
  transition: all 0.25s var(--ease-framer);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.neu-dropzone:hover,
.neu-dropzone:focus-within {
  border-color: var(--accent);
  box-shadow: var(--neu-inset), 0 0 20px rgba(0, 229, 153, 0.15);
}
.neu-dropzone.drag-active {
  border-color: var(--accent) !important;
  border-style: solid !important;
  background: rgba(0, 229, 153, 0.08) !important;
  box-shadow: var(--neu-inset), 0 0 25px rgba(0, 229, 153, 0.3) !important;
  transform: scale(1.01);
}

/* Neomorphic Canvas Viewport Studio */
.neu-canvas-stage {
  background: radial-gradient(circle at 50% 50%, #0d1422 0%, #060910 100%);
  box-shadow: inset 4px 4px 16px rgba(0, 0, 0, 0.8), inset -3px -3px 10px rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
   Header & Floating Neomorphic Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 990;
  transition: all 0.35s var(--ease-framer);
  padding: 0 1.25rem;
}

.nav-wrapper {
  background: rgba(12, 18, 34, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: 0.75rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--neu-card);
  transition: all 0.35s var(--ease-framer);
}
html.light .nav-wrapper,
[data-theme='light'] .nav-wrapper {
  background: rgba(241, 245, 249, 0.92);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 8px 8px 24px rgba(166, 180, 200, 0.45), -8px -8px 24px rgba(255, 255, 255, 0.95), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.site-header.scrolled .nav-wrapper {
  padding: 0.55rem 1.25rem;
  background: rgba(12, 18, 34, 0.94);
  box-shadow: 10px 10px 28px rgba(0, 0, 0, 0.8), -6px -6px 20px rgba(255, 255, 255, 0.035), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
html.light .site-header.scrolled .nav-wrapper,
[data-theme='light'] .site-header.scrolled .nav-wrapper {
  background: rgba(241, 245, 249, 0.96);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 10px 10px 26px rgba(166, 180, 200, 0.52), -10px -10px 26px rgba(255, 255, 255, 1), inset 0 1px 1px #ffffff;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring);
}
.brand-logo:hover img {
  transform: rotate(-8deg) scale(1.1);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-2);
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--neu-inset);
  border: 1px solid var(--border);
}
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-framer);
  position: relative;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  color: var(--accent-contrast);
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 229, 153, 0.4);
}
html.light .nav-link.active {
  color: #ffffff;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Command Palette Trigger */
.cmd-palette-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-pill);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cmd-palette-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}
.cmd-palette-btn:active {
  box-shadow: var(--neu-btn-pressed);
}

/* Theme Toggle & Audio FX Toggle Buttons */
.icon-action-btn,
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.25s var(--ease-spring);
}
.icon-action-btn:hover,
.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.08);
  border-color: var(--border-hover);
  box-shadow: var(--neu-btn-hover);
}
.icon-action-btn:active,
.theme-toggle-btn:active {
  transform: scale(0.92);
  box-shadow: var(--neu-btn-pressed);
}

.nav-cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}
@media (max-width: 640px) {
  .nav-cta {
    display: none;
  }
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-btn);
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Animated Top Dock & Modern Shader-Frame (@designcodeio/threeui)
   ========================================================================== */
.nav-wrapper.animated-top-dock,
.nav-wrapper.shader-frame {
  position: relative;
  overflow: visible !important;
  transform-origin: center top;
}

/* Modern Shader-Frame Refraction Rim & Cursor Spotlight */
.nav-wrapper.animated-top-dock::before,
.nav-wrapper.shader-frame::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    220px circle at var(--dock-mouse-x, 50%) var(--dock-mouse-y, 0px),
    rgba(0, 229, 153, 0.7) 0%,
    rgba(0, 242, 254, 0.4) 35%,
    rgba(0, 229, 153, 0.1) 65%,
    transparent 85%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: var(--dock-active, 0);
  transition: opacity 0.35s ease;
  z-index: 10;
}

html.light .nav-wrapper.animated-top-dock::before,
html.light .nav-wrapper.shader-frame::before {
  background: radial-gradient(
    220px circle at var(--dock-mouse-x, 50%) var(--dock-mouse-y, 0px),
    rgba(4, 120, 87, 0.55) 0%,
    rgba(2, 132, 199, 0.35) 40%,
    transparent 85%
  );
}

/* Dock items transform origin & physics optimization */
.nav-wrapper.animated-top-dock .nav-link,
.nav-wrapper.animated-top-dock .cmd-palette-btn,
.nav-wrapper.animated-top-dock .icon-action-btn,
.nav-wrapper.animated-top-dock .theme-toggle-btn,
.nav-wrapper.animated-top-dock .nav-cta,
.nav-wrapper.animated-top-dock .brand-logo {
  transform-origin: center top;
  will-change: transform, padding;
}

.nav-wrapper.animated-top-dock .nav-links {
  position: relative;
  overflow: visible;
  padding: 0.35rem 0.6rem;
  transition: box-shadow 0.3s ease;
}

.nav-wrapper.animated-top-dock:hover .nav-links {
  box-shadow: var(--neu-inset), 0 0 16px rgba(0, 229, 153, 0.15);
}
html.light .nav-wrapper.animated-top-dock:hover .nav-links {
  box-shadow: var(--neu-inset), 0 0 14px rgba(4, 120, 87, 0.12);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 4.85rem;
  left: 1rem;
  right: 1rem;
  z-index: 10000;
  background: rgba(12, 18, 34, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 229, 153, 0.15);
  padding: 1.15rem 1rem;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}
html.light .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 40px rgba(148, 163, 184, 0.4), 0 0 20px rgba(4, 120, 87, 0.1);
}
.mobile-drawer.open {
  display: flex;
  animation: drawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
  background: var(--surface-2);
  border-color: var(--border);
}
html.light .mobile-nav-link.active {
  background: rgba(0, 229, 153, 0.1);
  color: var(--accent);
  border-color: rgba(0, 229, 153, 0.3);
}

/* ==========================================================================
   Hero Section (Clean, High-Impact & Technical)
   ========================================================================== */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 1020px;
  margin: 1.5rem auto 1.25rem;
  color: var(--text);
}
.accent-text {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.accent-text::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}

/* Inset Neomorphic Terminal Status */
.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--neu-inset);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
  user-select: none;
}
.terminal-status:hover {
  border-color: var(--accent);
  box-shadow: var(--neu-inset), 0 0 15px rgba(0, 229, 153, 0.2);
}
.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  animation: cursorBlink 0.9s infinite;
}
@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-subtext {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Hero Status Pills Strip */
.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-pill);
  border-radius: var(--radius-full);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================================================
   Interactive Live Terminal Dock (Inspired by QuCodex & Framer Sites)
   ========================================================================== */
.terminal-dock {
  max-width: 900px;
  margin: 3rem auto 0;
  text-align: left;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--neu-card);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.terminal-dock-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-dock-dots {
  display: flex;
  gap: 6px;
}
.terminal-dock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dock-tabs {
  display: flex;
  gap: 4px;
}
.terminal-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.terminal-tab-btn.active,
.terminal-tab-btn:hover {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--neu-pill);
}
.terminal-dock-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #a7f3d0;
  min-height: 140px;
  background: rgba(7, 10, 18, 0.95);
  box-shadow: var(--neu-inset);
}
html.light .terminal-dock-body {
  background: #1e293b;
  color: #34d399;
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-section {
  padding: 2.5rem 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 990px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface);
  box-shadow: var(--neu-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-framer), box-shadow 0.3s var(--ease-framer);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-convex), 0 0 20px rgba(0, 229, 153, 0.15);
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.stat-value {
  font-size: clamp(2.2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Ecosystem & Tech Marquee Ribbon
   ========================================================================== */
.ecosystem-ribbon {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: var(--neu-inset);
}
.ecosystem-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}
.ecosystem-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ecosystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

/* ==========================================================================
   Bento Grid & Activity Pillars
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}
.bento-card-span-2 {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .bento-card-span-2 {
    grid-column: span 1;
  }
}

.bento-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--neu-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bento-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.bento-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text);
  padding: 0.65rem 1.15rem;
  border-radius: 14px;
  background: rgba(243, 249, 246, 0.85);
  border: 1px solid rgba(220, 238, 230, 0.85);
  box-shadow: inset 1px 1px 3px rgba(160, 185, 175, 0.22), inset -1px -1px 3px #ffffff;
  transition: all 0.25s var(--ease-framer);
}
[data-theme='dark'] .bento-bullet,
html.dark .bento-bullet {
  background: rgba(14, 21, 37, 0.65);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6), inset -1px -1px 3px rgba(255, 255, 255, 0.02);
}
.bento-bullet:hover {
  transform: translateX(4px);
  border-color: rgba(0, 229, 153, 0.45);
}

/* ==========================================================================
   Activity Pillars & Pedagogy Framework (what-we-do.html & what-we-do.php)
   ========================================================================== */
.pillar-card,
.what-we-do-pillar,
div[style*="display: flex; flex-direction: column; gap: 4.5rem"] > .glass-card,
div[style*="display: flex; flex-direction: column; gap: 3.5rem"] > .glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(220, 238, 230, 0.85) !important;
  border-radius: 24px !important;
  box-shadow: 
    14px 16px 36px rgba(160, 185, 175, 0.35),
    -12px -12px 30px #ffffff,
    inset 1px 1px 2px rgba(255, 255, 255, 0.95),
    inset -1px -1px 2px rgba(160, 185, 175, 0.08) !important;
  transition: transform 0.35s var(--ease-framer), box-shadow 0.35s var(--ease-framer), border-color 0.3s ease !important;
}

[data-theme='dark'] .pillar-card,
[data-theme='dark'] .what-we-do-pillar,
html.dark div[style*="display: flex; flex-direction: column; gap: 4.5rem"] > .glass-card,
html.dark div[style*="display: flex; flex-direction: column; gap: 3.5rem"] > .glass-card {
  background: linear-gradient(145deg, #0e1526, #090e1a) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 
    14px 16px 40px rgba(0, 0, 0, 0.85),
    -10px -10px 28px rgba(255, 255, 255, 0.035),
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.12),
    inset -1px -1px 2px rgba(0, 0, 0, 0.5) !important;
}

.pillar-card:hover,
.what-we-do-pillar:hover,
div[style*="display: flex; flex-direction: column; gap: 4.5rem"] > .glass-card:hover,
div[style*="display: flex; flex-direction: column; gap: 3.5rem"] > .glass-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(0, 229, 153, 0.5) !important;
  box-shadow: 
    18px 22px 42px rgba(145, 175, 165, 0.45),
    -14px -14px 32px #ffffff,
    0 0 25px rgba(0, 229, 153, 0.2) !important;
}

[data-theme='dark'] .pillar-card:hover,
[data-theme='dark'] .what-we-do-pillar:hover,
html.dark div[style*="display: flex; flex-direction: column; gap: 4.5rem"] > .glass-card:hover,
html.dark div[style*="display: flex; flex-direction: column; gap: 3.5rem"] > .glass-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(0, 229, 153, 0.45) !important;
  box-shadow: 
    18px 22px 45px rgba(0, 0, 0, 0.95),
    -10px -10px 30px rgba(255, 255, 255, 0.05),
    0 0 30px rgba(0, 229, 153, 0.28) !important;
}

.session-framework-panel {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  box-shadow: 14px 16px 36px rgba(160, 185, 175, 0.35), -12px -12px 30px #ffffff, inset 1px 1px 2px #ffffff;
  margin-bottom: 6rem;
}
[data-theme='dark'] .session-framework-panel,
html.dark .session-framework-panel {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 14px 16px 40px rgba(0, 0, 0, 0.85), -10px -10px 28px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12);
}

.session-step-card {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 6px 8px 20px rgba(160, 185, 175, 0.28), -5px -5px 16px #ffffff, inset 1px 1px 1px #ffffff;
  transition: transform 0.3s var(--ease-framer), box-shadow 0.3s var(--ease-framer), border-color 0.25s ease;
}
[data-theme='dark'] .session-step-card,
html.dark .session-step-card {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.6), -4px -4px 14px rgba(255, 255, 255, 0.03), inset 1px 1px 1px rgba(255, 255, 255, 0.1);
}
.session-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 14px 28px rgba(145, 175, 165, 0.4), -8px -8px 20px #ffffff, 0 0 15px rgba(0, 229, 153, 0.2);
  border-color: rgba(0, 229, 153, 0.45);
}
[data-theme='dark'] .session-step-card:hover,
html.dark .session-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 14px 28px rgba(0, 0, 0, 0.8), -6px -6px 18px rgba(255, 255, 255, 0.05), 0 0 20px rgba(0, 229, 153, 0.25);
}

/* ==========================================================================
   Events & Workshops Grid
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 22px;
  box-shadow: 12px 14px 28px rgba(160, 185, 175, 0.35), -10px -10px 24px #ffffff, inset 1px 1px 1.5px rgba(255, 255, 255, 0.95);
  transition: transform 0.35s var(--ease-framer), box-shadow 0.35s var(--ease-framer), border-color 0.3s ease;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 1;
}
[data-theme='dark'] .event-card,
html.dark .event-card {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 12px 14px 34px rgba(0, 0, 0, 0.8), -8px -8px 24px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12);
}
.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 153, 0.5);
  box-shadow: 18px 22px 42px rgba(145, 175, 165, 0.45), -14px -14px 32px #ffffff, 0 0 25px rgba(0, 229, 153, 0.2);
}
[data-theme='dark'] .event-card:hover,
html.dark .event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 18px 22px 45px rgba(0, 0, 0, 0.95), -10px -10px 30px rgba(255, 255, 255, 0.05), 0 0 30px rgba(0, 229, 153, 0.28);
}
.events-grid > .event-card,
.roster-cards-grid > .roster-card,
.event-card.is-revealed,
.roster-card.is-revealed {
  opacity: 1 !important;
  filter: blur(0px) !important;
  transform: none !important;
}
.event-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.5s var(--ease-framer);
}
.event-card:hover .event-card-img {
  transform: scale(1.05);
}
.event-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.badge-status {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-upcoming {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 153, 0.3);
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.2);
}
.badge-completed {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.event-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.event-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Members & Builder Directory
   ========================================================================== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1100px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

.member-card {
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--surface-2);
  box-shadow: var(--neu-card), 0 0 15px rgba(0, 229, 153, 0.25);
  transition: transform 0.3s var(--ease-spring);
}
.member-card:hover .member-avatar {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent);
}
.member-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid var(--surface-2);
  box-shadow: var(--neu-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1.25rem;
}
.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.member-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.member-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}
.member-socials {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.member-social-btn {
  padding: 0.4rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--neu-pill);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.member-social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--neu-btn-hover);
}

/* ==========================================================================
   Forms & Inset Neomorphic Inputs
   ========================================================================== */
.form-card {
  background: var(--surface);
  box-shadow: var(--neu-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .form-card {
    padding: 2rem 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--neu-inset);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.25s var(--ease-framer);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: var(--neu-inset), 0 0 15px rgba(0, 229, 153, 0.25);
}

/* ==========================================================================
   Framer-Motion Style Content Reveal Engine
   ========================================================================== */
[data-reveal],
.reveal-item {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px) scale(0.98);
  transition: 
    opacity 0.75s var(--ease-framer),
    transform 0.75s var(--ease-framer),
    filter 0.75s var(--ease-framer);
  will-change: opacity, transform, filter;
}

[data-reveal].is-revealed,
.reveal-item.is-revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

[data-reveal="fade-left"] {
  transform: translateX(-35px) scale(0.98);
}
[data-reveal="fade-left"].is-revealed {
  transform: translateX(0) scale(1);
}

[data-reveal="fade-right"] {
  transform: translateX(35px) scale(0.98);
}
[data-reveal="fade-right"].is-revealed {
  transform: translateX(0) scale(1);
}

[data-reveal="zoom-in"] {
  transform: scale(0.92);
}
[data-reveal="zoom-in"].is-revealed {
  transform: scale(1);
}

/* Stagger Delay Classes */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* ==========================================================================
   Footer & Big Statement Brandmark
   ========================================================================== */
.site-footer {
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 2;
  box-shadow: var(--neu-flat);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-wordmark {
  margin-top: 4rem;
  text-align: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.footer-wordmark span {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.035);
  text-transform: uppercase;
  display: block;
  line-height: 0.85;
}
html.light .footer-wordmark span {
  color: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.modal-overlay.open {
  display: flex !important;
  animation: modalFadeIn 0.25s var(--ease-framer) forwards;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.modal-open {
  overflow: hidden !important;
}

.modal-container {
  background: var(--surface);
  box-shadow: var(--neu-card), 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  margin: auto;
  animation: modalPop 0.3s var(--ease-spring) forwards;
}
@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Executive Member Detail Modal (Master-Detail Neomorphic Layout)
   ========================================================================== */
.member-detail-modal {
  max-width: 780px !important;
  width: 94% !important;
  max-height: min(90vh, 620px);
  margin: auto !important;
  background: var(--surface) !important;
  border: 1px solid rgba(220, 238, 230, 0.85) !important;
  border-radius: 24px !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 16px 20px 48px rgba(160, 185, 175, 0.35), -12px -12px 36px #ffffff, inset 1px 1px 2px rgba(255, 255, 255, 0.95) !important;
  display: flex !important;
  flex-direction: column !important;
}

[data-theme='dark'] .member-detail-modal,
html:not(.light) .member-detail-modal {
  background: linear-gradient(145deg, #0e1526, #090e1a) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 18px 24px 50px rgba(0, 0, 0, 0.85), -10px -10px 30px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12) !important;
}

.member-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100%;
  max-height: min(90vh, 620px);
  overflow: hidden;
}

@media (max-width: 720px) {
  .member-detail-modal {
    max-height: 88vh !important;
  }
  .member-detail-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.member-detail-left {
  background: rgba(240, 248, 245, 0.6);
  border-right: 1px solid rgba(220, 238, 230, 0.85);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  justify-content: flex-start;
}

[data-theme='dark'] .member-detail-left,
html:not(.light) .member-detail-left {
  background: rgba(255, 255, 255, 0.02);
  border-right-color: rgba(255, 255, 255, 0.06);
}

.member-detail-right {
  padding: 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .member-detail-left {
    border-right: none;
    border-bottom: 1px solid rgba(220, 238, 230, 0.85);
    padding: 1.75rem 1.25rem 1.25rem;
  }
  [data-theme='dark'] .member-detail-left,
  html:not(.light) .member-detail-left {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
  .member-detail-right {
    padding: 1.5rem 1.25rem 1.75rem;
    overflow-y: visible;
  }
}

.member-detail-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  box-shadow: 3px 3px 8px rgba(160, 185, 175, 0.3), -2px -2px 6px #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-framer);
  z-index: 10;
}

[data-theme='dark'] .member-detail-close-btn,
html:not(.light) .member-detail-close-btn {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6), -2px -2px 6px rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.member-detail-close-btn:hover {
  transform: scale(1.08) rotate(90deg);
  color: #ef4444;
}

.member-detail-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.35);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.member-detail-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.member-detail-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.member-detail-academic {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.member-detail-socials-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.member-detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-detail-section-title {
  font-family: var(--font-headline);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.45rem;
}

.member-detail-bio-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

html.light .member-detail-bio-text,
[data-theme='light'] .member-detail-bio-text {
  color: #334155 !important;
}

.member-detail-tags-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CodeX-Style Roster Component (Prahar Team Layout)
   ========================================================================== */
.roster-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.roster-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.roster-header .pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.roster-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
}

.roster-title .highlight {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 229, 153, 0.35);
}

.roster-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.5;
}

/* Two-column layout for top leadership */
.roster-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .roster-two-col {
    grid-template-columns: 1fr;
  }
}

/* Segmented Glass Panel */
.roster-panel {
  background: rgba(9, 14, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.roster-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.roster-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.roster-panel-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.roster-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roster-panel-icon.blue {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.15);
}

.roster-panel-icon.green {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: #00e599;
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.15);
}

.roster-panel-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.roster-panel-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.roster-panel-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.roster-panel-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card Grid inside Panel */
.roster-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.roster-cards-grid.center-few {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.roster-cards-grid.center-few .roster-card {
  width: 280px;
  max-width: 100%;
}

/* Enforce horizontal side-by-side presentation in Faculty Advisory & Top Leadership on desktop */
.roster-faculty-grid,
.roster-leadership-grid,
.roster-panel-faculty .roster-cards-grid,
.roster-panel-leadership .roster-cards-grid,
.roster-panel[data-section-cat="advisors"] .roster-cards-grid,
.roster-panel[data-section-cat="advisors"] .roster-cards-grid.center-few,
.roster-panel[aria-label*="Faculty"] .roster-cards-grid,
.roster-panel[aria-label*="Faculty"] .roster-cards-grid.center-few,
.roster-panel[aria-label*="Leadership"] .roster-cards-grid,
.roster-panel[aria-label*="Leadership"] .roster-cards-grid.center-few,
.roster-two-col .roster-cards-grid,
.roster-two-col .roster-cards-grid.center-few {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 2rem !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.roster-faculty-grid .roster-card,
.roster-leadership-grid .roster-card,
.roster-panel-faculty .roster-card,
.roster-panel-leadership .roster-card,
.roster-panel[data-section-cat="advisors"] .roster-card,
.roster-panel[aria-label*="Faculty"] .roster-card,
.roster-panel[aria-label*="Leadership"] .roster-card,
.roster-two-col .roster-card {
  width: 320px !important;
  max-width: 360px !important;
  min-width: 260px !important;
  flex: 0 1 320px !important;
  padding: 1.75rem 1.25rem 1.5rem !important;
  box-sizing: border-box !important;
}

.roster-faculty-grid .roster-avatar-wrap,
.roster-leadership-grid .roster-avatar-wrap,
.roster-panel-faculty .roster-avatar-wrap,
.roster-panel[data-section-cat="advisors"] .roster-avatar-wrap,
.roster-panel[aria-label*="Faculty"] .roster-avatar-wrap,
.roster-two-col .roster-avatar-wrap {
  width: 104px !important;
  height: 104px !important;
  margin-bottom: 0.75rem !important;
}

.roster-faculty-grid .roster-card-name,
.roster-leadership-grid .roster-card-name,
.roster-panel-faculty .roster-card-name,
.roster-panel[data-section-cat="advisors"] .roster-card-name,
.roster-panel[aria-label*="Faculty"] .roster-card-name,
.roster-two-col .roster-card-name {
  font-size: 1.1rem !important;
  margin-bottom: 0.3rem !important;
}

.roster-faculty-grid .roster-card-role-desc,
.roster-leadership-grid .roster-card-role-desc,
.roster-panel-faculty .roster-card-role-desc,
.roster-panel[data-section-cat="advisors"] .roster-card-role-desc,
.roster-panel[aria-label*="Faculty"] .roster-card-role-desc,
.roster-two-col .roster-card-role-desc {
  font-size: 0.85rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.4 !important;
}

.roster-faculty-grid .roster-card-academic,
.roster-leadership-grid .roster-card-academic,
.roster-panel-faculty .roster-card-academic,
.roster-panel[data-section-cat="advisors"] .roster-card-academic,
.roster-panel[aria-label*="Faculty"] .roster-card-academic,
.roster-two-col .roster-card-academic {
  font-size: 0.78rem !important;
  margin-bottom: 0.75rem !important;
}

.roster-faculty-grid .roster-card-view-btn,
.roster-leadership-grid .roster-card-view-btn,
.roster-panel-faculty .roster-card-view-btn,
.roster-panel[data-section-cat="advisors"] .roster-card-view-btn,
.roster-panel[aria-label*="Faculty"] .roster-card-view-btn,
.roster-two-col .roster-card-view-btn {
  font-size: 0.8rem !important;
  padding: 0.45rem 1rem !important;
}

@media (max-width: 680px) {
  .roster-faculty-grid,
  .roster-leadership-grid,
  .roster-panel-faculty .roster-cards-grid,
  .roster-panel-leadership .roster-cards-grid,
  .roster-panel[data-section-cat="advisors"] .roster-cards-grid,
  .roster-panel[aria-label*="Faculty"] .roster-cards-grid,
  .roster-panel[aria-label*="Leadership"] .roster-cards-grid,
  .roster-two-col .roster-cards-grid {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
  }

  .roster-faculty-grid .roster-card,
  .roster-leadership-grid .roster-card,
  .roster-panel-faculty .roster-card,
  .roster-panel-leadership .roster-card,
  .roster-panel[data-section-cat="advisors"] .roster-card,
  .roster-panel[aria-label*="Faculty"] .roster-card,
  .roster-panel[aria-label*="Leadership"] .roster-card,
  .roster-two-col .roster-card {
    width: 100% !important;
    max-width: 320px !important;
    flex: none !important;
  }
}

/* ==========================================================================
   Reference UI/UX Member Card Presentation with Neomorphism
   ========================================================================== */
.roster-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 2.25rem 1.4rem 1.4rem;
  text-align: center;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 10px 10px 28px rgba(166, 180, 200, 0.45), -10px -10px 28px rgba(255, 255, 255, 0.95), inset 0 1px 1px #ffffff;
}

.roster-card:hover {
  transform: translateY(-6px);
  box-shadow: 14px 14px 34px rgba(166, 180, 200, 0.55), -12px -12px 30px rgba(255, 255, 255, 1), 0 0 24px rgba(0, 229, 153, 0.2);
  border-color: rgba(0, 229, 153, 0.45);
}

/* Dark Theme Elevation */
html.dark .roster-card,
[data-theme='dark'] .roster-card {
  background: rgba(14, 22, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.65), -6px -6px 22px rgba(255, 255, 255, 0.025), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .roster-card:hover,
[data-theme='dark'] .roster-card:hover {
  background: rgba(18, 28, 50, 0.92);
  border-color: rgba(0, 229, 153, 0.5);
  box-shadow: 14px 14px 36px rgba(0, 0, 0, 0.8), -8px -8px 24px rgba(255, 255, 255, 0.04), 0 0 28px rgba(0, 229, 153, 0.25);
}

/* Top-Right Three-Dot Menu Button */
.roster-card-menu-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--neu-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.roster-card:hover .roster-card-menu-btn {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.2);
}

/* Larger, Clearer Avatar with Gradient Glowing Arc Ring */
.roster-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  margin-bottom: 0.85rem;
}

.roster-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 200deg, var(--accent) 0deg, #38bdf8 140deg, rgba(0, 229, 153, 0.1) 220deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring);
}

.roster-card:hover .roster-avatar-ring {
  transform: rotate(30deg);
}

.roster-card-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

html.dark .roster-card-avatar,
[data-theme='dark'] .roster-card-avatar {
  border-color: #0c1222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

/* Role Pill Badge (Underneath Avatar) */
.roster-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #0284c7;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.roster-card.faculty-card .roster-card-pill,
.roster-card[data-tags*="Organizer"] .roster-card-pill,
.roster-card-pill.pill-organizer {
  background: rgba(0, 229, 153, 0.1);
  border-color: rgba(0, 229, 153, 0.28);
  color: #047857;
  box-shadow: 0 2px 8px rgba(0, 229, 153, 0.1);
}

html.dark .roster-card-pill {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

html.dark .roster-card.faculty-card .roster-card-pill,
html.dark .roster-card-pill.pill-organizer {
  background: rgba(0, 229, 153, 0.14);
  border-color: rgba(0, 229, 153, 0.35);
  color: #00e599;
}

/* Member Name & Role Subtitles */
.roster-card-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.roster-card-role-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.roster-card-academic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.roster-card-academic svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Social Icon Micro-Buttons */
.roster-card-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.roster-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--neu-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.roster-social-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-btn-hover);
}

.roster-social-icon.linkedin:hover {
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
}

.roster-social-icon.github:hover {
  color: var(--text);
  border-color: var(--text);
}

.roster-social-icon.instagram:hover {
  color: #e1306c;
  border-color: #e1306c;
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.3);
}

/* Action Button ("View profile ->") */
.roster-card-view-btn {
  width: 100%;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.24);
  color: #047857;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  margin-top: auto;
  text-decoration: none;
}

html.dark .roster-card-view-btn,
[data-theme='dark'] .roster-card-view-btn {
  background: rgba(0, 229, 153, 0.12);
  color: var(--accent);
  border-color: rgba(0, 229, 153, 0.35);
}

.roster-card:hover .roster-card-view-btn {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.35);
  transform: translateY(-1px);
}


.roster-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roster-filter-btn:hover, .roster-filter-btn.active {
  background: rgba(0, 229, 153, 0.1);
  border-color: rgba(0, 229, 153, 0.3);
  color: var(--accent);
}

/* Roster Filter Toolbar from Reference Design */
.roster-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 800px;
}

.roster-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 4px 4px 14px rgba(166, 180, 200, 0.35), -4px -4px 14px rgba(255, 255, 255, 0.9);
  user-select: none;
}

.roster-filter-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.roster-filter-pill:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(0, 229, 153, 0.4);
}

.roster-filter-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 229, 153, 0.4);
}

.roster-filter-pill.active svg {
  stroke: #ffffff;
}

html.dark .roster-filter-pill,
[data-theme='dark'] .roster-filter-pill {
  background: rgba(14, 22, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.5), -3px -3px 10px rgba(255, 255, 255, 0.02);
}

html.dark .roster-filter-pill.active,
[data-theme='dark'] .roster-filter-pill.active {
  background: var(--accent);
  color: #0b1329;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.4);
}

html.dark .roster-filter-pill.active svg,
[data-theme='dark'] .roster-filter-pill.active svg {
  stroke: #0b1329;
}

.roster-card.is-filtered-out,
.roster-panel.is-filtered-out,
.roster-two-col.is-filtered-out {
  display: none !important;
}

/* Light Theme Overrides for Roster */
html.light .roster-panel,
[data-theme='light'] .roster-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-card);
}

html.light .roster-card,
[data-theme='light'] .roster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-card);
}

html.light .roster-card:hover,
[data-theme='light'] .roster-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow: var(--neu-card-hover), 0 0 20px rgba(4, 120, 87, 0.16);
}

html.light .roster-filter-btn,
[data-theme='light'] .roster-filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--neu-btn);
}

html.light .roster-filter-btn.active,
html.light .roster-filter-btn:hover,
[data-theme='light'] .roster-filter-btn.active,
[data-theme='light'] .roster-filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--neu-glow);
}

/* ==========================================================================
   Blueprint Components (Hero Collage, Mission, Values, Steps, FAQ, Gallery)
   ========================================================================== */

/* 1. Hero Two-Column & Editorial Collage */
.hero-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: var(--container-width, 1240px);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

@media (max-width: 992px) {
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.hero-editorial-collage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-collage-main {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 153, 0.1);
  transition: transform 0.4s ease;
}

.hero-collage-overlap {
  position: absolute;
  bottom: -24px;
  right: -20px;
  width: 210px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 229, 153, 0.25);
  transition: transform 0.4s ease;
}

.hero-collage-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-editorial-collage:hover .hero-collage-main {
  transform: translateY(-4px);
}
.hero-editorial-collage:hover .hero-collage-overlap {
  transform: translateY(-8px) scale(1.03);
}

/* Alternate Section Background Token System */
.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* 2. Community Affiliation & Activity Trust Strip (Infinite Marquee Scroller) */
.activity-trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.95rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  user-select: none;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
  gap: 2.75rem;
  padding: 0.25rem 0;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  text-decoration: none;
}

.marquee-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme='light'] .marquee-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.marquee-logo {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: grayscale(100%) opacity(0.85);
  transition: filter 0.25s ease;
}

.marquee-item:hover .marquee-logo {
  filter: grayscale(0%) opacity(1);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* Fallback static flex */
.trust-strip-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ==========================================================================
   Two-Tier Team Leadership ("Built by Builders" Landing Page Structure)
   ========================================================================== */
.team-tier-section {
  margin-bottom: 3.5rem;
}

.team-tier-section:last-child {
  margin-bottom: 0;
}

.team-tier-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border);
}

.team-tier-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.team-tier-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.faculty-leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.student-leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

/* ==========================================================================
   Light Mode Minimal Technical Animations & Cyber Enhancements
   ========================================================================== */
[data-theme='light'] .hero-section {
  position: relative;
}

/* Minimal technical ambient aura behind hero */
[data-theme='light'] .hero-section::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  height: 440px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 153, 0.08) 0%, rgba(56, 189, 248, 0.06) 45%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: lightAuraPulse 8s ease-in-out infinite alternate;
}

@keyframes lightAuraPulse {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.65; }
  100% { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

/* Delicate floating technical crosshair nodes */
.tech-crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  animation: techCrosshairFade 4s ease-in-out infinite alternate;
}

[data-theme='light'] .tech-crosshair {
  opacity: 0.6;
  color: #0284c7;
}

@keyframes techCrosshairFade {
  0% { opacity: 0.25; transform: scale(0.9); }
  100% { opacity: 0.75; transform: scale(1.1); }
}

/* Technical Status Pill */
.tech-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.tech-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: techPulse 2s ease-in-out infinite;
}

@keyframes techPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* 3. Mission & Philosophy Large Panel */
.mission-panel {
  background: radial-gradient(circle at 10% 20%, rgba(40, 211, 223, 0.08) 0%, rgba(12, 20, 34, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin: 3.5rem 0;
}

.mission-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.mission-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.mission-desc {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.mission-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mission-principle-card {
  background: rgba(17, 27, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.mission-principle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.principle-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.principle-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
}

.principle-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Mission Panel Light Mode */
html.light .mission-panel,
[data-theme='light'] .mission-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 12px 12px 32px rgba(166, 180, 200, 0.45), -12px -12px 32px rgba(255, 255, 255, 0.95), inset 0 1px 0 #ffffff;
}

html.light .mission-title,
[data-theme='light'] .mission-title {
  color: var(--text);
}

html.light .mission-desc,
[data-theme='light'] .mission-desc {
  color: var(--text-muted);
}

html.light .mission-principle-card,
[data-theme='light'] .mission-principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neu-card);
}
html.light .mission-principle-card:hover,
[data-theme='light'] .mission-principle-card:hover {
  border-color: var(--accent);
  box-shadow: var(--neu-card-hover), 0 0 20px rgba(4, 120, 87, 0.15);
}

html.light .principle-title,
[data-theme='light'] .principle-title {
  color: var(--text);
}

html.light .principle-desc,
[data-theme='light'] .principle-desc {
  color: var(--text-muted);
}

/* 4. Values Grid (What Makes Prahar Different?) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 153, 0.1);
}

.value-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

html.light .value-card,
[data-theme='light'] .value-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--neu-card);
}
html.light .value-card:hover,
[data-theme='light'] .value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--neu-card-hover), 0 0 20px rgba(4, 120, 87, 0.15);
}

/* 5. How to Get Involved Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

@media (max-width: 850px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

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

.step-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}

html.light .step-card,
[data-theme='light'] .step-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--neu-card);
}
html.light .step-card:hover,
[data-theme='light'] .step-card:hover {
  border-color: var(--accent);
  box-shadow: var(--neu-card-hover), 0 0 20px rgba(4, 120, 87, 0.15);
}

/* 6. FAQ Accordion */
.faq-two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .faq-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.faq-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.faq-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.faq-category-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-category-btn:hover, .faq-category-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-icon-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon-indicator {
  transform: rotate(45deg);
}

.faq-answer-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer-body {
  display: block;
}

html.light .faq-item,
[data-theme='light'] .faq-item {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--neu-flat);
}
html.light .faq-item:hover,
[data-theme='light'] .faq-item:hover {
  box-shadow: var(--neu-convex);
}
html.light .faq-item.active,
[data-theme='light'] .faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--neu-card), 0 0 16px rgba(4, 120, 87, 0.14);
}

html.light .faq-category-btn,
[data-theme='light'] .faq-category-btn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
  box-shadow: var(--neu-btn);
}
html.light .faq-category-btn:hover,
html.light .faq-category-btn.active,
[data-theme='light'] .faq-category-btn:hover,
[data-theme='light'] .faq-category-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--neu-glow);
}

/* 7. Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--surface);
  box-shadow: var(--neu-card);
  transition: transform 0.4s var(--ease-framer), box-shadow 0.4s var(--ease-framer);
}
.gallery-card:hover {
  box-shadow: var(--neu-card-hover), 0 0 24px rgba(0, 229, 153, 0.25);
}
html.light .gallery-card {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--neu-card);
}
html.light .gallery-card:hover {
  box-shadow: var(--neu-card-hover), 0 0 20px rgba(4, 120, 87, 0.18);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   📖 ABOUT PAGE — DESKTOP & RESPONSIVE EDITORIAL DESIGN SYSTEM
   Pixel-accurate implementation matching reference UI/UX mockup
   ========================================================================== */

/* Top Announcement Bar */
.top-announcement-bar {
  background: rgba(0, 229, 153, 0.08);
  border-bottom: 1px solid rgba(0, 229, 153, 0.22);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #00875a;
  z-index: 1000;
}
[data-theme='dark'] .top-announcement-bar {
  background: rgba(0, 229, 153, 0.06);
  border-color: rgba(0, 229, 153, 0.15);
  color: #34d399;
}
.top-announcement-bar .announcement-content {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.top-announcement-bar .announcement-link {
  color: #00875a;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}
[data-theme='dark'] .top-announcement-bar .announcement-link {
  color: #34d399;
}
.top-announcement-bar .announcement-close {
  position: absolute;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #00875a;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px 8px;
}
.top-announcement-bar .announcement-close:hover {
  opacity: 1;
}

/* About Page Container & Hero Section */
.about-page-main {
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.about-hero-section {
  padding: 2rem 0 4.5rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00875a;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-theme='dark'] .about-eyebrow {
  color: #34d399;
}

.about-hero-title {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 3.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.about-hero-title .highlight-emerald {
  color: #00875a;
  display: inline-block;
}
[data-theme='dark'] .about-hero-title .highlight-emerald {
  color: #00e599;
}

.about-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 530px;
}

.about-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #00875a;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.28);
  transition: all 0.2s ease;
}
.btn-hero-primary:hover {
  background: #006d48;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 135, 90, 0.38);
}

.btn-hero-outline {
  background: #ffffff;
  color: #00875a !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 9999px;
  border: 1.5px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
[data-theme='dark'] .btn-hero-outline {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.12);
  color: #34d399 !important;
}
.btn-hero-outline:hover {
  border-color: #00875a;
  transform: translateY(-2px);
}

.about-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-social-proof .avatar-stack {
  display: flex;
  align-items: center;
}

.about-social-proof .proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-left: -10px;
  display: inline-block;
}
.about-social-proof .proof-avatar:first-child {
  margin-left: 0;
}
[data-theme='dark'] .about-social-proof .proof-avatar {
  border-color: #0c1222;
}

.about-social-proof .proof-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.about-social-proof .proof-count {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.about-social-proof .proof-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Hero Right: Visual Composition Collage */
.hero-visual-collage {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-matrix {
  position: absolute;
  width: 72px;
  height: 72px;
  background-image: radial-gradient(#00a876 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}
.dot-matrix-top-right {
  top: 10px;
  right: -15px;
}
.dot-matrix-bottom-left {
  bottom: 5px;
  left: -15px;
}

.hero-main-photo-wrap {
  width: 100%;
  max-width: 490px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
  position: relative;
  z-index: 2;
}
[data-theme='dark'] .hero-main-photo-wrap {
  border-color: var(--surface-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.hero-main-photo {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}

.floating-card-top-right {
  position: absolute;
  top: -16px;
  right: 0px;
  background: #ffffff;
  padding: 9px 16px;
  border-radius: 18px;
  border: 1px solid rgba(220, 238, 230, 0.85);
  box-shadow: 8px 10px 24px rgba(160, 185, 175, 0.35), -6px -6px 18px #ffffff, inset 1px 1px 1.5px #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
[data-theme='dark'] .floating-card-top-right,
html.dark .floating-card-top-right {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 10px 12px 28px rgba(0, 0, 0, 0.75), -5px -5px 16px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12);
}

.floating-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e6f7f0;
  color: #00875a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 6px rgba(160, 185, 175, 0.25), -2px -2px 5px #ffffff;
}
[data-theme='dark'] .floating-icon-box,
html.dark .floating-icon-box {
  background: rgba(0, 229, 153, 0.15);
  color: #34d399;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.floating-sub-photo {
  position: absolute;
  bottom: -24px;
  right: 15px;
  width: 175px;
  height: 135px;
  object-fit: cover;
  border-radius: 16px;
  border: 3.5px solid #ffffff;
  box-shadow: 10px 12px 28px rgba(160, 185, 175, 0.35), -6px -6px 20px #ffffff;
  z-index: 5;
}
[data-theme='dark'] .floating-sub-photo,
html.dark .floating-sub-photo {
  border-color: var(--surface-2);
  box-shadow: 10px 14px 32px rgba(0, 0, 0, 0.85);
}

.floating-card-bottom-left {
  position: absolute;
  bottom: -16px;
  left: 0px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(220, 238, 230, 0.85);
  box-shadow: 8px 10px 24px rgba(160, 185, 175, 0.35), -6px -6px 18px #ffffff, inset 1px 1px 1.5px #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  z-index: 4;
}
[data-theme='dark'] .floating-card-bottom-left,
html.dark .floating-card-bottom-left {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 10px 12px 28px rgba(0, 0, 0, 0.75), -5px -5px 16px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12);
}
.floating-card-bottom-left span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* Handwritten Doodles */
.doodle-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00a876;
}
[data-theme='dark'] .doodle-container {
  color: #34d399;
}
.doodle-text {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  transform: rotate(-4deg);
  display: inline-block;
}

/* Section 01: OUR VISION */
.about-section {
  margin-bottom: 5.5rem;
  position: relative;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.section-header-left {
  max-width: 740px;
}

.section-header-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.section-header-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.vision-card {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 22px;
  padding: 2.25rem 1.85rem;
  box-shadow: 12px 14px 28px rgba(160, 185, 175, 0.35), -10px -10px 24px #ffffff, inset 1px 1px 1.5px rgba(255, 255, 255, 0.95), inset -1px -1px 2px rgba(160, 185, 175, 0.08);
  transition: transform 0.35s var(--ease-framer), box-shadow 0.35s var(--ease-framer), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .vision-card,
html.dark .vision-card {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 12px 14px 34px rgba(0, 0, 0, 0.8), -8px -8px 24px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12), inset -1px -1px 2px rgba(0, 0, 0, 0.5);
}
.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 18px 22px 42px rgba(145, 175, 165, 0.45), -14px -14px 32px #ffffff, 0 0 25px rgba(0, 229, 153, 0.2);
  border-color: rgba(0, 229, 153, 0.5);
}
[data-theme='dark'] .vision-card:hover,
html.dark .vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 18px 22px 45px rgba(0, 0, 0, 0.95), -10px -10px 30px rgba(255, 255, 255, 0.05), 0 0 30px rgba(0, 229, 153, 0.28);
  border-color: rgba(0, 229, 153, 0.45);
}

.vision-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.vision-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #e6f7f0);
  color: #00875a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 10px rgba(160, 185, 175, 0.35), -3px -3px 8px #ffffff, inset 1px 1px 1.5px #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.7);
  transition: transform 0.25s ease;
}
.vision-card:hover .vision-icon-box {
  transform: scale(1.05);
}
[data-theme='dark'] .vision-icon-box,
html.dark .vision-icon-box {
  background: linear-gradient(145deg, #132238, #0d1627);
  color: #34d399;
  border-color: rgba(0, 229, 153, 0.2);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6), -3px -3px 10px rgba(255, 255, 255, 0.03), inset 1px 1px 1px rgba(255, 255, 255, 0.15);
}

.vision-card-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: #00875a;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(240, 248, 245, 0.9);
  border: 1px solid rgba(220, 235, 228, 0.8);
  box-shadow: inset 1px 1px 3px rgba(160, 185, 175, 0.25), inset -1px -1px 3px #ffffff;
}
[data-theme='dark'] .vision-card-num,
html.dark .vision-card-num {
  color: #00e599;
  background: rgba(12, 18, 33, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6), inset -1px -1px 3px rgba(255, 255, 255, 0.02);
}

.vision-card-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.vision-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Section 02: FLAGSHIP PROJECTS */
.flagship-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
  gap: 1.5rem;
}

.view-all-projects-link {
  color: #00875a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
  white-space: nowrap;
}
[data-theme='dark'] .view-all-projects-link,
html.dark .view-all-projects-link {
  color: #34d399;
}
.view-all-projects-link:hover {
  transform: translateX(3px);
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.flagship-card {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 12px 14px 30px rgba(160, 185, 175, 0.35), -10px -10px 26px #ffffff, inset 1px 1px 1.5px rgba(255, 255, 255, 0.95), inset -1px -1px 2px rgba(160, 185, 175, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-framer), box-shadow 0.35s var(--ease-framer), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .flagship-card,
html.dark .flagship-card {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 12px 14px 34px rgba(0, 0, 0, 0.8), -8px -8px 24px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12), inset -1px -1px 2px rgba(0, 0, 0, 0.5);
}
.flagship-card:hover {
  transform: translateY(-6px);
  box-shadow: 18px 22px 42px rgba(145, 175, 165, 0.45), -14px -14px 32px #ffffff, 0 0 25px rgba(0, 229, 153, 0.2);
  border-color: rgba(0, 229, 153, 0.5);
}
[data-theme='dark'] .flagship-card:hover,
html.dark .flagship-card:hover {
  transform: translateY(-6px);
  box-shadow: 18px 22px 45px rgba(0, 0, 0, 0.95), -10px -10px 30px rgba(255, 255, 255, 0.05), 0 0 30px rgba(0, 229, 153, 0.28);
  border-color: rgba(0, 229, 153, 0.45);
}

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}
.badge-initiative {
  background: #e6f7f0;
  color: #00875a;
}
[data-theme='dark'] .badge-initiative {
  background: rgba(0, 229, 153, 0.15);
  color: #34d399;
}
.badge-institutional {
  background: #e0f2fe;
  color: #0369a1;
}
[data-theme='dark'] .badge-institutional {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.flagship-content-row {
  display: grid;
  grid-template-columns: 1fr 165px;
  gap: 1.35rem;
  align-items: start;
}

.flagship-info {
  display: flex;
  flex-direction: column;
}

.flagship-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.flagship-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

.flagship-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.flagship-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(240, 248, 245, 0.85);
  border: 1px solid rgba(220, 238, 230, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: inset 1px 1px 3px rgba(160, 185, 175, 0.25), inset -1px -1px 3px #ffffff;
}
[data-theme='dark'] .flagship-stat-pill,
html.dark .flagship-stat-pill {
  background: rgba(14, 21, 37, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6), inset -1px -1px 3px rgba(255, 255, 255, 0.02);
}

.flagship-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 9999px;
  background: linear-gradient(145deg, #00875a, #00704a);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 4px 4px 14px rgba(0, 135, 90, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
  transition: all 0.25s var(--ease-framer);
}
[data-theme='dark'] .flagship-cta-btn,
html.dark .flagship-cta-btn {
  background: linear-gradient(145deg, #00e599, #00b377);
  color: #070a12 !important;
  box-shadow: 0 0 18px rgba(0, 229, 153, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.6);
}
.flagship-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 8px 20px rgba(0, 135, 90, 0.45);
}
.flagship-cta-btn:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.flagship-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(220, 238, 230, 0.8);
  box-shadow: 4px 4px 12px rgba(160, 185, 175, 0.25), -3px -3px 10px #ffffff;
}
[data-theme='dark'] .flagship-thumb,
html.dark .flagship-thumb {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.6), -3px -3px 10px rgba(255, 255, 255, 0.02);
}

/* Section 03: COMMUNITY MILESTONES */
.milestones-track-wrapper {
  position: relative;
  margin: 1.75rem 0 2rem;
}

.milestones-track-line {
  position: absolute;
  top: 7px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #a7f3d0;
  z-index: 1;
}
[data-theme='dark'] .milestones-track-line,
html.dark .milestones-track-line {
  background: rgba(0, 229, 153, 0.25);
}

.milestones-nodes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.milestone-track-node {
  display: flex;
  justify-content: center;
}

.milestone-track-node span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00875a;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #a7f3d0;
}
[data-theme='dark'] .milestone-track-node span,
html.dark .milestone-track-node span {
  border-color: #070a12;
  box-shadow: 0 0 0 2px rgba(0, 229, 153, 0.35);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.milestone-card {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 8px 10px 22px rgba(160, 185, 175, 0.3), -8px -8px 20px #ffffff, inset 1px 1px 1px #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-framer), box-shadow 0.3s var(--ease-framer), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .milestone-card,
html.dark .milestone-card {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 10px 12px 28px rgba(0, 0, 0, 0.75), -6px -6px 20px rgba(255, 255, 255, 0.035), inset 1px 1px 1.5px rgba(255, 255, 255, 0.12);
}
.milestone-card:hover {
  transform: translateY(-5px);
  box-shadow: 14px 16px 32px rgba(145, 175, 165, 0.4), -10px -10px 24px #ffffff, 0 0 20px rgba(0, 229, 153, 0.18);
  border-color: rgba(0, 229, 153, 0.45);
}
[data-theme='dark'] .milestone-card:hover,
html.dark .milestone-card:hover {
  transform: translateY(-5px);
  box-shadow: 14px 16px 34px rgba(0, 0, 0, 0.9), -8px -8px 24px rgba(255, 255, 255, 0.05), 0 0 25px rgba(0, 229, 153, 0.25);
  border-color: rgba(0, 229, 153, 0.4);
}

.milestone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.milestone-icon-squircle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 8px rgba(160, 185, 175, 0.25), -2px -2px 6px #ffffff, inset 1px 1px 1px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
[data-theme='dark'] .milestone-icon-squircle,
html.dark .milestone-icon-squircle {
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6), -2px -2px 6px rgba(255, 255, 255, 0.03), inset 1px 1px 1px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.06);
}
.icon-green { background: #e6f7f0; color: #00875a; }
.icon-blue  { background: #e0f2fe; color: #0284c7; }
.icon-gold  { background: #fef3c7; color: #d97706; }
.icon-purple{ background: #f3e8ff; color: #9333ea; }
[data-theme='dark'] .icon-green  { background: rgba(0, 229, 153, 0.15); color: #34d399; }
[data-theme='dark'] .icon-blue   { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
[data-theme='dark'] .icon-gold   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
[data-theme='dark'] .icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.milestone-date-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(240, 248, 245, 0.85);
  border: 1px solid rgba(220, 238, 230, 0.8);
  box-shadow: inset 1px 1px 2px rgba(160, 185, 175, 0.2), inset -1px -1px 2px #ffffff;
}
[data-theme='dark'] .milestone-date-label,
html.dark .milestone-date-label {
  background: rgba(14, 21, 37, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.milestone-card-title {
  font-family: var(--font-headline);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.milestone-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.milestone-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: auto;
  border: 1px solid rgba(220, 238, 230, 0.8);
  box-shadow: 3px 3px 8px rgba(160, 185, 175, 0.2), -2px -2px 6px #ffffff;
}
[data-theme='dark'] .milestone-card-img,
html.dark .milestone-card-img {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
}

/* CTA Banner: Join the Community That Builds Real Impact */
.about-cta-banner {
  background: #ffffff;
  border: 1px solid rgba(220, 238, 230, 0.85);
  border-radius: 28px;
  padding: 2.5rem 3rem;
  box-shadow: 
    14px 16px 36px rgba(160, 185, 175, 0.35),
    -12px -12px 30px #ffffff,
    inset 1px 1px 2px rgba(255, 255, 255, 0.95);
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 5.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme='dark'] .about-cta-banner,
html.dark .about-cta-banner {
  background: linear-gradient(145deg, #0e1526, #090e1a);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    14px 16px 40px rgba(0, 0, 0, 0.85),
    -10px -10px 28px rgba(255, 255, 255, 0.035),
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.12);
}

.cta-photo-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 18px;
  overflow: visible;
}

.cta-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cta-photo-lightning-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00875a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
}
[data-theme='dark'] .cta-photo-lightning-badge {
  border-color: #0c1222;
}

.cta-banner-content {
  display: flex;
  flex-direction: column;
}

.cta-banner-title {
  font-family: var(--font-headline);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.cta-banner-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cta-primary {
  background: #00875a;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.25);
  transition: all 0.2s;
}
.btn-cta-primary:hover {
  background: #006d48;
  transform: translateY(-2px);
}

.btn-cta-secondary {
  background: #ffffff;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.2s;
}
[data-theme='dark'] .btn-cta-secondary {
  background: var(--surface-2);
  border-color: var(--border);
}
.btn-cta-secondary:hover {
  border-color: #00875a;
}

.cta-quote-block {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid #a7f3d0;
}
[data-theme='dark'] .cta-quote-block {
  border-color: rgba(0, 229, 153, 0.3);
}

.cta-quote-icon {
  font-size: 2.2rem;
  line-height: 1;
  color: #00875a;
  margin-bottom: 0.25rem;
}
[data-theme='dark'] .cta-quote-icon {
  color: #34d399;
}

.cta-quote-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.cta-quote-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   🌿 PRAHAR — MODERN CAMPUS EDITORIAL: MOBILE RESPONSIVE DESIGN SYSTEM
   Optimized for mobile devices (320px - 768px). Excludes Admin Panel.
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Global Viewport, Spacing & Container Rhythm */
  :root {
    --container-padding: 1.15rem;
  }

  body {
    overflow-x: hidden;
  }

  .container,
  main.container,
  .roster-container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section Spacing: 40px - 56px intentional rhythm */
  .section-padding,
  section.section-padding {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  /* 2. Mobile Header & Touch-Friendly Floating Nav */
  #topBanner {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
  }
  #topBanner #bannerLink {
    display: inline-block;
    margin-left: 4px !important;
  }

  .site-header {
    top: 0.65rem !important;
    padding: 0 0.85rem !important;
  }

  .nav-wrapper {
    padding: 0.55rem 0.85rem !important;
    border-radius: 20px !important;
  }

  .brand-logo {
    gap: 0.55rem !important;
  }
  .brand-logo img {
    width: 32px !important;
    height: 32px !important;
  }
  .brand-title {
    font-size: 1.05rem !important;
    letter-spacing: 0.06em !important;
  }
  .brand-sub {
    font-size: 0.6rem !important;
  }

  /* Simplify mobile header: hide desktop palette, audio button, and desktop CTA */
  .cmd-palette-btn,
  #openCmdPalette,
  .icon-action-btn,
  #soundToggleBtn,
  .nav-cta {
    display: none !important;
  }

  .nav-actions {
    gap: 0.5rem !important;
  }

  .theme-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
  }

  /* Mobile Drawer Overlay */
  .mobile-drawer {
    top: 4.65rem !important;
    left: 0.85rem !important;
    right: 0.85rem !important;
    padding: 1.15rem 1rem !important;
    border-radius: 18px !important;
    gap: 0.4rem !important;
  }
  .mobile-nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }

  /* 3. Hero Section (Clean Editorial Split -> Single Focused Flow) */
  .hero-section {
    padding-top: 5.75rem !important;
    padding-bottom: 2.25rem !important;
    text-align: left !important;
  }

  .hero-two-col {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .tech-crosshair {
    display: none !important;
  }

  .pill-tag {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    margin-bottom: 0.65rem !important;
  }

  .hero-title {
    font-size: clamp(2.15rem, 8.5vw, 2.75rem) !important;
    letter-spacing: -0.035em !important;
    line-height: 1.12 !important;
    text-align: left !important;
    margin: 0 0 0.85rem 0 !important;
    max-width: 100% !important;
  }

  .hero-section p,
  .hero-subtext {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.35rem !important;
    color: var(--text-muted) !important;
    max-width: 100% !important;
  }

  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
    margin-bottom: 1.65rem !important;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary,
  .hero-section .btn-primary,
  .hero-section .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }
  .hero-section .btn-primary {
    background: var(--accent) !important;
    color: #042f1d !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0, 229, 153, 0.3) !important;
  }
  .hero-section .btn-secondary {
    border: none !important;
    background: transparent !important;
    color: var(--text) !important;
    text-decoration: underline !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.25rem !important;
  }

  /* Social Proof Avatar Row below Hero CTAs */
  .hero-social-proof {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin-top: 1rem !important;
    width: 100% !important;
  }
  .avatar-stack {
    display: flex !important;
    align-items: center !important;
  }
  .avatar-stack img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 2px solid var(--surface) !important;
    object-fit: cover !important;
  }

  /* Hero Dominant Real Photograph */
  .hero-editorial-collage {
    max-width: 100% !important;
    margin: 0.5rem auto 0 !important;
    position: relative !important;
  }
  .hero-collage-main {
    height: 220px !important;
    border-radius: 14px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  .hero-collage-overlap {
    width: 130px !important;
    height: 92px !important;
    right: 8px !important;
    bottom: -12px !important;
    border-radius: 10px !important;
  }
  .hero-collage-badge {
    top: 10px !important;
    left: 10px !important;
    padding: 4px 10px !important;
    font-size: 0.65rem !important;
  }

  /* 4. Compact Card Hierarchy & Nested Spacing Reduction */
  .glass-card,
  .form-card,
  .bento-card {
    border-radius: 14px !important;
  }

  /* Strip excessive inline padding from legacy HTML templates */
  .glass-card[style*="padding: 3rem"],
  .glass-card[style*="padding: 2.75rem"],
  .glass-card[style*="padding: 2.5rem"],
  .glass-card[style*="padding: 2rem"],
  div[style*="padding: 3rem"],
  div[style*="padding: 2.75rem"],
  div[style*="padding: 2.5rem"] {
    padding: 1.25rem 1rem !important;
  }

  /* Featured Event Spotlight / Countdown Card (Mobile Editorial Reference) */
  #homeFlagshipCard,
  .glass-card[style*="margin-bottom: 3rem"] {
    margin-bottom: 1.75rem !important;
    padding: 1.35rem 1.15rem !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, var(--surface) 0%, rgba(0, 229, 153, 0.06) 100%) !important;
    border: 1px solid rgba(0, 229, 153, 0.35) !important;
    box-shadow: 0 12px 30px rgba(0, 229, 153, 0.08) !important;
  }
  #homeFlagshipCard > div,
  .glass-card[style*="margin-bottom: 3rem"] > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  #homeFlagshipCard #homeFlagshipHeadline,
  .glass-card[style*="margin-bottom: 3rem"] h3 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    margin: 0.45rem 0 0.35rem !important;
    color: var(--text) !important;
  }
  #homeFlagshipCard #homeFlagshipSummary,
  .glass-card[style*="margin-bottom: 3rem"] p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
    margin-bottom: 0.75rem !important;
  }
  /* Mobile 4-Column Single Row Countdown Ticker */
  #homeFlagshipCard div[style*="display: flex; gap: 0.75rem"],
  .glass-card[style*="margin-bottom: 3rem"] div[style*="display: flex; gap: 0.75rem"] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    margin: 0.5rem 0 0.75rem !important;
  }
  #homeFlagshipCard div[style*="min-width: 68px"],
  .glass-card[style*="margin-bottom: 3rem"] div[style*="min-width: 68px"] {
    min-width: 0 !important;
    padding: 0.55rem 0.25rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
  }
  #homeFlagshipCard div[style*="min-width: 68px"] div[id^="count"],
  .glass-card[style*="margin-bottom: 3rem"] div[style*="min-width: 68px"] div[id^="count"] {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: var(--accent) !important;
  }
  #homeFlagshipCard div[style*="min-width: 68px"] div[style*="font-size: 0.65rem"],
  .glass-card[style*="margin-bottom: 3rem"] div[style*="min-width: 68px"] div[style*="font-size: 0.65rem"] {
    font-size: 0.58rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-top: 3px !important;
    color: var(--text-dim) !important;
  }
  #homeFlagshipRegBtn,
  #homeFlagshipCard a.btn-primary,
  .glass-card[style*="margin-bottom: 3rem"] a.btn-primary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.85rem !important;
    border-radius: 999px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 4px 16px rgba(0, 229, 153, 0.3) !important;
  }

  /* 5. Mission & Philosophy Mobile Hierarchy */
  .mission-panel {
    padding: 1.5rem 1.15rem !important;
    border-radius: 22px !important;
    margin: 1.25rem 0 2rem 0 !important;
  }
  html.light .mission-panel,
  [data-theme='light'] .mission-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%) !important;
    border: 1px solid rgba(167, 243, 208, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  }
  .mission-title {
    font-size: 1.45rem !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
    margin-bottom: 0.65rem !important;
  }
  .mission-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
  }
  .mission-principles-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
  }
  .mission-principle-card {
    padding: 1rem 0.95rem !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  }
  [data-theme='dark'] .mission-principle-card,
  html.dark .mission-principle-card {
    background: rgba(18, 28, 50, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  }
  .principle-tag {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
    font-family: var(--font-mono) !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.25rem !important;
  }
  .principle-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    margin-bottom: 0.35rem !important;
  }
  .principle-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    color: var(--text-muted) !important;
  }

  /* 5b. Learning Philosophy & Activity Pillars (Bento Cards) */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .bento-card-span-2 {
    grid-column: span 1 !important;
  }
  .bento-grid .glass-card {
    padding: 1.15rem 1rem !important;
  }
  .bento-icon-box {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }
  .bento-grid h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.4rem !important;
  }
  .bento-grid p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  /* 6. Event Listings (Premium 2-Column Compact Grid on Mobile matching Reference) */
  .events-grid,
  .events-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 2rem !important;
  }
  .event-card,
  .cx-event-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--cx-surface, #ffffff) !important;
    border: 1px solid var(--cx-border, rgba(0, 0, 0, 0.08)) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .cx-event-card:active {
    transform: scale(0.98) !important;
  }
  .event-card-img,
  .cx-card-banner {
    height: 110px !important;
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .cx-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .cx-card-overlay-badge {
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2.5px 7px !important;
    border-radius: 999px !important;
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }
  .cx-card-overlay-badge.badge-upcoming {
    background: rgba(4, 78, 59, 0.92) !important;
    color: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
  }
  .cx-card-overlay-badge.badge-completed {
    background: rgba(51, 65, 85, 0.92) !important;
    color: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
  }
  .cx-card-overlay-badge.badge-past {
    background: rgba(15, 23, 42, 0.92) !important;
    color: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
  }
  .cx-card-overlay-badge .status-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: currentColor !important;
  }
  .cx-card-overlay-badge.badge-upcoming .status-dot {
    background: #00e599 !important;
    box-shadow: 0 0 6px #00e599 !important;
  }
  .cx-card-overlay-badge.badge-completed .status-dot {
    background: #60a5fa !important;
  }
  .cx-card-overlay-badge.badge-past .status-dot {
    background: #cbd5e1 !important;
  }

  .cx-bookmark-btn {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    z-index: 3 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    cursor: pointer !important;
    color: #1e293b !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }
  .cx-bookmark-btn:active {
    transform: scale(0.9) !important;
  }
  .cx-bookmark-btn.active {
    color: #00875a !important;
  }
  [data-theme='dark'] .cx-bookmark-btn,
  html.dark .cx-bookmark-btn {
    background: rgba(15, 23, 42, 0.88) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .event-card-body,
  .cx-card-body {
    padding: 0.65rem 0.55rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  .event-card-title,
  .cx-card-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.35rem 0 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.05rem !important;
  }
  .cx-card-title a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .cx-card-tags {
    display: flex !important;
    gap: 3.5px !important;
    flex-wrap: wrap !important;
    margin-bottom: 0.4rem !important;
  }
  .cx-tag {
    font-size: 0.58rem !important;
    font-weight: 600 !important;
    padding: 1.5px 6.5px !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
    border: none !important;
    white-space: nowrap !important;
  }
  .cx-tag.tag-mint { background: #d1fae5 !important; color: #047857 !important; }
  .cx-tag.tag-blue { background: #e0f2fe !important; color: #0284c7 !important; }
  .cx-tag.tag-purple { background: #f3e8ff !important; color: #7e22ce !important; }
  .cx-tag.tag-yellow { background: #fef3c7 !important; color: #b45309 !important; }
  .cx-tag.tag-green { background: #dcfce7 !important; color: #15803d !important; }
  .cx-tag.tag-cyan { background: #cffafe !important; color: #0e7490 !important; }
  .cx-tag.tag-orange { background: #ffedd5 !important; color: #c2410c !important; }
  .cx-tag.tag-default { background: #f1f5f9 !important; color: #475569 !important; }

  [data-theme='dark'] .cx-tag.tag-mint { background: rgba(16, 185, 129, 0.18) !important; color: #34d399 !important; }
  [data-theme='dark'] .cx-tag.tag-blue { background: rgba(14, 165, 233, 0.18) !important; color: #38bdf8 !important; }
  [data-theme='dark'] .cx-tag.tag-purple { background: rgba(168, 85, 247, 0.18) !important; color: #c084fc !important; }
  [data-theme='dark'] .cx-tag.tag-yellow { background: rgba(245, 158, 11, 0.18) !important; color: #fbbf24 !important; }
  [data-theme='dark'] .cx-tag.tag-green { background: rgba(34, 197, 94, 0.18) !important; color: #4ade80 !important; }
  [data-theme='dark'] .cx-tag.tag-cyan { background: rgba(6, 182, 212, 0.18) !important; color: #22d3ee !important; }
  [data-theme='dark'] .cx-tag.tag-orange { background: rgba(249, 115, 22, 0.18) !important; color: #fb923c !important; }
  [data-theme='dark'] .cx-tag.tag-default { background: rgba(255, 255, 255, 0.08) !important; color: #94a3b8 !important; }

  .cx-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.62rem !important;
    color: var(--text-muted, #64748b) !important;
    margin-bottom: 0.25rem !important;
    font-weight: 500 !important;
  }
  .cx-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }
  .cx-venue-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.62rem !important;
    color: var(--text-muted, #64748b) !important;
    margin-bottom: 0.45rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .cx-venue-row span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .cx-attendees-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: auto !important;
    margin-bottom: 0.55rem !important;
  }
  .cx-attendees-avatars {
    display: flex !important;
    align-items: center !important;
  }
  .cx-avatar {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid #ffffff !important;
    margin-left: -5px !important;
    display: inline-block !important;
  }
  .cx-avatar:first-child {
    margin-left: 0 !important;
  }
  [data-theme='dark'] .cx-avatar,
  html.dark .cx-avatar {
    border-color: #0e1322 !important;
  }
  .cx-avatar-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ede9fe !important;
    color: #6b21a8 !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    margin-left: -3px !important;
    border: 1.5px solid #ffffff !important;
  }
  [data-theme='dark'] .cx-avatar-count,
  html.dark .cx-avatar-count {
    background: rgba(168, 85, 247, 0.25) !important;
    color: #d8b4fe !important;
    border-color: #0e1322 !important;
  }
  .cx-attendees-label {
    font-size: 0.6rem !important;
    color: var(--text-muted, #64748b) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .cx-card-cta {
    width: 100% !important;
    padding: 0.45rem 0.6rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }
  .cx-card-cta.cta-upcoming {
    background: #00875a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 135, 90, 0.25) !important;
    border: none !important;
  }
  .cx-card-cta.cta-past {
    background: #e6f7f2 !important;
    color: #047857 !important;
    border: 1px solid rgba(4, 120, 87, 0.18) !important;
  }
  [data-theme='dark'] .cx-card-cta.cta-past,
  html.dark .cx-card-cta.cta-past {
    background: rgba(0, 229, 153, 0.12) !important;
    color: #00e599 !important;
    border: 1px solid rgba(0, 229, 153, 0.3) !important;
  }

  /* 7. Metrics & Stats Grid (Compact 2x2 Layout) */
  .metrics-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .stat-card {
    padding: 0.85rem 0.75rem !important;
    border-radius: 12px !important;
  }
  .stat-value {
    font-size: 1.65rem !important;
    margin-bottom: 0.15rem !important;
  }
  .stat-label {
    font-size: 0.78rem !important;
    margin-bottom: 0.15rem !important;
  }
  .stat-subtext {
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
  }

  /* 8. Members Page — Compact 2-Column Roster Grid */
  main.roster-container,
  .roster-container {
    padding-top: 5.85rem !important;
    padding-bottom: 3.5rem !important;
  }
  .roster-header {
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }
  .roster-title {
    font-size: clamp(1.85rem, 7vw, 2.3rem) !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 0.5rem !important;
  }
  .roster-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }

  .roster-two-col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .roster-panel {
    padding: 1rem 0.75rem !important;
    border-radius: 14px !important;
    margin-bottom: 1rem !important;
  }
  .roster-panel-header {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.85rem !important;
    gap: 0.55rem !important;
  }
  .roster-panel-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }
  .roster-panel-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .roster-panel-title {
    font-size: 0.86rem !important;
    letter-spacing: 0.02em !important;
  }
  .roster-panel-sub {
    font-size: 0.72rem !important;
  }

  /* Force Roster Grids into compact 2-column on mobile */
  .roster-cards-grid,
  .roster-cards-grid.center-few,
  .student-leadership-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    justify-content: stretch !important;
  }
  .roster-cards-grid.center-few .roster-card {
    width: 100% !important;
  }

  /* Compact Roster Card Styling with Reference Presentation */
  .roster-card {
    padding: 1.25rem 0.65rem 0.95rem !important;
    border-radius: 18px !important;
  }
  .roster-card-menu-btn {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 0.75rem !important;
  }
  .roster-avatar-wrap {
    width: 88px !important;
    height: 88px !important;
    margin-bottom: 0.5rem !important;
  }
  .roster-card-avatar {
    width: 78px !important;
    height: 78px !important;
    margin-bottom: 0 !important;
    border-width: 2.5px !important;
  }
  .roster-card-name {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
    font-weight: 800 !important;
  }
  .roster-card-role-desc {
    font-size: 0.72rem !important;
    margin-bottom: 0.25rem !important;
  }
  .roster-card-pill {
    font-size: 0.64rem !important;
    padding: 2.5px 7px !important;
    gap: 3px !important;
    margin-bottom: 0.35rem !important;
  }
  .roster-card-pill svg {
    width: 8px !important;
    height: 8px !important;
  }
  .roster-card-academic {
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.55rem !important;
  }
  .roster-card-academic svg {
    width: 10px !important;
    height: 10px !important;
  }
  .roster-card-socials {
    gap: 0.35rem !important;
    margin-bottom: 0.75rem !important;
  }
  .roster-social-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .roster-social-icon svg {
    width: 11px !important;
    height: 11px !important;
  }
  .roster-card-view-btn {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.72rem !important;
  }
  .roster-filter-toolbar {
    gap: 0.4rem !important;
    margin: 1rem auto 1.5rem !important;
  }
  .roster-filter-pill {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.76rem !important;
    gap: 0.35rem !important;
  }

  /* Built by Builders Section (Home Page) */
  #sec-team .student-leadership-grid,
  #sec-team div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  .member-card {
    padding: 0.85rem 0.55rem !important;
    border-radius: 12px !important;
    text-align: center !important;
  }
  .member-card img,
  .member-card .member-avatar {
    width: 54px !important;
    height: 54px !important;
    margin: 0 auto 0.45rem !important;
  }
  .member-card h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.2rem !important;
  }
  .member-card p {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
  }

  /* 9. Contact Page (Form Focused & Clean Supporting Blocks) */
  main.container[style*="padding-top: 9.5rem"] {
    padding-top: 5.85rem !important;
    padding-bottom: 3rem !important;
  }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Prevent iOS automatic viewport zoom on form inputs (min 16px font) */
  .form-input,
  .form-textarea,
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px !important;
    border-radius: 10px !important;
  }
  .form-input {
    height: 48px !important;
    padding: 0.65rem 0.85rem !important;
  }
  .form-textarea {
    min-height: 110px !important;
    padding: 0.65rem 0.85rem !important;
  }
  .form-group {
    margin-bottom: 1rem !important;
  }
  .form-label {
    font-size: 0.76rem !important;
    margin-bottom: 0.35rem !important;
    font-family: var(--font-mono) !important;
  }

  /* Contact Secondary Info Cards */
  div[style*="display: flex; flex-direction: column; gap: 1.75rem"] {
    gap: 0.85rem !important;
  }
  div[style*="display: flex; flex-direction: column; gap: 1.75rem"] .glass-card {
    padding: 1.15rem 1rem !important;
  }
  div[style*="praharcommunity@quantumuniversity.edu.in"] {
    font-size: 0.84rem !important;
    word-break: break-all !important;
  }

  /* 10. About Page & Storytelling */
  .story-grid,
  .values-grid,
  .mission-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .hero-visual-collage {
    min-height: 330px !important;
  }
  .hero-main-photo {
    height: 220px !important;
  }
  .floating-card-top-right {
    right: 5px !important;
    top: -12px !important;
    padding: 6px 12px !important;
  }
  .floating-sub-photo {
    width: 140px !important;
    height: 105px !important;
    bottom: -15px !important;
    right: 5px !important;
  }
  .floating-card-bottom-left {
    left: 5px !important;
    bottom: -12px !important;
    max-width: 210px !important;
    padding: 6px 10px !important;
  }
  .section-header-row,
  .flagship-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .doodle-container {
    display: none !important;
  }
  .vision-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .flagship-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .flagship-content-row {
    grid-template-columns: 1fr !important;
  }
  .flagship-thumb {
    height: 150px !important;
  }
  .milestones-track-wrapper {
    display: none !important;
  }
  .milestones-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .about-cta-banner {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 1.15rem !important;
    border-radius: 20px !important;
    gap: 1.25rem !important;
    margin-bottom: 2.75rem !important;
  }
  .cta-photo-wrapper {
    height: 170px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  .cta-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .cta-headline {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    margin-bottom: 0.45rem !important;
  }
  .cta-subtext {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }
  .cta-buttons-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }
  .cta-buttons-row .btn-primary,
  .cta-buttons-row .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 999px !important;
    padding: 0.8rem 1.25rem !important;
  }
  .cta-quote-block {
    border-left: none !important;
    border-top: 2px solid #a7f3d0 !important;
    padding-left: 0 !important;
    padding-top: 0.85rem !important;
  }
  .cta-quote-text {
    font-size: 0.8rem !important;
  }
  .cta-quote-author {
    font-size: 0.7rem !important;
  }

  /* 11. Gallery Grid (Compact 2-Column) */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    margin-top: 1.5rem !important;
  }
  .gallery-card {
    border-radius: 10px !important;
    aspect-ratio: 4 / 3 !important;
  }
  .gallery-caption {
    font-size: 0.65rem !important;
    padding: 0.85rem 0.5rem 0.45rem !important;
  }

  /* 12. Compact Footer */
  .site-footer {
    padding: 2.5rem 0 1.5rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }

  /* 13. Touch Micro-Animations & Immediate Haptic Feedback */
  button:active,
  a.btn-primary:active,
  a.btn-secondary:active,
  .roster-card:active,
  .neu-pill:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


