/* Experience Section - Modern Card Design */
.experience {
    position: relative;
}

.timeline {
    max-width: 900px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Remove the old timeline line */
.timeline::after {
    display: none;
}

.timeline-item {
    width: 100%;
    padding: 0;
    position: relative;
    background: transparent;
}

/* Remove left/right positioning */
.timeline-item.left,
.timeline-item.right {
    left: 0;
}

/* Remove the old dot indicator */
.timeline-item::after {
    display: none;
}

.timeline-content {
    padding: 35px;
    background: var(--card-bg);
    position: relative;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

/* Accent gradient bar on left */
.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.timeline-content:hover::before {
    width: 8px;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.timeline-content h3 {
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--secondary-text);
    font-family: var(--font-primary);
}

.timeline-content .date {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.timeline-content ul {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-content ul li {
    list-style: none;
    padding-left: 28px;
    position: relative;
    color: var(--secondary-text);
    line-height: 1.7;
}

/* Custom bullet point */
.timeline-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.timeline-content ul li strong {
    color: var(--primary-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .timeline {
        max-width: 100%;
    }

    .timeline-content {
        padding: 25px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }
}