/* Global Font Family - Apple System Font Stack */
.font-apple {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

/* Design System: Color Tokens */
:root {
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(209, 213, 219, 1); /* gray-300 */
  --color-text-tertiary: rgba(156, 163, 175, 1); /* gray-400 */
  --color-accent: #3b82f6; /* blue-500 */
  --color-accent-light: #60a5fa; /* blue-400 */
  --color-background: #000000;
  --color-surface: rgba(17, 24, 39, 1); /* gray-900 */
}

.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: visible;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.glow-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  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: destination-out;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

.glow-button > * {
  position: relative;
  z-index: 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);
  overflow: visible !important;
}

/* Prevent text clipping when using background-clip: text */
.hero-title-mobile[style*="background-clip"] {
  line-height: 1.3 !important;
  padding-bottom: 0.3em !important;
  overflow: visible !important;
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes slide {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 20;
  }
}

@keyframes nodePulse {
  0%, 100% {
    r: 8;
    opacity: 0.8;
  }
  50% {
    r: 12;
    opacity: 1;
  }
}

.node {
  animation: nodePulse 3s ease-in-out infinite;
}

.network-line {
  stroke-dasharray: 5, 5;
  animation: slide 2s linear infinite;
}

.data-point {
  animation: float 4s ease-in-out infinite;
}

.pulse-star {
  animation: pulse 3s ease-in-out infinite;
}

.star {
  animation: float 6s ease-in-out infinite;
}

.data-line {
  animation: slide 3s linear infinite;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .star,
  .pulse-star,
  .data-line,
  .data-point,
  .node,
  .network-line {
    animation: none;
  }
  
  .text-3d-box h2 {
    transition: none;
  }
  
  .feature-card-elegant {
    transition: none;
  }
  
  .logo-carousel-track {
    animation: none;
  }
}

/* Cycling text animation styles */
#cyclingText {
  display: inline-block;
  will-change: opacity, transform;
}

/* Apple-Inspired 3D Text Box Effect */
.text-3d-box {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.text-3d-box h2 {
  color: #ffffff;
  text-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateZ(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.text-3d-box h2 .translucent-text {
  display: inline-block;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-right: 0.5rem;
}

.text-3d-box h2 .highlighted-text {
  display: inline-block;
  font-weight: 800;
  color: #60a5fa;
  text-shadow: 
    0 0 20px rgba(96, 165, 250, 0.6),
    0 0 40px rgba(96, 165, 250, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.boom-effect {
  animation: boom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes boom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* Apple-Inspired Elegant Feature Cards */
.feature-card-elegant {
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-card-elegant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card-elegant::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card-elegant:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-card-elegant:hover::before {
  opacity: 1;
}

.feature-card-elegant:hover::after {
  opacity: 1;
}

.feature-card-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.feature-card-clickable:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 
    0 24px 72px rgba(96, 165, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(96, 165, 250, 0.1);
}

/* Elegant Feature Icons - Top Positioned */
.feature-icon-elegant {
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  flex-shrink: 0;
}

.feature-icon-elegant::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card-elegant:hover .feature-icon-elegant::before {
  opacity: 1;
}

.feature-icon-ml-elegant {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(124, 58, 237, 0.9) 100%);
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-icon-ai-elegant {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.8) 0%, rgba(8, 145, 178, 0.9) 100%);
  box-shadow: 
    0 10px 30px rgba(6, 182, 212, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-icon-geo-elegant {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(5, 150, 105, 0.9) 100%);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-icon-research-elegant {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8) 0%, rgba(217, 119, 6, 0.9) 100%);
  box-shadow: 
    0 10px 30px rgba(245, 158, 11, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card-elegant:hover .feature-icon-elegant {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Feature Content - Elegant Typography */
.feature-content-elegant {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.feature-title-elegant {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

@media (min-width: 640px) {
  .feature-title-elegant {
    font-size: 1.5rem; /* sm:text-2xl */
  }
}

.feature-card-elegant:hover .feature-title-elegant {
  transform: translateY(-2px);
  text-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.15);
}

.feature-description-elegant {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.4s ease;
}

.feature-card-elegant:hover .feature-description-elegant {
  color: rgba(255, 255, 255, 0.85);
}

/* Apple-Inspired Logo Carousel */
.logos-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.logos-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem; /* Standardized to gap-12 equivalent */
  width: 100%;
  animation: carousel-scroll 25s linear infinite; /* Slowed from 20s to 25s */
  will-change: transform;
}

.logos-carousel-track:hover {
  animation-play-state: paused;
}

.logo-carousel-item {
  flex: 0 0 auto;
  min-width: 400px;
  padding: 3rem 4rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.logo-carousel-item:hover::before {
  left: 100%;
}

.logo-carousel-item:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.logo-carousel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.logo-carousel-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.logo-carousel-item:hover .logo-carousel-text {
  transform: scale(1.05);
  text-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.15);
}

.logo-carousel-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}

.logo-carousel-item:hover .logo-carousel-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.logo-carousel-separator {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.15),
    transparent
  );
  flex-shrink: 0;
  opacity: 0.4;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicate items for seamless loop */
.logos-carousel-track::after {
  content: '';
  display: none;
}

/* Pagination Indicators - Visible on Dark Background */
.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  outline: none;
}

.pagination-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.pagination-dot-active {
  background: #3b82f6;
  border-color: #3b82f6;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* Graphics Sections (switching between Monitor Issues and Information sections) */
.graphics-section {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.graphics-section-active {
  opacity: 1;
  max-height: 5000px;
  pointer-events: auto;
}

.graphics-section.hidden {
  display: none;
}

/* Responsive adjustments for Spotlight section */
@media (max-width: 768px) {
  .text-3d-box h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
  }
  
  .feature-card-elegant {
    padding: 2rem 1.75rem;
    gap: 1.5rem;
  }
  
  .feature-icon-elegant {
    width: 4rem;
    height: 4rem;
  }
  
  .feature-icon-elegant svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .feature-title-elegant {
    font-size: 1.5rem;
  }
  
  .feature-description-elegant {
    font-size: 0.9375rem;
  }
  
  .logo-carousel-item {
    min-width: 300px;
    padding: 2.5rem 3rem;
  }
  
  .logo-carousel-text {
    font-size: 1.5rem;
  }
  
  .logo-carousel-subtitle {
    font-size: 0.875rem;
  }
  
  .logo-carousel-separator {
    height: 100px;
  }
  
  .logos-carousel-track {
    gap: 1.5rem; /* gap-6 equivalent */
  }
}

/* Autofill styling for email and password inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.4) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* For non-webkit browsers (Firefox) */
input:-moz-autofill {
  background-color: rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}
