/* Custom styles for Brandywine Home Infusion Services */

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

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(80, 34, 51, 0.08);
}

.navbar-scrolled .nav-text {
    color: #502233;
}

.navbar-scrolled .nav-subtext {
    color: #a85570;
}

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

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

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

.floating-card-1 {
    animation: float-1 5s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-2 6s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card-3 {
    animation: float-3 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Section reveal animations */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Diagonal clip for about section */
.clip-diagonal {
    clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0% 100%);
}

/* FAQ transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-nav-link {
    display: block;
    padding: 8px 0;
}

/* Subtle hover effect for service cards */
.service-card {
    will-change: transform;
}

/* Ensure all text is readable */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation-play-state: running;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .section-reveal {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer, .floating-card-1, .floating-card-2, .floating-card-3 {
        display: none;
    }
}
