/* Custom styles for Jasa Remote landing page */

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

/* Ensure proper spacing for fixed header */
section {
    scroll-margin-top: 80px;
}

/* FAQ Accordion animations */
.faq-answer {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

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

.faq-icon {
    transition: transform 0.3s ease;
}

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

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, margin 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

#mobileMenu.active {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 1rem;
    margin-top: 1rem;
}

/* Hover effects for service cards */
.hover\:shadow-lg {
    transition: all 0.3s ease;
}

/* Custom gradient for hero */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* WhatsApp button pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.bg-whatsapp:hover {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ensure logo maintains aspect ratio */
img[alt*="Logo"] {
    object-fit: contain;
}

/* Custom focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #1e56a0;
    outline-offset: 2px;
}

/* Backdrop blur support for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.3);
    }
}
