#introduction {
    padding-top: 140px;
}

.history {
    padding: 80px 20px 120px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgb(53, 179, 210) 0%, rgb(228, 117, 54) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: #0d1b2a;
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    border-color: rgb(228, 117, 54);
}

.timeline-date, .timeline-content {
    width: 45%;
}

.left-date .timeline-date {
    text-align: right;
    padding-right: 50px;
    font-size: 2rem;
    font-weight: bold;
    color: rgb(53, 179, 210);
}

.left-date .timeline-content {
    text-align: left;
    padding-left: 50px;
}

.right-date {
    flex-direction: row-reverse;
}

.right-date .timeline-date {
    text-align: left;
    padding-left: 50px;
    font-size: 2rem;
    font-weight: bold;
    color: rgb(228, 117, 54);
}

.right-date .timeline-content {
    text-align: right;
    padding-right: 50px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    background: rgba(30, 30, 30, 0.8);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: inline-block;
}

.timeline-item:hover .timeline-content h3 {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    #about > .section-header-wrap .section-title,
    #history > .section-header-wrap .section-title {
        display: block;
        font-size: 2.25rem;
    }

    #about > .section-header-wrap,
    #history > .section-header-wrap {
        justify-content: center;
        height: auto;
        margin-bottom: 30px;
    }

    .timeline-container {
        padding-left: 20px;
    }

    .timeline-line {
        left: 30px;
        transform: none;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-bottom: 50px;
    }

    .timeline-dot {
        left: 30px;
        top: 0;
        transform: translate(-50%, 0);
        margin-top: 5px;
    }

    .timeline-item:hover .timeline-dot {
        transform: translate(-50%, 0) scale(1.2);
    }

    .timeline-date, .timeline-content {
        width: 100%;
        text-align: left !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
    }

    .left-date .timeline-date, .right-date .timeline-date {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }
}
