/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS - PREMIUM EFFECTS
============================================================ */

/* ========================= */
/* GLOBAL SCROLL ANIMATIONS */
/* ========================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpOnScroll 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeInOnScroll 0.8s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInLeftOnScroll 0.8s ease-out forwards;
}

/* ========================= */
/* KEYFRAME ANIMATIONS      */
/* ========================= */
@keyframes fadeUpOnScroll {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOnScroll {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeftOnScroll {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================= */
/* BUTTON ANIMATIONS        */
/* ========================= */
.btn-primary,
.btn-primary-big {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary::before,
.btn-primary-big::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-primary-big:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active,
.btn-primary-big:active {
    transform: scale(0.98);
}

/* ========================= */
/* HOVER LIFT EFFECT        */
/* ========================= */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(200, 161, 79, 0.2);
}

/* ========================= */
/* PULSE EFFECT             */
/* ========================= */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* ========================= */
/* GLOW EFFECT              */
/* ========================= */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(200, 161, 79, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(200, 161, 79, 0.6);
    }
}

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

/* ========================= */
/* SHIMMER LOADING EFFECT   */
/* ========================= */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(200, 161, 79, 0.1) 25%,
        rgba(200, 161, 79, 0.2) 50%,
        rgba(200, 161, 79, 0.1) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========================= */
/* BOUNCE ANIMATION         */
/* ========================= */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* ========================= */
/* GRADIENT ANIMATION       */
/* ========================= */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ========================= */
/* SMOOTH TRANSITIONS       */
/* ========================= */
* {
    scroll-behavior: smooth;
}

/* Link hover effect */
a {
    transition: color 0.3s ease, background 0.3s ease;
}

/* ========================= */
/* TEXT ANIMATION           */
/* ========================= */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #c8a14f;
    white-space: nowrap;
    animation: typewriter 4s steps(60, end);
}

/* ========================= */
/* SCALE ON SCROLL          */
/* ========================= */
.scale-on-scroll {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.scale-on-scroll.visible {
    transform: scale(1);
    opacity: 1;
}

/* ========================= */
/* FORM INPUT ANIMATIONS    */
/* ========================= */
input:focus,
textarea:focus,
select:focus {
    animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
    from {
        box-shadow: 0 0 0 rgba(200, 161, 79, 0);
    }
    to {
        box-shadow: 0 0 15px rgba(200, 161, 79, 0.3);
    }
}

/* ========================= */
/* PARALLAX EFFECT          */
/* ========================= */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ========================= */
/* STAGGER ANIMATION        */
/* ========================= */
.stagger-item {
    opacity: 0;
    animation: fadeUpOnScroll 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* ========================= */
/* RESPONSIVE ANIMATIONS   */
/* ========================= */
@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;
    }
}
