/* Custom Styles for Allen Family Dental */

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-delay-100 {
    transition-delay: 100ms;
}

.animate-delay-200 {
    transition-delay: 200ms;
}

.animate-delay-300 {
    transition-delay: 300ms;
}

.animate-delay-400 {
    transition-delay: 400ms;
}

.animate-delay-500 {
    transition-delay: 500ms;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2C3E50;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

/* Button hover effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-on-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
