/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ddd;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000000;
    color: white;
    position: relative;
    z-index: 10;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    font-size: 30px;
}

.menu-icon span {
    width: 30px;
    height: 4px;
    background-color: white;
    transition: 0.3s;
}

.menu-icon:hover span {
    background-color: #f39c12;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: 600;
    justify-content: flex-end;
    width: 100%;
}

.logo span {
    margin-right: 10px;
}

.logo i {
    color: #f39c12;
    font-size: 30px;
    animation: rocket-hover 1.5s infinite alternate;
}

/* Rocket hover animation */
@keyframes rocket-hover {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Side Navigation Panel */
.side-nav {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden */
    height: 100%;
    width: 250px;
    background-color: #050505;
    padding-top: 60px;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

.side-nav.open {
    transform: translateX(250px); /* Move to visible position */
}

.side-nav-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    color: white;
}

.side-nav-logo .logo-text {
    font-size: 24px;
    font-weight: 600;
    margin-right: 10px;
}

.side-nav-logo .rocket-icon {
    font-size: 30px;
    color: #f39c12;
    animation: rocket-hover 1.5s infinite alternate;
}

.side-nav ul {
    list-style-type: none;
    padding: 0;
}

.side-nav ul li {
    padding: 15px 20px;
    border-bottom: 2px solid white;
}

.side-nav ul li a {
    color: white;
    font-size: 18px;
    display: block;
    text-decoration: none;
    padding: 10px 0;
    transition: background-color 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* FAQ Section Styling */
.faq-section {
    padding: 50px;
    max-width: 1000px;
    margin: auto;
}

.faq-section h1 {
    font-size: 3rem;
    text-align: center;
    background: linear-gradient(90deg, #f39c12, #ff5e00);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* FAQ Item Styling */
.faq-item {
    border-top: 1px solid #333;
    padding: 20px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.faq-question {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.faq-question:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #ff5e00);
    bottom: 0;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

.faq-question.active:before {
    width: 100%;
    left: 0;
}


/* Gradient color for FAQ question when expanded */
.faq-question.active {
    background: none;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #f39c12, #ff5e00);
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    color: #aaa;
}

.faq-answer.active {
    display: block;
    opacity: 1;
    max-height: 1000px; /* Ensure it expands fully */
}

.faq-answer p {
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-section {
        padding: 20px;
    }
    .faq-section h1 {
        font-size: 2rem;
    }
    .faq-question {
        font-size: 1.1rem;
    }
    .faq-answer {
        font-size: 1rem;
    }
}
