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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #060D1F;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C9A84C, #E0CC8A);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #D4B965, #E0CC8A);
}

/* Preloader */
#preloader {
    pointer-events: all;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #D4B965 !important;
}

/* Mobile menu */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    pointer-events: all;
    opacity: 1;
}

#mobile-menu.closed {
    pointer-events: none;
    opacity: 0;
}

#bar1.open {
    transform: rotate(45deg) translate(4px, 4px);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

.mobile-link {
    position: relative;
}

/* Service Cards */
.service-card {
    perspective: 1000px;
}

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

.service-card:hover .bg-navy-700\/60 {
    background: rgba(15, 32, 64, 0.8);
}

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

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

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

/* Decorative elements */
.gold-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Mobile menu animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation: slideUp 0.4s ease 0.1s both; }
#mobile-menu.open .mobile-link:nth-child(2) { animation: slideUp 0.4s ease 0.2s both; }
#mobile-menu.open .mobile-link:nth-child(3) { animation: slideUp 0.4s ease 0.3s both; }
#mobile-menu.open .mobile-link:nth-child(4) { animation: slideUp 0.4s ease 0.4s both; }
#mobile-menu.open .mobile-link:nth-child(5) { animation: slideUp 0.4s ease 0.5s both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Select styling */
select option {
    background: #0F2040;
    color: #fff;
}
