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

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

body {
    overflow-x: hidden;
}

/* Loader */
.loader {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(212, 175, 97, 0.2);
    border-top-color: #D4AF61;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #022C22 0%,
        #047857 25%,
        #065F46 50%,
        #047857 75%,
        #022C22 100%
    );
}

.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(212, 175, 97, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(4, 120, 87, 0.15) 0%, transparent 50%);
}

/* Navbar */
.nav-link {
    position: relative;
    padding: 4px 0;
}

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

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

.navbar-scrolled {
    background: rgba(2, 44, 34, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 97, 0.1);
}

/* Mobile Menu */
.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

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

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

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

/* Decorative Elements */
.gold-divider {
    width: 64px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 97, 0.6), transparent);
}

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

::-webkit-scrollbar-track {
    background: #022C22;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 97, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 97, 0.5);
}

/* Selection */
::selection {
    background: rgba(212, 175, 97, 0.3);
    color: #F5F5DC;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .gallery-item img {
        transition: none;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #D4AF61;
    outline-offset: 2px;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F5F5DC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
