/* Custom Styles - Complementing Tailwind CSS */

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

/* Header shadow on scroll */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 52, 83, 0.08);
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00C19D;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Benefit card hover effect on icon */
.benefit-card:hover .benefit-icon {
    background: #00C19D;
    color: white;
}

/* FAQ accordion animation */
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

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

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

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #00C19D;
    outline-offset: 2px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:focus {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

/* Animation for WhatsApp button */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    button,
    .whatsapp-float {
        display: none;
    }
}