﻿.experience-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.experience-item {
    display: flex;
    gap: 2rem;
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

    .experience-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Marker Styles */
.experience-marker {
    position: relative;
    flex-shrink: 0;
    width: 24px;
}

.marker-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(165deg, #4d71ad, #528cdf);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(82, 140, 223, 0.3);
    transition: all 0.3s ease;
}

.marker-line {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(to bottom, #4d71ad 0%, rgba(77, 113, 173, 0.2) 100%);
    transform: translateX(-50%);
}

/* Content Styles */
.experience-content {
    position: relative;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0px 90px 0px 90px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.experience-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient( circle at center, rgba(82, 140, 223, 0.1) 0%, transparent 70% );
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.experience-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-title {
    font-family: 'gendy', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(165deg, #4d71ad, #528cdf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.experience-date {
    font-family: 'Roboto', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.experience-location {
    position: relative;
    z-index: 2;
    display: block;
    font-family: 'Roboto', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.experience-details {
    position: relative;
    z-index: 2;
}

/* Accomplishments List */
.accomplishments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .accomplishments-list li {
        font-family: 'Roboto', sans-serif;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
        position: relative;
    }

        .accomplishments-list li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: #528cdf;
        }

/* Hover Effects */
.experience-item:hover .marker-dot {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(82, 140, 223, 0.5);
}

.experience-item:hover .experience-content {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 1);
}

.experience-item:hover .experience-hover-effect {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particle Effect Styles */
.experience-particle {
    position: absolute;
    background: rgba(82, 140, 223, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transition: all 1s ease;
    z-index: 3;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .experience-timeline {
        padding: 1rem;
    }

    .experience-item {
        flex-direction: column;
        gap: 1rem;
        margin-left: 2rem;
    }

    .experience-marker {
        position: absolute;
        left: -2rem;
        top: 0;
    }

    .marker-line {
        height: calc(100% + 2rem);
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-content {
        padding: 1.5rem;
        border-radius: 0px 45px 0px 45px;
    }

    .experience-item:hover .experience-content {
        transform: translateX(0) translateY(5px);
    }

    /* Touch Device Optimisations */
    @media (hover: none) {
        .experience-hover-effect {
            display: none;
        }

        .experience-item.touch-active .experience-content {
            background: rgba(255, 255, 255, 0.08);
            transform: scale(0.98);
        }

        .experience-item.touch-active .marker-dot {
            transform: scale(1.2);
            box-shadow: 0 0 20px rgba(82, 140, 223, 0.5);
        }
    }
}

/* Small Screen Optimisations */
@media screen and (max-width: 380px) {
    .experience-content {
        padding: 1.2rem;
    }

    .experience-title {
        font-size: 1.2rem;
    }

    .experience-date,
    .experience-location {
        font-size: 0.8rem;
    }

    .accomplishments-list li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .experience-content {
        background: rgba(255, 255, 255, 0.03);
    }

    .experience-item:hover .experience-content {
        background: rgba(255, 255, 255, 0.06);
    }
}