/* === KEYFRAME ANIMATIONS === */

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === ANIMATION DELAYS === */
.fade-in[style*="animation-delay"],
.fade-up[style*="animation-delay"] {
    animation-fill-mode: both;
}

/* === INTERSECTION OBSERVER TRIGGER === */
.fade-in {
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
}

.fade-up {
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
}

/* === HOVER ANIMATIONS === */
.service-card:hover,
.team-card:hover,
.blog-card:hover,
.pricing-card:hover {
    animation: none;
}

.service-link:hover,
.read-more:hover {
    animation: none;
}

button:hover {
    animation: none;
}

/* === BUTTON ANIMATIONS === */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* === ACCORDION ANIMATION === */
.accordion-content {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
        overflow: visible;
    }
}

/* === LINK UNDERLINE ANIMATION === */
a {
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent, #FF8C00);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* === SCROLL ANIMATION === */
.scroll-trigger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === LOADING STATE === */
.loading {
    animation: pulse 2s infinite;
}

/* === TRANSFORM ON SCROLL === */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* === MOBILE MENU ANIMATION === */
.mobile-nav.active {
    animation: slideDown 0.3s ease-out;
}

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

/* === SUBTLE BACKGROUND SHIFT === */
@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: bgShift 6s ease infinite;
}