/* ==========================================================================
   COMPONENT: ACHIEVEMENTS (MY JOURNEY) — Dark Timeline
   ========================================================================== */

.comp-achieve {
    padding: clamp(100px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
    background: var(--bg-dark, #1C1C1E);
    position: relative;
    overflow: hidden;
    /* Transition overlapping effect from previous Light section */
    margin-top: -60px;
    border-radius: 60px 60px 0 0;
    z-index: 2;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.15);
}

/* Background blob */
.comp-achieve::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.comp-achieve .container {
    position: relative;
    z-index: 1;
}

.comp-achieve__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(48px, 6vw, 72px);
}

.comp-achieve__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #C9A96E);
    margin-bottom: var(--space-4, 1rem);
}
.comp-achieve__eyebrow::before,
.comp-achieve__eyebrow::after {
    content: '';
    display: inline-block;
    width: 24px; height: 2px;
    background: var(--gold, #C9A96E);
    border-radius: 2px;
}

.comp-achieve__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

/* ── Timeline ── */
.comp-achieve__timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-8, 2rem) 0;
}

/* Central Line */
.comp-achieve__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(201,169,110,0.5) 10%, rgba(201,169,110,0.5) 90%, transparent);
    transform: translateX(-50%);
    border-radius: 2px;
}
/* For GSAP animation hook */
.achievements-line {
    transform-origin: top center;
}

.comp-achieve__milestone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-12, 4rem);
    position: relative;
    width: 100%;
}
.comp-achieve__milestone:last-child {
    margin-bottom: 0;
}

/* Year */
.comp-achieve__year {
    width: 45%;
    text-align: right;
    padding-right: clamp(24px, 5vw, 60px);
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--gold, #C9A96E);
    line-height: 1.2;
    transition: color 0.4s ease;
}

/* Dot */
.comp-achieve__dot {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px var(--bg-dark, #1C1C1E);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* Card */
.comp-achieve__card {
    width: 45%;
    padding-left: clamp(24px, 5vw, 60px);
    background: transparent;
}

.comp-achieve__card h4 {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-3, 0.75rem);
    line-height: 1.2;
}

.comp-achieve__desc {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.comp-achieve__desc ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
.comp-achieve__desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}
.comp-achieve__desc li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--purple-mid, #6B47A8);
}

/* Hover effect */
.comp-achieve__milestone:hover .comp-achieve__dot {
    transform: translate(-50%, -50%) scale(1.4);
    background: var(--gold, #C9A96E);
    box-shadow: 0 0 0 8px rgba(201,169,110,0.15);
}
.comp-achieve__milestone:hover .comp-achieve__year {
    color: #fff;
}

/* Alternating */
.comp-achieve__milestone:nth-child(odd) {
    flex-direction: row-reverse;
}
.comp-achieve__milestone:nth-child(odd) .comp-achieve__year {
    text-align: left;
    padding-right: 0;
    padding-left: clamp(24px, 5vw, 60px);
}
.comp-achieve__milestone:nth-child(odd) .comp-achieve__card {
    text-align: right;
    padding-left: 0;
    padding-right: clamp(24px, 5vw, 60px);
}
.comp-achieve__milestone:nth-child(odd) .comp-achieve__desc li {
    padding-left: 0;
    padding-right: 20px;
}
.comp-achieve__milestone:nth-child(odd) .comp-achieve__desc li::before {
    display: none;
}
.comp-achieve__milestone:nth-child(odd) .comp-achieve__desc li::after {
    content: '';
    position: absolute;
    right: 0; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--purple-mid, #6B47A8);
}

/* GSAP Init */
.gsap-achieve-head,
.gsap-achieve-item { opacity: 0; transform: translateY(30px); }

/* Responsive */
@media (max-width: 767px) {
    .comp-achieve__line { left: 24px; }
    
    .comp-achieve__milestone, 
    .comp-achieve__milestone:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
        margin-bottom: var(--space-10, 2.5rem);
    }
    
    .comp-achieve__dot {
        left: 24px;
        top: 24px;
        transform: translate(-50%, -50%);
    }
    .comp-achieve__milestone:hover .comp-achieve__dot {
        transform: translate(-50%, -50%) scale(1.4);
    }
    
    .comp-achieve__year,
    .comp-achieve__milestone:nth-child(odd) .comp-achieve__year {
        width: 100%;
        text-align: left;
        padding: 0 0 8px;
    }
    
    .comp-achieve__card,
    .comp-achieve__milestone:nth-child(odd) .comp-achieve__card {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .comp-achieve__milestone:nth-child(odd) .comp-achieve__desc li {
        padding-right: 0;
        padding-left: 20px;
    }
    .comp-achieve__milestone:nth-child(odd) .comp-achieve__desc li::after { display: none; }
    .comp-achieve__milestone:nth-child(odd) .comp-achieve__desc li::before { display: block; }
}