
body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}


/* Keyframes for blinking stars */
@keyframes starBlink1 {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

@keyframes starBlink2 {
    0%, 100% { opacity: 0.2; }
    30% { opacity: 0.6; }
    60% { opacity: 0.4; }
    90% { opacity: 0.8; }
}

@keyframes starBlink3 {
    0%, 100% { opacity: 0.1; }
    25% { opacity: 0.5; }
    75% { opacity: 0.7; }
}

/* Starfield background layers */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: -1;
    pointer-events: none;
}

/* Layer 1: medium stars with moderate blink */
body::before {
    background:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(1.5px 1.5px 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);
    animation: starBlink1 6s infinite ease-in-out;
}

/* Layer 2: small stars with faster blink */
body::after {
    background:
        radial-gradient(1px 1px at 60px 20px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 120px 100px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 180px 50px, rgba(255,255,255,0.4), transparent);
    animation: starBlink2 4s infinite ease-in-out;
}

/* Quantum grid overlay */
.quantum-grid {
    background-image:
        linear-gradient(rgba(255,152,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,152,0,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Cosmic particle animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.6;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(100px) rotate(360deg); opacity: 0; }
}

/* Orbital animation */
@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.orbital-element {
    animation: orbit 30s linear infinite;
}

/* Glow effects */
.glow {
    box-shadow:
        0 0 20px rgba(255, 152, 0, 0.4),
        0 0 40px rgba(33, 150, 243, 0.2),
        0 0 60px rgba(156, 39, 176, 0.1);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

/* Smooth transitions */
.smooth-hover {
    transition: all 0.3s ease-in-out;
}

.smooth-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 4px;
}

/* Newsletter popup */
.newsletter-popup {
    backdrop-filter: blur(10px);
    background: rgba(13, 13, 13, 0.95);
}
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
    opacity: 0;
    animation: starBlinkIndefinite 4s infinite ease-in-out;
}

@keyframes starBlinkIndefinite {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
}
/* Add this to your style.css */
#shootingStarsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lower than content but above background */
    pointer-events: none;
    background-color: transparent;
    mix-blend-mode: screen; /* Makes white stars visible on dark bg */
  }

/* Body */
body {
    text-align: center;
    background: rgba(0, 0, 0, 1);
    font-family: 'Inter', sans-serif;
  }
  
  /* Atom Container */
  #atom {
    position: relative;
    width: 300px;
    height: 300px;
    display: inline-block;
    margin: 10px auto;
  }
  
  /* Shared styles */
  #nucleus, .orbit, .electron {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    margin: auto;
    border-radius: 50%;
  }
  
  /* Nucleus */
  #nucleus {
    width: 25px;
    height: 25px;
    background: #2196F3;
    box-shadow: 0 0 15px #2196F3;
    animation: shining 2s infinite linear;
  }
  
  /* Orbits */
  .orbit {
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
  }
  
  /* Orbit lines (rings) */
  .orbit:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: orbitSpecial 1.5s infinite linear;
  }
  
  /* Electron */
  .orbit .electron {
    position: relative;
    top: 95px;
    width: 10px;
    height: 10px;
    background: #FF9800;
    box-shadow: 0 0 15px #FF9800;
    border-radius: 50%;
    transform: translateX(100px);
    animation: electronAnimation 1.5s infinite linear;
  }
  
  /* Orbit plane rotations */
  .orbit:nth-child(2) {
    transform: rotateY(65deg) rotateX(-54deg);
  }
  .orbit:nth-child(2) .electron {
    animation-duration: 1s;
  }
  
  .orbit:nth-child(3) {
    transform: rotateY(65deg) rotateX(54deg);
  }
  
  .orbit:nth-child(4) {
    transform: rotateY(65deg) rotateX(5deg);
  }
  .orbit:nth-child(4) .electron {
    animation-delay: -1s;
  }
  
  /* Keyframe Animations */
  
  /* Electron orbiting */
  @keyframes electronAnimation {
    0% {
      transform: rotateZ(0deg) translateX(100px) rotateY(-65deg);
    }
    100% {
      transform: rotateZ(360deg) translateX(100px) rotateY(-65deg);
    }
  }
  
  /* Orbit glowing line rotates */
  @keyframes orbitSpecial {
    0% {
      border: 0;
      border-top: 1px solid rgba(255,255,255,0.5);
    }
    35% {
      border: 0;
      border-right: 1px solid rgba(255,255,255,0.5);
    }
    70% {
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,0.5);
    }
    100% {
      border: 0;
      border-left: 1px solid rgba(255,255,255,0.5);
    }
  }
  
  /* Nucleus shining */
  @keyframes shining {
    0% {
      box-shadow: 0 0 0 transparent;
    }
    50% {
      box-shadow: 0 0 40px #2196F3;
    }
    100% {
      box-shadow: 0 0 0 transparent;
    }
  }
  #tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  body {
    background: linear-gradient(to bottom, #b4b2b2 0%, #b4b2b2 70%, #f5f5f5 100%);
  }
  
  .rocket {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    transform: scale(0.7);
    z-index: 9999;
    cursor: pointer;
  }
  
  .rocket-body {
    width: 50px;
    position: relative;
  }
  
  .rocket-body .body {
    background-color: #dadada;
    height: 120px;
    border-radius: 100% 100% 50% 50%;
    border-top: 5px solid #f5f5f5;
  }
  
  .rocket-body::before {
    content: '';
    position: absolute;
    left: calc(50% - 24px);
    width: 48px;
    height: 13px;
    background-color: #554842;
    bottom: -13px;
    border-radius: 0 0 60% 60%;
  }
  
  .window {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #a75248;
    left: calc(50% - 12.5px);
    top: 30px;
    border: 5px solid #b4b2b2;
  }
  
  .fin {
    position: absolute;
    z-index: -1;
    height: 40px;
    width: 30px;
    background-color: #a75248;
  }
  
  .fin-left {
    left: -20px;
    top: calc(100% - 40px);
  }
  
  .fin-right {
    right: -20px;
    top: calc(100% - 40px);
  }
  
  .exhaust-flame {
    position: absolute;
    top: 90%;
    left: calc(50% - 10px);
    width: 20px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 200, 0, 0.8) 0%, rgba(255, 100, 0, 0.4) 70%, transparent 100%);
    animation: flameFlicker 0.4s infinite ease-in-out;
  }
  @keyframes flameFlicker {
    0%   { transform: scaleY(1); opacity: 0.9; }
    50%  { transform: scaleY(1.2); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0.8; }
  }
    
  
  .exhaust-fumes li {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    list-style: none;
    position: absolute;
    border-radius: 100%;
  }
  
  .star li {
    list-style: none;
    position: absolute;
  }
  .star li::before,
  .star li::after {
    content: '';
    position: absolute;
    background-color: #f5f5f5;
  }
  .star li::before {
    width: 10px;
    height: 2px;
    border-radius: 50%;
  }
  .star li::after {
    height: 8px;
    width: 2px;
    left: 4px;
    top: -3px;
  }
  

  
  @keyframes exhaust {
    0%, 75% { background: linear-gradient(to bottom, transparent 10%, #f5f5f5 100%); }
    50% { background: linear-gradient(to bottom, transparent 8%, #f5f5f5 100%); }
  }
  @keyframes twinkle {
    0%, 100% {
      opacity: 1;
      text-shadow: 0 0 6px #FF9800, 0 0 12px #FF9800;
    }
    50% {
      opacity: 0.7;
      text-shadow: 0 0 3px #FF9800, 0 0 6px #FF9800;
    }
  }
  
  .twinkle {
    animation: twinkle 1.6s ease-in-out infinite;
  }
  
  /* Quantum Wave Visualization */
.wave-container {
  position: relative;
  width: 100% !important;
  height: 300px !important;
  /* border: 2px solid rgba(255, 152, 0, 0.3) !important; */
  border-radius: 15px;
  background: transparent !important;
  overflow: hidden;
  /* box-shadow:  */
      /* 0 0 30px rgba(255, 152, 0, 0.2),
      inset 0 0 30px rgba(33, 150, 243, 0.1); */
}

.wave-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #FF9800;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
  z-index: 10;
}

.probability-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  color: rgba(255, 152, 0, 0.8);
  font-size: 10px;
  font-weight: 500;
}

.position-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 152, 0, 0.8);
  font-size: 10px;
  font-weight: 500;
}

.wave-quantum-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
      linear-gradient(rgba(255,152,0,0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,152,0,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle-indicator {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #2196F3;
  border-radius: 50%;
  box-shadow: 0 0 15px #2196F3;
  animation: particleGlow 2s infinite ease-in-out;
  z-index: 5;
}

@keyframes particleGlow {
  0%, 100% { 
      box-shadow: 0 0 15px #2196F3, 0 0 30px rgba(33, 150, 243, 0.5);
      transform: scale(1);
  }
  50% { 
      box-shadow: 0 0 25px #2196F3, 0 0 50px rgba(33, 150, 243, 0.8);
      transform: scale(1.2);
  }
}

.energy-levels {
  position: absolute;
  right: 10px;
  top: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.energy-level {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF9800, transparent);
  opacity: 0.6;
  animation: energyPulse 3s infinite ease-in-out;
}

.energy-level:nth-child(1) { animation-delay: 0s; }
.energy-level:nth-child(2) { animation-delay: 0.5s; }
.energy-level:nth-child(3) { animation-delay: 1s; }
.energy-level:nth-child(4) { animation-delay: 1.5s; }

@keyframes energyPulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
  50% { opacity: 0.9; transform: scaleX(1.2); }
}

.uncertainty-indicator {
  position: absolute;
  bottom: 50px;
  right: 15px;
  color: rgba(156, 39, 176, 0.8);
  font-size: 10px;
  text-align: center;
  animation: uncertaintyFlicker 2s infinite;
}

@keyframes uncertaintyFlicker {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
section {
  scroll-margin-top: 100px; /* adjust to your header height */
}
.text-glow {
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.glow {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.timeline-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.century-btn:hover {
  transform: translateY(-2px);
}
/* ADD THIS CSS CODE TO THE END OF YOUR style.css FILE */

/* Policy Popup Styles */
.policy-popup {
  backdrop-filter: blur(10px);
  background: rgba(13, 13, 13, 0.95);
}

.policy-popup .scale-95 {
  transform: scale(0.95);
}

.policy-popup .opacity-0 {
  opacity: 0;
}

.policy-popup.show .scale-95 {
  transform: scale(1);
}

.policy-popup.show .opacity-0 {
  opacity: 1;
}

/* Scrollbar for popup content */
.policy-popup ::-webkit-scrollbar {
  width: 6px;
}

.policy-popup ::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 3px;
}

.policy-popup ::-webkit-scrollbar-thumb {
  background: #ff9800;
  border-radius: 3px;
}

.policy-popup ::-webkit-scrollbar-thumb:hover {
  background: #f57c00;
}

/* Contact form styling */
.policy-popup input:focus,
.policy-popup textarea:focus,
.policy-popup select:focus {
  ring: 2px;
  ring-color: rgba(255, 152, 0, 0.3);
  border-color: #ff9800;
}

/* Smooth transitions for form elements */
.policy-popup input,
.policy-popup textarea,
.policy-popup select {
  transition: all 0.3s ease;
}

/* Popup container sizing */
.popup-container {
  max-width: 800px;
  max-height: 80vh;
}

.popup-container-small {
  max-width: 600px;
  max-height: 80vh;
}

.popup-content {
  overflow-y: auto;
  max-height: 60vh;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .popup-container,
  .popup-container-small {
      max-width: 95vw;
      max-height: 90vh;
  }
  
  .popup-content {
      max-height: 70vh;
  }
}
/* ENHANCED NEBULA SYSTEM WITH CENTRAL GLOW */
.nebula-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.nebula-cloud {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(60px);
  animation: nebulaDrift 25s infinite ease-in-out;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.1);
}

/* Purple/Violet Nebula with bright center */
.nebula-cloud-1 {
  width: 450px;
  height: 300px;
  background: radial-gradient(ellipse at center, 
      rgba(255, 255, 255, 0.8) 0%,
      rgba(138, 43, 226, 0.9) 15%,
      rgba(75, 0, 130, 0.6) 40%,
      rgba(50, 0, 80, 0.3) 65%,
      transparent 85%);
  top: 8%;
  left: 3%;
  animation-duration: 35s;
  box-shadow: 
    inset 0 0 50px rgba(255, 255, 255, 0.3),
    0 0 100px rgba(138, 43, 226, 0.4);
}

/* Pink/Magenta Nebula with golden center */
.nebula-cloud-2 {
  width: 380px;
  height: 320px;
  background: radial-gradient(ellipse at center, 
      rgba(255, 215, 0, 0.9) 0%,
      rgba(255, 20, 147, 0.8) 12%,
      rgba(199, 21, 133, 0.5) 35%,
      rgba(120, 15, 80, 0.3) 60%,
      transparent 80%);
  top: 58%;
  right: 3%;
  animation-duration: 40s;
  animation-delay: -12s;
  box-shadow: 
    inset 0 0 60px rgba(255, 215, 0, 0.4),
    0 0 120px rgba(255, 20, 147, 0.3);
}

/* Cyan/Blue Nebula with white-blue center */
.nebula-cloud-3 {
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse at center, 
      rgba(255, 255, 255, 0.7) 0%,
      rgba(0, 255, 255, 0.8) 10%,
      rgba(0, 191, 255, 0.6) 30%,
      rgba(30, 144, 255, 0.4) 55%,
      rgba(0, 100, 200, 0.2) 75%,
      transparent 90%);
  top: 25%;
  right: 20%;
  animation-duration: 45s;
  animation-delay: -25s;
  box-shadow: 
    inset 0 0 80px rgba(255, 255, 255, 0.2),
    0 0 150px rgba(0, 255, 255, 0.3);
}

/* Green/Emerald Nebula - Additional nebula */
.nebula-cloud-4 {
  width: 320px;
  height: 200px;
  background: radial-gradient(ellipse at center, 
      rgba(255, 255, 255, 0.6) 0%,
      rgba(0, 255, 127, 0.7) 8%,
      rgba(0, 200, 100, 0.5) 25%,
      rgba(0, 150, 80, 0.3) 50%,
      rgba(0, 100, 50, 0.1) 70%,
      transparent 85%);
  top: 75%;
  left: 15%;
  animation-duration: 50s;
  animation-delay: -35s;
  opacity: 0.4;
  filter: blur(70px);
  box-shadow: 
    inset 0 0 40px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(0, 255, 127, 0.25);
}

/* Orange/Red Nebula - Additional nebula */
.nebula-cloud-5 {
  width: 280px;
  height: 180px;
  background: radial-gradient(ellipse at center, 
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 140, 0, 0.9) 5%,
      rgba(255, 69, 0, 0.6) 20%,
      rgba(200, 50, 0, 0.4) 45%,
      rgba(150, 30, 0, 0.2) 65%,
      transparent 80%);
  top: 15%;
  left: 70%;
  animation-duration: 32s;
  animation-delay: -18s;
  opacity: 0.45;
  filter: blur(55px);
  box-shadow: 
    inset 0 0 35px rgba(255, 255, 255, 0.25),
    0 0 90px rgba(255, 140, 0, 0.3);
}

@keyframes nebulaDrift {
  0%, 100% { 
      transform: translateX(0) translateY(0) scale(1) rotate(0deg);
  }
  25% { 
      transform: translateX(15px) translateY(-10px) scale(1.03) rotate(2deg);
  }
  50% { 
      transform: translateX(25px) translateY(-20px) scale(1.08) rotate(0deg);
  }
  75% { 
      transform: translateX(10px) translateY(-5px) scale(1.02) rotate(-1deg);
  }
}

/* Pulsing glow animation for centers */
@keyframes nebulaGlow {
  0%, 100% { 
      filter: blur(60px) brightness(1);
  }
  50% { 
      filter: blur(105px) brightness(1.2);
  }
}

.nebula-cloud-1 {
  animation: nebulaDrift 35s infinite ease-in-out, nebulaGlow 8s infinite ease-in-out;
}

.nebula-cloud-2 {
  animation: nebulaDrift 40s infinite ease-in-out, nebulaGlow 12s infinite ease-in-out;
  animation-delay: -12s, -3s;
}

.nebula-cloud-3 {
  animation: nebulaDrift 45s infinite ease-in-out, nebulaGlow 10s infinite ease-in-out;
  animation-delay: -25s, -6s;
}

.nebula-cloud-4 {
  animation: nebulaDrift 50s infinite ease-in-out, nebulaGlow 15s infinite ease-in-out;
  animation-delay: -35s, -9s;
}

.nebula-cloud-5 {
  animation: nebulaDrift 32s infinite ease-in-out, nebulaGlow 7s infinite ease-in-out;
  animation-delay: -18s, -2s;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nebula-cloud {
      opacity: 0.3;
      filter: blur(20px);
  }
  
  .nebula-cloud-1,
  .nebula-cloud-2,
  .nebula-cloud-3 {
      width: 250px;
      height: 150px;
  }
  
  .nebula-cloud-4,
  .nebula-cloud-5 {
      width: 180px;
      height: 120px;
  }
}
/* LCARS Terminal Interface - Complete Styles */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;600;700&display=swap');

/* LCARS Authentic Variables */
:root {
    --lcars-orange: #ff9900;
    --lcars-orange-dark: #cc7700;
    --lcars-blue: #99ccff;
    --lcars-blue-dark: #5588cc;
    --lcars-red: #cc6666;
    --lcars-red-dark: #aa4444;
    --lcars-purple: #cc99cc;
    --lcars-green: #99cc99;
    --lcars-yellow: #ffcc99;
    --lcars-bg: #000000;
    --lcars-bg-light: #111111;
    --lcars-text: #ffcc99;
}

/* LCARS Popup Container */
.lcars-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #001122 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    font-family: 'Antonio', sans-serif;
}

.lcars-popup.active {
    opacity: 1;
}

/* Main Terminal Container */
.lcars-terminal {
    width: 95%;
    max-width: 900px;
    height: 85vh;
    background: var(--lcars-bg);
    border: 3px solid var(--lcars-orange);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 50px rgba(255, 153, 0, 0.4),
        inset 0 0 30px rgba(255, 153, 0, 0.1);
}

/* LCARS Header Bar */
.lcars-header {
    height: 80px;
    background: var(--lcars-orange);
    position: relative;
    display: flex;
    align-items: center;
}

/* Left rounded section */
.lcars-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 100%;
    background: var(--lcars-orange-dark);
    border-radius: 0 40px 40px 0;
}

/* Header Title */
.lcars-title {
    color: #000;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-left: 140px;
    z-index: 2;
    position: relative;
}

/* Right Control Panel */
.lcars-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

/* LCARS Style Buttons */
.lcars-btn {
    height: 50px;
    border: none;
    border-radius: 25px;
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

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

.lcars-btn-primary {
    background: linear-gradient(135deg, var(--lcars-orange) 0%, var(--lcars-orange-dark) 100%);
    color: #000;
    padding: 0 25px;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

.lcars-btn-secondary {
    background: linear-gradient(135deg, var(--lcars-blue) 0%, var(--lcars-blue-dark) 100%);
    color: #000;
    padding: 0 20px;
    box-shadow: 0 0 15px rgba(153, 204, 255, 0.4);
}

.lcars-btn-danger {
    background: linear-gradient(135deg, var(--lcars-red) 0%, var(--lcars-red-dark) 100%);
    color: #fff;
    width: 50px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(204, 102, 102, 0.5);
}

.lcars-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.lcars-btn:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

/* Terminal Content Area */
.lcars-content {
    height: calc(100% - 160px);
    display: flex;
    background: linear-gradient(135deg, #000000 0%, #001122 100%);
}

/* Left Sidebar */
.lcars-sidebar {
    width: 200px;
    background: var(--lcars-bg-light);
    border-right: 2px solid var(--lcars-orange);
    display: flex;
    flex-direction: column;
}

.lcars-sidebar-btn {
    height: 60px;
    background: var(--lcars-purple);
    border: none;
    border-bottom: 2px solid var(--lcars-bg);
    color: #000;
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.lcars-sidebar-btn:hover {
    background: var(--lcars-orange);
    transform: translateX(5px);
}

.lcars-sidebar-btn:nth-child(2) { background: var(--lcars-yellow); }
.lcars-sidebar-btn:nth-child(3) { background: var(--lcars-green); }
.lcars-sidebar-btn:nth-child(4) { background: var(--lcars-blue); }
.lcars-sidebar-btn:nth-child(5) { background: var(--lcars-red); color: #fff; }

/* Main Content Panel */
.lcars-main {
    flex: 1;
    padding: 30px;
    color: var(--lcars-text);
    overflow-y: auto;
    position: relative;
}

/* Transmission Header */
.transmission-header {
    color: var(--lcars-blue);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(153, 204, 255, 0.6);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 15px rgba(153, 204, 255, 0.6); }
    50% { text-shadow: 0 0 25px rgba(153, 204, 255, 0.9), 0 0 35px rgba(153, 204, 255, 0.6); }
}

/* Status Panels */
.status-panel {
    background: rgba(255, 153, 0, 0.1);
    border: 2px solid var(--lcars-orange);
    border-radius: 0 15px 15px 0;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.status-panel::before {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    width: 20px;
    height: calc(100% + 4px);
    background: var(--lcars-orange);
    border-radius: 0 8px 8px 0;
}

.status-title {
    color: var(--lcars-orange);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-text {
    color: var(--lcars-text);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.info-card {
    background: linear-gradient(135deg, rgba(153, 204, 255, 0.1) 0%, rgba(153, 204, 255, 0.05) 100%);
    border: 1px solid var(--lcars-blue);
    border-radius: 0 8px 8px 0;
    padding: 15px;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--lcars-blue);
}

.info-label {
    color: var(--lcars-blue);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

/* Bottom Status Bar */
.lcars-footer {
    height: 80px;
    background: linear-gradient(90deg, var(--lcars-orange) 0%, var(--lcars-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
}

.lcars-footer::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--lcars-orange-dark);
    border-radius: 50%;
}

.footer-status {
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    z-index: 2;
}

/* Scrollbar Styling */
.lcars-main::-webkit-scrollbar {
    width: 12px;
}

.lcars-main::-webkit-scrollbar-track {
    background: var(--lcars-bg);
    border-left: 2px solid var(--lcars-orange);
}

.lcars-main::-webkit-scrollbar-thumb {
    background: var(--lcars-orange);
    border-radius: 0;
}

.lcars-main::-webkit-scrollbar-thumb:hover {
    background: var(--lcars-orange-dark);
}

/* Blinking Alert */
.alert-blink {
    animation: alertBlink 1s infinite;
}

@keyframes alertBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Loading Animation */
.loading-bar {
    width: 100%;
    height: 4px;
    background: var(--lcars-bg-light);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--lcars-orange), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lcars-terminal {
        width: 98%;
        height: 95vh;
    }
    
    .lcars-sidebar {
        width: 150px;
    }
    
    .lcars-main {
        padding: 20px;
    }
    
    .transmission-header {
        font-size: 22px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .lcars-title {
        font-size: 18px;
        margin-left: 130px;
    }
    
    .footer-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
/* Search Functionality Styles - Add to your style.css */

/* Search Results Container */
.search-results-container {
  margin-top: 20px;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(13, 13, 13, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 152, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Search Results Header */
.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
  background: rgba(255, 152, 0, 0.1);
}

.search-results-count {
  color: #FF9800;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #FF9800;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-clear-btn:hover {
  background: rgba(255, 152, 0, 0.1);
  border-color: #FF9800;
  transform: translateY(-1px);
}

/* Search Results List */
.search-results-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Individual Search Result Item */
.search-result-item {
  padding: 16px 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
}

.search-result-item:hover {
  background: rgba(255, 152, 0, 0.05);
  border-left-color: #FF9800;
  transform: translateX(4px);
}

.search-result-item.selected {
  background: rgba(255, 152, 0, 0.1);
  border-left-color: #FF9800;
  transform: translateX(4px);
}

.search-result-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Result Header */
.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 15px;
}

.search-result-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.search-result-section {
  color: #FF9800;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 152, 0, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Result Preview */
.search-result-preview {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Search Result Meta */
.search-result-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}

.search-result-score {
  color: rgba(255, 152, 0, 0.6);
  font-size: 11px;
  font-weight: 500;
}

/* Search Match Highlighting */
.search-match {
  background: linear-gradient(120deg, #FF9800, #FFB74D);
  color: #000;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(255, 152, 0, 0.3);
}

/* No Results State */
.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.search-no-results .text-6xl {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 16px;
}

/* Element Highlighting (when found and scrolled to) */
.search-element-highlight {
  position: relative;
  background: rgba(255, 152, 0, 0.2) !important;
  border-radius: 6px;
  padding: 4px 8px;
  margin: -4px -8px;
  animation: searchElementPulse 2s ease-in-out;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

@keyframes searchElementPulse {
  0%, 100% {
      background: rgba(255, 152, 0, 0.2);
      box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
  }
  50% {
      background: rgba(255, 152, 0, 0.4);
      box-shadow: 0 0 40px rgba(255, 152, 0, 0.6);
  }
}

/* Search Input Enhancements */
#searchInput {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 152, 0, 0.3);
  color: white;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: #FF9800;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.3);
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Search Overlay Enhancements */
#searchOverlay {
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.85);
}

/* Custom Scrollbar for Search Results */
.search-results-list::-webkit-scrollbar {
  width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 152, 0, 0.6);
  border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
  background: #FF9800;
}

/* Search Loading State */
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.6);
}

.search-loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-top: 2px solid #FF9800;
  border-radius: 50%;
  margin-right: 10px;
  animation: searchSpinner 1s linear infinite;
}

@keyframes searchSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search Categories/Filters (if you want to add them) */
.search-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.search-category-btn {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #FF9800;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-category-btn:hover,
.search-category-btn.active {
  background: rgba(255, 152, 0, 0.2);
  border-color: #FF9800;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-results-container {
      max-height: 50vh;
      margin-top: 15px;
  }
  
  .search-result-item {
      padding: 12px 16px;
  }
  
  .search-result-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
  }
  
  .search-result-title {
      font-size: 14px;
  }
  
  .search-result-preview {
      font-size: 13px;
      -webkit-line-clamp: 3;
  }
  
  .search-results-header {
      padding: 12px 16px;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
  }
  
  .search-clear-btn {
      align-self: flex-end;
  }
}

/* Search Keyboard Navigation Hints */
.search-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
}

/* Search Result Animation */
.search-result-item {
  opacity: 0;
  animation: searchResultFadeIn 0.3s ease-out forwards;
}

.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.15s; }
.search-result-item:nth-child(3) { animation-delay: 0.2s; }
.search-result-item:nth-child(4) { animation-delay: 0.25s; }
.search-result-item:nth-child(5) { animation-delay: 0.3s; }

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .search-result-item {
      border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .search-match {
      background: #FFD700;
      color: #000;
  }
  
  .search-element-highlight {
      background: rgba(255, 255, 0, 0.5) !important;
  }
}
/* FIXED SEARCH STYLES - Add this to your style.css */

/* Ensure search overlay has proper z-index and doesn't interfere with input */
#searchOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#searchOverlay.flex {
  display: flex;
}

/* Search Modal Container */
.search-modal {
  background: rgba(17, 17, 17, 0.95);
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Search Input - CRITICAL FIXES */
#searchInput {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 152, 0, 0.3) !important;
  color: white !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  
  /* CRITICAL: Ensure input is interactive */
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  
  /* Prevent any interference */
  position: relative !important;
  z-index: 10001 !important;
  
  /* Ensure input is editable */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

#searchInput:focus {
  border-color: #FF9800 !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.3) !important;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Ensure no conflicting styles */
#searchInput:disabled,
#searchInput[readonly] {
  pointer-events: auto !important;
  user-select: text !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Close Button */
#closeSearch {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10002;
  padding: 4px;
  line-height: 1;
}

#closeSearch:hover {
  color: #FF9800;
}

/* Search Results Container */
#searchResults {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

/* Search Results Scrollbar */
#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: rgba(255, 152, 0, 0.6);
  border-radius: 3px;
}

#searchResults::-webkit-scrollbar-thumb:hover {
  background: #FF9800;
}

/* Search Result Items */
.search-result-item {
  padding: 12px 16px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(255, 152, 0, 0.1);
  border-left-color: #FF9800;
  transform: translateX(4px);
}

.search-result-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-result-preview {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.4;
}

.search-result-section {
  color: #FF9800;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

/* Search Match Highlighting */
.search-match {
  background: #FF9800;
  color: #000;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* No Results */
.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Search Button Styles */
#searchBtn, 
#searchBtnMobile,
[data-search-btn] {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#searchBtn:hover,
#searchBtnMobile:hover,
[data-search-btn]:hover {
  color: #FF9800;
  transform: translateY(-1px);
}

/* Floating Search Button (if using Option B) */
.floating-search-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.floating-search-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .search-modal {
      padding: 20px;
      margin: 10px;
      max-height: 90vh;
  }
  
  #searchInput {
      font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  #searchResults {
      max-height: 250px;
  }
}

/* Debug styles - remove after testing */
.debug-search #searchInput {
  border: 3px solid red !important;
  background: yellow !important;
  color: black !important;
}

/* Ensure search works over other elements */
#searchOverlay * {
  pointer-events: auto;
}

#searchOverlay {
  pointer-events: auto;
}

/* Fix for potential conflicts with your existing styles */
#searchInput {
  font-family: inherit !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Animation for search modal */
.search-modal {
  animation: searchModalFadeIn 0.3s ease-out;
}

@keyframes searchModalFadeIn {
  from {
      opacity: 0;
      transform: scale(0.9) translateY(-20px);
  }
  to {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}
/* SEARCH RESULTS STYLES - Add to style.css */
.search-results-container {
  margin-top: 20px;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(13, 13, 13, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.search-results-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
  background: rgba(255, 152, 0, 0.1);
}

.search-results-count {
  color: #FF9800;
  font-weight: 600;
  font-size: 14px;
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 16px 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:hover {
  background: rgba(255, 152, 0, 0.05);
  border-left-color: #FF9800;
  transform: translateX(4px);
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.search-result-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.search-result-section {
  color: #FF9800;
  font-size: 12px;
  background: rgba(255, 152, 0, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
}

.search-result-preview {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.search-match {
  background: #FF9800;
  color: #000;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

.search-element-highlight {
  background: rgba(255, 152, 0, 0.2) !important;
  border-radius: 6px;
  padding: 4px 8px;
  margin: -4px -8px;
  animation: searchElementPulse 2s ease-in-out;
}

@keyframes searchElementPulse {
  0%, 100% { background: rgba(255, 152, 0, 0.2); }
  50% { background: rgba(255, 152, 0, 0.4); }
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
} 
/* ADD THIS CSS TO YOUR style.css - SCROLL FIX */

/* Ensure body and html can always scroll when overlays are closed */
body {
  overflow-x: hidden; /* Prevent horizontal scroll only */
  overflow-y: auto;   /* Always allow vertical scroll unless explicitly disabled */
}

/* Override any conflicting overflow settings */
body:not(.modal-open):not(.search-open):not(.popup-open) {
  overflow: auto !important;
  overflow-y: auto !important;
}

/* Search overlay specific fixes */
#searchOverlay.hidden {
  display: none !important;
}

#searchOverlay.hidden ~ * {
  overflow: auto !important;
}

/* Ensure search results don't interfere with body scroll */
.search-results-container {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 60vh;
  /* Remove any position fixed that might interfere */
  position: relative;
}

/* Fix for search modal */
.search-modal {
  overflow: visible;
  max-height: 80vh;
}

/* Ensure main content is scrollable */
main, .main-content {
  overflow: visible;
}

/* Debug class to identify scroll issues */
.scroll-disabled {
  outline: 3px solid red !important;
  background: rgba(255, 0, 0, 0.1) !important;
}

/* Mobile scroll fix */
@media (max-width: 768px) {
  body {
      -webkit-overflow-scrolling: touch;
      overflow-y: auto !important;
  }
}

/* Force scroll restoration */
.force-scroll-enabled {
  overflow: auto !important;
  overflow-y: auto !important;
  position: relative !important;
}

/* Prevent any child elements from disabling parent scroll */
* {
  scroll-behavior: smooth;
}

/* iOS Safari specific fix */
@supports (-webkit-touch-callout: none) {
  body {
      position: relative;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
  }
}
/* STATIC PLANCK DEPTH SECTION - NO ANIMATIONS */

.planck-depth-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  /* Quantum grid background */
  background-image: 
      linear-gradient(rgba(147, 51, 234, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 51, 234, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.planck-depth-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Floating Planck Particles - Static */
.planck-particle {
  width: 4px;
  height: 4px;
  background: rgba(147, 51, 234, 0.6);
  border-radius: 50%;
  position: absolute;
  opacity: 0.6;
}

/* Header Section */
.planck-depth-header {
  text-align: center;
  margin-bottom: 64px;
}

.physics-badge {
  display: inline-block;
  padding: 4px;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.2));
  margin-bottom: 24px;
}

.badge-inner {
  background: #000000;
  border-radius: 9999px;
  padding: 8px 24px;
}

.badge-text {
  color: #A855F7;
  font-size: 14px;
  font-weight: 500;
}

.planck-depth-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 24px;
  /* Planck glow effect */
  text-shadow: 
      0 0 20px rgba(147, 51, 234, 0.8), 
      0 0 40px rgba(147, 51, 234, 0.4), 
      0 0 60px rgba(147, 51, 234, 0.2);
}

.planck-description {
  font-size: 1.25rem;
  color: #D1D5DB;
  margin-bottom: 32px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

.planck-equation {
  color: rgba(147, 51, 234, 0.6);
  font-size: 14px;
  font-style: italic;
}

/* Cards Grid */
.planck-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.depth-card {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
  border: 1px solid rgba(147, 51, 234, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.equation-bg {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  color: rgba(147, 51, 234, 0.3);
  font-style: italic;
}

.card-content {
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.quantum-icon {
  background: linear-gradient(to right, #9333ea, #4f46e5);
}

.astro-icon {
  background: linear-gradient(to right, #9333ea, #ec4899);
}

.particle-icon {
  background: linear-gradient(to right, #4f46e5, #06b6d4);
}

.math-icon {
  background: linear-gradient(to right, #9333ea, #7c3aed);
}

.icon-svg {
  width: 24px;
  height: 24px;
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  margin: 0 0 8px 0;
}

.card-description {
  color: #9CA3AF;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  color: #A855F7;
  font-size: 14px;
}

.article-count {
  margin-right: 8px;
}

.arrow-icon {
  width: 16px;
  height: 16px;
}

/* Call to Action Section */
.planck-cta-section {
  text-align: center;
}

.explore-planck-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 48px;
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 9999px;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.btn-text-main {
  margin-right: 12px;
}

.btn-arrow {
  width: 24px;
  height: 24px;
}

.hawking-quote {
  color: rgba(147, 51, 234, 0.7);
  font-size: 14px;
  margin-top: 16px;
  font-style: italic;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .planck-depth-title {
      font-size: 3.5rem;
  }
  
  .planck-description {
      font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .planck-depth-section {
      padding: 60px 0;
  }
  
  .planck-depth-container {
      padding: 0 16px;
  }
  
  .planck-depth-title {
      font-size: 2.5rem;
  }
  
  .planck-description {
      font-size: 1rem;
  }
  
  .planck-cards-grid {
      grid-template-columns: 1fr;
      gap: 24px;
      margin-bottom: 48px;
  }
  
  .planck-depth-header {
      margin-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .planck-depth-title {
      font-size: 2rem;
  }
  
  .explore-planck-btn {
      padding: 14px 32px;
      font-size: 1rem;
  }
  
  .card-icon {
      width: 40px;
      height: 40px;
      margin-bottom: 12px;
  }
  
  .icon-svg {
      width: 20px;
      height: 20px;
  }
  
  .depth-card {
      padding: 20px;
  }
}

/* Ensure no hover effects or transitions */
.depth-card,
.explore-planck-btn,
.card-icon,
.planck-particle {
  transition: none !important;
  transform: none !important;
}

.depth-card:hover,
.explore-planck-btn:hover,
.card-icon:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(147, 51, 234, 0.3) !important;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%) !important;
}

.explore-planck-btn:hover {
  background: linear-gradient(135deg, #9333ea, #4f46e5) !important;
}

/* Remove any pseudo-element animations */
.depth-card::before,
.explore-planck-btn::before {
  display: none !important;
}