/* weblix jo — Motion & life layer */

html {
    scroll-behavior: smooth;
}

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

body {
    opacity: 0;
    transition: opacity 0.45s ease;
}

body.is-ready {
    opacity: 1;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    transform: none;
}

.reveal-scale {
    transform: scale(0.96);
}

.reveal-scale.is-visible {
    transform: scale(1);
}

/* ── Hero entrance ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes auroraPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate(30px, -20px) scale(1.08);
        opacity: 1;
    }
}

@keyframes auroraPulseAlt {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-25px, 15px) scale(1.06);
    }
}

@keyframes trustShine {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.08);
    }
    50% {
        border-color: rgba(255, 106, 0, 0.25);
    }
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 106, 0, 0);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 106, 0, 0.12);
    }
}

@keyframes btnShine {
    0% {
        transform: translateX(-120%) skewX(-18deg);
    }
    100% {
        transform: translateX(220%) skewX(-18deg);
    }
}



.hero-section::after {
    animation: auroraPulse 16s ease-in-out infinite;
}

.hero-glow-accent,
.about-hero-orb-1,
.contact-glow-accent {
    animation: auroraPulseAlt 20s ease-in-out infinite;
}

.about-hero-orb-2 {
    animation: auroraPulse 18s ease-in-out infinite reverse;
}

.hero-animate-in .hero-badge-seo {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-animate-in .hero-main-title {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-animate-in .hero-desc {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.hero-animate-in .hero-actions {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-animate-in .hero-trust {
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.hero-animate-in .hero-graphic-container,
.hero-animate-in .hero-svg-wrapper {
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both, heroFloat 6s ease-in-out 1.2s infinite;
}

.about-hero.hero-animate-in .about-hero-badge {
    animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.about-hero.hero-animate-in .about-hero-title {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.about-hero.hero-animate-in .about-hero-desc {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.about-hero.hero-animate-in .about-hero-actions {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.contact-hero.hero-animate-in .contact-hero-badge,
.contact-hero.hero-animate-in .contact-hero-title,
.contact-hero.hero-animate-in .contact-hero-desc,
.contact-hero.hero-animate-in .contact-hero-metrics {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-hero.hero-animate-in .contact-hero-badge { animation-delay: 0.06s; }
.contact-hero.hero-animate-in .contact-hero-title { animation-delay: 0.16s; }
.contact-hero.hero-animate-in .contact-hero-desc { animation-delay: 0.28s; }
.contact-hero.hero-animate-in .contact-hero-metrics { animation-delay: 0.4s; }

/* Trust chips */
.trust-logo-item {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}

.trust-logo-item:hover {
    transform: translateY(-3px);
    animation: trustShine 2s ease-in-out infinite;
}

/* Buttons — shine sweep */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-150%) skewX(-18deg);
    pointer-events: none;
}

.btn-primary:hover::after {
    animation: btnShine 0.65s ease;
}

/* Cards — extra depth on hover */
.service-card,
.step-card,
.pillar-card,
.about-feature-item,
.contact-metric-card {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
}

.service-card:hover,
.step-card:hover,
.pillar-card:hover {
    transform: translateY(-8px);
}

.about-feature-item:hover {
    transform: translateX(-4px);
}

html[lang="en"] .about-feature-item:hover {
    transform: translateX(4px);
}

/* CTA pulse */
.cta-container {
    animation: ctaGlow 4s ease-in-out infinite;
}

/* Section atmosphere */
#services {
    background:
        radial-gradient(ellipse 70% 45% at 80% 0%, rgba(255, 106, 0, 0.04), transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(0, 98, 184, 0.05), transparent 50%);
}

#about.bg-soft,
.about-story-section {
    background:
        radial-gradient(ellipse 50% 30% at 100% 0%, rgba(0, 98, 184, 0.06), transparent),
        var(--color-bg-soft);
}

.pillars-section {
    position: relative;
}

.pillars-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.06) 0%, transparent 70%);
    bottom: -80px;
    inset-inline-start: -80px;
    pointer-events: none;
    z-index: 0;
}

/* Stat numbers */
.stat-number.is-counting {
    font-variant-numeric: tabular-nums;
}

/* Nav link subtle hover lift */
.nav-link {
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header:not(.scrolled) .nav-link:hover {
    transform: translateY(-1px);
}

/* Section headers — accent line grows in */
.section-header.is-visible .section-subtitle {
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Milestone timeline node pulse when visible */
.milestone-item.is-visible .milestone-node {
    animation: trustShine 3s ease-in-out 0.5s 2;
}

@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1;
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-section::after,
    .hero-glow-accent,
    .about-hero-orb-1,
    .about-hero-orb-2,
    .contact-glow-accent,
    .cta-container,
    .hero-animate-in * {
        animation: none !important;
    }

    .btn-primary::after {
        display: none;
    }
}
