/* Custom styles for OptumRx */

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

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

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

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

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

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #7c1636;
}

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

/* Fade-in animations for scroll sections (progressive enhancement) */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar blur effect */
.nav-blur {
    background: rgba(253, 242, 244, 0.9) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(150, 24, 62, 0.08);
}

/* Image hover container */
.img-zoom-container {
    overflow: hidden;
    border-radius: 1.5rem;
}

.img-zoom-container img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Card hover lift */
.card-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(150, 24, 62, 0.12);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #96183e, #d43f6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* Decorative blob animation */
@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.animated-blob {
    animation: blob 8s ease-in-out infinite;
}

/* Custom form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2396183e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 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);
    }
}

/* Hero image grid stagger animation (progressive enhancement via JS) */
.hero-img-1 { transition: transform 0.7s ease; }
.hero-img-2 { transition: transform 0.7s ease 0.1s; }
.hero-img-3 { transition: transform 0.7s ease 0.2s; }
.hero-img-4 { transition: transform 0.7s ease 0.3s; }

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d43f6c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
