/* NewsWireJet Hero Animations */

:root {
  --primary: #001C46;
  --secondary: #2762F8;
  --white: #ffffff;
  --light-blue: rgba(39, 98, 248, 0.1);
  --gradient: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Dashboard Animation */
#dashboard-visualization {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#dashboard-visualization:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 28, 70, 0.1);
}

/* Floating Animation */
.floating {
  animation: float var(--float-duration, 6s) ease-in-out infinite;
  transform-origin: center center;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(var(--float-distance, -10px)) rotate(var(--float-rotate, 0deg));
  }
  100% {
    transform: translateY(0);
  }
}

/* Animated Gradient Text */
.gradient-text {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Stat Counter Animation */
.stat-counter {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Interactive Chart Hover Effects */
.w-1\/7 {
  width: 12%;
}

.w-1\/7:hover {
  filter: brightness(1.1);
  transform: scaleY(1.05);
  transition: all 0.2s ease;
}

/* Button Hover Effects */
.bg-\[\#2762F8\] {
  transition: all 0.3s ease;
}

.bg-\[\#2762F8\]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(39, 98, 248, 0.2);
}

@keyframes floating {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(var(--float-distance, -15px)) rotate(var(--float-rotate, 0deg)); }
}

/* Glowing Effect */
.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  filter: blur(30px);
  opacity: 0.3;
  z-index: -1;
  transform: translate(-50%, -50%);
}

/* Animated Wave */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave path {
  fill: var(--white);
}

.wave-animation {
  animation: wave-animation 12s linear infinite;
}

@keyframes wave-animation {
  0% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
  100% { transform: translateX(-50%); }
}

/* Typing Animation */
.typing-container {
  display: inline-block;
  position: relative;
}

.typing-text {
  border-right: 3px solid var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--secondary) }
}

/* 3D Tilt Effect */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.5s ease;
}

.tilt-card-inner {
  transform: translateZ(20px);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(39, 98, 248, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(39, 98, 248, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(39, 98, 248, 0);
  }
}

/* NewsWireJet Logo Animation */
.logo-animation {
  position: relative;
  display: inline-block;
}

.logo-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  z-index: -1;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.6s ease-out;
}

.logo-animation:hover::before {
  clip-path: circle(100% at 50% 50%);
}

/* Stat Counter Animation */
.stat-counter {
  display: inline-block;
  font-weight: bold;
  color: var(--secondary);
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  margin-top: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Hero CTA Button */
.hero-cta-button {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(39, 98, 248, 0.3);
}

.hero-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(39, 98, 248, 0.4);
}

.hero-cta-button:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wave {
    height: 40px;
  }
  
  .hero-headline {
    font-size: 2.5rem !important;
  }
  
  .hero-subheadline {
    font-size: 1.2rem !important;
  }
}
