/* ============================================================
   LUNA WEBB - CONSOLIDATED COSMIC STYLES
   ============================================================ */
/* ============================================================
   1. BASE & COSMIC RESET 
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #05050a; color: #f4f4f9; font-family: 'Poppins', sans-serif; }

/* THE VOID (Background Color) */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #05050a; /* The base dark space color */
  color: #f4f4f9;
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center, #0a0a12 0%, #020205 100%);
  overflow-x: hidden;
}

#stars-layer-1, #stars-layer-2 {
  position: fixed;
  top: -10%; /* Buffer for movement */
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
}

/* FAR LAYER (Slower, Smaller Stars) */
#stars-layer-1 {
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0));
  background-size: 300px 300px; /* Larger tile = stars look more spread out */
  opacity: 0.4;
}

/* NEAR LAYER (Faster, Brighter Stars) */
#stars-layer-2 {
  background-image: 
    radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #fff, rgba(0,0,0,0));
  background-size: 200px 200px; /* Matches your original size */
  opacity: 0.8;
}

/* 2. TOP BANNER (Fixed) */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #00d4ff, #9b59b6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;

}

@media (max-width: 768px) {
  .hero-banner {
    margin-top: 50px; /* Slightly smaller gap for mobile */
  }
}

.top-banner p {
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
}

/* --- LUNA WEBB HEADER: COSMIC ALIGNMENT --- */
#header {
  position: fixed;
  top: 40px; 
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(10, 11, 16, 0.95); /* Slightly darker for better contrast */
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center; 
  z-index: 10001;
}

/* ============================================================
   2. COMMAND CENTER (HEADER)
   ============================================================ */
.header-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 10002;
}

.navbar-toggler {
 display: none !important;
}

/* --- MINIMALIST LUNAR LOGO --- */
.luna-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.logo-moon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-moon-wrapper i {
  font-size: 1.8rem;
  color: gray; /* Electric Blue */
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  z-index: 2;
}

/* The subtle aura behind the moon */
.logo-aura {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.3), transparent 70%);
  filter: blur(5px);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.5;
  transition: 0.5s;
}

/* Hover Effect: The moon rotates slightly and the glow intensifies */
.luna-logo-link:hover i {
  transform: rotate(-15deg) scale(1.1);
  color: #00d4ff;
  text-shadow: 0 0 25px rgba(0, 212, 255, 0.9);
}

.luna-logo-link:hover .logo-aura {
  opacity: 1;
  transform: scale(1.5);
}

/* --- HEADER NAV ALIGNMENT --- */
.nav-menu {
 display: flex !important;
  flex-direction: row;
  gap: 35px;
  list-style: none;
  margin: 0;
}

/* --- MEGA MENU TRANSFORM --- */
.nav-item.mega-dropdown {
  position: static; /* Important: Allows menu to span full width */
  padding-bottom: 20px; 
  margin-bottom: -20px;
}

.mega-menu {
 position: absolute;
  top: 130px; /* Adjust to match your exact header height */
  left: 0;
  width: 100vw; /* Forces it to the full viewport width */
  margin-left: 0;
  background: rgba(13, 14, 20, 0.98); /* Deep cosmic dark */
  backdrop-filter: blur(20px);
  border-bottom: 3px solid #00d4ff;
  display: none; 
  /* This invisible pseudo-element acts as a bridge */
  padding-top: 20px; 
  margin-top: -20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  z-index: 9999; 
}

/* This is the magic container that fixes the columns */
.mega-menu-inner {
 width: 100%;
  max-width: 1300px; /* Aligns with your main site container */
  margin: 0 auto;
  display: flex !important;
  justify-content: space-between;
  gap: 50px; /* Space between Design, Dev, and Strategy columns */
  padding: 0 40px;
}

/* Ensure the menu stays open when hovering the menu itself */
.nav-item.mega-dropdown:hover .mega-menu,
.mega-menu:hover {
  display: block !important;
  animation: cosmicFade 0.3s ease-out;
}


/* THE GLOWING CONTACT BUTTON */
.contact-glow {
  border: 1px solid #00d4ff;
  border-radius: 5px;
  padding: 5px 15px !important; /* Adds some "button" space around the text */
  margin-left: 10px;
  color: #ebeeef !important;
  text-shadow: 0 0 8px rgba(247, 0, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2), inset 0 0 5px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease-in-out;
  animation: uplinkPulse 2s infinite alternate;
}

.contact-glow:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(217, 0, 255, 0.6), inset 0 0 10px rgba(0, 212, 255, 0.2);
  transform: translateY(-1px);
}

/* THE PULSE EFFECT */
@keyframes uplinkPulse {
  0% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    border-color: rgba(0, 212, 255, 1);
  }
}

/* --- COLUMN STYLING --- */
.mega-column {
  flex: 1;
  transition: transform 0.3s ease;
}

.mega-column h3 {
  color: #00d4ff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  padding-bottom: 10px;
}

.mega-column ul {
  list-style: none;
  padding: 0;
}

.mega-column ul li a {
  color: #aebbc9;
  font-size: 14px;
  padding: 8px 0;
  display: block;
  text-decoration: none;
  transition: 0.3s;
}

.mega-column ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
  text-shadow: 0 0 10px #00d4ff;
}

.mega-column:hover {
  transform: translateY(-5px); /* Subtle lift effect */
}

/* ============================================================
   4. CORE ANIMATIONS
   ============================================================ */
@keyframes cosmicFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 5. HERO SECTION ALIGNMENT */
#hero {
  overflow: hidden;
  perspective: 1px;
  perspective-origin: center;
  width: 100%;
  height: 100vh;
  position: relative;
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.carousel-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 50px; /* Accounts for fixed header */
}

.carousel-container.anna-style {
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}

.hero-text-box h1 {
  animation: cosmicFloat 6s ease-in-out infinite;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  
  /* 1. Set the background gradient */
  background: linear-gradient(to bottom, #ffffff, #8892b0);
  
  /* 2. Clip the background to the text */
  background-clip: text;
  -webkit-background-clip: text;
  
  /* 3. Make the actual text transparent so the background shows through */
  color: transparent; 
  -webkit-text-fill-color: transparent;
  
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.hero-text-box p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #aebbc9;
}

/* 6. BUTTONS (3D STYLE) */
.btn-menu, .btn-book {
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
  margin: 10px;
  border: 1px solid transparent;
}

.btn-menu {
  background: #00d4ff;
  color: #05050a;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-book {
  background: transparent;
  color: #fff;
  border: 1px solid #00d4ff;
}

.btn-menu:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* 7. MEGA MENU FIX */
.nav-item.mega-dropdown { position: static; }

.mega-menu {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  background: rgba(13, 14, 20, 0.98);
  border-bottom: 3px solid #00d4ff;
  padding: 40px 0;
  display: none;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.nav-item.mega-dropdown:hover .mega-menu {
  display: block;
  animation: slideDown 0.4s ease forwards;
}

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

@keyframes cosmicFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   3. MOBILE OVERRIDE (EVENT HORIZON)
   ============================================================ */
@media (max-width: 991px) {
  .header-container { padding: 0 20px; }
  .nav-menu { display: none; } /* Add your mobile toggle logic here */
  .hero-text-box h1 { font-size: 3rem; }
  /* SHOW THE HAMBURGER ONLY ON MOBILE/TABLET */
  .navbar-toggler {
    display: flex !important;
    z-index: 10005;
    background: transparent;
    border: none;
  }

  /* RESET MENU FOR MOBILE OVERLAY */
  .nav-menu {
    display: none !important; /* Hide until 'active' is toggled */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #05050a;
    z-index: 10000;
  }

  .nav-menu.active {
    display: flex !important;
  }

  /* KILL MEGA MENU ON MOBILE */
  .mega-dropdown .mega-menu {
    display: none !important;
  }
}

/* --- MILKY WAY DEEP SPACE SECTION --- */
.milky-way-about {
  padding: 150px 0 200px;
  background: 
    radial-gradient(circle at 10% 50%, rgba(155, 89, 182, 0.15), transparent 50%),
    #05050a;
  position: relative;
  overflow: hidden;
  clip-path: ellipse(150% 100% at 50% 0%); 
  z-index: 2;
}

/* Background Nebula - This makes the section feel like a galaxy */
.nebula-bg-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  filter: blur(100px);
  z-index: 1;
}

/* The Portal (Orbit) */
.orbit-portal {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.portal-img {
  width: 100%;
  max-width: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: brightness(0.8) contrast(1.2);
  object-fit: cover; /* Ensures the image stays inside the ring */
  text-indent: -10000px; /* This hides the 'alt' text if the image is broken */
}

.portal-ring {
  position: absolute;
  width: 130%;
  height: 130%;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg);
  animation: orbitRotate 20s linear infinite;
}

/* The Glass Content Pane */
.cosmic-content-pane {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(30px); /* Deep blur for premium look */
  padding: 80px 60px;
  border-radius: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 50px 100px rgba(0,0,0,0.5);
  z-index: 3;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  margin: 20px 0;
}

.main-title span {
  color: white;
 /* text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); */
}

/* Metrics Row */
.metrics-row {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.metric .num {
  display: block;
  font-size: 24px;
  font-weight: 300;
  color: #00d4ff;
  font-family: 'Playfair Display', serif;
}

.metric .label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

/* Button style */
.cosmic-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 18px 45px;
  background: #00d4ff;
  color: #000;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  transition: 0.4s;
}

.cosmic-btn:hover {
  background: #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotateX(60deg) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotateX(60deg) rotate(360deg); }
}

/* --- OUR ORBIT SECTION --- */
.orbit-section {
  padding: 120px 0;
  background: #020205;
  perspective: 1000px; /* Essential for 3D depth */
}

.orbit-grid {
  margin-top: 60px;
}

.orbit-card-wrapper {
  padding: 20px;
  transition: transform 0.5s ease;
}

.orbit-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 45px;
  height: 100%;
  position: relative;
  transform-style: preserve-3d; /* Allows child elements to float in 3D */
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover Tilt Effect */
.orbit-card-wrapper:hover .orbit-card {
  transform: rotateX(7deg) rotateY(-7deg) translateY(-10px);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

/* Internal Glow */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: 0.6s;
  pointer-events: none;
}

.orbit-card-wrapper:hover .card-glow {
  opacity: 1;
}

/* Text Content - Floating Effect */
.card-content h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
  transform: translateZ(40px); /* Pushes the title forward in 3D space */
}

.card-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
  transform: translateZ(20px);
}

.card-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: rgba(0, 212, 255, 0.2);
  position: absolute;
  top: 30px;
  right: 40px;
  transform: translateZ(10px);
}

/* The Constellation List inside cards */
.card-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  transform: translateZ(30px);
}

.card-list li {
  color: #00d4ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #9b59b6;
  border-radius: 50%;
  box-shadow: 0 0 8px #9b59b6;
}


/* --- PORTFOLIO NEBULA: EVENT HORIZON STYLE --- */
.portfolio-nebula {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: #020205; 
}

/* The Animated Mesh Layer */
.portfolio-nebula::before {
content: "";
  position: absolute;
  /* Make the background 20% larger than the section for movement room */
  top: -10%; 
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(155, 89, 182, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  z-index: 0;
  will-change: transform; /* Optimizes for smooth browser rendering */
  pointer-events: none;
  transform: translateY(var(--nebula-y, 0));
}

/* The "Glitter" Texture Layer */
.portfolio-nebula::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

/* Animation to make the nebula "breathe" */
@keyframes nebulaDrift {
  from { transform: scale(1); }
  to { transform: scale(1.1) translateX(-2%); }
}

/* Ensure content stays above the background */
.portfolio-nebula .container {
  position: relative;
  z-index: 2;
}

/* Constrain the width to prevent it looking "too wide" */
.gallery-inset {
  max-width: 1100px;
}

/* Header Line Styling */
.header-line {
  width: 60px; 
  height: 2px; 
  background: #00d4ff; 
  margin-top: 15px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Card Core Styling */
.artifact-card {
  position: relative;
  border-radius: 15px; /* Sharper, industrial look */
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 400px;
  transition: border-color 0.4s ease;
}

.artifact-card.tall {
  height: 520px; /* Vertical emphasis */
}

/* ============================================================
   LUNA WEBB - MOBILE COMMAND & NAVIGATION
   ============================================================ */

@media (max-width: 992px) {
  .artifacts-grid .col-lg-5 {
    margin-top: 80px; 
  }

  /* Kill the desktop mega menu on mobile devices */
  .mega-dropdown .mega-menu {
    display: none !important;
  }

  .nav-menu {
    /* DEFAULT STATE: HIDDEN */
    display: none; 
    flex-direction: column;
    
    /* OVERLAY STYLES */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #05050a; /* Deep space solid background */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Behind the toggler */
    margin: 0;
    padding: 0;
  }

  /* ACTIVE STATE: TRIGGERED BY JS */
  .nav-menu.active {
    display: flex !important;
    animation: cosmicFade 0.3s ease-in;
  }

  .nav-item {
    margin: 20px 0;
    list-style: none;
  }

  .nav-link {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    text-decoration: none;
  }
}


/* The Image Zoom & Supernova Effect */
.artifact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.7);
  transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
}

.artifact-glimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), transparent 70%);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.artifact-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1);
}

.artifact-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.artifact-card:hover .artifact-glimmer {
  opacity: 1;
}

/* Artifact Content Info */
.contact-nebula {
  border-top: 1px solid rgba(155, 89, 182, 0.1); /* Faint purple line */
  box-shadow: 0 -50px 100px rgba(155, 89, 182, 0.05); /* Upward glow */
}

.artifact-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent 100%);
  z-index: 3;
}

.artifact-info h3 {
  color: #fff;
  font-size: 26px;
  margin: 5px 0 10px;
}

.artifact-info .category {
  color: #00d4ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.artifact-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 90%;
}

.view-project {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.view-project:hover {
  color: #00d4ff;
  gap: 12px;
}

/* --- CONTACT NEBULA --- */
.contact-nebula {
  margin-top: 100px;
  padding: 120px 0;
  position: relative;
}

.contact-lead {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.method-item .icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00d4ff;
  font-size: 1.2rem;
}

.method-item span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #9b59b6;
  letter-spacing: 2px;
}

.method-item p {
  color: #fff;
  margin: 0;
  font-weight: 500;
}

/* Transmission Form Panel */
.transmission-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lunar-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 20px;
  color: #fff;
  outline: none;
  transition: 0.4s;
}

.lunar-input:focus {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-transmit {
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1px solid #00d4ff;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  transition: 0.4s;
  cursor: pointer;
}

.btn-transmit:hover {
  background: #00d4ff;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* --- SUCCESS STATE STYLING --- */
.success-overlay {
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.6s ease forwards;
}

.success-icon {
  position: relative;
  font-size: 4rem;
  color: #00ff88; /* Success Green */
  margin-bottom: 20px;
}

/* Pulsing rings around the success checkmark */
.icon-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid #00ff88;
  border-radius: 50%;
  animation: ripple 2s infinite;
  opacity: 0;
}

.success-content h3 {
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.success-content p {
  color: rgba(255, 255, 255, 0.6);
}

.btn-reset {
  background: transparent;
  border: none;
  color: #00d4ff;
  text-decoration: underline;
  margin-top: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}

@keyframes ripple {
  0% { width: 60px; height: 60px; opacity: 0.5; }
  100% { width: 120px; height: 120px; opacity: 0; }
}

/* ============================================================
   LUNA WEBB - CORE ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LUNA FOOTER --- */
.luna-footer {
  background: linear-gradient(to bottom, #05050a, #020205);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 0px solid rgba(0, 212, 255, 0.1);
}

.footer-nebula {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(155, 89, 182, 0.15), transparent 70%);
  filter: blur(80px);
  z-index: 1;
}

.footer-logo {
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.footer-logo span {
    color: #fff;
  font-weight: 300;
}

.footer-heading {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
}

.footer-links li a:hover {
  color: #00d4ff;
  padding-left: 5px;
}

/* Status Card styling */
.status-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: statusPulse 2s infinite;
}

.status-text {
  font-size: 12px;
  text-transform: uppercase;
  color: #00ff88;
  letter-spacing: 1px;
}

.location-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* --- MOON SEPARATOR LINE --- */
.moon-separator {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.separator-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 253, 253, 0.3), transparent);
}

.moon-icon {
  color: white;
  font-size: 1.5rem;
  /* Adds a subtle glow to the moon */
  text-shadow: 0 0 15px rgba(229, 236, 238, 0.8), 0 0 30px rgba(155, 89, 182, 0.4);
  animation: moonFloat 4s ease-in-out infinite;
}

/* Makes the moon gently float up and down */
@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Make sure the bottom row text doesn't clash */
.footer-bottom .highlight {
  color: #9b59b6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- LUNA WEBB RESPONSIVE CORE --- */

@media (max-width: 991px) {
  /* Global Adjustments */
  .milky-way-title { font-size: 2.8rem; }
  section { padding: 80px 0; }

  /* About Section - Stack Image & Content */
  .orbit-portal { margin-bottom: 50px; }
  .cosmic-content-pane { padding: 40px 30px; }

  /* Our Orbit - Disable 3D Tilt for Touch */
  .orbit-card-wrapper:hover .orbit-card {
    transform: translateY(-10px); /* Simple lift instead of tilt */
  }
  .orbit-card { padding: 30px; }
  
  /* Portfolio - Remove the Stagger & Fix Width */
  .artifacts-grid .col-lg-5 {
    margin-top: 0; /* Align items back to the top */
  }
  .artifact-card, .artifact-card.tall {
    height: 350px; /* Uniform height for easier mobile scrolling */
  }
}

@media (max-width: 767px) {
  /* Smaller screens / Mobile Phones */
  .milky-way-title { font-size: 2.2rem; }
  
  .main-title { font-size: 2.5rem; }
  
  /* Metrics Row - Stack the numbers */
  .metrics-row {
    flex-direction: column;
    gap: 20px;
  }

  /* Contact - Simplify Glass Pane */
  .transmission-panel {
    padding: 30px 20px;
    border-radius: 20px;
  }
  
  /* Disable Parallax & Mouse Trail for Performance */
  .portfolio-nebula::before {
    transform: none !important; /* Stop background jitter on mobile */
  }
  
  /* Moon Separator - Shrink for small screens */
  .moon-separator { gap: 10px; }
  .moon-icon { font-size: 1.2rem; }

  .top-banner {
    height: auto; /* Let the content define the height */
    padding: 10px 20px; /* Reduce large top padding */
    min-height: 30px; /* Ensures it doesn't disappear completely */
  }
}

/* --- LUNA WEBB RESPONSIVE CORE --- */

@media (max-width: 991px) {

  .top-banner {
    height: auto; /* Let the content define the height */
    padding: 10px 20px; /* Reduce large top padding */
    min-height: 30px; /* Ensures it doesn't disappear completely */
  }
  /* Global Adjustments */
  .milky-way-title { font-size: 2.8rem; }
  section { padding: 80px 0; }

  /* About Section - Stack Image & Content */
  .orbit-portal { margin-bottom: 50px; }
  .cosmic-content-pane { padding: 40px 30px; }

  /* Our Orbit - Disable 3D Tilt for Touch */
  .orbit-card-wrapper:hover .orbit-card {
    transform: translateY(-10px); /* Simple lift instead of tilt */
  }
  .orbit-card { padding: 30px; }
  
  /* Portfolio - Remove the Stagger & Fix Width */
  .artifacts-grid .col-lg-5 {
    margin-top: 0; /* Align items back to the top */
  }
  .artifact-card, .artifact-card.tall {
    height: 350px; /* Uniform height for easier mobile scrolling */
  }
}

@media (max-width: 767px) {
  /* Smaller screens / Mobile Phones */
  .milky-way-title { font-size: 2.2rem; }
  
  .main-title { font-size: 2.5rem; }
  
  /* Metrics Row - Stack the numbers */
  .metrics-row {
    flex-direction: column;
    gap: 20px;
  }

  /* Contact - Simplify Glass Pane */
  .transmission-panel {
    padding: 30px 20px;
    border-radius: 20px;
  }
  
  /* Disable Parallax & Mouse Trail for Performance */
  .portfolio-nebula::before {
    transform: none !important; /* Stop background jitter on mobile */
  }
  
  /* Moon Separator - Shrink for small screens */
  .moon-separator { gap: 10px; }
  .moon-icon { font-size: 1.2rem; }
}

 @media (max-width: 1024px) {
  /* Make info visible on tablets/phones since there is no hover */
  .artifact-info {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.95) 40%, transparent 100%);
  }
  .artifact-desc, .view-project {
    opacity: 1;
  }
  .artifact-card img {
    filter: grayscale(0%) brightness(0.8);
  }
}

/* For screens smaller than 768px (Tablets and Phones) */
@media (max-width: 768px) {
.top-banner {
    height: auto; /* Let the content define the height */
    padding: 10px 20px; /* Reduce large top padding */
    min-height: 30px; /* Ensures it doesn't disappear completely */
  }

  /* If your Nav Bar has a logo/links that are too big */
  .nav-link {
    font-size: 14px;
    padding: 5px 10px;
  }
}

/* Custom Cosmic Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #020205;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #9b59b6, #00d4ff);
  border-radius: 10px;
  border: 2px solid #020205;
}

::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

/* 1. THE SATELLITE TRIGGER (Fixed in Corner) */
.comms-satellite {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(2, 2, 5, 0.95);
  border: 1px solid #00d4ff;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 100000; /* Stays above everything */
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transition: opacity 0.3s ease;
}

.satellite-rings {
  position: absolute;
  inset: 0;
  border: 2px solid #00d4ff;
  border-radius: 50px;
  animation: broadcast 2s infinite;
  pointer-events: none;
}

@keyframes broadcast {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 2. THE TERMINAL PANEL (Flex Container) */
.ghost-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px; /* Fixed height is vital */
  background: #020205;
  border: 1px solid #00d4ff;
  border-radius: 8px;
  display: none; /* Controlled by JS toggleTerminal() */
  flex-direction: column;
  z-index: 99999;
  overflow: hidden; /* Clips the scanline effect to the borders */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  padding: 10px 15px;
  background: rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 3. TERMINAL CONTENT (The Scrolling Area) */
.terminal-content {
  flex-grow: 1; /* Fills the remaining space in ghost-panel */
  min-height: 0; /* Prevents flexbox from breaking scroll */
  position: relative;
  padding: 15px;
  overflow-y: auto; /* Enables custom scrollbar below */
  display: flex;
  flex-direction: column;
}

#terminal-log {
  margin-bottom: 10px;
}

#terminal-log a {
    color: #00d4ff;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 5px;
    border: 1px dashed #00d4ff;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* 4. CRT & SCANLINE OVERLAY */
.terminal-content::before {
  content: " ";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none; /* Crucial: lets you click the input! */
  z-index: 10;
}

/* 5. CUSTOM NEON SCROLLBAR */
.terminal-content::-webkit-scrollbar {
  width: 4px;
}
.terminal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
.terminal-content::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 10px;
}
@media (max-width: 600px) {
  .ghost-panel {
    width: 90%;
    right: 5%;
    height: 70%;
    bottom: 80px;
  }
}


.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  left: 50%; /* Move to middle of screen */
  bottom: 30px;
  transform: translateX(-50%); /* Perfectly center it */
  z-index: 99999;
  background: #00d4ff; 
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.back-to-top:hover {
  background: #9b59b6;
  /* Note: We must keep the translateX(-50%) here or it will jump to the side */
  transform: translateX(-50%) translateY(-5px); 
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

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