/* Custom styles for Duffy Clinic */

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

/* Scroll reveal base — content is visible by default, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating shapes animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-slower {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

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

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

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

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

/* Custom selection color */
::selection {
    background: #c4365e;
    color: white;
}

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

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Remove default focus outline for click/touch */
.js-focused *:focus {
    outline: none;
}
