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

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

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

/* ===== Navbar ===== */
#navbar {
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 79, 39, 0.08);
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.menu-line {
    display: block;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ===== Hero Circles ===== */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 188, 138, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(77, 128, 68, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(43, 79, 39, 0.12) 0%, transparent 70%);
    top: 40%;
    right: 5%;
}

.hero-rect-1 {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(43, 79, 39, 0.06);
    border-radius: 16px;
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-rect-2 {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(157, 188, 138, 0.2);
    border-radius: 12px;
    bottom: 25%;
    right: 48%;
    transform: rotate(20deg);
    pointer-events: none;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #4d8044;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 12, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(43, 79, 39, 0.1);
}

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

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .gallery-item img {
        transition: none;
    }
    .gallery-item:hover img {
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-circle {
        display: none;
    }
}
