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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #D9C3A3;
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: #F2D5C9;
    color: #2C2420;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

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

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.visible {
    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: #C0765B;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-link {
    position: relative;
}

/* Service Cards */
.service-card {
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #FDF8F6;
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Testimonial Slider */
.testimonial-slide {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.slide-out-left {
    opacity: 0;
    transform: translateX(-20px);
}

.testimonial-slide.slide-out-right {
    opacity: 0;
    transform: translateX(20px);
}

/* Image Hover */
.group:hover img {
    transform: scale(1.05);
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Print Styles */
@media print {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    
    #navbar,
    #mobileMenu {
        display: none;
    }
}
