/* Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(15, 159, 90, 0.2);
    color: #0d4629;
}

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

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

::-webkit-scrollbar-thumb {
    background: #95d6b0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3aa56a;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(148, 163, 149, 0.1);
}

.navbar-scrolled .text-emerald-950 {
    color: #0d4629 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

/* Reveal on Scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal[data-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu-open {
    transform: translateX(0) !important;
}

/* Service Card Hover */
.group:hover .group-hover\:text-emerald-400 {
    color: #5fbf8a;
}

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

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #3aa56a;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Print styles */
@media print {
    nav, #contact, .reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
