/* Home page specific styles */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  color: #fff;
  padding-top: 90px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 60% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}

/* ---------------- Hero Slider ---------------- */
.hero-slider { position: relative; z-index: 2; width: 100%; }
.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
}
.hero-slide.active { display: block; }
.hero-copy { max-width: 680px; }

/* Per-slide background photo, positioned behind the whole hero section */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 6.5s linear;
}
.hero-bg-layer.active { opacity: 1; transform: scale(1); }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,20,14,0.92) 0%, rgba(15,30,20,0.82) 38%, rgba(15,30,20,0.55) 62%, rgba(15,30,20,0.35) 100%),
    linear-gradient(0deg, rgba(8,16,12,0.55), transparent 40%);
}
.hero-slide.active .hero-copy > * { animation: slideUpFade .8s var(--ease) both; }
.hero-slide.active .hero-copy .eyebrow { animation-delay: .05s; }
.hero-slide.active .hero-copy h1 { animation-delay: .15s; }
.hero-slide.active .hero-copy .hero-lead { animation-delay: .25s; }
.hero-slide.active .hero-copy .hero-actions { animation-delay: .35s; }
.hero-slide.active .hero-copy .hero-badges { animation-delay: .45s; }
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-badges { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: .82rem;
  backdrop-filter: blur(6px);
}

/* Slide-specific accent icon */
.hero-slide-icon {
  width: 74px; height: 74px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 22px;
  animation: floatY 4.5s ease-in-out infinite;
}

/* Controls: dots */
.hero-dots {
  position: relative; z-index: 3;
  display: flex; gap: 10px;
  margin-top: 46px;
}
.hero-dots button {
  width: 34px; height: 5px; border-radius: 4px;
  background: rgba(255,255,255,0.28);
  border: none; cursor: pointer; padding: 0;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.hero-dots button::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dots button.active::after { animation: dotFill 6s linear forwards; }
.hero-dots button.active { background: rgba(255,255,255,0.5); }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Prev / next arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s, transform .3s;
  font-size: 1.1rem;
}
.hero-arrow:hover { background: var(--gradient-brand); transform: translateY(-50%) scale(1.08); }
.hero-arrow.prev { left: 8px; }
.hero-arrow.next { right: 8px; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-orb-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}
.hero-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.25);
  animation: spin 30s linear infinite;
}
.hero-ring.ring-2 { inset: 40px; border-style: solid; border-color: rgba(255,201,60,0.25); animation-duration: 22s; animation-direction: reverse; }
.hero-logo-circle {
  position: absolute; inset: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  box-shadow: 0 0 90px rgba(255,201,60,0.25);
  animation: floatY 5s ease-in-out infinite;
}
.hero-logo-circle img { animation: floatY 5s ease-in-out infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.spark {
  position: absolute;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px 3px rgba(255,201,60,0.7);
  animation: sparkle 3s ease-in-out infinite;
}
.spark:nth-child(1) { width: 8px; height: 8px; top: 10%; left: 15%; animation-delay: 0s; }
.spark:nth-child(2) { width: 6px; height: 6px; top: 70%; left: 8%; animation-delay: .8s; background: var(--green); box-shadow: 0 0 12px 3px rgba(47,174,78,0.7); }
.spark:nth-child(3) { width: 10px; height: 10px; top: 20%; right: 8%; animation-delay: 1.4s; background: var(--orange); box-shadow: 0 0 12px 3px rgba(255,138,30,0.7); }
.spark:nth-child(4) { width: 7px; height: 7px; bottom: 12%; right: 18%; animation-delay: 2s; background: var(--red); box-shadow: 0 0 12px 3px rgba(239,59,59,0.6); }
@keyframes sparkle { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65); font-size: .75rem; letter-spacing: .08em;
  z-index: 2;
}
.scroll-cue .dot-track { width: 2px; height: 34px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-cue .dot-track::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 12px;
  background: var(--gradient-brand);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -12px; } 100% { top: 34px; } }

/* Services preview cards on home */
.service-strip { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.service-strip .card { min-width: 270px; scroll-snap-align: start; }

/* Marquee client bar */
.marquee-wrap { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Process mini preview */
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-step { text-align: center; }
.mini-step .num {
  width: 50px; height: 50px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

@media (max-width: 1024px) {
  .hero-copy { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges, .hero-dots { justify-content: center; }
  .hero-slide-icon { margin-left: auto; margin-right: auto; }
  .mini-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-arrow { display: none; }
}
@media (max-width: 768px) {
  .hero { padding-top: 110px; min-height: auto; padding-bottom: 70px; }
}
@media (max-width: 480px) {
  .mini-steps { grid-template-columns: 1fr 1fr; }
}
