/* Base styles and custom properties */
:root {
    --navy-900: #0a1628;
    --navy-800: #0f2240;
    --navy-700: #15315d;
    --gold-500: #d4a853;
    --gold-400: #e0b96a;
    --gold-300: #ecc981;
}

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--navy-900);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gold button */
.btn-gold {
    background: linear-gradient(135deg, #d4a853 0%, #e0b96a 50%, #d4a853 100%);
    background-size: 200% 200%;
    color: #0a1628;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold:hover {
    background-position: right center;
    box-shadow: 0 8px 32px rgba(212, 168, 83, 0.35);
    transform: translateY(-2px);
}

/* Outline button */
.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: rgba(212, 168, 83, 0.6);
    color: var(--gold-400);
    background: rgba(212, 168, 83, 0.05);
}

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

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 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: 1.5px;
    background: var(--gold-400);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--gold-400) !important;
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 80%;
}

/* Mobile menu button animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(15, 34, 64, 0.9);
}

/* Approach steps */
.approach-step {
    position: relative;
}

.approach-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -40%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.3), transparent);
    display: none;
}

@media (min-width: 1024px) {
    .approach-step:not(:last-child)::after {
        display: block;
    }
}

.approach-step:hover .w-20 {
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.2);
}

/* Stats animation */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.4s; }
.stat-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-600);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 span {
        display: block;
        margin-top: 0.5rem;
    }
}
