/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navigation scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

.nav-scrolled .nav-link {
    color: #1e4d7a;
}

.nav-scrolled .font-display {
    color: #0a2540;
}

/* Service card hover glow */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34a87a, #7dd3b4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Testimonial card hover */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #d4f5e8;
    line-height: 1;
    pointer-events: none;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transitions */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0faf7;
}

::-webkit-scrollbar-thumb {
    background: #7dd3b4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34a87a;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card,
    .testimonial-card,
    .scroll-reveal {
        transition: none;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Selection color */
::selection {
    background: #a8e8cf;
    color: #0a2540;
}
