/* Custom Styles for Cooking and Eating Healthy with Phil */

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

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a82237, #d06a3a);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Reveal Animations */
.reveal-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hero Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-element.animate {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a82237, #d06a3a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b1c2e, #b5532e);
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        transition: none;
    }
}
