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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c4ca;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e9ea8;
}

/* Service cards */
.service-card {
    will-change: transform;
}

/* Testimonial cards */
.testimonial-card {
    will-change: transform;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

/* Scroll reveal base — content is always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply hidden state when JS is active (via .js class) */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Stagger children */
.js .reveal.delay-100 { transition-delay: 0.1s; }
.js .reveal.delay-200 { transition-delay: 0.2s; }
.js .reveal.delay-300 { transition-delay: 0.3s; }
.js .reveal.delay-400 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
    .animate-bounce {
        animation: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
}
