/**
 * Optimized Hero Section Styles
 * Lightweight, modern hero without heavy background images
 */

/* ====== Modern Hero Section ====== */
#hero {
  width: 100%;
  height: 100vh;
  /* Replace heavy image with elegant gradient */
  background: linear-gradient(135deg, #040b14 0%, #0a192f 50%, #112240 100%);
  position: relative;
  overflow: hidden;
}

/* Animated gradient overlay */
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(20, 157, 221, 0.08) 0%, transparent 70%);
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Subtle animated lines/shapes */
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(20, 157, 221, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 157, 221, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}

/* Hero content container */
#hero .hero-container {
  position: relative;
  z-index: 10;
  min-width: 300px;
  text-align: center;
}

/* Hero title */
#hero h1 {
  margin: 0 0 15px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

/* Hero subtitle */
#hero p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

#hero p span {
  color: #64ffda;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 2px solid #149ddd;
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.hero-scroll-indicator a:hover {
  color: #64ffda;
}

.hero-scroll-indicator .mouse {
  width: 25px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
}

.hero-scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background: #64ffda;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

/* Floating shapes decoration */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 157, 221, 0.2), rgba(100, 255, 218, 0.1));
  filter: blur(1px);
  z-index: 2;
  pointer-events: none;
}

.hero-decoration:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.hero-decoration:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -50px;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-decoration:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 20%;
  animation: float 10s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -30px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, 20px) rotate(-3deg);
  }
  75% {
    transform: translate(30px, 10px) rotate(3deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero .hero-container {
    padding: 0 20px;
  }
  
  #hero::after {
    background-size: 30px 30px;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .hero-scroll-indicator {
    bottom: 20px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  #hero::before,
  #hero::after,
  .hero-decoration,
  .hero-scroll-indicator .wheel {
    animation: none;
  }
  
  #hero h1,
  #hero p {
    animation: none;
  }
}
