*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ================================================
   PREMIUM ANIMATIONS
   ================================================ */

/* ——— Scroll progress bar ——— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00C8FF, #9B27CC);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}



/* ——— Nav link animated underline ——— */
.nav-line {
  position: relative;
}
.nav-line::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: #00C8FF;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-line:hover::after { width: 100%; }

/* ——— 3D card tilt ——— */
.service-card,
.testi-card {
  transform-style: preserve-3d;
  will-change: transform;
}


/* ——— About photo clip-path reveal (wipe upward) ——— */
.photo-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.photo-reveal.revealed {
  clip-path: inset(0 0 0% 0);
}


/* ——— Page base ——— */
body {
  background:
    radial-gradient(ellipse 55% 50% at 15% 25%, rgba(0, 196, 212, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 88% 75%, rgba(139, 47, 204, 0.12) 0%, transparent 55%),
    #060C14;
  color: #EFF4F9;
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ——— Nav ——— */
.nav-glass {
  background: rgba(6, 12, 20, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
}

/* ——— Hero ——— */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(105deg,
      rgba(4,10,20,0.97) 0%,
      rgba(4,10,20,0.90) 30%,
      rgba(0,15,35,0.55) 60%,
      rgba(0,10,28,0.35) 100%
    ),
    url('../img/hero.jpg');
  background-size: cover, cover;
  background-position: center, center 20%;
  background-repeat: no-repeat, no-repeat;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 65% 50%, rgba(0, 80, 140, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(0, 160, 200, 0.15) 0%, transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ——— Floating badges ——— */
.hero-badge {
  position: absolute;
  z-index: 10;
}

.badge-pill {
  background: rgba(13, 19, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 9999px;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,255,0.05);
}

.badge-card {
  background: rgba(13, 19, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* ——— Buttons ——— */
.btn-brand {
  background: linear-gradient(135deg, #00C8FF 0%, #9B27CC 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-brand:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.25);
}
.btn-brand:active { transform: translateY(0); }

.btn-outline {
  border: 1px solid rgba(239, 244, 249, 0.2);
  color: #EFF4F9;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: rgba(239, 244, 249, 0.5);
  background: rgba(239, 244, 249, 0.06);
}

/* ——— Ticker ——— */
.ticker-wrap { overflow: hidden; }
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ——— Service cards ——— */
.service-card {
  background: #0D131C;
  border: 1px solid #1E2A38;
  border-radius: 1.25rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,255,0.06);
}
.service-card.featured {
  background: linear-gradient(160deg, #070F1C 0%, #0D131C 60%);
  border-color: rgba(0, 200, 255, 0.3);
}

/* ——— Bento cells ——— */
.bento-cell {
  background: #0D131C;
  border: 1px solid #1E2A38;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.bento-cell:hover { border-color: #2A3C52; }

/* ——— Testimonial cards ——— */
.testi-card {
  background: #090E15;
  border: 1px solid #172030;
  border-radius: 1.25rem;
  transition: border-color 0.3s;
}
.testi-card:hover { border-color: #1E2A38; }

/* ——— Form ——— */
.form-input {
  background: #090E15;
  border: 1px solid #1E2A38;
  color: #EFF4F9;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
}
.form-input::placeholder { color: #3A4E62; }
.form-input:focus {
  outline: none;
  border-color: #00C8FF;
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ——— Counter numbers ——— */
.counter-num {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1;
}

/* ——— Testimonial avatars ——— */
.testi-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid #1E2A38;
  flex-shrink: 0;
}

/* ——— Mobile menu ——— */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ——— Stars ——— */
.star-row svg { color: #00C8FF; }

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .btn-brand:hover, .service-card:hover { transform: none; }
}
