/* Custom styles for NutritionVille */

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

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

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

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

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

/* Selection color */
::selection {
    background: #c97050;
    color: white;
}

/* Reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.is-visible.delay-100 {
    transition-delay: 100ms;
}

.reveal-on-scroll.is-visible.delay-200 {
    transition-delay: 200ms;
}

/* Hero image parallax effect */
.hero-section {
    background-attachment: fixed;
}

/* Navbar active state */
.nav-link-active {
    color: #c97050;
}

/* Form focus animations */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 112, 80, 0.1);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Card hover lift effect */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #c97050, #a85538);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative elements */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

/* Loading animation for images */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-bounce {
        display: none;
    }
}
