:root {
  /* Modern dark theme variables inspired by about.html */
  --ink: #e5e7eb;
  --muted: #94a3b8;
  --bg: #070b14;
  --panel: rgba(255, 255, 255, .04);
  --accent: #0A84FF;
  --border: rgba(255, 255, 255, .08);
  --border-light: rgba(255, 255, 255, .07);
  --glass: rgba(255, 255, 255, .06);
  --glass-hover: rgba(255, 255, 255, .12);
  
  /* Keep existing variables for compatibility */
  --primary-color: #0A84FF;
  --secondary-color: #0267c9;
  --accent-color: #f093fb;
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-light: #718096;
  --bg-primary: var(--bg);
  --bg-secondary: #f7fafc;
  --bg-dark: #1a202c;
  --bg-card: var(--panel);
  --border-color: var(--border);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --gradient-dark: linear-gradient(135deg, #1a202c, #2d3748);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, #0a1224, #070b14 35%);
  overflow-x: hidden;
  padding-top: 0; /* Let sections handle their own spacing */
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

/* Banner Section */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 70px; /* navbar height */
  aspect-ratio: 21 / 9; /* 21:9 ratio */
}

/* Scroll-driven intro scene (index page) */
.intro-scene {
  --primary-enter-progress: 0;
  --primary-exit-progress: 0;
  --primary-content-opacity: 0;
  --video-progress: 0;
  --secondary-enter-progress: 0;
  --secondary-content-opacity: 0;
  --intro-overlay-opacity: 0.2;
  --primary-translate-y: 40px;
  --secondary-translate-y: 40px;
  position: relative;
  height: 430vh;
}

.intro-pin {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.intro-scene .banner,
.intro-scene .hero {
  position: absolute;
  inset: 0;
  margin-top: 0;
  min-height: 100%;
}

.intro-scene .banner {
  aspect-ratio: auto;
}

.intro-scene .home-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.intro-scene .home-media-photo {
  opacity: calc(1 - var(--video-progress));
}

.intro-scene .home-media-video {
  opacity: var(--video-progress);
  background: #000;
}

.intro-scene .banner-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.78) 54%,
    rgba(0, 0, 0, 0.28) 100%
  );
  opacity: var(--intro-overlay-opacity);
}

.intro-scene .hero {
  padding-top: 0;
  z-index: 2;
}

.intro-scene .hero-copy-stage {
  width: 100%;
  display: grid;
  align-items: center;
}

.intro-scene .hero-content {
  grid-area: 1 / 1;
  width: 100%;
  pointer-events: none;
  will-change: opacity, transform;
}

.intro-scene .hero-content-primary {
  opacity: var(--primary-content-opacity);
  transform: translateY(var(--primary-translate-y));
}

.intro-scene .hero-content-secondary {
  opacity: var(--secondary-content-opacity);
  transform: translateY(var(--secondary-translate-y));
}

.intro-scene .hero-content.is-interactive {
  pointer-events: auto;
}

/* The decorative planets belong to the photo chapter and leave with it. */
.intro-scene .hero-animation {
  opacity: calc(1 - var(--video-progress));
}

.page-reveal {
  --page-reveal-progress: 1;
  opacity: var(--page-reveal-progress);
  transform: translateY(calc(30px * (1 - var(--page-reveal-progress))));
  transition: opacity 0.2s linear, transform 0.2s linear;
}

body.intro-enhanced .page-reveal {
  --page-reveal-progress: 0;
  pointer-events: none;
}

body.intro-enhanced .page-reveal.page-reveal-active {
  pointer-events: auto;
}

.banner-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Crop from top to remove sky */
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .banner {
    margin-top: 70px;
  }

  .intro-scene {
    height: 410vh;
  }
}

@media (max-width: 480px) {
  .banner {
    margin-top: 70px;
  }

  .intro-scene {
    height: 400vh;
  }
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.1rem;
  position: relative;
  z-index: 1;
}

/* Navigation - Enhanced with dynamic effects */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--navbar-bg, linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.9) 0%,
    rgba(20, 25, 35, 0.85) 50%,
    rgba(13, 17, 23, 0.9) 100%
  ));
  backdrop-filter: var(--navbar-blur, blur(20px) saturate(150%));
  border-bottom: 1px solid var(--navbar-border, rgba(10, 132, 255, 0.2));
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.navbar.scrolled {
  --navbar-bg: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.95) 0%,
    rgba(20, 25, 35, 0.9) 50%,
    rgba(13, 17, 23, 0.95) 100%
  );
  --navbar-blur: blur(25px) saturate(180%);
  --navbar-border: rgba(10, 132, 255, 0.3);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(10, 132, 255, 0.4) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 300% 100%;
  animation: scanLineSmooth 6s linear infinite;
  z-index: 10;
  pointer-events: none;
  opacity: 0.7;
}

.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 15px, rgba(10, 132, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80px 25px, rgba(10, 132, 255, 0.2), transparent),
    radial-gradient(1px 1px at 150px 10px, rgba(10, 132, 255, 0.3), transparent);
  background-size: 200px 50px;
  animation: twinkleSmooth 8s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes scanLineSmooth {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes activeGlow {
  0% { box-shadow: 0 5px 20px rgba(10, 132, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
  100% { box-shadow: 0 8px 30px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

@keyframes activePulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.2); }
}

@keyframes scanLine {
  0%, 100% { left: -100%; opacity: 0; }
  50% { left: 100%; opacity: 1; }
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo:hover {
  filter: brightness(1.2);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  will-change: transform;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  color: rgba(229, 231, 235, 0.8);
  text-decoration: none;
  padding: 0.8rem 1.1rem;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  position: relative;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: all 0.4s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover {
  color: white;
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.6);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(10, 132, 255, 0.25),
    0 0 25px rgba(10, 132, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(10, 132, 255, 0.3);
  text-shadow: 0 0 15px rgba(10, 132, 255, 0.8);
  backdrop-filter: blur(15px) saturate(150%);
}

.nav-link:hover::after {
  width: 80%;
  box-shadow: 0 0 10px var(--accent);
}

.nav-link.active {
  color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(10, 132, 255, 0.15) 0%,
    rgba(10, 132, 255, 0.08) 100%
  );
  border-color: rgba(10, 132, 255, 0.4);
  box-shadow: 
    0 5px 20px rgba(10, 132, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: activeGlow 2s ease-in-out infinite alternate;
}

.nav-link.active::after {
  width: 60%;
  animation: activePulse 1.5s ease-in-out infinite;
}

.nav-link.active {
  color: var(--ink);
  background: linear-gradient(180deg, var(--glass), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .14);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 3px;
}

.bar {
  width: 20px;
  height: 2px;
  background: rgba(229, 231, 235, 0.8);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  --hero-reveal-progress: 0;
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  margin-top: -100vh; /* Overlay on banner - adjust based on banner size */
  padding-top: 10vh; /* Add padding to position content nicely */
  z-index: 2;
}

@media (max-width: 1350px) {
  .hero {
    margin-top: -20vh; /* Reduce overlay on smaller screens */
    padding-top: 5vh; /* Adjust padding for mobile */
  }
}

@media (max-width: 983px) {
  .hero {
    margin-top: -15vh; /* Reduce overlay on smaller screens */
    padding-top: 5vh; /* Adjust padding for mobile */
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: -20vh; /* Reduce overlay on smaller screens */
    padding-top: 5vh; /* Adjust padding for mobile */
  }
}

@media (max-width: 590px) {
  .hero {
    margin-top: -15vh; /* Reduce overlay on smaller screens */
    padding-top: 5vh; /* Adjust padding for mobile */
  }
}

@media (max-width: 480px) {
  .hero {
    margin-top: -18vh; /* Reduce overlay on smaller screens */
    padding-top: 5vh; /* Adjust padding for mobile */
  }
}

.hero-content {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 1.1rem;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: slideInLeft 1s ease-out;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight .acronym-initial {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.6), 0 0 24px rgba(10, 132, 255, 0.55);
  letter-spacing: 0.01em;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
  animation: slideInRight 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4);
  animation: glow 2s infinite;
}

.btn-secondary {
  background: linear-gradient(180deg, var(--glass), rgba(255, 255, 255, .02));
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, .14);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, var(--glass-hover), var(--glass));
  transform: translateY(-2px) scale(1.02);
}

.btn-full {
  width: 100%;
}

/* Hero Animation */
.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.planet {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.planet-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.planet-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.planet-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 5%;
  animation-delay: 4s;
}

.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 180px 90px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 220px 60px, #fff, transparent),
    radial-gradient(1px 1px at 250px 20px, rgba(255,255,255,0.8), transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: twinkle 20s linear infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* Cool Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes twinkle {
  0% { background-position: 0 0; }
  100% { background-position: 300px 150px; }
}

@keyframes twinkleSmooth {
  0% { background-position: 0 0; }
  100% { background-position: 200px 100px; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes rocketLaunch {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-5deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
  75% { transform: translateY(-15px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(10, 132, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(10, 132, 255, 0.6); }
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Very subtle alternating backgrounds */
.section:nth-child(2n) {
  background: rgba(0, 0, 0, 0.025);
}

.section:nth-child(2n+1) {
  background: rgba(0, 0, 0, 0.01);
}

/* Ultra-smooth section blending */
.section {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.01),
    inset 0 -1px 0 rgba(255, 255, 255, 0.01);
}

.bg-dark {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  width: fit-content;
  margin: 0 auto 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  border-radius: 2px;
}

.bg-dark .section-title::after {
  background: linear-gradient(135deg, var(--accent), #00d4ff);
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Staggered Animation Delays */
.feature:nth-child(1) {
  animation-delay: 0s, 0s;
}

.feature:nth-child(2) {
  animation-delay: 0.2s, 2s;
}

.feature:nth-child(3) {
  animation-delay: 0.4s, 4s;
}

.project-card:nth-child(1) {
  animation-delay: 0.2s, 0s;
}

.project-card:nth-child(2) {
  animation-delay: 0.4s, 2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.6s, 4s;
}

.team-member:nth-child(1) {
  animation-delay: 0.3s, 0s;
}

.team-member:nth-child(2) {
  animation-delay: 0.5s, 2s;
}

.team-member:nth-child(3) {
  animation-delay: 0.7s, 4s;
}

.team-member:nth-child(4) {
  animation-delay: 0.9s, 6s;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
  align-items: stretch;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.6s ease-out, float 6s ease-in-out infinite;
  width: 100%;
  max-width: 320px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature:hover {
  transform: translateY(-10px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 40px rgba(10, 132, 255, 0.1);
}

.feature i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover i {
  color: var(--accent);
  transform: scale(1.1);
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.8s ease-out, pulse 4s ease-in-out infinite;
  /* width: 100%; */
  max-width: 350px;
  /* height: 100%; */
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-10px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 20px 40px rgba(10, 132, 255, 0.15);
}

.project-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-icon i {
  color: var(--accent);
  transform: scale(1.1) rotate(5deg);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-card p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
}

.project-status {
  margin-top: auto;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.active {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
  border: 1px solid #48bb78;
}

.status-badge.planning {
  background: rgba(237, 137, 54, 0.2);
  color: #ed8936;
  border: 1px solid #ed8936;
}

.status-badge.completed {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid #667eea;
}

/* Events Section */
.events-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.event-item:hover {
  transform: translateX(10px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, .14);
}

.event-date {
  text-align: center;
  margin-right: 2rem;
  min-width: 80px;
}

.event-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.event-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.event-time {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.event-time i {
  margin-right: 0.5rem;
}

/* Leadership Section */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.team-member {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 1s ease-out, float 8s ease-in-out infinite;
  width: 100%;
  max-width: 300px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Desktop min-height only */
@media (min-width: 769px) {
  .team-member {
    min-height: 320px;
  }
}

.team-member:hover {
  transform: translateY(-10px) scale(1.02);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 40px rgba(10, 132, 255, 0.12);
}

.member-photo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .member-photo {
  background: linear-gradient(135deg, var(--accent), var(--primary-color));
  transform: scale(1.05);
}

.team-member h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  min-height: 1.6rem;
}

.member-role {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  min-height: 1.4rem;
}

.member-program {
  opacity: 0.8;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 2.4rem;
}


.leadership-card {
  cursor: pointer;
  position: relative;
  outline: none;
}

.leadership-card:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25), 0 20px 40px rgba(10, 132, 255, 0.12);
}

.leadership-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, color 0.25s ease;
}

.leadership-card:hover .leadership-card-action,
.leadership-card:focus-visible .leadership-card-action {
  color: #ffffff;
  transform: translateX(4px);
}

body.modal-open {
  overflow: hidden;
}

.leadership-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.leadership-modal.active {
  display: flex;
}

.leadership-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.leadership-modal-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.75rem;
  background: linear-gradient(135deg, rgba(10, 11, 20, 0.97), rgba(20, 25, 40, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  animation: slideInUp 0.35s ease;
}

.leadership-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.leadership-modal-close:hover,
.leadership-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent);
  transform: rotate(90deg);
  outline: none;
}

.leadership-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 3rem;
  margin-bottom: 2rem;
}

.leadership-modal-photo {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  margin: 0;
  font-size: 2rem;
}

.leadership-modal-heading h2 {
  margin-bottom: 0.45rem;
  font-size: 2rem;
  line-height: 1.2;
}

.leadership-modal-heading .member-role,
.leadership-modal-heading .member-program {
  min-height: 0;
}

.leadership-modal-sections {
  display: grid;
  gap: 1rem;
}

.leadership-detail-section {
  padding: 1.35rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.leadership-detail-section h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  color: var(--ink);
}

.leadership-detail-section h3 i {
  color: var(--accent);
}

.leadership-detail-section p,
.leadership-contact-empty {
  color: var(--muted);
  line-height: 1.7;
}

.leadership-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.leadership-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.leadership-contact-link:hover,
.leadership-contact-link:focus-visible {
  transform: translateY(-2px);
  background: var(--glass-hover);
  border-color: rgba(10, 132, 255, 0.45);
  outline: none;
}

@media (max-width: 600px) {
  .leadership-modal {
    padding: 1rem;
  }

  .leadership-modal-content {
    padding: 4rem 1.25rem 1.5rem;
  }

  .leadership-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-right: 0;
  }

  .leadership-modal-photo {
    width: 96px;
    height: 96px;
  }

  .leadership-modal-heading h2 {
    font-size: 1.6rem;
  }
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-item i {
  margin-right: 1rem;
  color: var(--primary-color);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* Remove resize delay from message textarea */
#message {
  transition: none !important;
  resize: vertical;
}

/* Allow smooth animations for the "Other" program input container */
.other-program-input {
  transition: all 0.3s ease !important;
}

/* But disable transitions on input fields inside the "Other" container to prevent conflicts */
.other-program-input input {
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--glass);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.form-group select {
  color: var(--ink);
  background: var(--glass);
}

.form-group select option {
  background: var(--bg);
  color: var(--ink);
  padding: 10px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--glass-hover);
  color: var(--ink);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.checkbox-item:hover {
  background: var(--glass-hover);
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 132, 255, 0.1);
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-item .checkmark {
  height: 20px;
  width: 20px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkmark {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.3);
}

.checkbox-item .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

.checkbox-item span {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.checkbox-item:hover span {
  color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked ~ span {
  color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 3rem 0 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  width: min(300px, 30vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-blurb {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(10, 132, 255, 0.3);
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}

.footer-logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  margin-right: 0.5rem;
}

.footer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-location {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  gap: 0.5rem;
}

.footer-location i {
  color: var(--accent);
  font-size: 1.1rem;
}

.location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.location-text span {
  font-weight: 500;
  font-size: 0.9rem;
}

.location-text small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-map {
  width: 320px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ddd;
}

.footer-map:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.2);
}

/* Leaflet control styling to blend with dark footer */
.footer-map .leaflet-control-zoom a {
  color: #333;
}

.footer-map .leaflet-control-attribution {
  font-size: 0.65rem;
}

.footer-map .bahen-outline {
  cursor: pointer;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-social-group {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Remove old complex footer styles */
.footer-section,
.footer-contact,
.footer-contact-item,
.footer-social-link,
.footer-description,
.footer-bottom,
.footer-note {
  display: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(10, 132, 255, 0.3);
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}

.footer-logo i {
  margin-right: 0.5rem;
}

.footer-logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  margin-right: 0.5rem;
}

.footer-copyright {
  opacity: 0.9;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-copyright:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  .logo-img {
    height: 36px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  /* Fix navbar clipping issue on mobile */
  .navbar {
    overflow: visible;
  }

  .hamburger {
    display: flex;
    z-index: 9999;
  }

  /* Mobile navigation menu - side positioned and properly hidden */
  .nav-menu {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: auto;
    max-height: calc(100vh - 120px);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  /* Show menu when active - slides in from right */
  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-item {
    width: 100%;
    margin: 0;
    list-style: none;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(10, 132, 255, 0.2);
    color: var(--primary-color);
    border-color: rgba(10, 132, 255, 0.4);
    transform: scale(1.02);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* President's message buttons - better mobile layout */
  #presidents-message .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-content: center;
  }

  .event-item {
    flex-direction: column;
    text-align: center;
  }

  .event-date {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
  }

  .features .feature {
    flex: 1 1 150px;
    min-width: 150px;
    max-width: 200px;
    height: 280px;
  }

  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
  }

  .projects-grid .project-card {
    flex: 1 1 150px;
    min-width: 150px;
    max-width: 200px;
    height: 320px;
  }

  .team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
  }

  .team-grid .team-member {
    flex: 1 1 130px;
    min-width: 130px;
    max-width: 170px;
    height: 120px;
    min-height: 250px;
  }

  /* Mobile text sizing for cards - STANDARDIZED */
  .features .feature h3,
  .projects-grid .project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .features .feature p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .projects-grid .project-card p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .features .feature i,
  .projects-grid .project-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .team-grid .team-member h3 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }

  .team-grid .team-member .member-role {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
  }

  .team-grid .team-member .member-program {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
  }

  .team-grid .member-photo {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  /* Reduce padding on mobile cards */
  .features .feature,
  .projects-grid .project-card,
  .team-grid .team-member {
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

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

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

  .project-card,
  .feature,
  .contact-form {
    padding: 1rem;
  }

  /* Even more compact layouts for small screens */
  .team-grid .team-member {
    flex: 1 1 100px;
    min-width: 120px;
    max-width: 150px;
    height: 250px;
    min-height: 200px;
  }

  .features .feature {
    flex: 1 1 100px;
    min-width: 100px;
    max-width: 140px;
    height: 260px;
  }

  .projects-grid .project-card {
    flex: 1 1 100px;
    min-width: 120px;
    max-width: 150px;
    height: 300px;
  }

  /* Smaller mobile text sizing for cards - STANDARDIZED */
  .features .feature h3,
  .projects-grid .project-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .features .feature p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .features .feature i,
  .projects-grid .project-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .projects-grid .project-card p {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .projects-grid .project-card .status-badge {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    border-radius: 15px;
  }

  .team-grid .team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .team-grid .team-member .member-role {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .team-grid .team-member .member-program {
    font-size: 0.6rem;
    line-height: 1.3;
    margin-bottom: 0rem;
  }

  .team-grid .member-photo {
    width: 80px;
    height: 80px;
    font-size: 2.3rem;
    margin-bottom: 0.15rem;
  }

  /* Even more compact padding for small screens */
  .features .feature,
  .projects-grid .project-card,
  .team-grid .team-member {
    padding: 0.5rem;
  }

  /* Optimize President's message buttons for very small screens */
  #presidents-message .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  #events .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  /* Footer mobile adjustments */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-info {
    order: -1;
  }

  .footer-brand {
    width: min(100%, 420px);
    align-items: center;
  }

  .footer-blurb {
    text-align: center;
  }

  .footer-social-group {
    min-width: 0;
  }

  .footer-map {
    width: 260px;
    height: 160px;
  }
}

/* Smooth animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar styling - Firefox compatible approach */
html, body {
  scrollbar-width: thin;
  scrollbar-color: #0a84ff #1a1a1a;
}

/* Trivia Page Styles */
.trivia-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  text-align: center;
}

.trivia-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#trivia-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#trivia-game .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.trivia-controls {
  text-align: center;
  margin-bottom: 2rem;
}

.trivia-controls .btn {
  margin: 0 0.5rem;
}

.trivia-progress {
  margin: 0 auto 2rem auto;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  max-width: 800px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.timer-progress-container {
  margin-top: 1rem;
}

.timer-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.timer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #FFC107, #F44336);
  border-radius: 6px;
  transition: width 0.1s linear;
  width: 100%;
}

.timer-text {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.trivia-question-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

.question-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  animation: slideIn 0.5s ease;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.question-category {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-difficulty {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-difficulty[data-difficulty="Easy"] {
  background: #22c55e;
  color: white;
}

.question-difficulty[data-difficulty="Medium"] {
  background: #f59e0b;
  color: white;
}

.question-difficulty[data-difficulty="Hard"] {
  background: #ef4444;
  color: white;
}

.question-text {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.answer-option {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.answer-option:hover {
  border-color: var(--primary-color);
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.answer-option.selected {
  border-color: var(--primary-color);
  background: rgba(10, 132, 255, 0.1);
}

.answer-option.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.answer-option.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.answer-option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.answer-letter {
  background: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.answer-option.correct .answer-letter {
  background: #22c55e;
}

.answer-option.incorrect .answer-letter {
  background: #ef4444;
}

.trivia-results {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

.results-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  animation: slideIn 0.5s ease;
}

.results-header {
  margin-bottom: 2rem;
}

.results-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.results-header h2 {
  color: var(--ink);
  margin: 0;
}

.results-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-message {
  font-size: 1.1rem;
  color: var(--ink);
  padding: 1rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

/* Loading Placeholder Styles */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1; /* Span full width in grid layouts */
}

.loading-placeholder i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.loading-placeholder p {
  margin: 0;
  font-size: 1rem;
}

/* Hide loading placeholder when content is loaded */
.team-grid:not(:empty) .loading-placeholder,
.projects-grid:not(:empty) .loading-placeholder,
.features:not(:empty) .loading-placeholder {
  display: none;
}

/* Mobile Responsiveness for Trivia */
@media (max-width: 768px) {
  .trivia-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .stat-item {
    min-width: 70px;
    padding: 0.8rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .question-card {
    padding: 1.5rem;
  }
  
  .question-text {
    font-size: 1.2rem;
  }
  
  .question-header {
    justify-content: center;
    text-align: center;
  }
  
  .results-stats {
    gap: 1rem;
  }
  
  .result-number {
    font-size: 2rem;
  }
  
  .trivia-controls .btn {
    margin: 0.5rem;
    display: block;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .trivia-stats {
    gap: 0.5rem;
  }
  
  .stat-item {
    min-width: 60px;
    padding: 0.6rem;
  }
  
  .question-card {
    padding: 1rem;
  }
  
  .answer-option {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .answer-letter {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
}

/* Constitution Page Styles */
.constitution-hero {
  background: linear-gradient(180deg, #0a1224 0%, #070b14 35%, #0c1428 100%);
  min-height: 60vh;
  position: relative;
}

.constitution-hero .hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
  z-index: 1;
}

.constitution-hero .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.constitution-hero .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-weight: 300;
}

.constitution-hero .hero-actions {
  margin-top: 2rem;
}

.constitution-hero .btn-primary {
  background: linear-gradient(135deg, #0a84ff 0%, #00d4ff 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.constitution-hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4);
  background: linear-gradient(135deg, #0066cc 0%, #00aadd 100%);
}

.constitution-content {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
}

/* Table of Contents */
.constitution-nav {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.constitution-nav h3 {
  color: #0a84ff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.constitution-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
}

.constitution-toc li {
  margin: 0;
}

.constitution-toc a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.constitution-toc a:hover {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.3);
  color: #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.2);
}

.constitution-toc a.active {
  background: rgba(10, 132, 255, 0.2);
  border-color: rgba(10, 132, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll offset for fixed navbar */
.constitution-article {
  scroll-margin-top: 100px;
}

.document-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.constitution-article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.constitution-article:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.article-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a84ff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(10, 132, 255, 0.3);
}

.article-section {
  margin-bottom: 1.5rem;
}

.article-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 0.8rem;
}

.article-section p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.article-section ul {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-subsection {
  margin-left: 1rem;
  border-left: 2px solid rgba(0, 212, 255, 0.3);
  padding-left: 1rem;
}

.article-subsection p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.document-info {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.document-info h3 {
  color: #0a84ff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.document-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.document-info p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsiveness for Constitution */
@media (max-width: 768px) {
  .constitution-content {
    padding: 2rem 0;
  }
  
  .constitution-nav {
    margin: 0 1rem 2rem 1rem;
    padding: 1.5rem;
  }
  
  .constitution-toc {
    grid-template-columns: 1fr;
  }
  
  .document-wrapper {
    margin: 0 1rem;
    padding: 2rem 1.5rem;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .article-section h3 {
    font-size: 1.1rem;
  }
  
  .article-section p,
  .article-section li {
    font-size: 0.95rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0a84ff, #00d4ff);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
}

/* Constitution Navbar Dropdown */
.nav-dropdown {
  position: relative;
  overflow: visible;
}

.nav-dropdown .nav-link i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0;
  min-width: 500px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.dropdown-content {
  padding: 1rem;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.dropdown-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.dropdown-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(135deg, #0a84ff, #00d4ff);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-link:hover {
  background: rgba(10, 132, 255, 0.1);
  color: #00d4ff;
  transform: translateX(5px);
}

.dropdown-link:hover::before {
  transform: scaleY(1);
}

.dropdown-link.active {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(0, 212, 255, 0.1));
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(10, 132, 255, 0.4);
  box-shadow: 
    0 2px 8px rgba(10, 132, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.dropdown-link.active::before {
  transform: scaleY(1);
  width: 4px;
  background: linear-gradient(135deg, #00d4ff, #0a84ff);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.dropdown-link.active::after {
  content: '📍';
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0.8;
}

.dropdown-link.back-to-toc {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
  padding-top: 1rem;
  color: #0a84ff;
  font-weight: 500;
}

.dropdown-link.back-to-toc:hover {
  background: rgba(10, 132, 255, 0.2);
  color: #ffffff;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 280px;
    right: 0;
    left: auto;
    transform: translateX(0);
  }
  
  /* When dropdown is inside active mobile menu */
  .nav-menu.active .dropdown-menu {
    position: relative;
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    min-width: auto;
    max-width: none;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Keep the collapse behavior in mobile menu too */
    max-height: 0;
    overflow: hidden;
  }
  
  .nav-menu.active .nav-dropdown:hover .dropdown-menu {
    max-height: 700px;
    margin-top: 0.5rem;
  }
  
  .nav-menu.active .dropdown-content {
    padding: 1rem;
  }
  
  .nav-dropdown:hover .dropdown-menu {
    transform: translateX(0) translateY(0);
  }
  
  .dropdown-columns {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .dropdown-link {
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .dropdown-menu {
    min-width: 260px;
    max-width: calc(100vw - 40px);
    right: 20px;
    left: auto;
  }
  
  /* Override for mobile menu */
  .nav-menu.active .dropdown-menu {
    max-width: none;
    right: auto;
    left: 0;
    /* Keep collapse behavior */
    max-height: 0;
  }
  
  .nav-menu.active .nav-dropdown:hover .dropdown-menu {
    max-height: 650px;
  }
}

/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.project-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.project-modal-content {
  background: linear-gradient(135deg, rgba(10, 11, 20, 0.95), rgba(20, 25, 40, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 0.4s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
  border-color: var(--accent);
}

.project-modal-body {
  padding: 3rem;
}

.project-modal-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}

.project-modal-body h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-modal-status {
  text-align: center;
  margin-bottom: 2rem;
}

.project-modal-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2rem;
  text-align: center;
  white-space: pre-line;
}

/* Carousel Styles */
.project-carousel {
  margin: 2rem 0;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  min-height: 400px;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 15px;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 132, 255, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background: rgba(10, 132, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--accent);
  width: 30px;
  border-radius: 5px;
}

/* Project Details */
.project-details {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-details h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.project-details ul {
  list-style: none;
  padding: 0;
}

.project-details li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.project-details li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Make project cards clickable */
.project-card {
  cursor: pointer;
  user-select: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .project-modal.active {
    padding: 1rem;
  }
  
  .project-modal-content {
    max-height: 95vh;
  }
  
  .project-modal-body {
    padding: 2rem 1.5rem;
  }
  
  .project-modal-body h2 {
    font-size: 2rem;
  }
  
  .project-modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .carousel-slide {
    min-height: 300px;
  }
  
  .carousel-slide img {
    max-height: 300px;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

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

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


/* Join Us and Sponsors pages */
.page-intro {
  max-width: 760px;
  margin: -2rem auto 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}

.join-options-grid,
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

.join-option-card,
.partner-card {
  flex: 1 1 260px;
  max-width: 680px;
  min-height: 310px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.join-option-card:hover,
.partner-card:hover {
  transform: translateY(-8px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 40px rgba(10, 132, 255, 0.12);
}

.join-option-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 2rem;
}

.join-option-card h3,
.partner-section h3 {
  color: var(--text-primary);
}

.join-option-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.join-option-card p,
.partner-card > p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.join-option-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.join-option-action {
  margin-top: auto;
}

.join-option-disabled {
  cursor: default;
  opacity: 0.65;
  pointer-events: none;
}

.partner-section {
  margin-top: 4rem;
}

.partner-section h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  text-align: center;
}

.partner-image,
.sponsor-logo {
  width: 330px;
  height: 330px;
  margin-bottom: 1.25rem;
  object-fit: cover;
  border-radius: 50%;
}

.sponsor-logo {
  width: 330px;
  height: 330px;
  object-fit: contain;
  border-radius: 12px;
}

.partner-image-placeholder,
.sponsor-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--primary-color);
  font-size: 2rem;
}

.partner-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.partner-role {
  margin-bottom: 0.25rem;
  color: var(--accent-color) !important;
  font-weight: 800;
}

.partner-meta {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.partner-link {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.empty-state {
  width: 100%;
  max-width: 620px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--panel);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

.empty-state i {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2.3rem;
}

@media (min-width: 769px) {
  .nav-container {
    max-width: 1220px;
  }

  .nav-menu {
    gap: 0.65rem;
  }

  .nav-link {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

@media (max-width: 768px) {
  .page-intro {
    margin-top: -1rem;
  }

  .join-option-card,
  .partner-card {
    flex-basis: 100%;
    max-width: 420px;
    min-height: 0;
  }
}


/* The expanded navbar switches to the hamburger earlier so all tabs fit cleanly. */
@media (max-width: 1120px) and (min-width: 769px) {
  .hamburger {
    display: flex;
    z-index: 9999;
  }

  .nav-menu {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: auto;
    max-height: calc(100vh - 120px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.8rem;
    overflow-y: auto;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-item {
    width: 100%;
    margin: 0;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    text-align: center;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}


/* Homepage featured project spotlight */
.home-project-spotlight {
  padding: 7rem 0;
  position: relative;
}

.home-project-spotlight .container {
  max-width: 1180px;
}

.home-project-spotlight-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
  border: 1px solid rgba(10, 132, 255, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(13, 24, 47, 0.25), rgba(7, 11, 20, 0.25));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.home-project-kicker {
  width: fit-content;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.home-project-kicker::after {
  content: '';
  width: 42px;
  height: 1px;
  background: rgba(10, 132, 255, 0.46);
}

.home-project-kicker-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4da3ff;
  box-shadow: 0 0 14px rgba(77, 163, 255, 0.62);
}

.home-project-title {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
}

/* Editorial project brief: intentionally not a generic centered paragraph. */
.home-project-brief {
  max-width: 980px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  text-align: left;
}

.home-project-brief-lead {
  padding-left: 1.25rem;
  border-left: 2px solid rgba(10, 132, 255, 0.62);
}

.home-project-lede {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-project-callout {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-project-brief-notes {
  display: grid;
  gap: 1.15rem;
}

.home-project-brief-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.home-project-brief-notes strong {
  color: #fff;
  font-weight: 650;
  box-shadow: inset 0 -0.32em 0 rgba(10, 132, 255, 0.18);
}

/* Technical readout: no three matching cards. */
.home-project-readout {
  max-width: 980px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.home-project-readout-primary {
  min-height: 235px;
  padding: 2.25rem 2.75rem 2.25rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-project-readout-primary strong {
  margin: 0.35rem 0 0.25rem;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.home-project-readout-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-project-readout-secondary {
  padding: 1.55rem 0 1.55rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-project-readout-secondary.is-first {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-project-readout-secondary strong {
  margin: 0.3rem 0 0.2rem;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-project-spec-eyebrow {
  color: #4da3ff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-project-spec-label {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.home-project-action {
  max-width: 980px;
  margin: 1.8rem auto 0;
  display: flex;
  justify-content: flex-end;
}

.home-project-cta {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(77, 163, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-project-cta span {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}

.home-project-cta:hover {
  color: #fff;
  border-color: #4da3ff;
}

.home-project-cta:hover span {
  transform: translateX(4px);
}

@media (max-width: 800px) {
  .home-project-spotlight {
    padding: 4.5rem 0;
  }

  .home-project-brief {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-project-readout {
    grid-template-columns: 1fr;
  }

  .home-project-readout-primary {
    min-height: 190px;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .home-project-readout-secondary {
    padding: 1.5rem 0;
  }

  .home-project-action {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .home-project-spotlight-panel {
    border-radius: 22px;
    padding: 2.5rem 1.1rem;
  }

  .home-project-brief {
    margin-top: 2.25rem;
  }

  .home-project-callout {
    font-size: 1.65rem;
  }

  .home-project-readout {
    margin-top: 2.6rem;
  }
}

/* =========================================================
   Homepage secondary navigation
   ========================================================= */
.home-pathways {
  padding-top: 1rem;
  padding-bottom: 7rem;
}

.home-pathways-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.home-pathways-eyebrow,
.about-page-eyebrow,
.organization-branch-eyebrow {
  margin-bottom: 0.55rem;
  color: #4da3ff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-pathways-heading h2 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.home-pathway {
  min-width: 0;
  min-height: 220px;
  padding: 1.55rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-pathway:last-child {
  border-right: 0;
}

.home-pathway:hover,
.home-pathway:focus-visible {
  background: rgba(10, 132, 255, 0.08);
  outline: none;
}

.home-pathway:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(77, 163, 255, 0.65);
}

.home-pathway-index {
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-pathway-copy {
  min-width: 0;
}

.home-pathway-copy h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.home-pathway-copy p {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home-pathway-arrow {
  justify-self: end;
  color: #4da3ff;
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}

.home-pathway:hover .home-pathway-arrow,
.home-pathway:focus-visible .home-pathway-arrow {
  transform: translateX(7px);
}

/* =========================================================
   About hub: Organization + Leadership
   ========================================================= */
#organization,
#leadership {
  scroll-margin-top: 90px;
}

.about-overview {
  padding-bottom: 4rem;
}

.about-page-eyebrow {
  text-align: center;
}

.about-page-title {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.about-page-lede {
  max-width: 650px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
}

.about-page-nav {
  max-width: 780px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.about-page-nav a {
  min-width: 0;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  transition: background 0.2s ease;
}

.about-page-nav a:last-child {
  border-right: 0;
}

.about-page-nav a:hover,
.about-page-nav a:focus-visible {
  background: rgba(10, 132, 255, 0.08);
  outline: none;
}

.about-page-nav span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.about-page-nav strong {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.about-page-nav i {
  color: #4da3ff;
  transition: transform 0.2s ease;
}

.about-page-nav a:hover i,
.about-page-nav a:focus-visible i {
  transform: translateY(4px);
}

.about-organization {
  padding-top: 5rem;
}

.organization-stack {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.organization-branch {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.organization-branch-marker {
  padding-top: 0.35rem;
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.organization-branch-content {
  max-width: 880px;
}

.organization-branch-content > h3 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.organization-branch-content > p:not(.organization-branch-eyebrow) {
  max-width: 760px;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.organization-features {
  justify-content: flex-start;
  margin: 2.5rem 0 2rem;
}

.organization-branch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 163, 255, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.organization-branch-link span {
  color: #4da3ff;
  transition: transform 0.2s ease;
}

.organization-branch-link:hover,
.organization-branch-link:focus-visible {
  color: #fff;
  border-color: #4da3ff;
  outline: none;
}

.organization-branch-link:hover span,
.organization-branch-link:focus-visible span {
  transform: translateX(5px);
}

.organization-branch-aiaa {
  padding-bottom: 4.5rem;
}

.about-leadership {
  padding-top: 5rem;
}

.leadership-section-intro {
  max-width: 720px;
  margin: -2rem auto 3rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

/* =========================================================
   Upcoming events stack
   ========================================================= */
.events-upcoming-section {
  padding-bottom: 3rem;
}

.events-section-intro {
  max-width: 720px;
  margin: -2rem auto 3rem;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

.event-item-wip {
  background: rgba(255, 255, 255, 0.025);
}

.event-item-wip:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.04);
}

.event-item-wip .event-date .day {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.event-item-wip .event-date .month {
  margin-top: 0.35rem;
  font-size: 0.68rem;
}

.event-wip-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #9fcaff;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legacy-redirect {
  min-height: 100vh;
  padding: 2rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.25rem;
  text-align: center;
}

/* =========================================================
   Responsive additions
   ========================================================= */
@media (max-width: 900px) {
  .home-pathways-grid {
    grid-template-columns: 1fr;
  }

  .home-pathway {
    min-height: 0;
    padding: 1.35rem 0.5rem;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: start;
    gap: 0.85rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .home-pathway:last-child {
    border-bottom: 0;
  }

  .home-pathway-copy p {
    max-width: 52ch;
  }

  .home-pathway-arrow {
    align-self: center;
    padding-top: 0.2rem;
  }
}

@media (max-width: 760px) {
  .about-page-nav {
    grid-template-columns: 1fr;
  }

  .about-page-nav a {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .about-page-nav a:last-child {
    border-bottom: 0;
  }

  .organization-branch {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2.8rem 0;
  }

  .organization-branch-marker {
    padding-top: 0;
  }

}

@media (max-width: 520px) {
  .home-pathways {
    padding-bottom: 5rem;
  }

  .home-pathway {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 1.2rem 0.15rem;
  }

  .home-pathway-copy h3 {
    font-size: 1.1rem;
  }

  .home-pathway-copy p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

}


/* About > Organization > Rocketry feature grid.
   Explicitly scoped so large organization headings never leak into feature cards. */
#featuresGrid.organization-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
}

#featuresGrid.organization-features .feature {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 1.6rem 1.25rem;
}

#featuresGrid.organization-features .feature h3 {
  font-size: 1.2rem !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  margin-bottom: 0.8rem;
  overflow-wrap: anywhere;
}

#featuresGrid.organization-features .feature p {
  font-size: 0.9rem;
  line-height: 1.55;
}

#featuresGrid.organization-features .feature i {
  font-size: 2.35rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 820px) {
  #featuresGrid.organization-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #featuresGrid.organization-features {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   About: Rocketry Subteams
   ========================================================= */
.organization-branch-subteams {
  border-top-color: rgba(10, 132, 255, 0.32);
}

.subteams-intro {
  max-width: 720px;
  margin-bottom: 0 !important;
}

.subteams-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1px;
  width: 100%;
  margin-top: 2.25rem;
  background: transparent;
}

.subteam-panel {
  position: relative;
  flex: 0 1 calc((100% - 2px) / 2);
  min-width: 0;
  min-height: 255px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0d1422;
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  animation: none;
  transition: background 180ms ease;
}

.subteam-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.subteam-panel-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  color: var(--accent);
  font-size: 1.45rem;
  border-left: 1px solid rgba(10, 132, 255, 0.42);
  border-bottom: 1px solid rgba(10, 132, 255, 0.42);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.subteam-panel:hover .subteam-panel-icon,
.subteam-panel:focus-within .subteam-panel-icon {
  color: #ffffff;
  background: rgba(10, 132, 255, 0.12);
  transform: translate(-2px, 2px);
}

.subteam-panel::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 220ms ease;
}

.subteam-panel:hover,
.subteam-panel:focus-within {
  background: #111c2e;
}

.subteam-panel:hover::after,
.subteam-panel:focus-within::after {
  width: 100%;
}

.subteam-panel-index {
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

.subteam-panel-body {
  margin-top: 2.75rem;
}

.subteam-panel-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subteam-panel h4 {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.75vw, 1.6rem);
  font-weight: 650;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.subteam-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .subteam-panel {
    flex-basis: calc((100% - 1px) / 2);
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .subteam-panel {
    flex-basis: 100%;
    min-height: 0;
    padding: 1.25rem;
  }

  .subteam-panel-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex-basis: 2.55rem;
    font-size: 1.25rem;
  }

  .subteam-panel-body {
    margin-top: 1.65rem;
  }
}


/* =========================================================
   Contact page
   ========================================================= */

.contact-page .contact-page-section {
  overflow: hidden;
}

.contact-section-intro {
  max-width: 800px;
  margin: -2rem auto 3.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: center;
}

/* Club contact rails */
.club-contact-grid {
  display: grid;
  gap: 1px;
  background: rgba(10, 132, 255, 0.28);
  border: 1px solid rgba(10, 132, 255, 0.28);
}

.club-contact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.4rem 1.5rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(7, 11, 20, 0.94);
  transition: background 0.25s ease, transform 0.25s ease;
}

.club-contact-card:hover,
.club-contact-card:focus-visible {
  background: rgba(10, 132, 255, 0.11);
  transform: translateX(5px);
  outline: none;
}

.club-contact-index {
  color: rgba(148, 163, 184, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.club-contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.08);
}

.club-contact-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.club-contact-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.club-contact-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 650;
}

.club-contact-copy > span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.club-contact-arrow {
  color: rgba(229, 231, 235, 0.52);
  transition: transform 0.25s ease, color 0.25s ease;
}

.club-contact-card:hover .club-contact-arrow,
.club-contact-card:focus-visible .club-contact-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Executive contacts */
.executive-contacts-grid {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.executive-contact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.executive-contact-card:last-child {
  border-bottom: 0;
}

.executive-contact-identity {
  min-width: 0;
}

.executive-contact-role {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.executive-contact-identity h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 620;
  line-height: 1.35;
}

.executive-contact-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.executive-contact-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.68rem;
  color: rgba(229, 231, 235, 0.84);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.executive-contact-link i {
  color: var(--accent);
}

.executive-contact-link span {
  overflow-wrap: anywhere;
}

.executive-contact-link:hover,
.executive-contact-link:focus-visible {
  color: #fff;
  border-color: rgba(10, 132, 255, 0.48);
  background: rgba(10, 132, 255, 0.08);
  outline: none;
}

.executive-contact-link.is-fallback {
  color: var(--muted);
}

@media (max-width: 680px) {
  .executive-contact-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.15rem 0;
  }

  .executive-contact-actions {
    justify-content: flex-start;
  }
}

/* Contact transmission form */
.contact-form-shell {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.055), transparent 190px),
    rgba(7, 11, 20, 0.86);
  border: 1px solid rgba(10, 132, 255, 0.32);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-form-shell::before,
.contact-form-shell::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.contact-form-shell::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.contact-form-shell::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.contact-terminal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
}

.contact-terminal-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-terminal-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.contact-terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
  color: rgba(229, 231, 235, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.contact-status-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.contact-terminal-status.is-ready {
  color: rgba(229, 231, 235, 0.82);
}

.contact-terminal-status.is-ready .contact-status-dot {
  display: inline-block;
  background: #48bb78;
  box-shadow: 0 0 14px rgba(72, 187, 120, 0.68);
}

.contact-terminal-status.is-awaiting {
  color: rgba(148, 163, 184, 0.58);
}

.contact-terminal-status.is-error {
  color: #fda4af;
}

.contact-terminal-rule {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 2rem;
  color: rgba(148, 163, 184, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

#contactForm {
  padding: 2rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form-grid-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.contact-field {
  margin-bottom: 0;
}

.contact-field > label,
.contact-choice-fieldset > legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: rgba(229, 231, 235, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-field-number {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.form-optional {
  margin-left: auto;
  color: rgba(148, 163, 184, 0.56);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-field input,
.contact-message-field textarea {
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.035), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.contact-field input:hover,
.contact-message-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-field input:focus,
.contact-message-field textarea:focus {
  border-color: rgba(10, 132, 255, 0.72);
  background: rgba(10, 132, 255, 0.055);
  box-shadow: inset 3px 0 0 var(--accent);
}

.contact-choice-fieldset {
  min-width: 0;
  margin: 2.25rem 0 0;
  padding: 0;
  border: 0;
}

.contact-choice-fieldset > legend {
  width: 100%;
  padding: 0;
}

.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-topic-option {
  position: relative;
  min-width: 0;
  min-height: 116px;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  cursor: pointer;
  background: rgba(7, 11, 20, 0.95);
  transition: background 0.2s ease;
}

.contact-topic-option:hover {
  background: rgba(10, 132, 255, 0.07);
}

.contact-topic-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-topic-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: rgba(148, 163, 184, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-topic-option > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.contact-topic-option strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.contact-topic-option small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-topic-option:has(input:checked) {
  background: rgba(10, 132, 255, 0.11);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.contact-topic-option:has(input:checked) .contact-topic-icon {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.contact-topic-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.contact-program-fieldset {
  margin-top: 2rem;
}

.contact-field-help {
  margin: -0.2rem 0 0.85rem;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.76rem;
}

.contact-program-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-program-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-program-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-program-check {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid rgba(148, 163, 184, 0.38);
  font-size: 0.58rem;
}

.contact-program-option:has(input:checked) {
  color: var(--ink);
  border-color: rgba(10, 132, 255, 0.52);
  background: rgba(10, 132, 255, 0.08);
}

.contact-program-option:has(input:checked) .contact-program-check {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.contact-program-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-message-field {
  margin-top: 2.25rem;
}

.contact-message-field textarea {
  min-height: 190px;
}

.contact-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  color: rgba(148, 163, 184, 0.58);
  font-size: 0.68rem;
}

.contact-captcha-region {
  margin-top: 1.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.contact-captcha-region[hidden] {
  display: none;
}

.contact-captcha-region > div:first-child {
  display: flex;
  flex-direction: column;
}

.contact-captcha-region strong {
  font-size: 0.8rem;
}

.contact-captcha-region span {
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-form-status {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-form-status[hidden] {
  display: none;
}

.contact-form-status.is-success {
  color: #9ae6b4;
  border-color: rgba(72, 187, 120, 0.42);
  background: rgba(72, 187, 120, 0.07);
}

.contact-form-status.is-error {
  color: #feb2b2;
  border-color: rgba(245, 101, 101, 0.42);
  background: rgba(245, 101, 101, 0.07);
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-delivery-note {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
}

.contact-delivery-note > i {
  margin-top: 0.18rem;
  color: var(--accent);
}

.contact-delivery-note > div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.contact-delivery-note strong {
  color: rgba(229, 231, 235, 0.82);
  font-size: 0.75rem;
}

.contact-delivery-note span {
  max-width: 480px;
  font-size: 0.7rem;
  line-height: 1.45;
}

.contact-submit-button {
  flex: 0 0 auto;
  min-width: 210px;
  justify-content: space-between;
  border-radius: 0;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.contact-submit-button.is-sending i {
  animation: contactSubmitPulse 0.9s ease-in-out infinite alternate;
}

@keyframes contactSubmitPulse {
  from { transform: translateX(0); opacity: 0.55; }
  to { transform: translateX(5px); opacity: 1; }
}

@media (max-width: 760px) {
  .executive-contacts-grid,
  .contact-form-grid-primary,
  .contact-topic-grid {
    grid-template-columns: 1fr;
  }

  .contact-topic-option {
    min-height: 0;
  }

  .contact-terminal-head,
  #contactForm {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-terminal-rule {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-form-footer,
  .contact-captcha-region {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .contact-section-intro {
    margin-top: -2.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.94rem;
  }

  .club-contact-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    padding: 1.1rem;
  }

  .club-contact-index {
    display: none;
  }

  .club-contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-terminal-head {
    flex-direction: column;
  }

  .contact-terminal-status {
    padding-top: 0;
  }

  .contact-message-meta {
    flex-direction: column;
    gap: 0.15rem;
  }
}

/* Contact form: Cloudflare Turnstile */
#contactTurnstileWidget {
  min-height: 65px;
  max-width: 100%;
  overflow-x: auto;
}

#contactTurnstileWidget iframe {
  max-width: 100%;
}

/* =========================================================
   404 / Lost Trajectory page
   ========================================================= */

.error-page {
  min-height: calc(100vh - 70px);
  padding-top: 70px;
}

.error-stage {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5rem;
  position: relative;
  z-index: 1;
}

.error-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 132, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.055), transparent 180px),
    rgba(7, 11, 20, 0.90);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.error-console::before,
.error-console::after {
  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 2;
}

.error-console::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.error-console::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.error-console-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(148, 163, 184, 0.58);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.error-console-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fda4af;
}

.error-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 15px rgba(251, 113, 133, 0.72);
  animation: errorStatusPulse 1.15s ease-in-out infinite alternate;
}

.error-console-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: 470px;
}

.error-code-panel {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(rgba(10, 132, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
}

.error-code-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 132, 255, 0.13), transparent 52%);
  pointer-events: none;
}

.error-code {
  position: relative;
  z-index: 2;
  color: transparent;
  -webkit-text-stroke: 1px rgba(229, 231, 235, 0.88);
  font-size: clamp(6.5rem, 12vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  text-shadow: 0 0 35px rgba(10, 132, 255, 0.12);
}

.error-orbit {
  position: absolute;
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 50%;
}

.error-orbit-outer {
  width: min(360px, 82%);
  aspect-ratio: 1;
  animation: errorOrbitSpin 16s linear infinite;
}

.error-orbit-inner {
  width: min(245px, 58%);
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.72;
  animation: errorOrbitSpinReverse 11s linear infinite;
}

.error-orbit-outer::before,
.error-orbit-inner::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.82);
}

.error-orbit-outer::before {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.error-orbit-inner::after {
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
}

.error-flight-marker {
  position: absolute;
  z-index: 3;
  top: 22%;
  right: 17%;
  color: var(--accent);
  font-size: 1.1rem;
  transform: rotate(-38deg);
  filter: drop-shadow(0 0 10px rgba(10, 132, 255, 0.72));
  animation: errorRocketDrift 4.2s ease-in-out infinite;
}

.error-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.25rem;
}

.error-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.error-copy h1 {
  max-width: 620px;
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.error-description {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.error-path-readout {
  min-width: 0;
  margin-top: 1.75rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent);
  background: rgba(10, 132, 255, 0.055);
}

.error-readout-label {
  display: block;
  margin-bottom: 0.28rem;
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.error-path-readout code {
  display: block;
  overflow-wrap: anywhere;
  color: rgba(229, 231, 235, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.error-actions .btn {
  border-radius: 0;
}

.error-primary-action {
  min-width: 190px;
}

.error-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.error-telemetry-item {
  min-width: 0;
  padding: 0.95rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.error-telemetry-item:last-child {
  border-right: 0;
}

.error-telemetry-item span,
.error-telemetry-item strong {
  display: block;
}

.error-telemetry-item span {
  margin-bottom: 0.18rem;
  color: rgba(148, 163, 184, 0.48);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.error-telemetry-item strong {
  overflow-wrap: anywhere;
  color: rgba(229, 231, 235, 0.85);
  font-size: 0.76rem;
  font-weight: 650;
}

.error-recovery-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.error-recovery-links a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(7, 11, 20, 0.92);
  transition: background 0.2s ease;
}

.error-recovery-links a:hover,
.error-recovery-links a:focus-visible {
  background: rgba(10, 132, 255, 0.09);
  outline: none;
}

.error-recovery-links span {
  color: rgba(148, 163, 184, 0.42);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.error-recovery-links strong {
  font-size: 0.78rem;
  font-weight: 620;
}

.error-recovery-links i {
  color: var(--accent);
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.error-recovery-links a:hover i,
.error-recovery-links a:focus-visible i {
  transform: translateX(4px);
}

@keyframes errorStatusPulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@keyframes errorOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes errorOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes errorRocketDrift {
  0%, 100% { transform: translate(0, 0) rotate(-38deg); }
  50% { transform: translate(8px, -8px) rotate(-32deg); }
}

@media (max-width: 820px) {
  .error-stage {
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  .error-console-grid {
    grid-template-columns: 1fr;
  }

  .error-code-panel {
    min-height: 310px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .error-copy {
    padding: 2.25rem;
  }

  .error-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-telemetry-item:nth-child(2) {
    border-right: 0;
  }

  .error-telemetry-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .error-recovery-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .error-console-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-code-panel {
    min-height: 250px;
  }

  .error-copy {
    padding: 1.6rem 1.25rem 1.8rem;
  }

  .error-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .error-telemetry,
  .error-recovery-links {
    grid-template-columns: 1fr;
  }

  .error-telemetry-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .error-telemetry-item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-status-dot,
  .error-orbit,
  .error-flight-marker {
    animation: none;
  }
}


/* =========================================================
   Structured upcoming events
   ========================================================= */

.events-feed-heading {
  max-width: 860px;
  margin: -1.6rem auto 1rem;
  display: flex;
  justify-content: flex-end;
}

.events-feed-count {
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.events-feed {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.site-event-card {
  overflow: hidden;
  background: rgba(18, 21, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.site-event-card.is-live {
  border-color: rgba(72, 187, 120, 0.42);
}

.site-event-media {
  position: relative;
  width: 100%;
  height: clamp(190px, 32vw, 290px);
  overflow: hidden;
  background: #0c111c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-event-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-event-map {
  z-index: 0;
}

.site-event-map .leaflet-control-attribution {
  background: rgba(7, 11, 20, 0.82);
  color: rgba(229, 231, 235, 0.72);
  font-size: 0.58rem;
}

.site-event-map .leaflet-control-attribution a {
  color: #9fcaff;
}

.site-event-body {
  padding: 1.6rem 1.65rem 1.45rem;
}

.site-event-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-event-status,
.site-event-host {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.site-event-status {
  color: #7da2ff;
}

.site-event-card.is-live .site-event-status {
  color: #68d391;
}

.site-event-host {
  color: rgba(148, 163, 184, 0.66);
}

.site-event-card h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 630;
  line-height: 1.2;
}

.site-event-description {
  max-width: 760px;
  margin: 0;
  color: rgba(229, 231, 235, 0.84);
  font-size: 0.98rem;
  line-height: 1.7;
}

.site-event-schedule {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-event-schedule > i {
  margin-top: 0.25rem;
  color: #7da2ff;
}

.site-event-schedule > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.site-event-schedule-label {
  color: rgba(148, 163, 184, 0.60);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-event-schedule strong {
  color: rgba(229, 231, 235, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
}

.site-event-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.site-event-location {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.site-event-location > i {
  color: rgba(229, 231, 235, 0.86);
  font-size: 1.15rem;
}

.site-event-location > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-event-location strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.site-event-location span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-event-location a,
.site-event-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(229, 231, 235, 0.82);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.site-event-location a {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.site-event-location a:hover,
.site-event-location a:focus-visible {
  color: #fff;
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.08);
  outline: none;
}

.site-event-action {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  color: #fff;
  border: 1px solid rgba(10, 132, 255, 0.48);
  background: rgba(10, 132, 255, 0.16);
}

.site-event-action:hover,
.site-event-action:focus-visible {
  border-color: var(--accent);
  background: rgba(10, 132, 255, 0.26);
  outline: none;
}

.events-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: rgba(18, 21, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.events-empty-state > i {
  color: #7da2ff;
  font-size: 1.45rem;
}

.events-empty-state h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.events-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.events-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #9fcaff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
}

.events-get-involved {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.events-get-involved-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 680px) {
  .events-feed-heading {
    justify-content: center;
  }

  .site-event-body {
    padding: 1.3rem 1.2rem;
  }

  .site-event-status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .site-event-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem 1.2rem 1.2rem;
  }

  .site-event-location {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-event-location a {
    grid-column: 2;
    width: fit-content;
  }

  .site-event-action {
    justify-content: center;
  }

  .events-empty-state {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .events-empty-link {
    grid-column: 2;
  }
}
