/* Custom styles and animations */

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

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

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

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

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #6f1431;
}

/* Subtle breathing animation for decorative elements */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Pulse animation for new patient section */
@keyframes soft-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.animate-breathe {
    animation: breathe 6s ease-in-out infinite;
}

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

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

/* Scroll reveal base state - visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ec6a96;
    outline-offset: 2px;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 254, 251, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 3px rgba(132, 19, 55, 0.08);
}

/* Service card hover effect */
.group:hover .group-hover\\:bg-burgundy-200 {
    background-color: #f4a3bb !important;
}

/* Custom gradient text if needed */
.gradient-text {
    background: linear-gradient(135deg, #841337 0%, #c21d52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}

/* Form focus transitions */
input:focus,
textarea:focus {
    background-color: #fffefb !important;
}
