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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Scroll reveal - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-nav {
    transition: transform 0.3s ease;
}

#mobile-nav.-translate-x-full {
    transform: translateX(-100%);
}

#mobile-nav.\!-translate-x-0 {
    transform: translateX(0) !important;
}

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

::-webkit-scrollbar-track {
    background: #f4f0e4;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6e9d63;
}

/* Geometric accent shapes */
.geo-square {
    position: absolute;
    background: rgba(77, 128, 67, 0.1);
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #93b988;
    color: #1a2e18;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #4d8043;
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes slide-in-left {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile link styles */
.mobile-link {
    display: block;
    transition: background-color 0.2s ease;
}

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Image aspect ratio fallback */
img {
    max-width: 100%;
    height: auto;
}
