/* Custom styles beyond Tailwind */

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-text {
    color: #353535;
}

#navbar.scrolled .nav-link {
    color: #6d6d6d;
}

#navbar.scrolled .mobile-menu-btn svg {
    color: #353535;
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Scroll reveal - progressive enhancement, only active with JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays */
    .js-enabled .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
}

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

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

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

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image hover effect */
img {
    transition: transform 0.5s ease;
}
</style>
