/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Nav link styles */
.nav-link {
    position: relative;
    color: rgba(57, 25, 41, 0.7);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f5a623;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgba(57, 25, 41, 1);
}

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

/* Navbar scroll state */
.nav-scrolled .nav-link {
    color: rgba(57, 25, 41, 0.85);
}

/* Mobile menu */
.mobile-link {
    color: #391929;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #f5a623;
}

/* Hero scroll indicator */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #d7a8bc;
    border-radius: 3px;
}

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

/* Selection */
::selection {
    background: #e8cdd9;
    color: #31111c;
}
