: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;
}

/* 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 {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.hero-content {
  max-width: 1000px;
  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;
}

.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;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  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;
}

/* Team 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;
}

/* 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: 1000px;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 1;
}

.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 {
  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;
}

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

.map-button {
  width: 200px;
  height: 120px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.8), rgba(0, 212, 255, 0.6));
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-button:hover {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.9), rgba(0, 212, 255, 0.7));
  transform: translateY(-2px);
}

.map-preview {
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-preview i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  color: #ff4757;
}

.map-preview span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.map-preview small {
  font-size: 0.7rem;
  opacity: 0.9;
}

.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 {
  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 p {
  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 p: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-map iframe {
    width: 180px;
    height: 100px;
  }
}

/* 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 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.trivia-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 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;
  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;
}

/* 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);
  }
}
