/* ═══════════════════════════════════════════════════════════════
   CYBERPUNK TIMELINE TREE - Side-by-Side Layout
   ═══════════════════════════════════════════════════════════════ */

.timeline-tree {
    position: relative;
    width: 280px;
    /* Reverted to 280px */
    min-height: 600px;
    border: 2px solid var(--accent-primary);
    padding: 20px 10px 20px 10px;
    /* Reduced side padding to maximize space (was 20px) */
    background: rgba(0, 0, 0, 0.5);
    overflow: visible;
}

.timeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.main-stem {
    stroke: url(#neonGradient);
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 10px #00F0FF);
}

.timeline-branch {
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

.timeline-nodes {
    position: relative;
    height: 100%;
    overflow: visible;
    padding-right: 0;
}

.timeline-nodes::-webkit-scrollbar {
    width: 4px;
}

.timeline-nodes::-webkit-scrollbar-thumb {
    background: #00F0FF;
    box-shadow: 0 0 10px #00F0FF;
}

.timeline-node {
    position: relative;
    margin-bottom: 70px;
    /* Increased from 60px to accommodate larger cards */
    opacity: 0;
    overflow: visible;
}

.node-dot {
    position: absolute;
    left: 8px;
    /* Moved left (was 17px) */
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 80%;
    z-index: 2;
    /* Above card */
}

/* Color cycling dots */
.timeline-node:nth-child(3n+1) .node-dot {
    background: #00F0FF;
    box-shadow: 0 0 10px #00F0FF, 0 0 20px #00F0FF;
}

.timeline-node:nth-child(3n+2) .node-dot {
    background: #FF1493;
    box-shadow: 0 0 10px #FF1493, 0 0 20px #FF1493;
}

.timeline-node:nth-child(3n) .node-dot {
    background: #FF6B35;
    box-shadow: 0 0 10px #FF6B35, 0 0 20px #FF6B35;
}

.experience-card {
    position: relative;
    left: 14px;
    /* Reduced offset (was 20px) */
    width: calc(100% - 14px);
    /* Fill remaining space */
    max-width: none;
    /* Remove cap */
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00F0FF;
    padding: 16px 12px;
    /* Optimize padding */
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow */
}

.timeline-node:nth-child(3n+1) .experience-card {
    border-color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.timeline-node:nth-child(3n+2) .experience-card {
    border-color: #FF1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.2);
}

.timeline-node:nth-child(3n) .experience-card {
    border-color: #FF6B35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.experience-card:hover {
    transform: translateX(5px);
    filter: brightness(1.3);
}

.exp-year {
    color: #FFD700;
    font-size: 14px;
    /* Increased from 12px */
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #FFD700;
}

.exp-title {
    font-size: 16px;
    /* Increased from 14px */
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-node:nth-child(3n+1) .exp-title {
    color: #00F0FF;
}

.timeline-node:nth-child(3n+2) .exp-title {
    color: #FF1493;
}

.timeline-node:nth-child(3n) .exp-title {
    color: #FF6B35;
}

.exp-description {
    color: var(--text-secondary);
    font-size: 13px;
    /* Increased from 11px */
    line-height: 1.6;
}

.exp-description ul {
    padding-left: 16px;
    margin: 0;
    list-style: none;
}

.exp-description li {
    position: relative;
    margin-bottom: 6px;
}

.exp-description li::before {
    content: "▸";
    position: absolute;
    left: -16px;
    color: var(--accent-primary);
    font-size: 14px;
}

/* Side-by-side layout container */
.section-about .section-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: none;
    padding: 0;
}

.section-about .content-grid {
    flex: 1;
    margin-left: 0;
    max-width: none;
    border: 2px solid var(--accent-primary);
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 1400px) {
    .section-about .section-container {
        flex-direction: column;
    }

    .timeline-tree {
        width: 100%;
    }

    .section-about .content-grid {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .timeline-tree {
        width: 100%;
        min-height: auto;
        padding: 16px 8px;
    }

    .timeline-node {
        margin-bottom: 48px;
    }

    .exp-title {
        font-size: 14px;
    }

    .exp-year {
        font-size: 12px;
    }

    .exp-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .timeline-tree {
        padding: 12px 6px;
    }

    .timeline-node {
        margin-bottom: 36px;
    }

    .experience-card {
        padding: 10px 8px;
    }
}

/* Section header spacing */
.section-about .section-header {
    width: 100%;
    margin-bottom: 32px;
}