/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -150px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(174, 213, 129, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(250, 249, 244, 0.04);
    border: 2px solid rgba(250, 249, 244, 0.08);
    border-radius: 24px;
    top: 20%;
    left: 8%;
    transform: rotate(25deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(124, 179, 66, 0.08);
    bottom: 20%;
    right: 10%;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 5%;
    background-image: radial-gradient(rgba(250, 249, 244, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

.geo-circle-3 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(174, 213, 129, 0.08) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(250, 249, 244, 0.03);
    border: 2px solid rgba(250, 249, 244, 0.06);
    border-radius: 16px;
    top: 15%;
    left: 5%;
    transform: rotate(-20deg);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(250, 249, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

#mobileMenu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b5e20, #7cb342);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #7cb342;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #558b2f;
}

/* ===== SELECTION ===== */
::selection {
    background: #dcedc8;
    color: #1b5e20;
}
