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

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

body {
    background-color: #0f1c2e;
    color: #e2e8f0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 175, 90, 0.3);
    color: #fff;
}

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

#navbar.scrolled {
    background: rgba(10, 21, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(212, 175, 90, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4af5a, #c9a227);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #d4af5a;
}

/* ========== HERO ========== */
.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, #0d3b3e 0%, #0f1c2e 50%, #0a1520 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 60%);
}

.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(45, 164, 164, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    background-image: radial-gradient(circle, rgba(212, 175, 90, 0.4) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-glow-2 {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

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

/* ========== CTA SECTION ========== */
.cta-gradient {
    background: linear-gradient(135deg, #0a2e2f 0%, #0f1c2e 40%, #1a1a0a 100%);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    font-size: 1rem;
    font-weight: 400;
}

.mobile-link:last-child {
    border-bottom: none;
}

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

::-webkit-scrollbar-track {
    background: #0a1520;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2d6a6a, #1a3a3a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3d8a8a, #2d6a6a);
}

/* ========== FORM STYLES ========== */
select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #d4af5a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
