/* Experience Page Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    /* Align with dots center (32px - 28px + ~7px) */
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* Classic Dark Mode Line */
    box-shadow: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -28px;
    width: 14px;
    height: 14px;
    background: #050A10;
    border: 2px solid #00F0FF;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.timeline-item:hover::before {
    background: #00F0FF;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* Light Mode Override for Nodes */
[data-theme="light"] .timeline-item::before {
    background: #FFFFFF;
    border-color: #3B82F6;
    box-shadow: none;
}

[data-theme="light"] .timeline-item:hover::before {
    background: #3B82F6;
    border-color: #3B82F6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .timeline::before {
    background: #E2E8F0 !important;
    /* Solid Slate Line */
}

.timeline-card {
    background: rgba(13, 25, 48, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.timeline-card:hover {
    transform: translateX(10px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.1) inset;
    background: rgba(13, 25, 48, 0.85);
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-role {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-role {
    background: linear-gradient(90deg, #fff, #00F0FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-company {
    font-size: 1.1rem;
    color: #00F0FF;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-company i {
    color: #00F0FF;
}

.timeline-date {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-clip: padding-box;
    /* Fix for transparent border gaps */
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.timeline-item:hover .timeline-date {
    background: linear-gradient(rgba(13, 25, 48, 0.95), rgba(13, 25, 48, 0.95)) padding-box,
        linear-gradient(90deg, #00F0FF, #7000FF) border-box;
    border: 2px solid transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.timeline-desc {
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(0, 240, 255, 0.05);
    color: #00F0FF;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s;
}

.timeline-item:hover .tag {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Light Theme Overrides */
body.light-theme .timeline-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .timeline-role {
    background: none;
    -webkit-text-fill-color: #1E293B;
    color: #1E293B;
}

body.light-theme .timeline-item:hover .timeline-role {
    color: #0284C7;
    -webkit-text-fill-color: #0284C7;
}

body.light-theme .timeline-company,
body.light-theme .timeline-company i {
    color: #0EA5E9;
}

body.light-theme .timeline-date {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .timeline-item:hover .timeline-date {
    color: #fff;
}

body.light-theme .timeline-desc {
    color: #64748B;
}

body.light-theme .tag {
    background: rgba(14, 165, 233, 0.1);
    color: #0284C7;
    border-color: rgba(14, 165, 233, 0.2);
}

/* Elegant Title Effect */
.elegant-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
}

.elegant-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    animation: underlineGrow 1.5s ease-out forwards 0.5s;
}

@keyframes underlineGrow {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}