/* Custom styles for Louis Cadena Medical */

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

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

/* Only apply hidden state when JS adds the class */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-12px) rotate(45deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-8px) rotate(12deg); }
}

/* Only animate when not reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .hero-shape-1 {
        animation: float 6s ease-in-out infinite;
    }
    .hero-shape-2 {
        animation: floatSlow 8s ease-in-out infinite;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

/* Image lazy loading fade */
img {
    transition: opacity 0.3s ease;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}
