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

body {
    overflow-x: hidden;
}

/* Scroll Reveal */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled #nav-logo,
.navbar-scrolled nav a:not(.bg-coral-500) {
    color: #ffffff !important;
}

/* Hero stagger */
#hero .reveal-item:nth-child(1) { transition-delay: 0.1s; }
#hero .reveal-item:nth-child(2) { transition-delay: 0.2s; }
#hero .reveal-item:nth-child(3) { transition-delay: 0.3s; }
#hero .reveal-item:nth-child(4) { transition-delay: 0.4s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111827;
}
::-webkit-scrollbar-thumb {
    background: #F97066;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F0525C;
}

/* Selection */
::selection {
    background: #F97066;
    color: #ffffff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal-item img,
    .gallery img {
        transition: none !important;
    }
}
