/* Custom styles and overrides */

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

/* Custom selection color */
::selection {
    background-color: #fbbf24;
    color: #4a2644;
}

/* Navigation scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(130, 63, 119, 0.1);
}

.nav-scrolled .text-plum-800 {
    color: #5a2c52;
}

.nav-scrolled .font-serif {
    color: #4a2644;
}

.nav-scrolled .w-8 {
    background-color: #6d3463;
}

/* Mobile menu animation */
.mobile-menu-open #menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open #menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

/* Service item hover */
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    padding-left: 1rem;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #fbbf24 !important;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

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

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

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

/* Fade in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
    }
}
