:root {
    --color-text: #ffffff;
    /* Text color */
    --primary: hsl(239, 84%, 67%);
    /* blue  */
    --secondary: hsl(195, 100%, 50%);
    /* --secondary: hsl(215, 100%, 50%); */
    /* lightblue */
    --thirtiary: hsl(0, 0%, 85%);
    /* gray accent */
    --background: hsl(230, 60%, 6%);
    /* Background gradient */
    --background-accent: hsl(230, 50%, 3%);
    /* donkerder */
    --gray-300: hsl(230, 10%, 70%);
    --gray-500: hsl(230, 10%, 50%);
    --gray-700: hsl(230, 10%, 30%);
}

.experiencepagestyle {
    align-items: center;
    flex-direction: column;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--secondary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.experience-item {
    position: relative;
    margin: 30px 0;
    width: 100%;
}

.experience-card {
    background: var(--gray-700);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
    position: relative;
    width: 45%;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.experience-item:nth-child(odd) .experience-card {
    margin-left: 0;
    margin-right: auto;
}

.experience-item:nth-child(even) .experience-card {
    margin-left: auto;
    margin-right: 0;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--secondary), 0 0 20px rgba(52, 152, 219, 0.3);
    z-index: 10;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
}

.period {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 15px;
    padding: 5px 12px;
    background: var(--gray-500);
    border-radius: 20px;
    display: inline-block;
}

.keywords-container {
    align-items: center;
    align-items: start;
    flex-direction: row;
}

.keywords {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    margin-top: 15px;
    padding: 5px 12px;
    background: var(--gray-500);
    border-radius: 20px;
    display: inline-block;
}

.description {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .experience-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Animatie voor scroll */
.experience-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.experience-item:nth-child(1) {
    animation-delay: 0.1s;
}

.experience-item:nth-child(2) {
    animation-delay: 0.2s;
}

.experience-item:nth-child(3) {
    animation-delay: 0.3s;
}

.experience-item:nth-child(4) {
    animation-delay: 0.4s;
}

.experience-item:nth-child(5) {
    animation-delay: 0.5s;
}

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