/* Custom styles for Dermacare-Cielo Fajardo */

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

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

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Hidden state is set by JS, not CSS, to ensure content is always visible */
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9d174d, #d97706);
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #500724;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #db2777 !important;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15) !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7f3 0%, #fef3c7 100%);
}

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

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(45deg); }
}

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

.geometric-float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}
