/* section03  --------------*/
:root {
    --bg-button:#494ba0;
    --bg-button-hover:#7576cf;
    --accent-color: #155670;
    --text-color: #ffffff;
    --timeline-width: 4px;
    --dot-size: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 10px 0;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.timeline-dots {
    display: flex;
    justify-content: space-around;
    width: 60%;
    min-width: 260px;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
}

.timeline-dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background-color: var(--bg-button);
    border: 3px solid rgba(255, 255, 255, 0.644);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 10px;
}
.timeline-line {
    position: absolute;
    width: 80%;
    height: var(--timeline-width);
    background-color: rgba(255, 255, 255, 0.644);
    top: var(--dot-size);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 1;
}
.timeline-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.timeline-dot::after {
    content: attr(data-year);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: medium;
    color: var(--text-color);
}

.cards-container {
    width: 90vw;
    overflow: hidden;
    position: relative;
}

.cards-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 0;
    mask-image: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0)
    )
}

.year-cards {
    min-width: 100%;
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0 0 50px;
    gap: 20px;
}

.year-cards.active {
    display: flex;
}

.card-project {
    min-width: 400px;
    height: 450px;
    border-radius:10px;
    box-shadow:0px 10px 20px -5px rgba(0, 0, 0, 0.8);
    padding: 20px;
    transition: all 0.3s ease;
    display:flex;
    align-items:flex-end;
    box-sizing: border-box;
    color: var(--text-color);
    border:3px rgba(255, 255, 255, 0.322) solid;
    background-clip: padding-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position:top;
    gap:5px
}
.card-project:hover {
    transform: translateY(-5px);
}

.card-project div h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-project div .date {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.card-project div{
    max-width:290px;
}

.expand{
    text-decoration: underline;
    color:var(--bg-button-hover);
    cursor: pointer;
    pointer-events: visible;
}

.nav-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
    padding-top:20px;
}

.arrow-control {
    pointer-events: all;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.arrow-control-left img{
    width:50px;
    height:50px;
}
.space-end{
    width:1px;
    margin:50px;
}
.projects-card{
    transform:rotate(44.7deg);
    width:0;
    height:0;
    padding:24px;
}
.projects-card:hover{
    animation: arrows 1.5s ease-in-out;
}

@keyframes arrows {
    0%,100% { transform: rotate(44deg); }
    25%     { transform: rotate(180deg); }
    50%     { transform: rotate(-90deg); }
    75%     { transform: rotate(90deg); }
}

.arrow-control:hover {
    filter:contrast(0.6);
}

@media (max-width: 768px) {
    .cards-wrapper{
        mask-image: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0) 5%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 95%,
        rgba(0, 0, 0, 0)
        )
    }
    .card-project {
        min-width: 300px;
        height: 400px;
    }
    .timeline-dots{
        width:80%;
    }
    .year-cards {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.year-cards::-webkit-scrollbar {
    display: none;
}