/* /css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Custom Hero Parallax effect and video zoom */
.hero-bg {
    transition: transform 0.5s ease-out;
}

.hero-video {
    animation: subtle-zoom 20s infinite alternate;
}

@keyframes subtle-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* Custom CSS for loaders/spinners */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations for scroll-in effects (used in main.js) */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-fade-in-down.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header animation on scroll */
#main-header.scrolled {
    background-color: #111827; /* Tailwind's gray-900 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Status message animations */
.animate-slide-in-right {
    animation: slideInRight 0.3s forwards;
}

.animate-slide-out-right {
    animation: slideOutRight 0.3s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Interactive 'Why Us' feature icons */
.feature-card:hover .feature-icon {
    animation: jiggle 0.5s ease-in-out infinite alternate;
}

@keyframes jiggle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(3deg); }
}

/* Pulsing Buy on WhatsApp button animation */
.pulse-animation {
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 0 0 rgba(28, 178, 10, 0.7);
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(28, 178, 10, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 10px 5px rgba(28, 178, 10, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(28, 178, 10, 0.7);
    }
}

/* Image Zoom feature for product page */

.zoom-container {
    width: 100%;
    height: 100%;
    transform-origin: 0% 0%;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
}

@media (min-width: 768px) {
    .zoom-container {
        width: 300px;
        height: 300px;
    }
}

.main-image-display {
    position: relative;
}