/* === Base Styles === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0F0A07;
    color: #E8C9A0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

::selection {
    background-color: #C05621;
    color: #F5E6D3;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F0A07;
}

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

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

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* === Navbar Scroll State === */
.navbar-scrolled {
    background: rgba(15, 10, 7, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #2D2018;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .w-10 {
    border-color: rgba(212, 165, 116, 0.6) !important;
}

/* === Mobile Menu === */
.mobile-link {
    position: relative;
}

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

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

/* === Gold accent shimmer === */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* === Hero gradient animation === */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#hero {
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* === Card hover glow === */
.group:hover .bg-terracotta\/10 {
    background-color: rgba(192, 86, 33, 0.2) !important;
}

/* === Button ripple effect === */
button, a {
    position: relative;
    overflow: hidden;
}

/* === Image lazy load fallback === */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* === Focus styles === */
input:focus, textarea:focus {
    outline: none;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* === Print styles === */
@media print {
    nav, #contact, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
