/* ===== Custom Styles ===== */

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

/* Navigation scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.scrolled .nav-text-color {
    color: #102a43;
}

#navbar.scrolled .nav-text-subtle {
    color: #627d98;
}

#navbar.scrolled .nav-link {
    color: #334e68;
}

/* Hero eyebrow */
.hero-eyebrow {
    opacity: 1;
}

/* Hero entrance animation */
.hero-eyebrow {
    animation: slideInLeft 0.8s ease-out both;
}

.hero h1 {
    animation: slideInLeft 0.8s ease-out 0.15s both;
}

.hero p {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.hero .flex-wrap {
    animation: slideInLeft 0.8s ease-out 0.45s both;
}

.hero .mt-14 {
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .service-card,
    .testimonial-card {
        transition: none;
    }
    @keyframes slideInLeft {
        from {
            opacity: 1;
            transform: none;
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9ee1c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6dce9f;
}

/* Selection color */
::selection {
    background: #c9efdf;
    color: #102a43;
}
