/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: #3d5e3d;
    color: #f5f5f0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #c5d9c5;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #96ba96;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3d5e3d;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* Menu Button Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

/* Navbar Scrolled State */
.nav-scrolled {
    background: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 94, 61, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

/* Section Labels */
.section-label {
    display: inline-flex;
    align-items: center;
}

/* Service Card Hover */
.service-card {
    transition: background-color 0.5s ease, transform 0.5s ease;
}

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

/* Why Item Hover */
.why-item {
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateX(4px);
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(61, 94, 61, 0.3);
}

/* Image Hover */
.about-image-wrapper img,
.hero-image-wrapper img {
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img,
.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .hero-float-card {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        padding: 2rem !important;
    }
}

/* Print Styles */
@media print {
    nav, #contact, .hero-float-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
