/* ===== Custom Styles for Florida Lung and Sleep Apnea Center ===== */

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

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

/* Animated state - only applied via JS for progressive enhancement */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Floating card animations */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.1);
}

#navbar.scrolled .logo-text {
    color: #7B2D3B;
}

#navbar.scrolled .nav-link {
    color: #4a5568;
}

#navbar.scrolled .nav-link:hover {
    color: #7B2D3B;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c92e52;
    border-radius: 5px;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #ff8fa3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #fce7eb;
    color: #7B2D3B;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    .group:hover .group-hover\:shadow-2xl {
        box-shadow: none;
    }
    .floating-card-1,
    .floating-card-2 {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .floating-card-1,
    .floating-card-2 {
        display: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    .floating-card-1,
    .floating-card-2,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
