@import "template.css";

/*!* Extra small devices (phones, 600px and down) *!*/
/*@media only screen and (max-width: 600px) {}*/

/*!* Small devices (portrait tablets and large phones, 600px and up) *!*/
/*@media only screen and (max-width: 600px) {}*/

/*!* Medium devices (landscape tablets, 768px and up) *!*/
/*@media only screen and (max-width: 600px) {}*/

/*!* Large devices (laptops/desktops, 992px and up) *!*/
/*@media only screen and (max-width: 600px) {}*/

/*!* Extra large devices (large laptops and desktops, 1200px and up) *!*/
/*@media only screen and (min-width: 1200px) {}*/

.about-page-container {
    position: relative;
    height: 2700px;
    /*min-height: 125vh;*/
    top: 100px;
    width: 80%;
    left: 10%;
    /*height: 400px;*/
    background: var(--container-bg, #ffffff);
    border-radius: 20px;
    box-shadow: 2px 2px 12px var(--box-shadow, rgba(0, 0, 0, 0.2));
    /*display: flex;*/
    /*padding: 40px;*/
    /*justify-content: center;*/
    /*align-items: center;*/
}

.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%; /* Ensure it takes full width of parent */
    top: 75px;
    left: 7.5%;
    /*margin: 0 auto; !* Center horizontally *!*/
}

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

.timeline-heading {
    font-size: 32px;
    color: var(--text-color, #403e3e);
    margin-bottom: 20px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto; /* Already centered */
    width: 100%; /* Ensure it takes full width of parent */
}

/* 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));
    top: 175px;
    width: 80%; /* Ensure it takes full width of parent */
    left: 7.5%;
    /*margin: 0 auto; !* Center horizontally *!*/
}

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

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

.fourth-part {
    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: 20px;*/
    width: 80%;
    left: 7.5%;
    top: 275px;
}

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

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-category {
    background-color: rgba(240, 240, 240, 0.5);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--text-color, #403e3e);
}

.skills-category h4 {
    color: var(--text-color, #403e3e);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}

.skills-category p {
    color: var(--text-color, #7e7d7d);
    line-height: 1.6;
    margin-bottom: 0;
}

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

    .section-header {
        width: 0%; /* Keep consistent with desktop */
        margin-bottom: 0; /* No need for margin since width is 0 */
        padding: 0; /* No need for padding since width is 0 */
    }

    .section-content {
        width: 100%;
        margin: 0 auto; /* Ensure it's centered */
    }

    .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, .fourth-part {
        padding: 20px;
    }

    .skills-category {
        padding: 12px;
    }
}

footer {
    top: 950px; /* Increased to accommodate the larger skills visualization */
}
