/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #a8b8cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c94b2;
}

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

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(13, 27, 41, 0.08) !important;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Pulse animation for hero badge */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}
