/* GLOBAL ANIMATIONS & EFFECTS */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* SCROLL REVEAL ANIMATIONS */

/* Base reveal class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Reveal from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal with scale */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Fade in */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.active {
    opacity: 1;
}

/* Staggered children animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-children>*.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay variants */
.stagger-children-1>* {
    transition-delay: 0.1s;
}

.stagger-children-2>* {
    transition-delay: 0.2s;
}

.stagger-children-3>* {
    transition-delay: 0.3s;
}

.stagger-children-4>* {
    transition-delay: 0.4s;
}

.stagger-children-5>* {
    transition-delay: 0.5s;
}

/* HOVER EFFECTS */

/* Lift effect */

/* Scale effect */

/* Glow effect */

/* Border color change */

/* Shimmer effect on buttons */

/* BUTTON ANIMATIONS*/

/* Pulse animation for CTAs */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 166, 67, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 166, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 166, 67, 0);
    }
}

/* LOADING ANIMATIONS*/

/* Skeleton loading */

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D4A643;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Dots loading */

@keyframes dots-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

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

/* CARD ANIMATIONS */

/* 3D Tilt Effect */

/* Card border gradient */

/* Inner shadow lift */

/* IMAGE ANIMATIONS */

/* Image zoom on hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Image grayscale to color */

/* Image shine effect */

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

/* Text gradient slide */

@keyframes text-gradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Text fade up */
.text-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: text-fade-up 0.8s ease forwards;
}

@keyframes text-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LIST & ITEM ANIMATIONS */

/* List item stagger animation */

/* List item hover slide */

/* Checkmark list animation */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.check-list li.active {
    opacity: 1;
    transform: translateX(0);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D4A643;
    font-weight: bold;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.check-list li.active::before {
    transform: scale(1);
}

/* MODAL & OVERLAY ANIMATIONS */

/* Modal fade in */

/* Modal slide up */

/* SCROLL PROGRESS */

/* Scroll progress bar */

/* Back to top button animation */

/* PARALLAX EFFECTS */

.parallax-slow {
    transform: translateY(0);
    /* Removed transition to prevent conflict with JS scroll updates, which causes jerking */
}

/*RESPONSIVE UTILITIES*/

/* Hide scrollbar but keep functionality */

/* Smooth height transition */

/* Aspect ratio utilities */

/* ACCESSIBILITY ANIMATIONS*/

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

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

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus visible animation */

/* TOUCH DEVICE OPTIMIZATIONS*/

@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch, use active instead */

    /* Add active states for touch feedback */

    /* Disable shimmer on touch devices */

    /* Faster transitions for touch */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ICON ANIMATIONS */

@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

/* LOADER ANIMATIONS FOR BUTTONS */

/* DECORATIVE ELEMENTS */

/* Circle pulse */
@keyframes circle-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* SUCCESS/ERROR STATES*/

/* Error shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* GRADIENT BORDER ANIMATION */

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* GLASSMORPHISM EFFECTS*/