/* Hunter Logic - Main Stylesheet */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 60px;
  left: 0;
  height: 3px;
  background-color: #00A8A8;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 168, 168, 0.5);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Mobile Menu Animations */
.mobile-menu-enter {
  animation: slideDownFade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mobile-menu-exit {
  animation: slideUpFade 0.3s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

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

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

/* Hamburger Menu Icon Animation */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Link Stagger Animation */
.mobile-menu-link {
  animation: fadeInLeft 0.5s ease-out backwards;
}

.mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Menu Link Hover Effect */
.mobile-menu-link:hover {
  padding-left: 12px;
}

/* Mobile Menu Divider Line Animation */
.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 168, 0.3), transparent);
}

/* Hero Static Network Background */
.hero-network-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  overflow: hidden;
}

.hero-network-bg svg {
  width: 100%;
  height: 100%;
}

/* Hero section gradient background */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafb;
}

/* Animated Wave Background */
.hero-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 50%, #e8f1f5 100%);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.05);
  transition: 0.5s;
  overflow: hidden;
}

.hero-wave span {
  content: "";
  position: absolute;
  width: 325vh;
  height: 325vh;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
  background: transparent;
  border-radius: 45%;
}

.hero-wave span:nth-child(1) {
  border-radius: 45%;
  background: rgba(0, 168, 168, 0.15);
  animation: waveAnimate 16s linear infinite;
}

.hero-wave span:nth-child(2) {
  border-radius: 40%;
  background: rgba(0, 168, 168, 0.1);
  animation: waveAnimate 24s linear infinite;
}

.hero-wave span:nth-child(3) {
  border-radius: 42.5%;
  background: rgba(0, 168, 168, 0.08);
  animation: waveAnimate 32s linear infinite;
}

@keyframes waveAnimate {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}

/* Hero content fade-in animation */
.hero-content {
  animation: fadeInUp 0.8s ease-out forwards;
  position: relative;
  z-index: 10;
}

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

.hero-content .typewriter-text {
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
  min-height: 1.2em;
  display: block;
}

.hero-content p {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-content a {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* Section 2 Cybernetic Background */
.cyber-background {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 168, 168, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 168, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.code-flow {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0, 168, 168, 0.8), transparent);
  animation: flowDown 4s linear infinite;
}

.code-flow:nth-child(1) { left: 10%; animation-delay: 0s; }
.code-flow:nth-child(2) { left: 25%; animation-delay: 1s; height: 120px; }
.code-flow:nth-child(3) { left: 40%; animation-delay: 2s; height: 90px; }
.code-flow:nth-child(4) { left: 55%; animation-delay: 0.5s; }
.code-flow:nth-child(5) { left: 70%; animation-delay: 1.5s; height: 110px; }
.code-flow:nth-child(6) { left: 85%; animation-delay: 2.5s; height: 95px; }

@keyframes flowDown {
  from {
    transform: translateY(-150px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translateY(calc(100vh + 150px));
    opacity: 0;
  }
}

.cyber-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 168, 0.4), transparent);
  animation: lineFlow 8s ease-in-out infinite;
}

.cyber-line:nth-child(7) { 
  top: 20%; 
  width: 100%; 
  animation-delay: 0s; 
}
.cyber-line:nth-child(8) { 
  top: 50%; 
  width: 100%; 
  animation-delay: 2s; 
}
.cyber-line:nth-child(9) { 
  top: 80%; 
  width: 100%; 
  animation-delay: 4s; 
}

@keyframes lineFlow {
  0%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  50% {
    transform: translateX(100%);
  }
}

.cyber-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 168, 168, 0.6);
  border-radius: 50%;
  animation: dotPulse 3s ease-in-out infinite;
}

.cyber-dot:nth-child(10) { top: 15%; left: 20%; animation-delay: 0s; }
.cyber-dot:nth-child(11) { top: 35%; left: 60%; animation-delay: 1s; }
.cyber-dot:nth-child(12) { top: 65%; left: 30%; animation-delay: 2s; }
.cyber-dot:nth-child(13) { top: 85%; left: 75%; animation-delay: 1.5s; }

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(2);
    opacity: 0.8;
  }
}

/* Binary code rain effect */
.binary-code {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: rgba(0, 168, 168, 0.3);
  animation: binaryFall 6s linear infinite;
  white-space: nowrap;
}

.binary-code:nth-child(14) { left: 15%; animation-delay: 0s; }
.binary-code:nth-child(15) { left: 35%; animation-delay: 2s; }
.binary-code:nth-child(16) { left: 55%; animation-delay: 4s; }
.binary-code:nth-child(17) { left: 75%; animation-delay: 1s; }
.binary-code:nth-child(18) { left: 90%; animation-delay: 3s; }

@keyframes binaryFall {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}
