/* ============= HERO ANIMATIONS ============= */

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0,217,255,.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0,217,255,.6));
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ============= HERO SECTION STYLES ============= */

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0D2136 0%, #0A1726 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, 
    rgba(0,217,255,.05) 0%, 
    transparent 50%, 
    rgba(245,213,71,.05) 100%);
  animation: glow 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0,217,255,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245,213,71,.1) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: heroFadeIn 1s ease-out forwards;
  opacity: 0;
}

.hero-title span {
  background: linear-gradient(135deg, #00D9FF 0%, #00B8E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: heroFadeIn 1s ease-out 0.2s forwards;
  opacity: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeIn 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.15;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

/* ============= SERVICE HERO SECTIONS ============= */

.service-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0,217,255,.05) 0%, rgba(245,213,71,.05) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem 0;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0,217,255,.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(245,213,71,.08) 0%, transparent 50%);
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 500px;
}

.service-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
  animation: slideInLeft 1s ease-out;
}

.service-hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: slideInLeft 1s ease-out 0.2s forwards;
  opacity: 0;
}

.service-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-hero-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--muted);
  animation: slideInLeft 1s ease-out 0.4s forwards;
  opacity: 0;
}

.service-hero-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--action);
  font-weight: bold;
  font-size: 1.2rem;
}

.service-hero-svg {
  position: relative;
  z-index: 3;
  flex: 1;
  max-width: 400px;
  height: 350px;
  animation: slideInRight 1s ease-out;
}

.service-hero-svg svg {
  width: 100%;
  height: 100%;
  animation: float 4s ease-in-out infinite;
}

/* ============= PARALLAX SCROLLING ============= */

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  animation: float 10s ease-in-out infinite;
  z-index: 0;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* ============= ANIMATED STATISTICS ============= */

.stats-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0,217,255,.03) 0%, rgba(245,213,71,.03) 100%);
  border-radius: var(--radius);
  margin: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-box {
  text-align: center;
  padding: 0.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(0,217,255,.2);
  transition: all 0.4s cubic-bezier(.16,.1,.3,1);
  animation: fadeInUp 0.6s ease-out both;
}

.stat-box:hover {
  transform: translateY(-8px)0.5
  border-color: rgba(0,217,255,.4);
  background: rgba(0,217,255,.08);
  box-shadow: 0 12px 40px rgba(0,217,255,.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--action);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============= ANIMATED CARDS ============= */

.animated-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(.16,.1,.3,1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
}

.animated-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,.0), rgba(0,217,255,.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.animated-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,217,255,.3);
  box-shadow: 0 20px 60px rgba(0,217,255,.2);
}

.animated-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

/* ============= SCROLL REVEAL ANIMATIONS ============= */

.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }
.reveal-delay-5 { animation-delay: 0.5s; }

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

/* ============= ICON ANIMATIONS ============= */

.icon-spin {
  animation: rotate 4s linear infinite;
}

.icon-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.icon-glow {
  animation: glow 2s ease-in-out infinite;
}

.icon-float {
  animation: float 3s ease-in-out infinite;
}

/* ============= SVG ANIMATIONS ============= */

svg.animated-svg {
  animation: float 5s ease-in-out infinite;
}

svg.animated-svg circle {
  animation: pulse 2s ease-in-out infinite;
}

svg.animated-svg line,
svg.animated-svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-out forwards;
}

.svg-shield {
  animation: float 4s ease-in-out infinite;
}

.svg-network {
  animation: rotate 20s linear infinite;
}

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

/* ============= VIDEO SECTION ============= */

.video-hero {
  position: relative;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem 0;
}

.video-hero svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.3) 0%, rgba(0,217,255,.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,217,255,.2);
  border: 2px solid var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.play-button:hover {
  background: rgba(0,217,255,.4);
  transform: scale(1.1);
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid var(--action);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* ============= CTA SECTION ANIMATIONS ============= */

.cta-hero {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,217,255,.08) 0%, rgba(245,213,71,.08) 100%);
  border: 2px solid rgba(0,217,255,.3);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem 0;
}

.cta-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,217,255,.15) 0%, transparent 70%);
  animation: glow 3s ease-in-out infinite;
  pointer-events: none;
}

.cta-hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1s ease-out;
}

.cta-hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00D9FF 0%, #f4d561 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
  }

  .service-hero {
    flex-direction: column;
    min-height: auto;
  }

  .service-hero-svg {
    max-width: 100%;
    margin-top: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cta-hero {
    padding: 3rem 1.5rem;
  }
}

/* ============= UTILITY CLASSES ============= */

.fade-in {
  animation: heroFadeIn 1s ease-out forwards;
}

.fade-in-delay {
  animation: heroFadeIn 1s ease-out 0.2s forwards;
  opacity: 0;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}
