/* Work Experience - Floating 3D Cards */
.experience-section {
    padding: 10rem 0;
    position: relative;
    background: transparent;
    perspective: 1000px;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Floating Animation */
@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.timeline-content {
    position: relative;
    width: 80%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    animation: floatCard 6s ease-in-out infinite;
}

.timeline-content:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(139, 92, 246, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

/* Holographic Edge */
.timeline-content::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1),
            rgba(139, 92, 246, 0.3),
            rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.timeline-date {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    transform: translateZ(30px);
    z-index: 10;
}

.timeline-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.timeline-content h4 {
    color: #a5b4fc;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    transform: translateZ(15px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    padding: 0.3rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

.experience-github-link svg {
    stroke: #a5b4fc;
    transition: all 0.3s ease;
}

.experience-github-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.experience-github-link:hover svg {
    stroke: #ffffff;
    transform: scale(1.1);
}

.remote-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    margin-left: 0.5rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.timeline-content p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.05rem;
    transform: translateZ(10px);
}

.timeline-tags {
    margin-top: 2rem;
    transform: translateZ(25px);
}

.timeline-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-tags span:hover {
    background: rgba(139, 92, 246, 0.2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-content {
        width: 100%;
        padding: 2rem;
    }

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