/* ==========================================================
   Skryfon Website — Custom Styles
   All Tailwind utility classes live in index.html.
   This file contains animations, component overrides,
   and anything that cannot be expressed with Tailwind alone.
   ========================================================== */

/* ── Material symbols default settings ──────────────────── */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* ── Base ────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Manrope", sans-serif;
  background-color: #060e20;
  color: #dee5ff;
}

/* ── Scroll-reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-left {
  transform: translateX(-36px);
}
.reveal.reveal-right {
  transform: translateX(36px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}
.reveal-delay-4 {
  transition-delay: 0.48s;
}

/* ── Floating card ───────────────────────────────────────── */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}
.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* ── Ambient glow pulse ──────────────────────────────────── */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(115, 255, 227, 0.18);
  }
  50% {
    box-shadow: 0 0 38px rgba(115, 255, 227, 0.45);
  }
}
.animate-glow {
  animation: glow-pulse 2.8s ease-in-out infinite;
}

/* ── Shimmer gradient text ───────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.text-shimmer {
  background: linear-gradient(
    90deg,
    #73ffe3 0%,
    #d7e6ff 35%,
    #8ef5e3 55%,
    #73ffe3 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

/* ── Continuous marquee ──────────────────────────────────── */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-track {
  animation: marquee 22s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* ── Ambient orb drift ───────────────────────────────────── */
@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -18px) scale(1.06);
  }
  66% {
    transform: translate(-18px, 14px) scale(0.95);
  }
}
.orb {
  animation: orb-drift 9s ease-in-out infinite;
}
.orb-2 {
  animation: orb-drift 13s ease-in-out infinite reverse;
}

/* ── Scroll progress bar ─────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #73ffe3, #00f5d4, #8ef5e3);
  z-index: 200;
  width: 0%;
  transition: width 0.08s linear;
}

/* ── Mobile nav slide ────────────────────────────────────── */
#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-nav.open {
  max-height: 400px;
}

/* ── Card lift on hover ──────────────────────────────────── */
.card-hover {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(115, 255, 227, 0.06);
  border-color: rgba(115, 255, 227, 0.14) !important;
}

/* ── Heading accent line ─────────────────────────────────── */
.heading-line {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.heading-line.visible {
  transform: scaleX(1);
}

/* ── Background grid overlay ─────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(115, 255, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 255, 227, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Toast notification ──────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Scroll-down bounce ──────────────────────────────────── */
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(6px) translateX(-50%);
  }
}
.scroll-hint {
  animation: scrollBounce 1.6s ease-in-out infinite;
}

/* ── Counter — tabular numeral spacing ───────────────────── */
.stat-num {
  font-variant-numeric: tabular-nums;
}

/* ── Active nav link underline ───────────────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #73ffe3;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #73ffe3;
}

/* ── Consultation modal entrance ─────────────────────────── */
#modal-card {
  transform: scale(0.93) translateY(16px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}
#modal-card.open {
  transform: scale(1) translateY(0);
  opacity: 1;
}
