/* Modern Animations and Interactive Effects */

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for important buttons */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(226, 109, 92, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(226, 109, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 109, 92, 0); }
}

/* Gradient animation for backgrounds */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Slide in animations */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Apply animations to elements */
.ban h1 {
    animation: slideInUp 1s ease-out, float 6s ease-in-out infinite 2s;
}

.ban p {
    animation: slideInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn-primary {
    animation: pulse 2s infinite 3s;
}

.cartt {
    animation: slideInUp 0.8s ease-out both;
}

.cartt:nth-child(1) { animation-delay: 0.2s; }
.cartt:nth-child(2) { animation-delay: 0.4s; }
.cartt:nth-child(3) { animation-delay: 0.6s; }

.cart {
    animation: slideInUp 0.8s ease-out both;
}

.cart:nth-child(1) { animation-delay: 0.3s; }
.cart:nth-child(2) { animation-delay: 0.5s; }
.cart:nth-child(3) { animation-delay: 0.7s; }

/* Enhanced hover effects */
.cart::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.cart:hover::after {
    left: 100%;
}

/* Loading animation for images */
.cart img, .cartt img {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Navbar animation on scroll */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(29, 53, 87, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Interactive form animations */
.feedback {
    animation: slideInUp 1s ease-out;
}

input:focus, textarea:focus {
    transform: scale(1.02);
}

/* Stagger animation for footer elements */
.d-flex > div {
    animation: slideInUp 0.6s ease-out both;
}

.d-flex > div:nth-child(1) { animation-delay: 0.1s; }
.d-flex > div:nth-child(2) { animation-delay: 0.2s; }
.d-flex > div:nth-child(3) { animation-delay: 0.3s; }
.d-flex > div:nth-child(4) { animation-delay: 0.4s; }
.d-flex > div:nth-child(5) { animation-delay: 0.5s; }

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Parallax effect for hero background */
.ban {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Responsive animations */
@media (max-width: 768px) {
    .ban {
        background-attachment: scroll;
    }
    
    .cart::after {
        display: none;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* Prefers reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ban {
        background-attachment: scroll;
    }
}