*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #08130c;
}
::-webkit-scrollbar-thumb {
    background: #2d4a2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a6339;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #faf8f4;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Service card shimmer on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 50%, rgba(201,168,76,0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gold gradient line accent */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(8, 19, 12, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

nav.scrolled .text-cream-200\/70 {
    color: rgba(250, 248, 244, 0.7);
}

/* Mobile menu active state */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Map filter override for light mode */
iframe[title*="map"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(0.9);
}

/* Staggered service card animation */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Gallery image hover */
.group.relative.aspect-\[3\/4\]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.group:hover::after {
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.2);
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #08130c inset !important;
    -webkit-text-fill-color: #faf8f4 !important;
}
