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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Up Animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(20, 184, 166, 0.6);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==================== ANIMATION CLASSES ==================== */

/* Hidden by default - will be revealed on scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* Fade In */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Slide Up */
.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-on-scroll[data-animation="slide-up"] {
    transform: translateY(50px);
}

.animate-on-scroll[data-animation="slide-up"].animated {
    transform: translateY(0);
}

/* Slide Down */
.slide-down {
    animation: slideDown 0.8s ease forwards;
}

/* Slide Left */
.slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-on-scroll[data-animation="slide-left"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="slide-left"].animated {
    transform: translateX(0);
}

/* Slide Right */
.slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-on-scroll[data-animation="slide-right"] {
    transform: translateX(50px);
}

.animate-on-scroll[data-animation="slide-right"].animated {
    transform: translateX(0);
}

/* Scale Up */
.scale-up {
    animation: scaleUp 0.8s ease forwards;
}

.animate-on-scroll[data-animation="scale-up"] {
    transform: scale(0.9);
}

.animate-on-scroll[data-animation="scale-up"].animated {
    transform: scale(1);
}

/* Zoom In */
.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

/* Staggered animation delays */
.animate-delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
    transition-delay: 0.5s;
}

/* ==================== CONTINUOUS ANIMATIONS ==================== */

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* ==================== HOVER ANIMATIONS ==================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.5);
}

/* ==================== LINK ANIMATIONS ==================== */

.link-underline {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

.link-underline-center {
    position: relative;
    text-decoration: none;
}

.link-underline-center::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
}

.link-underline-center:hover::after {
    width: 100%;
    left: 0;
}

/* ==================== GRADIENT ANIMATIONS ==================== */

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

/* ==================== SHIMMER EFFECT ==================== */

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* ==================== PAGE LOAD ANIMATIONS ==================== */

.page-fade-in {
    animation: fadeIn 0.5s ease;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
