/* ===== CUSTOM STYLES ===== */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Geometric background shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 230, 163, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(82, 165, 104, 0.1) 0%, transparent 70%);
    bottom: 100px;
    left: -100px;
}

.geo-diamond {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(45, 128, 73, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
}

.geo-diamond--1 {
    top: 25%;
    left: 8%;
    width: 60px;
    height: 60px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    top: 60%;
    left: 5%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(45, 128, 73, 0.06);
}

.geo-square {
    position: absolute;
    background: rgba(45, 128, 73, 0.06);
    pointer-events: none;
}

.geo-square--1 {
    width: 48px;
    height: 48px;
    top: 30%;
    right: 6%;
    border-radius: 8px;
    transform: rotate(15deg);
}

.geo-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(45, 128, 73, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Service cards */
.service-card {
    position: relative;
}

/* Material cards */
.material-card {
    position: relative;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(13, 92, 46, 0.08);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.2s ease-out;
}

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

/* Scroll reveal (progressive enhancement — only when JS runs and reduced motion not preferred) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s 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; }
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: rgba(45, 128, 73, 0.2);
    color: #0f2d18;
}
