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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f2;
}
::-webkit-scrollbar-thumb {
    background: #c43b3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a2525;
}

/* Reveal Animations - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Mobile Menu */
#mobile-menu {
    animation: menuSlideIn 0.3s ease-out;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service Card Hover */
.group:hover .group-hover\:bg-burgundy-950 {
    background-color: #3a0e0e;
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(58, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Button Hover Effects */
a:hover {
    transition: all 0.3s ease;
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 59, 59, 0.15);
}

/* Selection Color */
::selection {
    background: #c43b3b;
    color: #fff;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Print Styles */
@media print {
    #navbar, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
