/* Custom Styles for Nrgy Fit Protein Club */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Hero Animation */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

/* About Section Animation */
.about-image {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.about-content {
    animation: fadeInRight 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Products Animation */
.products-header {
    animation: fadeInUp 0.8s ease-out forwards;
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Why Us Animation */
.why-us-header {
    animation: fadeInUp 0.8s ease-out forwards;
}

.why-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.why-card:nth-child(1) { animation-delay: 0.1s; }
.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.3s; }
.why-card:nth-child(4) { animation-delay: 0.4s; }

/* Contact Animation */
.contact-info {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.contact-form {
    animation: fadeInRight 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #faf9f6;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
