/* =========================================
   ABOUT PAGE LAYOUT
   ========================================= */
.about-container {
    max-width: 850px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

/* --- Header Area --- */
.about-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    gap: var(--space-sm);
}

.about-logo {
    height: 100px;
    width: auto;
    margin-bottom: var(--space-md);
    /* Soft glowing shadow for dark mode compatibility */
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4));
}

.about-logo-fallback {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.about-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Fluid sizing replaces display-5 */
    font-weight: var(--font-weight-heavy);
    color: var(--text-main);
    margin: 0;
}

.about-subtitle {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* --- Dividers --- */
.about-divider {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: var(--space-xl) 0;
}

/* --- Main Content Text --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--text-main);
}

.about-section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-heavy);
    margin-bottom: var(--space-sm);
}

.about-content a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: opacity 0.2s ease;
}

    .about-content a:hover {
        text-decoration: underline;
        opacity: 0.8;
    }

.text-underline-dashed {
    text-decoration: underline dashed;
    cursor: help;
}

/* --- The Grid Cards (Tech & Pipeline) --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    align-items: stretch;
}

.card-accent-top {
    border-top: 4px solid var(--brand-secondary);
}

.about-card-header {
    margin-bottom: var(--space-md);
}

/* Tech Stack Specifics */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.tech-col {
    gap: var(--space-lg);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tech-icon {
    color: var(--brand-secondary);
    font-size: var(--text-xl);
}

.tech-icon-warning {
    color: var(--status-warning);
    font-size: var(--text-xl);
}

.tech-label {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-heavy);
    color: var(--text-main);
}

/* Pipeline Specifics */
.pipeline-list {
    gap: var(--space-sm);
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.pipeline-number {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--bg-surface-raised);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-heavy);
    color: var(--brand-secondary);
    box-shadow: var(--shadow-sm);
}

.pipeline-text {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Text truncation protection */
}

    .pipeline-text h6 {
        margin: 0 0 2px 0;
        font-size: var(--text-base);
        font-weight: var(--font-weight-heavy);
        color: var(--text-main);
    }

    .pipeline-text p {
        margin: 0;
        font-size: var(--text-xs);
        color: var(--text-muted);
    }

/* --- Call to Action Box --- */
.about-cta-box {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

    .about-cta-box p {
        margin: 0;
        font-size: var(--text-sm);
        color: var(--text-main);
    }

    .about-cta-box a {
        color: var(--brand-secondary);
        text-decoration: none;
        font-weight: var(--font-weight-heavy);
    }

        .about-cta-box a:hover {
            text-decoration: underline;
        }


/* =========================================
   MULTI-TIER PROGRESS BAR
   ========================================= */
.multi-tier-bar-wrapper {
    margin-top: 45px; /* so the floating label has room */
    margin-bottom: 40px; /* Gives room for the labels hanging below the bar */
    padding-top: 4px;
}

.multi-tier-container {
    position: relative;
    overflow: visible !important; /* Allows dots to pop outside the bar */
    background-color: var(--bg-surface-raised);
    border: 1px solid var(--border-default);
}

.tier-marker {
    position: absolute;
    top: -6px; /* Centers the 24px dot vertically over the 12px progress bar */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

    /* Force the very last marker to align right so it doesn't overflow the card */
    .tier-marker:last-child {
        transform: none;
        right: -2px; /* Pulls it flush with the right edge */
        align-items: flex-end;
    }

.tier-dot {
    width: 22px;
    height: 22px;
    background-color: var(--bg-surface);
    border: 3px solid var(--border-default);
    border-radius: 50%;
    transition: border-color 0.4s ease, background-color 0.4s ease;
    box-shadow: var(--shadow-sm);
}

/* Changes color when the progress bar passes it */
.tier-marker.reached .tier-dot {
    border-color: var(--brand-secondary);
    background-color: var(--brand-secondary);
}

.tier-label {
    position: absolute;
    top: 26px; /* Pushes the text directly beneath the dot */
    white-space: nowrap;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    font-weight: var(--font-weight-heavy);
    line-height: 1.3;
    transition: color 0.4s ease;
}

.tier-marker.reached .tier-label {
    color: var(--text-main);
}

.tier-label.align-right {
    text-align: right;
    right: 0;
}

/* Mobile specific text adjustments */
@media screen and (max-width: 600px) {
    .tier-label {
        font-size: 0.55rem;
    }
}

/* --- Current Marker Styles --- */
.current-marker {
    position: absolute;
    top: -28px; /* Floats it right above the bar */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    /* Matches the exact animation curve and speed of the progress bar fill */
    transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.current-label {
    background-color: var(--brand-secondary);
    color: var(--text-on-primary);
    padding: 2px 8px;
    border-radius: var(--radius-badge);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-heavy);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* The tiny downward pointing triangle */
.current-pointer {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--brand-secondary);
    margin-top: -1px; /* Seamless connection to the label */
}