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

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

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FAF9F6;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f0;
}
::-webkit-scrollbar-thumb {
    background: #8bc48b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5ea85e;
}

/* Selection */
::selection {
    background: #d9ecd9;
    color: #1e451e;
}

/* Navbar */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-text {
    color: #1e451e;
}

.nav-link {
    position: relative;
}

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

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

.nav-scrolled .nav-link {
    color: #374151;
}

.nav-scrolled .nav-link:hover {
    color: #2d6e2d;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.menu-line {
    display: block;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Dot Animation */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* Service Card Hover */
.service-card {
    perspective: 1000px;
}

.service-card .bg-white {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

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

/* Button Ripple Effect */
button, a {
    cursor: pointer;
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Map container */
iframe {
    display: block;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (max-width: 767px) {
    .mobile-menu.hidden {
        display: none;
    }
    .mobile-menu:not(.hidden) {
        display: block;
    }
}
