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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #1B5E20;
    color: #FDFCF8;
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #1B5E20;
    top: -150px;
    right: -100px;
}

.geo-square-1 {
    width: 180px;
    height: 180px;
    background: #F5C518;
    border-radius: 24px;
    bottom: 15%;
    left: 5%;
    transform: rotate(25deg);
    opacity: 0.15;
}

.geo-circle-2 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #E8734A;
    top: 30%;
    left: 42%;
    opacity: 0.1;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #1B5E20;
    top: 60%;
    right: 8%;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.geo-rect-1 {
    width: 80px;
    height: 200px;
    background: #F5C518;
    border-radius: 16px;
    top: 40%;
    left: 38%;
    transform: rotate(45deg);
    opacity: 0.08;
}

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

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-8px) rotate(12deg); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

.floating-card-slow {
    animation: floatSlow 5s ease-in-out infinite;
}

.floating-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, transparent 60%, rgba(27, 94, 32, 0.03) 100%);
    pointer-events: none;
    transition: opacity 0.5s;
}

.service-card-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(245, 197, 24, 0.08);
    bottom: -80px;
    right: -60px;
    transition: all 0.5s ease;
    pointer-events: none;
}

.service-card:hover .service-card-shape {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.1);
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

/* ========== MOBILE MENU ========== */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

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

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

.reveal.visible {
    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; }

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-square-1 {
        width: 100px;
        height: 100px;
    }

    .geo-triangle-1 {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 104px;
    }

    .geo-rect-1 {
        width: 50px;
        height: 120px;
    }

    .geo-circle-2 {
        display: none;
    }
}
