/* Base resets and custom utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll-reveal base: content is visible by default */
.reveal {
    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);
}

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

/* Nav link underline animation */
.nav-link {
    position: relative;
}

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

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

/* Mobile link hover */
.mobile-link {
    position: relative;
    display: block;
}

/* Gold shimmer on hover for CTA buttons */
button:hover, a:hover {
    cursor: pointer;
}

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

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

::-webkit-scrollbar-track {
    background: #1C1917;
}

::-webkit-scrollbar-thumb {
    background: #44403C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #57534E;
}

/* Selection color */
::selection {
    background-color: rgba(217, 119, 6, 0.3);
    color: #FBF7F1;
}
