/* Custom styles — overrides and enhancements beyond Tailwind */

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

/* Scroll reveal base — visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS runs and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

nav.scrolled .nav-link {
    color: #4a4a4a !important;
}

nav.scrolled .nav-link:hover {
    color: #7B2D3B !important;
}

nav.scrolled .logo-text {
    color: #7B2D3B !important;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active nav link */
.nav-link.active {
    color: #7B2D3B !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #7B2D3B;
    border-radius: 1px;
}

/* Subtle input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Selection color */
::selection {
    background: #f9c5cc;
    color: #7B2D3B;
}

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

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

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

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