/* Custom Tailwind Utilities and Animations */

@layer utilities {
    .glass-nav {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-image: linear-gradient(to right, #064c39, #10b981);
    }

    .animate-bounce-slow {
        animation: bounce 3s infinite;
    }

    /* Radial gradient utility for hero section glow effect */
    .bg-gradient-radial {
        background-image: radial-gradient(circle, var(--tw-gradient-from, rgba(16, 185, 129, 0.05)), var(--tw-gradient-to, transparent));
    }
}

/* Keyframe Animations */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

@keyframes marqueeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Animation Classes */

.animate-marquee {
    animation: marquee 60s linear infinite;
}

.animate-marquee-slide-in > * {
    animation: marqueeSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.sector-card-entrance {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* Floating Card Fix - Ensure it appears on top */
.operational-scale-card {
    display: grid;
    align-content: center;
}

/* Stats section animation - visible class added by JavaScript */
.stat-item.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
