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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* Navigation */
#nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(168, 85, 114, 0.1);
}

#nav.scrolled .nav-logo {
    color: #4f2530;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
    transition: width 0.5s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(79, 37, 48, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(79, 37, 48, 0.1);
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img {
        transition: none;
    }
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
