/* services.css - page-specific styles for services.html */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow  { animation: fadeUp 0.55s ease both; animation-delay: 0.10s; }
.hero-headline { animation: fadeUp 0.60s ease both; animation-delay: 0.22s; }
.hero-sub      { animation: fadeUp 0.60s ease both; animation-delay: 0.36s; }
.hero-cta      { animation: fadeUp 0.60s ease both; animation-delay: 0.48s; }

/* Inline CTA link with animated arrow */
.cta-link {
  color: #4AA3FF;
  transition: color 0.2s ease;
}

.cta-link:hover {
  color: #2EE6D6;
}

.cta-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.cta-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* Ambient hero background glow orbs */
.glow-blue {
  background: radial-gradient(circle, rgba(30, 95, 255, 0.12) 0%, transparent 70%);
}

.glow-teal {
  background: radial-gradient(circle, rgba(46, 230, 214, 0.07) 0%, transparent 70%);
}

/* Comparison table row highlight */
.tr-hover {
  transition: background-color 150ms ease;
}

.tr-hover:hover {
  background-color: rgba(30, 95, 255, 0.04);
}

/* CTA banner outline button */
.btn-cta-outline {
  background-color: transparent;
  color: #F5F7FF;
  border: 1px solid rgba(255, 255, 255, 0.30);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.btn-cta-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.50);
}

/* Heading glow (only where applied in markup) */
.heading-glow:hover h3,
.heading-glow:hover .glow-heading {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.60);
}

/* Card glow (used on service tiles and feature cards) */
.card-glow:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.card-glow:hover .icon-glow {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55));
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

/* Hero outline button */
.btn-hero-outline {
  border: 1.5px solid #394156;
  background-color: transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.50);
}

/* Primary CTA button */
.btn-ops-audit {
  background-color: #1E5FFF;
  transition: background-color 300ms ease, transform 300ms ease;
}

.btn-ops-audit:hover {
  background-color: #4AA3FF;
  transform: scale(1.03);
}

/* Closing CTA button */
.btn-cta-scale {
  transition: transform 200ms ease;
}

.btn-cta-scale:hover {
  transform: scale(1.05);
}

/* Hero background images (responsive) */
.services-hero {
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% auto !important;
  background-image: url('../images/hero/services-2560.webp');
}

@media (max-width: 1536px) {
  .services-hero {
    background-image: url('../images/hero/services-1920.webp');
  }
}

@media (max-width: 1024px) {
  .services-hero {
    background-image: url('../images/hero/services-1280.webp');
  }
}

/* Optional: on very narrow screens, keep it a touch wider to avoid side gaps */
@media (max-width: 640px) {
  .services-hero {
    background-size: 120% auto !important;
    background-position: top center !important;
  }
}


/* Products vs Services section background ramp */
.products-services-section {
  background: linear-gradient(
    180deg,
    rgba(10, 18, 36, 0) 0%,
    rgba(10, 18, 36, 0.35) 25%,
    rgba(10, 18, 36, 0.92) 60%,
    #0D1528 100%
  );
}

/* Comparison cards hover (Veloryn Products / Veloryn Services) */
.services-comparison-card {
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.services-comparison-card:hover {
  background-color: rgba(30, 95, 255, 0.08);
  border-color: rgba(30, 95, 255, 0.45);
  box-shadow: 0 0 24px rgba(30, 95, 255, 0.12);
}

/* Checklist items hover (Use Services when you need) */
.services-checklist-item {
  transition: background-color 200ms ease, border-color 200ms ease;
}

.services-checklist-item:hover {
  background-color: rgba(30, 95, 255, 0.08) !important;
  border-color: rgba(30, 95, 255, 0.40) !important;
}

.services-checklist-item:hover > .material-symbols-outlined {
  color: #F5F7FF !important;
}

/* How We Build top fade overlay */
.how-we-build-fade::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, #0A1224 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Darken hero tint on smaller screens for readability */
@media (max-width: 1024px) {
  .hero-tint { opacity: 0.52; }
}

@media (max-width: 640px) {
  .hero-tint { opacity: 0.58; }
}

/* Rocket animation wrapper */
.rocket-wrapper {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.rocket-wrapper .rocket-icon {
  display: inline-block;
  font-size: 42px;
  color: #4AA3FF;
  line-height: 1;
}

/* Rocket: arc + glow + phase flicker */
.rocket-wrapper .rocket-anim {
  position: relative;
  z-index: 2;
  transform-origin: 45% 60%;
  will-change: transform, filter, opacity;
  animation:
    rocketArc 3.8s ease-in-out infinite,
    rocketGlow 1.6s ease-in-out infinite,
    rocketPhase 4.6s steps(1, end) infinite;
  filter:
    drop-shadow(0 0 8px rgba(30, 95, 255, 0.35))
    drop-shadow(0 0 18px rgba(74, 163, 255, 0.18));
}

.rocket-wrapper .rocket-anim::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  width: 34px;
  height: 10px;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(74, 163, 255, 0.42) 0%,
    rgba(30, 95, 255, 0.20) 45%,
    rgba(30, 95, 255, 0.00) 78%
  );
  transform: rotate(22deg);
  filter: blur(0.7px);
  opacity: 0.55;
  pointer-events: none;
}

@keyframes rocketArc {
  0%   { transform: translate(0px, 0px) rotate(-12deg); }
  22%  { transform: translate(6px, -3px) rotate(-6deg); }
  50%  { transform: translate(10px, -1px) rotate(-10deg); }
  78%  { transform: translate(5px, 3px) rotate(-16deg); }
  100% { transform: translate(0px, 0px) rotate(-12deg); }
}

@keyframes rocketGlow {
  0%   { filter: drop-shadow(0 0 8px rgba(30, 95, 255, 0.28)) drop-shadow(0 0 16px rgba(74, 163, 255, 0.14)); }
  50%  { filter: drop-shadow(0 0 12px rgba(30, 95, 255, 0.55)) drop-shadow(0 0 28px rgba(74, 163, 255, 0.28)); }
  100% { filter: drop-shadow(0 0 8px rgba(30, 95, 255, 0.28)) drop-shadow(0 0 16px rgba(74, 163, 255, 0.14)); }
}

@keyframes rocketPhase {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  52%  { opacity: 0.20; filter: blur(1.3px) drop-shadow(0 0 26px rgba(74, 163, 255, 0.70)) drop-shadow(0 0 44px rgba(30, 95, 255, 0.42)); }
  56%  { opacity: 0.55; filter: blur(0.6px) drop-shadow(0 0 20px rgba(74, 163, 255, 0.55)) drop-shadow(0 0 34px rgba(30, 95, 255, 0.30)); }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Comparison badge glow on hover */
.services-badge {
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.services-comparison-card:hover .badge-speed {
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.14);
}

.services-comparison-card:hover .services-badge-primary {
  box-shadow: 0 0 18px rgba(30, 95, 255, 0.55);
  background-color: #2D6FFF;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-cta {
    animation: none !important;
  }

  .cta-link,
  .cta-arrow,
  .tr-hover,
  .btn-cta-outline,
  .btn-hero-outline,
  .btn-ops-audit,
  .btn-cta-scale,
  .services-comparison-card,
  .services-checklist-item {
    transition: none !important;
  }

  .rocket-wrapper .rocket-anim {
    animation: none !important;
    filter: none !important;
  }

  .rocket-wrapper .rocket-anim::after {
    display: none !important;
  }
}
