/* Custom styles for W Dentistry */

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

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

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 107, 0.3);
    color: #fff;
}

/* Service cards - visible by default, animation is progressive enhancement */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial cards - visible by default */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .testimonial-card {
        transition: none;
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d9a0 0%, #d4a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer effect for gold elements */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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

/* Button hover lift effect */
a[href="tel:+14153986122"] {
    transition: all 0.3s ease;
}

a[href="tel:+14153986122"]:hover {
    transform: translateY(-2px);
}

/* Image hover zoom */
.service-card img,
.testimonial-card img {
    transition: transform 0.5s ease;
}

/* Loading state for form button */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
