/* ===== V3 SPECIFIC STYLES ===== */
/* Inherits base from style.css + style-v2.css, adds GSAP timeline, abstract BGs, SVG interactivity */

/* ===== ABSTRACT BACKGROUND DECORATIONS ===== */
.abstract-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.abstract-bg--hero {
    z-index: 0;
}

.abstract-bg--about {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.abstract-bg--results {
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-blob {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.abstract-blob__shape {
    animation: blob-drift 20s ease-in-out infinite;
    transform-origin: center;
}

.abstract-blob__shape--2 {
    animation: blob-drift-2 25s ease-in-out infinite;
}

@keyframes blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

@keyframes blob-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-40px, 20px) scale(1.08) rotate(5deg); }
    66% { transform: translate(25px, -30px) scale(0.92) rotate(-3deg); }
}

.abstract-geo {
    width: 600px;
    height: 600px;
    opacity: 0.6;
    animation: rotate-slow 120s linear infinite;
}

.abstract-lines {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

/* ===== SECTION relative positioning for abstract BGs ===== */
#about,
#results {
    position: relative;
    overflow: hidden;
}

/* ===== GSAP TIMELINE V3 ===== */
.timeline-v3 {
    position: relative;
    max-width: 700px;
    margin: 0 auto 48px;
    padding-left: 50px;
}

.timeline-v3__track {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.timeline-v3__track-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #d4a843, #f0d078);
    border-radius: 3px;
    transition: none; /* GSAP controls this */
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
}

.timeline-v3__item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    position: relative;
    opacity: 0.3;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-v3__item.is-active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-v3__dot {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(10, 14, 26, 0.9);
    border: 3px solid rgba(212, 168, 67, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.timeline-v3__item.is-active .timeline-v3__dot {
    border-color: #d4a843;
    background: rgba(212, 168, 67, 0.1);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

/* Checkmark SVG — hidden by default, draw on activate */
.timeline-v3__check {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-v3__item.is-active .timeline-v3__check {
    opacity: 1;
    transform: scale(1);
}

/* Check path draw animation */
.check-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.6s ease 0.2s;
}

.timeline-v3__item.is-active .check-path {
    stroke-dashoffset: 0;
}

.timeline-v3__content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-white);
}

.timeline-v3__content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== ENNEAGRAM SVG INTERACTIVE ANIMATION ===== */
.enneagram-svg--interactive {
    cursor: pointer;
    transition: filter 0.5s ease;
}

.enneagram-svg--interactive:hover {
    filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.4));
}

/* Lines — base draw transitions only (no hover thickening) */
.ennea-triangle,
.ennea-hexad {
    transition: opacity 0.6s ease;
}

/* Points — base state */
.ennea-point {
    transition: opacity 0.4s ease;
}

/* Outer ring — base state */
.ennea-outer {
    transition: opacity 0.6s ease;
}

.ennea-inner-ring {
    transition: opacity 0.8s ease;
}


/* ===== TESTIMONIALS ABSTRACT BACKGROUND ===== */
#testimonials {
    position: relative;
    overflow: hidden;
}

.abstract-bg--testimonials {
    z-index: 0;
}

.abstract-testimonials-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.t-blob {
    animation: t-blob-drift 22s ease-in-out infinite;
    transform-origin: center center;
}

.t-blob--2 {
    animation: t-blob-drift-2 28s ease-in-out infinite;
}

@keyframes t-blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-40px, -25px) scale(1.06); }
    60% { transform: translate(25px, 35px) scale(0.94); }
    80% { transform: translate(-15px, 10px) scale(1.03); }
}

@keyframes t-blob-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(35px, -30px) scale(1.07); }
    55% { transform: translate(-30px, 20px) scale(0.93); }
    80% { transform: translate(20px, -10px) scale(1.04); }
}

/* Ensure container is above abstract bg */
#testimonials .container {
    position: relative;
    z-index: 1;
}

/* ===== PAIN V2 in V3 context — center the items ===== */
.pain-v2__items {
    text-align: center;
}

/* ===== HERO with abstract BG ===== */
.hero {
    position: relative;
    overflow: hidden;
}

/* ===== RESPONSIVE V3 ===== */
@media (max-width: 1024px) {
    .timeline-v3 {
        padding-left: 40px;
    }
    .timeline-v3__track {
        left: 16px;
    }
    .abstract-geo {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .timeline-v3 {
        padding-left: 32px;
    }
    .timeline-v3__track {
        left: 12px;
    }
    .timeline-v3__dot {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .timeline-v3__item {
        gap: 16px;
    }
    .abstract-geo {
        width: 300px;
        height: 300px;
    }
    .abstract-bg--about {
        justify-content: center;
    }
    .section--blue{
        overflow: hidden;
    }
}
