/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ed;
}
::-webkit-scrollbar-thumb {
    background: #d46d56;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a3443f;
}

/* Selection */
::selection {
    background: #e8b4a8;
    color: #0a1628;
}

/* Navbar transition */
.nav-logo-text {
    transition: color 0.4s ease;
}
.nav-logo-sub {
    transition: color 0.4s ease;
}

/* Mobile menu links */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Service card stagger animation */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease, background 0.5s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-up.delay-1 { transition-delay: 0.1s; }
    .reveal-up.delay-2 { transition-delay: 0.2s; }
    .reveal-up.delay-3 { transition-delay: 0.3s; }
    .reveal-up.delay-4 { transition-delay: 0.4s; }
    .reveal-up.delay-5 { transition-delay: 0.5s; }
    .reveal-up.delay-6 { transition-delay: 0.6s; }
}
