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

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

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9bbf9f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #729e75;
}

/* Selection */
::selection {
    background: #c5d9c8;
    color: #064E3B;
}

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

.reveal-card {
    opacity: 0;
    animation: floatUp 0.8s ease forwards;
}

.reveal-card:nth-child(2) {
    animation-delay: 0.3s;
}

.reveal-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Nav Scroll Effect */
.nav-scrolled {
    background: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.1);
}

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

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Service Card Hover */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Scroll Reveal Base */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-section,
    .reveal-card,
    .service-card:hover,
    html {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px currentColor;
}

/* Image Hover Zoom */
.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Print Styles */
@media print {
    header,
    #contact,
    .overflow-hidden,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
