@import "template.css";

.about-page-container {
    position: relative;
    min-height: calc(100vh - 160px);
    margin-top: 100px;
    margin-bottom: 50px;
    width: 80%;
    left: 10%;
    background: var(--container-bg, #ffffff);
    border-radius: 20px;
    box-shadow: 2px 2px 12px var(--box-shadow, rgba(0, 0, 0, 0.2));
    flex: 1;
}

.first-part {
    position: relative;
    background-color: var(--container-bg, #ffffff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--box-shadow, rgba(0, 0, 0, 0.2));
    width: 80%;
    margin-top: 75px;
    margin-left: 7.5%;
}

.first-part .timeline-heading {
    margin-top: 0;
}

.timeline-heading {
    font-size: 32px;
    color: var(--text-color, #403e3e);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--text-color, #403e3e);
    position: relative;
}

.timeline-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-color, #403e3e), transparent);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Center line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--text-color, #7e7d7d);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Left side items */
.timeline-item:nth-child(odd) {
    left: 0;
}

/* Right side items */
.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--container-bg, #ffffff);
    border: 4px solid var(--text-color, #403e3e);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Right side dots */
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    width: 100px;
    padding: 8px 0;
    top: 12px;
}

/* Left side dates */
.timeline-item:nth-child(odd) .timeline-date {
    right: -120px;
    text-align: left;
}

/* Right side dates */
.timeline-item:nth-child(even) .timeline-date {
    left: -120px;
    text-align: right;
}

.timeline-date span {
    font-weight: bold;
    color: var(--text-color, #403e3e);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--container-bg, #ffffff);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--box-shadow, rgba(0, 0, 0, 0.2));
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--text-color, #403e3e);
    font-size: 22px;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--text-color, #7e7d7d);
    line-height: 1.5;
}

.timeline-image-placeholder {
    margin-top: 15px;
    background-color: #f0f0f0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.timeline-item.future .timeline-content {
    border: 2px dashed var(--text-color, #7e7d7d);
    background-color: rgba(255, 255, 255, 0.7);
}


.second-part {
    position: relative;
    background-color: var(--container-bg, #ffffff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--box-shadow, rgba(0, 0, 0, 0.2));
    margin-top: 50px;
    width: 80%;
    margin-left: 7.5%;
}

.second-part-heading {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--text-color, #403e3e);
    position: relative;
}

.second-part-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-color, #403e3e), transparent);
}

.second-part-heading h2 {
    font-size: 32px;
    color: var(--text-color, #403e3e);
    text-align: center;
    margin: 0;
}

.second-part h3 {
    color: var(--text-color, #403e3e);
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.second-part p {
    color: var(--text-color, #7e7d7d);
    line-height: 1.6;
    margin-bottom: 15px;
}

.third-part {
    position: relative;
    background-color: var(--container-bg, #ffffff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--box-shadow, rgba(0, 0, 0, 0.2));
    margin-top: 50px;
    width: 80%;
    margin-left: 7.5%;
    margin-bottom: 75px;
}

.third-part h3 {
    color: var(--text-color, #403e3e);
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--text-color, #403e3e);
    position: relative;
}

.third-part h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--text-color, #403e3e), transparent);
}

.skills-intro {
    text-align: center;
    color: var(--text-color, #7e7d7d);
    margin-bottom: 30px;
}

/* Responsive Timeline and Layout */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        width: 90%;
    }

    .section-header {
        width: 0%;
        margin-bottom: 0;
        padding: 0;
    }

    .section-content {
        width: 100%;
        margin: 0 auto;
    }

    .timeline-heading {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 21px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }

    .timeline-date {
        position: relative;
        width: auto;
        top: -30px;
        left: 0 !important;
        right: auto !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-date {
        right: auto;
    }

    .first-part,
    .second-part,
    .third-part {
        padding: 20px;
    }
}