.text-safety-green {
    color: #078A4C;
}

.text-safety-blue {
    color: #0C3747;
}

/* ===== PRELOADER  ======== */
#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom right,
            #092c38,
            #0C3747,
            #134e4a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.spinner {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top: 5px solid #fbbf24;
    animation: spin 1.2s linear infinite;
}

/* ===== PRELOADER  ======== */

@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}

/* Fade out animation */

.preloader-hidden {

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.6s ease;

}

/*===== PRELOADER END  ======== */


/*===== HERO SLIDER =====*/
.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    filter: blur(8px);
    transform: scale(1);

    transition:
        opacity 1.5s ease-in-out,
        filter 1.5s ease-in-out,
        transform 6s ease-in-out;

    will-change: opacity, transform, filter;
}

/* Active slide visible */
.hero-slide.active {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1.08);
    /* Ken Burns zoom */
}

/* Green gradient overlay */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom right,
            rgba(15, 56, 45, 0.9),
            rgba(70, 109, 95, 0.9));

    z-index: 1;
}

/* Ensure hero content stays above */
.hero-content {
    position: relative;
    z-index: 10;
}



/* Slide animations for hero section */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Product slider specific styles */
.product-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.product-slide.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.product-slide.next {
    opacity: 0;
    transform: translateX(100%);
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Ensure smooth transitions */
.product-slide img {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    border-radius: 20px;
}



/* Wave Base */
.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
}

.wave svg {
    width: 100%;
    height: 180px;
    display: block;
}

/* Front Wave (Faster) */
.wave-front {
    animation: waveMove 10s linear infinite;
}

/* Back Wave (Slower + Reverse Drift) */
.wave-back {
    animation: waveMoveReverse 18s linear infinite;
}

/* Animations */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes waveMoveReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}