/* Scoped CSS for the Experience Page */
.experience-header {
    text-align: center;
    margin-bottom: 50px;
}

.experience-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Container */
.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline {
    position: relative;
    border-inline-start: 2px solid var(--border-color);
    padding-inline-start: 30px;
    margin-bottom: 50px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Staggered animation delays for timeline items */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.timeline-dot {
    position: absolute;
    inset-inline-start: -41px; /* Aligns exactly over the border */
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary-hover);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-company i {
    margin-inline-end: 5px;
}

.timeline-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.tech-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* CTA Section */
.experience-cta {
    text-align: center;
    margin-top: 40px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .timeline {
        padding-inline-start: 20px;
    }
    .timeline-dot {
        inset-inline-start: -31px;
    }
    .timeline-content {
        padding: 20px;
    }
}
