/* =========================================
   JS SOFTWARE
   ANIMATIONS
========================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes softFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.8;
    }
}


/* =========================================
   PAGE ENTRY
========================================= */

#main-content {
    animation:
        fadeIn 0.7s ease both;
}


/* =========================================
   HERO
========================================= */

.hero-content {
    animation:
        fadeUp 0.8s ease both;
}


.hero .eyebrow {
    animation:
        fadeUp 0.7s ease 0.05s both;
}


.hero h1 {
    animation:
        fadeUp 0.8s ease 0.12s both;
}


.hero-description {
    animation:
        fadeUp 0.8s ease 0.2s both;
}


.hero-buttons {
    animation:
        fadeUp 0.8s ease 0.3s both;
}


/* =========================================
   BUTTON HOVER
========================================= */

.btn {
    position: relative;

    overflow: hidden;
}

.btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left 0.5s ease;
}

.btn:hover::before {
    left: 140%;
}


/* =========================================
   NAV
========================================= */

.nav-link,
.language-switch {
    animation:
        fadeIn 0.5s ease both;
}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;
    }
}
