/* --- ANIMATIONS EXTENSION --- */

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

/* Keyframes for Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

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

/* Keyframes for Glowing Pulse */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(74, 222, 128, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.6), 0 0 10px rgba(74, 222, 128, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(74, 222, 128, 0.2);
    }
}

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

/* Enhanced Hover Effects for Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03) !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--accent-color, #4ade80);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 222, 128, 0.2);
}

.service-card .icon-box i {
    transition: transform 0.6s ease;
}

.service-card:hover .icon-box i {
    transform: rotateY(360deg) scale(1.2);
    color: var(--accent-color, #4ade80);
}

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.6s ease;
    border-radius: 50%;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.3);
}

/* Gallery Item Hover Zoom */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-caption {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Hero Badge Pulse */
.badge i {
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.5;
    }
}

/* Floating Actions Entrance */
.floating-actions {
    animation: slideInRight 1s ease-out forwards;
}

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

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

/* Initial Load Reveal for Hero Elements */
.hero h1 span.text-gradient {
    display: inline-block;
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

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

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