/* Custom styles for S. Eric Johnson, DMD */

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

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

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

::-webkit-scrollbar-thumb {
    background: #9f1823;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #83121c;
}

/* Animation for scroll reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Nav scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .logo-text {
    color: #4a080c !important;
}

/* Input focus effects */
input:focus,
textarea:focus {
    border-color: #9f1823 !important;
    box-shadow: 0 0 0 3px rgba(159, 24, 35, 0.1) !important;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Service card hover */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.3s ease;
}

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

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

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Print styles */
@media print {
    nav,
    #contact,
    .pulse-soft {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
