/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: #050d07;
    color: #f0f7f0;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f7f0;
}

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

#navbar.scrolled {
    background: rgba(5, 13, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(20, 82, 34, 0.3);
}

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

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

.mobile-link {
    opacity: 1;
    transition: color 0.3s ease;
}

/* ========== HERO FLOATING CARDS ========== */
.floating-card {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 160, 23, 0.06);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ========== GOLD GLOW ACCENT ========== */
.gold-glow {
    box-shadow: 0 0 60px rgba(212, 160, 23, 0.15);
}

/* ========== FORM FOCUS STATES ========== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #050d07;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #266729;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .floating-card,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }

    #hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .font-serif {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
    }

    .font-serif + p,
    h1 + p {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 640px) {
    #hero {
        padding: 7rem 0 4rem;
    }

    .font-serif {
        font-size: 2rem !important;
    }
}
