/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
    background: #9cc3ab;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #71a284;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3a664d, #71a284);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Project card overlay */
.project-card:hover .project-overlay {
    opacity: 1;
}

/* Testimonial card subtle pattern */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: #e3efe7;
    line-height: 1;
    pointer-events: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .text-forest-900 {
    color: #1f352b !important;
}

.nav-scrolled .text-forest-800 {
    color: #2f513e !important;
}

.nav-scrolled .mobile-link {
    color: #2f513e !important;
}

.nav-scrolled .border-forest-200 {
    border-color: #c6dfd0 !important;
}

.nav-scrolled .bg-forest-700 {
    background: #3a664d !important;
}

.nav-scrolled .text-forest-600 {
    color: #4f8263 !important;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #71a284;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Print styles */
@media print {
    nav, #contact, footer, .scroll-indicator {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
