/* Geschiedenis Section Styles */
.geschiedenis-section {
    padding: 80px 20px;
    background-color: var(--secondary-background-color);
    height: auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.geschiedenis-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1200px;
    height: 1200px;
    background-image: url('../img/Geschiedenis_line.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right top;
    opacity: 1;
    z-index: 1;
    transform: translateX(100px) translateY(-50px);
}

.geschiedenis-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.geschiedenis-content h2 {
    text-align: left;
    font-size: var(--h2-font-size);
    margin-bottom: 60px;
    color: var(--h2-text-color);
}

.geschiedenis-content h2::after {
    content: '';
    display: block;
    width: 460px;
    height: 3px;
    background-color: var(--header-link-color);
    margin-top: 10px;
}

/* Carousel Styles */
.geschiedenis-carousel {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.carousel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 400px;
}

.text-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.founder-text {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-weight: normal;
}

.year {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--h2-text-color);
    margin: 0;
    line-height: 1;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    max-width: 500px;
}

/* Image Carousel Styles */
.image-carousel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 450px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    grid-column: 1;
}

.side-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 120px;
}

.side-image {
    width: 100%;
    height: calc(50% - 7.5px);
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.side-image:hover {
    transform: scale(1.05);
}

/* Progress Indicator Styles */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.progress-line {
    flex: 1;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.progress-line:hover {
    background-color: #ccc;
}

.progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--header-link-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-line.active::before {
    animation: fillProgress 5s linear forwards;
}

.progress-line.completed::before {
    width: 100%;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .geschiedenis-section::before {
        width: 350px;
        height: 408px;
        transform: translateX(80px) translateY(-30px);
    }
    
    .carousel-content {
        gap: 40px;
    }
    
    .carousel-container {
        width: 400px;
        height: 300px;
    }
    
    .side-images {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .geschiedenis-section::before {
        width: 250px;
        height: 291px;
        transform: translateX(50px) translateY(-20px);
    }
    
    .carousel-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .image-carousel {
        order: -1;
    }
    
    .carousel-container {
        width: 350px;
        height: 260px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 10px;
    }
    
    .main-image {
        grid-column: 1;
        height: 200px;
    }
    
    .side-images {
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }
    
    .side-image {
        width: calc(50% - 5px);
        height: 50px;
    }
    
    .geschiedenis-content h2::after {
        width: 100%;
        max-width: 300px;
    }
    
    .year {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .geschiedenis-section::before {
        width: 200px;
        height: 233px;
        transform: translateX(30px) translateY(-10px);
    }
    
    .carousel-container {
        width: 300px;
        height: 220px;
    }
    
    .main-image {
        height: 160px;
    }
    
    .side-image {
        height: 40px;
    }
    
    .year {
        font-size: 2rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
}
