/* Custom styles for United Family Dental */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Navigation transition */
.nav-text {
    transition: color 0.3s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* Service card hover */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hero image parallax-like effect */
#hero img {
    transition: transform 0.6s ease;
}

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

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

/* Stagger children delays */
.scroll-reveal-child-1 { transition-delay: 0.1s; }
.scroll-reveal-child-2 { transition-delay: 0.2s; }
.scroll-reveal-child-3 { transition-delay: 0.3s; }
.scroll-reveal-child-4 { transition-delay: 0.4s; }

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

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .scroll-reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Subtle animation for the pulsing dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Decorative blob animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
}

/* Apply float to decorative blobs */
@media (prefers-reduced-motion: no-preference) {
    .absolute.bottom-8.left-8 {
        animation: float 4s ease-in-out infinite;
    }
    .absolute.-bottom-6.-left-6 {
        animation: float-slow 6s ease-in-out infinite;
    }
    .absolute.-top-6.-right-6 {
        animation: float-slow 5s ease-in-out infinite reverse;
    }
}
