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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2f7f0;
}
::-webkit-scrollbar-thumb {
    background: #9dbe7e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74a152;
}

/* ========== NAVBAR ========== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 51, 21, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Menu button animation */
body.menu-open .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-5px) rotate(-45deg);
}

/* ========== REVEAL ANIMATIONS ========== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HERO ========== */
.hero-gradient {
    background: linear-gradient(135deg, rgba(15, 26, 10, 0.92) 0%, rgba(49, 80, 33, 0.85) 50%, rgba(63, 101, 41, 0.7) 100%);
}

/* ========== GEOMETRIC ACCENTS ========== */
.geometric-shape-1 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ========== SERVICE CARDS ========== */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    backdrop-filter: blur(8px);
}

/* ========== BUTTON HOVER EFFECTS ========== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ========== FORM INPUTS ========== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(84, 130, 55, 0.15);
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}
