/* Reset & 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;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    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-on-scroll[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal-on-scroll[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal-on-scroll[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal-on-scroll[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal-on-scroll[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal-on-scroll[data-reveal-delay="6"] { transition-delay: 0.6s; }

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

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a037;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile Menu */
.menu-line {
    display: block;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Gallery hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

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

/* Selection */
::selection {
    background: #d4a037;
    color: #102a43;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a037;
    outline-offset: 4px;
    border-radius: 4px;
}
