/* ============================================================
   ws-animations.css — All animation styles for Webstaller
   Lives as a static file so Blade never processes @keyframes.
   ============================================================ */

/* ── Hero animated background ──────────────────────────────── */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: heroGridDrift 30s linear infinite;
}

@keyframes heroGridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle at 50% 50%, rgba(232,100,10,0.14) 0%, transparent 65%);
    top: -320px; right: -120px;
    animation: orbDrift1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 65%);
    bottom: -180px; left: -40px;
    animation: orbDrift2 16s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-36px) scale(1.04); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(28px); }
}

/* ── Hero animated underline ────────────────────────────────── */
.hero-underline-word {
    position: relative;
    display: inline;
}

.hero-underline-word::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 4px;
    background: #E8640A;
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-underline-word.is-animated::after {
    width: 100%;
}

/* ── Primary CTA breathing glow ─────────────────────────────── */
.hero-cta-primary {
    animation: ctaPulse 3.5s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,100,10,0); }
    50%       { box-shadow: 0 0 0 10px rgba(232,100,10,0.15); }
}

/* ── Button: sliding colour fill on hover ───────────────────── */
/*
   How it works: each button uses a doubled-width gradient
   (navy | orange for primary, orange | transparent for outline,
   orange | navy for navy buttons). Background-position starts
   "right" (showing the second colour) and slides to "left"
   (showing the first colour) on hover.
*/
.ws-btn {
    position: relative;
    overflow: hidden;
    transition:
        background-position 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow  0.2s ease,
        transform   0.18s ease,
        color       0.18s ease,
        border-color 0.18s ease !important;
}

.ws-btn:hover  { transform: translateY(-2px); }
.ws-btn:active { transform: scale(0.97) translateY(0) !important; box-shadow: none !important; }

/* Orange primary → slides to navy on hover */
.ws-btn-primary {
    background-image: linear-gradient(to right, #1A3C6E 50%, #E8640A 50%);
    background-size: 201% 100%;
    background-position: right center;
}
.ws-btn-primary:hover {
    background-position: left center;
    box-shadow: 0 8px 28px rgba(26,60,110,0.35);
    color: #fff !important;
}

/* Outline (transparent+white-border) → slides to orange on hover */
.ws-btn-outline {
    background-image: linear-gradient(to right, #E8640A 50%, transparent 50%);
    background-size: 201% 100%;
    background-position: right center;
}
.ws-btn-outline:hover {
    background-position: left center;
    border-color: #E8640A !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(232,100,10,0.3);
}

/* Navy → slides to orange on hover */
.ws-btn-navy {
    background-image: linear-gradient(to right, #E8640A 50%, #1A3C6E 50%);
    background-size: 201% 100%;
    background-position: right center;
}
.ws-btn-navy:hover {
    background-position: left center;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(232,100,10,0.35);
}

/* ── Card hover lift ────────────────────────────────────────── */
.hover-lift {
    transition:
        transform  0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-lift:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 18px 44px rgba(26,60,110,0.13) !important;
}

/* ── Nav glassmorphism on scroll ────────────────────────────── */
#main-nav {
    transition:
        background-color 0.35s ease,
        backdrop-filter  0.35s ease,
        -webkit-backdrop-filter 0.35s ease,
        box-shadow       0.35s ease;
}
#main-nav.is-scrolled {
    background-color: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 32px rgba(26,60,110,0.09) !important;
}

/* ── Scroll progress bar ─────────────────────────────────────── */
.ws-scroll-progress {
    transform-origin: left center;
    will-change: transform;
}

/* ── Reduced motion: disable everything animated ────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-grid,
    .hero-orb-1,
    .hero-orb-2,
    .hero-cta-primary {
        animation: none !important;
    }
    .hero-underline-word.is-animated::after {
        transition: none;
        width: 100%;
    }
    .hover-lift:hover {
        transform: none !important;
    }
    .ws-btn:hover,
    .ws-btn:active {
        transform: none !important;
    }
    .ws-btn,
    .ws-btn-primary,
    .ws-btn-outline,
    .ws-btn-navy {
        background-image: none !important;
        transition: box-shadow 0.2s ease !important;
    }
}
