/* Custom styles for Campbell's Body and Paint */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS adds the class */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* Fallback: always show content if JS is disabled */
.no-js .scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(13, 20, 32, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #B8573D;
    transition: width 0.3s ease;
}

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

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #B8573D;
    outline-offset: 2px;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

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