/*==================================================
        GLOBAL ANIMATIONS
==================================================*/

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/*==================================================
        FADE UP
==================================================*/

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 0.8s ease forwards;
}

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

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

/*==================================================
        FADE LEFT
==================================================*/

.fade-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: fadeLeft 0.8s ease forwards;
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

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

/*==================================================
        FADE RIGHT
==================================================*/

.fade-right {
    opacity: 0;
    transform: translateX(60px);
    animation: fadeRight 0.8s ease forwards;
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

/*==================================================
        ZOOM IN
==================================================*/

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.8s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*==================================================
        FLOATING
==================================================*/

.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }
}

/*==================================================
        GENERAL PULSE
==================================================*/

.pulse {
    animation: generalPulse 2s ease-in-out infinite;
}

@keyframes generalPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

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

.primary-btn,
.secondary-btn {
    position: relative;
    overflow: hidden;
}

.primary-btn::before,
.secondary-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transition: left 0.5s ease;
    pointer-events: none;
}

.primary-btn:hover::before,
.secondary-btn:hover::before {
    left: 100%;
}

/*==================================================
        CARD HOVER
==================================================*/

.product-card,
.package-card,
.review-card,
.why-card,
.process-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover,
.package-card:hover,
.review-card:hover,
.why-card:hover,
.process-card:hover {
    transform: translateY(-10px);
}

/*==================================================
        IMAGE HOVER
==================================================*/

.product-card img,
.hero-right img,
.about-image img {
    transition: transform 0.5s ease;
}

.product-card:hover img,
.hero-right:hover img,
.about-image:hover img {
    transform: scale(1.05);
}

/*==================================================
        ICON ROTATE
==================================================*/

.feature-box i,
.why-card i {
    transition: transform 0.4s ease;
}

.feature-box:hover i,
.why-card:hover i {
    transform: rotate(360deg);
}

/*==================================================
        FAQ HOVER
==================================================*/

.faq details {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq details:hover {
    transform: translateY(-3px);
}

/*==================================================
        NAVIGATION
==================================================*/

.navbar a {
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

/*==================================================
        FOOTER LINKS
==================================================*/

.footer-column a {
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.footer-column a:hover {
    padding-left: 8px;
}

/*==================================================
        SCROLL REVEAL
==================================================*/

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*==================================================
        BOUNCE
==================================================*/

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

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

/*==================================================
        LOADER
==================================================*/

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #eee;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*==================================================
        POPUP
==================================================*/

.popup-content {
    animation: popupZoom 0.35s ease;
}

@keyframes popupZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/*==================================================
        DELAY CLASSES
==================================================*/

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
    transition-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
    transition-delay: 1s;
}

/*==================================================
        REDUCED MOTION
==================================================*/

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .fade-up,
    .fade-left,
    .fade-right,
    .zoom-in {
        opacity: 1;
        transform: none;
    }
}