/* Custom styles for Theresa Boutique */

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Mobile menu links */
.mobile-link {
    position: relative;
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* Reveal animation for scroll sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(20, 83, 45, 0.08);
}

nav.scrolled .nav-link {
    color: #14532d;
}

nav.scrolled .mobile-link {
    color: #14532d;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .nav-link::after {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Image loading placeholder */
img {
    background-color: #e8dfcf;
}

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

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

::-webkit-scrollbar-thumb {
    background: #bce2bc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8dcb8d;
}
