/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #bbf7d0;
    color: #166534;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

#navbar.scrolled .font-serif {
    color: #14532d;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #dcfce7;
}

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

#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Hero Animations ===== */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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%;
}

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

/* ===== Section Labels ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #16a34a;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #86efac;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: #14532d;
    line-height: 1.2;
}

/* ===== Tags ===== */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    font-size: 0.8rem;
    color: #166534;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.revealed {
    animation: cardReveal 0.6s ease forwards;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Area Cards ===== */
.area-card {
    opacity: 0;
    transform: translateY(20px);
}

.area-card.revealed {
    animation: cardReveal 0.6s ease forwards;
}

.area-card:hover img {
    transform: scale(1.1);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card.revealed {
    animation: cardReveal 0.6s ease forwards;
}

/* ===== Input Fields ===== */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-field:hover {
    border-color: #86efac;
}

.input-field:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* ===== Reveal Animations ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Stat Numbers ===== */
.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Footer Links ===== */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .floating-card {
        position: relative;
        margin-top: 1rem;
    }
}

/* ===== Print ===== */
@media print {
    header, .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
