/* ========================================== */
/* DIVIDERS & SMOOTH TRANSITIONS */
/* ========================================== */
.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}

#social-proof {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(11, 16, 32, 0) 100%);
    position: relative;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

#social-proof::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

#curriculum {
    position: relative;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.03) 0%, transparent 60%);
}

#quant-pipeline {
    background: linear-gradient(to bottom, var(--bg) 0%, rgba(15, 23, 42, 0.4) 100%);
}

#course-roadmap {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, var(--bg) 100%);
}

/* ========================================== */
/* QUANT PIPELINE */
/* ========================================== */
.pipeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.pipeline-track {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: stretch;
    position: relative;
}

.pipeline-line {
    position: absolute;
    top: 40px;
    /* Center of the 80x80 icon box */
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(to right, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.5) 10%, rgba(16, 185, 129, 0.5) 90%, rgba(16, 185, 129, 0) 100%);
    z-index: 0;
}

.pipeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    flex: 1;
    z-index: 1;
}

.step-icon-box {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.step-icon-box i {
    width: 32px;
    height: 32px;
}

.pipeline-step:hover .step-icon-box {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.step-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.pipeline-step:hover .step-content {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--emerald);
    opacity: 0;
    pointer-events: none;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.step-number {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Integration tags */
.integration-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.integration-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.integration-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.integration-tag img {
    height: 14px;
    border-radius: 2px;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Mobile: Vertical timeline */
@media (max-width: 992px) {
    .pipeline-track {
        flex-direction: column;
        gap: 3rem;
    }

    .pipeline-line {
        top: 0;
        bottom: 0;
        left: 40px;
        /* center of 80x80 icon */
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(to bottom, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.5) 10%, rgba(16, 185, 129, 0.5) 90%, rgba(16, 185, 129, 0) 100%);
    }

    .pipeline-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .pipeline-step:hover .step-content {
        transform: translateX(5px);
    }

    .step-icon-box {
        margin-top: 0;
    }

    .integration-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .pipeline-line {
        left: 30px;
    }

    .step-icon-box {
        width: 60px;
        height: 60px;
    }

    .step-icon-box i {
        width: 24px;
        height: 24px;
    }
}

/* ========================================== */
/* ANIMATIONS */
/* ========================================== */
@keyframes pulse-dot {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
