/* Custom styles for Oncology and Hemotology Center */

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

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d0a17;
}

/* Hero image gradient overlay */
#hero img {
    transition: transform 0.7s ease;
}

#hero:hover img {
    transform: scale(1.02);
}

/* Service card hover effects */
.group:hover .group-hover\:bg-plum-800 {
    background-color: #721831;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(61, 10, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Pulse animation for dots */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in-up {
        animation: none;
        opacity: 1;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(114, 24, 49, 0.1);
}

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

button:hover, a:hover {
    transform: translateY(-1px);
}

button:active, a:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fde68a 100%);
    min-height: 200px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-plum-800 {
        background-color: #3d0a17 !important;
    }
    
    .text-plum-600 {
        color: #3d0a17 !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Aspect ratio utilities */
.aspect-ratio-card {
    aspect-ratio: 4/5;
    object-fit: cover;
}
