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

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

body {
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f5f0;
}
::-webkit-scrollbar-thumb {
    background: #8fbf8f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5fa35f;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0f5f0 0%, #dce8dc 20%, #bdd6bd 40%, #8fbf8f 60%, #5fa35f 80%, #3d7a3d 100%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

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

/* ===== Badge ===== */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

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

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #3d7a3d 0%, #2d5e2d 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(61, 122, 61, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 122, 61, 0.4);
    background: linear-gradient(135deg, #2d5e2d 0%, #1c381c 100%);
}

.btn-secondary {
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #5fa35f;
    color: #2d5e2d;
}

/* ===== Tag Label ===== */
.tag-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d7a3d;
    background: linear-gradient(135deg, #dce8dc 0%, #bdd6bd 100%);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
}

/* ===== Input Fields ===== */
.input-field {
    border: 1.5px solid #dce8dc;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1c381c;
    background: #fefdf8;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field:focus {
    border-color: #5fa35f;
    box-shadow: 0 0 0 3px rgba(95, 163, 95, 0.15);
    background: #fff;
}

.input-field::placeholder {
    color: #8fbf8f;
}

/* ===== Service Card ===== */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(61, 122, 61, 0.12);
}

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

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: all 0.4s ease;
}

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

.nav-link {
    position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ===== Mobile Menu Open ===== */
#mobile-menu.open {
    animation: slideDown 0.3s ease;
}

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

/* ===== Stat Items ===== */
.stat-item {
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}
