/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e87461;
}

/* Selection */
::selection {
    background: rgba(232, 116, 97, 0.3);
    color: #f6f6f6;
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal base — content is ALWAYS visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate when the class is added by JS (progressive enhancement) */
.scroll-reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Hero reveal animations — above fold, always visible by default */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Staggered delays for hero */
.reveal-up:nth-child(2) { transition-delay: 0.15s; }
.reveal-up:nth-child(3) { transition-delay: 0.3s; }
.reveal-up:nth-child(4) { transition-delay: 0.45s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal,
    .scroll-reveal.animated,
    .scroll-reveal.animated.visible,
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Image aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 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='%236e6e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
