/* Custom styles and animations */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Service Card Animation States */
.service-card {
    /* Initial state handled by utility classes: opacity-0 translate-y-8 */
    will-change: transform, opacity;
}

/* Animation triggered class */
.service-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delays for list items */
.service-card:nth-child(1) {
    transition-delay: 100ms;
}

.service-card:nth-child(2) {
    transition-delay: 200ms;
}

.service-card:nth-child(3) {
    transition-delay: 300ms;
}

.service-card:nth-child(4) {
    transition-delay: 400ms;
}

.service-card:nth-child(5) {
    transition-delay: 500ms;
}

.service-card:nth-child(6) {
    transition-delay: 600ms;
}

/* Custom Animations for Hero Section */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    /* Shorter duration for snappier feel */
    animation-fill-mode: both;
}

.delay-100 {
    animation-delay: 0.1s;
}


/* Floating Action Buttons */
.floating-btn-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.floating-btn.whatsapp {
    background-color: #25d366;
    animation: float-btn 3s ease-in-out infinite;
}

.floating-btn.call {
    background-color: #009c92;
    /* primary color */
    animation: float-btn 3s ease-in-out infinite;
    animation-delay: 1.5s;
    /* Stagger animation */
}

/* Tooltip on hover */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.floating-btn:hover::before {
    opacity: 1;
}

@keyframes float-btn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}