/* Custom Styles for Fleagle Family Dentistry */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF7F50, #D4AF37);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #E66A3C, #C49B2E);
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, #FF7F50, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(255, 127, 80, 0.1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 127, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 127, 80, 0.6);
    }
}

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image Hover Zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Custom Selection Color */
::selection {
    background: rgba(255, 127, 80, 0.3);
    color: #ffffff;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

/* Button Hover Transform */
button,
a {
    transition: all 0.3s ease;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

/* Form Input Transitions */
input,
select,
textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Testimonial Card Hover */
#testimonials .bg-charcoal-800 {
    transition: all 0.4s ease;
}

#testimonials .bg-charcoal-800:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 127, 80, 0.3);
}

/* Decorative Blur Elements */
.absolute.blur-3xl {
    filter: blur(80px);
    opacity: 0.5;
}

/* Button Ripple Effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::after,
a:active::after {
    width: 200px;
    height: 200px;
}

/* Loading State for Form */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
