/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Scroll indicator animation */
@keyframes scrollDown {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(10, 12, 14, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(82, 86, 96, 0.2);
}

/* Mobile menu animations */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Custom select styling */
select option {
    background: #1e2025;
    color: #a1a3aa;
    padding: 12px;
}

/* Selection color */
::selection {
    background: rgba(196, 101, 74, 0.3);
    color: #f6f6f7;
}

/* Subtle hover underline for links */
a:not(.group):hover {
    text-decoration: none;
}

/* Focus visible styles */
:focus-visible {
    outline: 1px solid rgba(196, 101, 74, 0.5);
    outline-offset: 2px;
}

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

/* Smooth transitions for all interactive elements */
button, a {
    transition: all 0.3s ease;
}

/* Remove default focus outline for mouse users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contactForm, button {
        display: none !important;
    }
    
    body {
        background: white;
        color: #1a1a1a;
    }
    
    .bg-charcoal-950, .bg-charcoal-900 {
        background: white !important;
    }
}
