/* Base styles */
:root {
    --emerald-400: #34d399;
    --emerald-600: #059669;
    --cream-50: #fdfcf8;
    --cream-100: #faf6eb;
    --dark-950: #060910;
    --dark-900: #0a0e14;
    --dark-850: #0d1117;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-950);
    color: var(--cream-100);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-950);
}
::-webkit-scrollbar-thumb {
    background: #1a2332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #243447;
}

/* Selection */
::selection {
    background: rgba(5, 150, 105, 0.3);
    color: var(--cream-50);
}

/* Navbar transitions */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(6, 9, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.08);
}

/* Service card hover */
.service-card {
    background: var(--dark-850);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

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

/* Mobile menu active state */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-link:last-child {
    border-bottom: none;
}
