/* Custom styles for Dr. David C. Rioux website */

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

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

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

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

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

/* Selection color */
::selection {
    background-color: #B83E3E;
    color: white;
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Image hover effect */
img {
    transition: transform 0.5s ease;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #8B1D1D !important;
}

/* Button hover effects */
button,
a {
    transition: all 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);
    }
}

/* Subtle fade-in for sections below fold */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        color: #000 !important;
    }
}
