/* Custom styles for Taylor's Smiles and Cosmetic Dental Arts */

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

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

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

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

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

/* Selection color */
::selection {
    background: #781F2F;
    color: white;
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.5s ease,
                box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(120, 31, 47, 0.2);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(120, 31, 47, 0.08);
}

.nav-scrolled .font-serif {
    color: #781F2F !important;
}

.nav-scrolled .text-xs {
    color: #b8224f !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Button ripple effect */
a, button {
    position: relative;
    overflow: hidden;
}

/* Image hover zoom */
.rounded-3xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Form input focus animation */
input:focus, select:focus, textarea:focus {
    transform: scale(1.01);
}

input, select, textarea {
    transition: all 0.3s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .rounded-3xl.overflow-hidden img {
        transition: none;
    }
    
    input, select, textarea {
        transition: none;
    }
    
    #mobile-menu {
        transition: none;
    }
}
