/* Base styles & resets */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #0d9488; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0f766e; }

/* Selection color */
::selection { background: #99f6e4; color: #134e4a; }

/* Scroll reveal animations - progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal[data-reveal="left"] {
        transform: translateX(-24px);
    }
    .reveal[data-reveal="right"] {
        transform: translateX(24px);
    }
    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Staggered delays for grid items */
@media (prefers-reduced-motion: no-preference) {
    .service-card { transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease, border-color 0.3s ease; }
    .service-card[data-reveal] { opacity: 0; transform: translateY(20px); }
    .service-card.revealed { opacity: 1; transform: translateY(0); }
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Counter animation helper */
.counter { display: inline-block; }
</styles.css>
