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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #a82828;
    color: #fefdfb;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #a82828;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }
    
    .hero-title {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }
    
    .hero-description {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.6s;
        opacity: 0;
    }
    
    .hero-cta-primary {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 0.8s;
        opacity: 0;
    }
    
    .hero-cta-secondary {
        animation: fadeInUp 0.8s ease forwards;
        animation-delay: 1s;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card */
.service-card {
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fefdfb;
}

::-webkit-scrollbar-thumb {
    background: #d4a8a8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a82828;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a82828;
    outline-offset: 2px;
}

/* Loading state for images */
img {
    background-color: #f5e0cc;
}
