/* Custom styles for Nordby Painting */

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

/* Selection color */
::selection {
    background: rgba(64, 224, 208, 0.3);
    color: #fff;
}

/* Nav active state */
.nav-link.active {
    color: #40E0D0 !important;
}

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

/* Only apply hidden state when JS is available and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* For browsers that support it, hide reveal animation if JS fails */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.2s ease, max-height 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
    pointer-events: auto;
}

/* Header background on scroll */
#site-header.scrolled {
    background: rgba(3, 8, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050D1A;
}
::-webkit-scrollbar-thumb {
    background: rgba(64, 224, 208, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(64, 224, 208, 0.5);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2340E0D0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover container */
.rounded-2xl.overflow-hidden img {
    display: block;
}

/* Subtle glow on mint elements */
.shadow-mint-450\/25 {
    box-shadow: 0 0 40px -10px rgba(64, 224, 208, 0.25);
}
