/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #8B3B22;
    border-radius: 5px;
}

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

.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.dark ::-webkit-scrollbar-thumb {
    background: #EAB418;
}

/* Gallery Slider Transitions */
#galleryTrack {
    transition: transform 0.5s ease-in-out;
}

/* Cart Sidebar Transition */
#cartSidebar {
    transition: transform 0.3s ease-in-out;
}

#cartSidebar.open {
    transform: translateX(0);
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 59, 34, 0.2);
}

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

/* Mobile Menu Transition */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Form Focus States */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 59, 34, 0.2);
}

/* Success Modal Animation */
#successModal {
    animation: fadeIn 0.3s ease-out;
}

/* Gallery Dot Active State */
#galleryDots button.active {
    background-color: #8B3B22;
}

.dark #galleryDots button.active {
    background-color: #EAB418;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Cart Item Animation */
.cart-item {
    animation: fadeIn 0.3s ease-out;
}

/* Navigation Link Underline Effect */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #8B3B22;
    transition: width 0.3s ease;
}

.dark nav a::after {
    background-color: #EAB418;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}
