/* FAQ Section Styles */
#faq {
    padding: 80px 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.3);
    transition: all 0.4s ease-in-out;
    margin-top: 50px;
    background: linear-gradient(135deg, #000, #203a43);
}

/* FAQ Heading */
#faq h2 {
    color: #f0f0f0;
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Avenir Next', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 5px 20px rgba(0, 255, 204, 0.7);
    animation: glow 1.5s infinite alternate, bounce 2s ease-in-out infinite;
}

/* FAQ Item Styling */
#faq .faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-bottom: 30px;
    box-sizing: border-box;
    position: relative;
}

/* Hover Effects for FAQ Items */
#faq .faq-item:hover {
    transform: translateY(-18px);
    box-shadow: 0 15px 35px rgba(0, 255, 204, 0.4);
    background: rgba(0, 255, 204, 0.2);
}

/* FAQ Item Headings */
#faq .faq-item h3 {
    color: #00ffcc;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: 'Avenir Next', sans-serif;
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* FAQ Item Hover Heading Color */
#faq .faq-item:hover h3 {
    color: #ffffff;
}

/* FAQ Item Text */
#faq .faq-item p {
    color: #dcdcdc;
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
}

/* FAQ Item Hover Effects for Text */
#faq .faq-item:hover p {
    color: #ffffff;
}

/* FAQ Item Button */
#faq .faq-toggle-btn {
    background-color: transparent;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    padding: 10px 18px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Add a pulse effect on hover */
#faq .faq-toggle-btn:hover {
    color: #ffffff;
    background-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.6), 0 0 30px rgba(0, 255, 204, 0.8);
    transform: scale(1.1);
}

/* Adding a glowing animation to the text */
#faq .faq-toggle-btn:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 204, 0.3);
    animation: glowEffect 1.5s infinite alternate;
    z-index: -1;
}

/* Active state with a rotated button effect */
#faq .faq-toggle-btn.active {
    transform: rotate(-180deg) scale(0.95);
    color: #ffffff;
    background-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
}

/* Glowing effect animation */
@keyframes glowEffect {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 204, 1);
    }
}



@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Mobile and Touch-Friendly Adjustments */
@media screen and (max-width: 768px) {
    #faq {
        padding: 60px 20px;
    }

    /* Adjust FAQ heading for mobile */
    #faq h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Adjust FAQ text size */
    #faq .faq-item p {
        font-size: 1.2rem;
        max-width: 90%;
    }

    /* Adjust FAQ item layout */
    #faq .faq-item {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    #faq {
        padding: 50px 15px;
    }

    #faq h2 {
        font-size: 1.5rem;
    }

    #faq .faq-item p {
        font-size: 1rem;
        max-width: 85%;
    }

    #faq .faq-item {
        padding: 15px;
    }
}
