.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

.text-gradient {
  background: linear-gradient(90deg, #6b7280 0%, #d1d5db 50%, #6b7280 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #000, #0ea5e9, #000);
  background-size: 300% 300%;
  animation: glow 4s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 1;
}

@keyframes glow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Crescent Shape Styles */
.crescent-body {
  background: radial-gradient(ellipse 100% 100% at 50% 0%, 
    #1a1a2e 0%, 
    #16213e 20%, 
    #0f1419 40%, 
    #000000 100%);
  border-radius: 50% 50% 0 0;
  position: relative;
}

.crescent-glow {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.8) 20%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.8) 80%,
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50% 50% 0 0;
  filter: blur(0.5px);
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1);
}

/* Planet Terminator Line Effect */
.planet-terminator {
  background: linear-gradient(to top, 
    #1e1b4b 0%,     /* Rich dark blue at bottom */
    #1e1b4b 10%,    /* Rich dark blue */
    #312e81 25%,    /* Dark indigo */
    #4c1d95 45%,    /* Deep purple */
    #6b21a8 65%,    /* Purple */
    #7c3aed 85%,    /* Violet */
    #8b5cf6 95%,    /* Soft violet */
    #a78bfa 100%    /* Light violet at top */
  );
  opacity: 0.9;
  box-shadow: 
    0 0 20px rgba(139, 92, 246, 0.3),
    0 0 40px rgba(124, 58, 237, 0.2),
    0 0 60px rgba(107, 33, 168, 0.1);
}

.planet-atmosphere {
  background: linear-gradient(to top, 
    transparent 0%,
    rgba(139, 92, 246, 0.1) 30%,
    rgba(124, 58, 237, 0.2) 60%,
    rgba(107, 33, 168, 0.15) 80%,
    rgba(30, 27, 75, 0.1) 100%
  );
  opacity: 0.6;
  filter: blur(1px);
}

.planet-rim-glow {
  background: radial-gradient(ellipse 100% 8% at 50% 0%, 
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.4) 15%,
    rgba(191, 219, 254, 0.3) 30%,
    rgba(147, 197, 253, 0.2) 50%,
    rgba(96, 165, 250, 0.1) 70%,
    transparent 100%
  );
  opacity: 0.9;
  filter: blur(1px);
  box-shadow: 
    0 -1px 5px rgba(255, 255, 255, 0.4),
    0 -2px 10px rgba(255, 255, 255, 0.3),
    0 -3px 15px rgba(191, 219, 254, 0.2),
    0 -4px 20px rgba(147, 197, 253, 0.1);
}

/* Half Circle Hero Styles */
.half-circle-hero {
  background: linear-gradient(135deg, 
    #1e3a8a 0%,     /* Deep blue */
    #3730a3 25%,    /* Indigo */
    #581c87 50%,    /* Purple */
    #7c2d12 75%,    /* Dark orange */
    #1f2937 100%    /* Dark gray */
  );
  position: relative;
  overflow: hidden;
}

.half-circle-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 70%
  );
  border-radius: inherit;
}

.half-circle-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.6) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.6) 80%,
    transparent 100%
  );
  filter: blur(1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .crescent-body {
    height: 35vh;
  }
  
  .planet-terminator {
    width: 800px !important;
    height: 400px !important;
  }
  
  .planet-atmosphere {
    width: 900px !important;
    height: 450px !important;
  }
  
  .planet-rim-glow {
    width: 810px !important;
    height: 405px !important;
  }
}

@media (max-width: 480px) {
  .crescent-body {
    height: 30vh;
  }
  
  .planet-terminator {
    width: 600px !important;
    height: 300px !important;
  }
  
  .planet-atmosphere {
    width: 700px !important;
    height: 350px !important;
  }
  
  .planet-rim-glow {
    width: 610px !important;
    height: 305px !important;
  }
}

/* Viewport height-based padding for hero section */
.hero-title-mobile {
  padding-top: min(12rem, 15vh);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  /* Logo alignment adjustment on mobile */
  .flex.items-center:first-child {
    transform: translateY(3px);
  }
  
  /* Make header background opaque on mobile */
  header {
    background: rgba(0, 0, 0, 1) !important;
  }
  
  /* Make dropdown background opaque with blur on mobile */
  .absolute.top-16.left-0.right-0.z-30.md\\:hidden {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  
  /* Reduce padding before Spotlight section on mobile */
  .bg-white.text-black.pt-72 {
    padding-top: 4rem !important;
  }
  
  /* Hide navigation tabs on mobile */
  .mb-24.flex.justify-center {
    display: none !important;
  }
  
  /* Hide original spotlight text on mobile */
  .spotlight-text-mobile {
    display: none !important;
  }
  
  /* Mobile spotlight heading styling */
  .mobile-spotlight-heading {
    display: block !important;
  }
  
  /* Hide SVG quote graphic on mobile */
  .w-16.h-16.text-blue-600 {
    display: none !important;
  }
  
  /* Hide County Info heading on mobile */
  .county-label-overlay h4 {
    display: none !important;
  }
  
  /* Make county label responsive and bold on mobile */
  .county-label-overlay {
    width: fit-content !important;
    min-width: fit-content !important;
    max-width: fit-content !important;
    padding: 0.25rem 0.5rem !important;
    height: auto !important;
  }
  
  .county-label-overlay p {
    font-weight: bold !important;
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
  }
  
  /* Navigation tabs - make them stack vertically on mobile */
  .nav-tabs-mobile {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .nav-tabs-mobile button {
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* Hero section mobile improvements */
  h1.hero-title-mobile.text-6xl {
    font-size: 1.875rem !important;
    line-height: 1.1 !important;
    padding-top: min(2rem, 8vh) !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .hero-subtitle-mobile {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Add line breaks after specific phrases on mobile */
  .hero-subtitle-mobile {
    white-space: pre-line !important;
  }
  
  /* Professional paragraph spacing for quote text on mobile */
  .hero-subtitle-mobile {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Add spacing between paragraphs in quote text */
  .hero-subtitle-mobile p {
    margin-bottom: 1.25rem !important;
  }
  
  /* Moon image mobile sizing */
  .moon-image-mobile {
    height: 300px !important;
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    transform: scaleX(1.05) !important; /* Override inline transform */
  }
  
  /* Spotlight section mobile text */
  .spotlight-text-mobile {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    margin-bottom: 2rem !important;
  }
  
  /* Quotation section mobile */
  .quote-mobile {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    padding: 0 1rem !important;
  }
  
  .quote-container-mobile {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Map section mobile */
  .map-container-mobile {
    height: 250px !important;
  }
  
  /* Visualization section mobile */
  .visualization-mobile {
    height: 500px !important;
  }
  
  /* Form mobile improvements */
  .form-mobile {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .form-mobile input,
  .form-mobile button {
    width: 100% !important;
  }
  
  /* Demo form mobile */
  .demo-form-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .demo-form-mobile input {
    max-width: none !important;
  }
}

@media (max-width: 640px) {
  /* Extra small mobile adjustments */
  h1.hero-title-mobile.text-6xl {
    font-size: 1.75rem !important;
    padding-top: min(1rem, 6vh) !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .hero-subtitle-mobile {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .spotlight-text-mobile {
    font-size: 1.25rem !important;
  }
  
  .quote-mobile {
    font-size: 1.75rem !important;
  }
  
  .moon-image-mobile {
    height: 250px !important;
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    transform: scaleX(1.05) !important; /* Override inline transform */
  }
  
  .map-container-mobile {
    height: 200px !important;
  }
  
  .visualization-mobile {
    height: 450px !important;
  }
}
