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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Gold gradient for text */
.bg-gold-gradient {
    background-image: linear-gradient(135deg, #d4a03a 0%, #f0d078 50%, #c49030 100%);
}

/* Hero gradient */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(20, 83, 45, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(101, 162, 130, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 40%, rgba(212, 160, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(5, 46, 22, 0.9) 0%, transparent 60%),
        linear-gradient(180deg, #052e16 0%, #0a1410 40%, #0f1f16 70%, #052e16 100%);
}

/* Hero subtle pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 160, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(74, 222, 128, 0.06) 0%, transparent 50%);
}

/* Floating particles */
.hero-particles {
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(212, 160, 58, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float var(--dur) ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.5s);
}

.particle::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float var(--dur2) ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.7; }
    50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.5; }
    75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.6; }
}

/* CTA gradient */
.cta-gradient {
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(20, 83, 45, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 30% 50%, rgba(212, 160, 58, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 50%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a1410 0%, #0f1f16 50%, #0a1410 100%);
}

.cta-pattern {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 160, 58, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(74, 222, 128, 0.05) 0%, transparent 40%);
}

/* Navbar */
.nav-scrolled {
    background: rgba(6, 14, 9, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 58, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service cards */
.service-card {
    opacity: 1;
}

/* Why cards */
.why-card {
    opacity: 1;
}

/* Scroll reveal - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 160, 58, 0.06);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection */
::selection {
    background: rgba(20, 83, 45, 0.6);
    color: #fdfcf8;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a03a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading */
img {
    background-color: #0f1f16;
}
