/* =========================================
   FAQ / ABOUT ME SECTION
   ========================================= */
.faq-section {
    position: relative;
    padding: 120px var(--section-padding-x);
    background: #f8fafc;
    color: #0f172a;
    overflow: hidden;
}

.faq-section .aurora-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 10% 0%, rgba(15, 23, 42, 0.08), rgba(255, 255, 255, 0.95) 70%);
    z-index: 0;
}

.faq-section .overlay-bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.8;
    background: linear-gradient(130deg, rgba(15, 23, 42, 0.08) 0%, transparent 70%);
    mix-blend-mode: multiply;
}

/* --- FAQ Content Wrapper --- */
.faq-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(12px);
    transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}

.faq-content-wrapper.in-view {
    animation: faq1-fade-up 860ms cubic-bezier(0.22, 0.68, 0, 1) forwards;
}

/* --- FAQ Intro Badge --- */
.faq1-intro {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.4rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(248, 250, 252, 0.88);
    color: rgba(15, 23, 42, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.65rem;
    width: fit-content;
    mix-blend-mode: multiply;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    filter: blur(8px);
    transition: opacity 720ms ease, transform 720ms ease, filter 720ms ease;
    isolation: isolate;
}

.faq-content-wrapper.in-view .faq1-intro {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.faq1-intro__beam,
.faq1-intro__pulse {
    position: absolute;
    inset: -110%;
    pointer-events: none;
    border-radius: 50%;
}

.faq1-intro__beam {
    background: conic-gradient(from 180deg, rgba(15, 23, 42, 0.18), transparent 30%, rgba(71, 85, 105, 0.18) 58%, transparent 80%, rgba(15, 23, 42, 0.14));
    animation: faq1-beam-spin 18s linear infinite;
    opacity: 0.55;
}

.faq1-intro__pulse {
    border: 1px solid currentColor;
    opacity: 0.25;
    animation: faq1-pulse 3.4s ease-out infinite;
}

.faq1-intro__label {
    position: relative;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.4em;
}

.faq1-intro__meter {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    height: 1px;
    width: 50px;
    background: linear-gradient(90deg, transparent, currentColor 35%, transparent 85%);
    transform: scaleX(0);
    transform-origin: left;
    animation: faq1-meter 5.8s ease-in-out infinite;
    opacity: 0.7;
}

.faq1-intro__tick {
    position: relative;
    z-index: 1;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(15, 15, 15, 0.08);
    animation: faq1-tick 3.2s ease-in-out infinite;
}

/* --- FAQ Header & List --- */
.faq-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

/* --- FAQ Item Card --- */
.faq-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    transition: all 0.5s ease;
    box-shadow: 0 36px 120px -70px rgba(15, 15, 15, 0.18);
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    background: radial-gradient(240px circle at var(--faq-x, 50%) var(--faq-y, 50%), rgba(15, 15, 15, 0.08), transparent 70%);
}

.faq-item:hover .faq-item-glow,
.faq-item.open .faq-item-glow {
    opacity: 1;
}

/* --- FAQ Trigger Button --- */
.faq-trigger {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: transparent;
    border: none;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 2;
    outline: none;
    font-family: var(--font-primary);
}

.faq-icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(15, 15, 15, 0.05);
    flex-shrink: 0;
    transition: transform 0.5s, border-color 0.5s;
    position: relative;
}

.faq-item:hover .faq-icon-ring {
    transform: scale(1.05);
}

.faq-icon-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.faq-item.open .faq-icon-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.3;
}

.faq-icon-svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s;
}

.faq-item.open .faq-icon-svg {
    transform: rotate(45deg);
}

.faq-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-question-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .faq-question-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    color: #0f172a;
}

.faq-meta {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.75rem;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #475569;
    margin-left: 0;
}

@media (min-width: 640px) {
    .faq-meta {
        margin-left: auto;
    }
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    color: #475569;
    font-size: 0.875rem;
}

.faq-item.open .faq-answer-wrapper {
    max-height: 300px;
}

.faq-answer {
    padding-top: 1rem;
    padding-right: 0.5rem;
    line-height: 1.6;
}
