.faq-section {
    display: flex;
    justify-content: flex-start;
    padding: 100px 50px;
    position: relative;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Fixed image box */
.faq-images {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    width: 450px;
    height: 500px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass background with improved blur */
.glass-box {
    position: absolute;
    width: 280px;
    height: 240px;
    margin-left: 120px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 35px;
    z-index: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced images */
.faq-images img {
    border-radius: 20px;
    object-fit: cover;
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.img1, .img2 {
    width: 280px;
    height: 280px;
    z-index: 2;
    position: absolute;
    margin: 0;
    padding: 3px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img1 {
    top: 0;
    left: 0;
    z-index: 3;
    padding: 10px 0 0 10px;
    animation: float 6s ease-in-out infinite;
}

.img2 {
    top: 200px;
    left: 200px;
    z-index: 2;
    padding: 10px 10px 0 0;
    animation: float 8s ease-in-out infinite reverse;
}

/* Improved floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.faq-content {
    flex: 1;
    max-width: 650px;
    margin-left: 700px;
}

.faq-content h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    text-align: left;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #b8b8d1;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced FAQ Box Styles with CSS-only animation */
.faq-box {
    background: linear-gradient(145deg, #1e1e2e, #252540);
    margin-bottom: 16px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(123, 47, 247, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 247, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-box:hover::before {
    opacity: 1;
}

.faq-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(123, 47, 247, 0.2);
    border-color: rgba(123, 47, 247, 0.3);
}

.faq-box summary {
    padding: 24px;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    user-select: none;
    min-height: 48px;
    font-weight: 500;
    position: relative;
}

.faq-box summary:hover {
    background: rgba(123, 47, 247, 0.08);
}

.faq-box summary::-webkit-details-marker {
    display: none;
}

.faq-box summary::marker {
    display: none;
}

.faq-box summary::after {
    content: "+";
    font-size: 1.6rem;
    color: #7b2ff7;
    margin-left: 15px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: rotate(0deg);
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Ultra-smooth CSS-only content animation */
.faq-box p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                padding 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                background-color 0.5s ease;
    padding:24px;
    margin: 0;
    background: rgba(34, 34, 54, 0);
    color: #d1d1e0;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0);
    opacity: 0;
    line-height: 1.7;
    transform: translateY(-20px) scale(0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: max-height, opacity, transform, padding;
}

/* Open state with buttery smooth transitions */
.faq-box[open] summary::after {
    transform: rotate(45deg);
    color: #ffffff;
   
}

.faq-box[open] p {
    max-height: 300px; /* Generous max height for smooth expansion */
    opacity: 1;
    padding: 74px;
    transform: translateY(0) scale(1);
    background: rgba(34, 34, 54, 0.8);
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Enhanced smooth closing animation */
.faq-box:not([open]) p {
    transition: max-height 0.6s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.4s cubic-bezier(0.76, 0, 0.24, 1),
                padding 0.5s cubic-bezier(0.76, 0, 0.24, 1),
                transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
                background-color 0.3s ease;
}

.faq-footer {
    margin-top: 25px;
    font-size: 1rem;
    color: #9a9ab8;
    text-align: left;
    font-weight: 500;
}

.contact-btn {
    margin-top: 18px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #7b2ff7 0%, #9a47ff 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.3);
    letter-spacing: 0.3px;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #8b3fff 0%, #a957ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(123, 47, 247, 0.4);
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1e1e2e, #252540);
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(123, 47, 247, 0.2);
    transform: translateY(50px) scale(0.9);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.modal-body p {
    color: #d1d1e0;
    margin: 0 0 28px 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(123, 47, 247, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
    font-weight: 500;
}

.contact-option:hover {
    background: rgba(123, 47, 247, 0.2);
    transform: translateX(8px);
    border-color: rgba(123, 47, 247, 0.4);
    box-shadow: 0 8px 25px rgba(123, 47, 247, 0.15);
}

.contact-icon {
    margin-right: 16px;
    font-size: 1.4rem;
}

/* Loading state for images */
.img-loading {
    background: linear-gradient(90deg, #2a2a3e 25%, #3a3a5e 50%, #2a2a3e 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (min-width: 1440px) {
    .faq-section { padding: 120px 80px; }
    .faq-content { max-width: 700px; margin-left: 750px; }
    .faq-content h2 { font-size: 2.6rem; }
    .faq-subtitle { font-size: 1.2rem; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .faq-section { padding: 100px 60px; }
    .faq-content { margin-left: 650px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .faq-section { padding: 80px 40px; }
    .faq-images { width: 400px; height: 450px; left: 40px; }
    .img1, .img2 { width: 250px; height: 250px; }
    .faq-content { margin-left: 500px; max-width: 550px; }
    .faq-content h2 { font-size: 2rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .faq-section {
        flex-direction: column;
        padding: 60px 30px;
        min-height: auto;
    }
    .faq-images {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        width: 350px;
        height: 320px;
        margin: 0 auto 40px;
    }
    .glass-box { width: 200px; height: 180px; margin-left: 75px; }
    .img1, .img2 { width: 180px; height: 180px; }
    .img1 { top: -10px; left: -20px; }
    .img2 { top: 140px; left: 150px; }
    .faq-content { margin-left: 0; max-width: 100%; }
    .faq-content h2 { font-size: 1.9rem; text-align: center; }
    .faq-subtitle { text-align: center; }
    .faq-footer { text-align: center; }
}

@media (max-width: 767px) {
    .faq-section {
        flex-direction: column;
        padding: 40px 20px;
        min-height: auto;
    }
    .faq-images {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        width: 280px;
        height: 240px;
        margin: 0 auto 30px;
    }
    .glass-box { width: 150px; height: 130px; margin-left: 65px; }
    .img1, .img2 { width: 130px; height: 130px; }
    .img1 { top: 0; left: -10px; }
    .img2 { top: 100px; left: 140px; }
    .faq-content { margin-left: 0; max-width: 100%; }
    .faq-content h2 { font-size: 1.7rem; text-align: center; }
    .faq-subtitle { font-size: 1rem; text-align: center; }
    .faq-box { margin-bottom: 14px; border-radius: 20px; }
    .faq-box summary { padding: 20px; font-size: 0.95rem; }
    .faq-box[open] p { padding: 20px; }
    .contact-btn { width: 100%; padding: 14px 20px; }
    .faq-footer { text-align: center; }
}

@media (max-width: 480px) {
    .faq-section { padding: 30px 15px; }
    .faq-images { width: 220px; height: 200px; }
    .glass-box { width: 120px; height: 100px; margin-left: 50px; }
    .img1, .img2 { width: 100px; height: 100px; }
    .img2 { top: 80px; left: 110px; }
    .faq-content h2 { font-size: 1.5rem; }
    .faq-subtitle { font-size: 0.9rem; }
    .faq-box summary { padding: 18px; font-size: 0.9rem; }
    .faq-box[open] p { padding: 18px; }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.faq-box summary:focus,
.faq-box summary:focus-visible {
    outline: 3px solid #7b2ff7;
    outline-offset: 2px;
    border-radius: 4px;
}

.contact-btn:focus,
.contact-btn:focus-visible {
    outline: 3px solid #7b2ff7;
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-box {
        border: 2px solid #ffffff;
    }
    .faq-box summary {
        color: #ffffff;
        background: #000000;
    }
    .contact-btn {
        border: 2px solid #ffffff;
    }
}