/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #050A14;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C9A84C, #D4AF37);
    border-radius: 3px;
}

/* Hero Animations */
@keyframes heroSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scrollDot {
    0% { transform: translateY(-12px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.hero-tag {
    animation: heroSlideUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: heroSlideUp 0.8s ease-out 0.4s both;
}

.hero-sub {
    animation: heroSlideUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: heroSlideUp 0.8s ease-out 0.8s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

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

.reveal-section[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-section[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Hover */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid 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: linear-gradient(to right, #C9A84C, #F0D68A);
    transition: width 0.3s ease;
}

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

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

#mobileMenu.open .mobile-link {
    animation: fadeInUp 0.5s ease-out both;
}

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

/* Mobile menu button states */
.menu-btn-active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.menu-btn-active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #F0D68A, #C9A84C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Prefers 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-section[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
