@import url(./styles.css);

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--gap) * 2);
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) * 1.5);
}

.about-image {
    background-color: var(--background-color);
    border: var(--border);
    border-radius: var(--border-radius);
    max-width: 380px;
    overflow: hidden;
}

.about-text h3 {
    align-self: center;
}

.about-text .skills {
    display: flex;
    flex-wrap: wrap;
    align-self: center;
    gap: var(--gap);
}

.about-text .skills .skill-item {
    text-transform: uppercase;
    background-color: var(--background-color);
    border: var(--border);
}

.about-text .skills .btn {
    cursor: default;
}

.about-tabs .tab-item {
    display: inline-block;
    background-color: none;
    cursor: pointer;
    margin-right: var(--margin);
    position: relative;
    opacity: 0.5;
}

.about-tabs .tab-item:last-child {
    margin: 0;
}

.about-tabs .tab-item::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 1s ease;
}

.about-tabs .tab-item:hover::before,
.about-tabs .tab-item:focus::before,
.about-tabs .tab-item.active::before {
    width: 100%;
}

.about-tabs .tab-item:focus::before {
    animation: refocus 0.5s ease;
}

.about-tabs .tab-item.active {
    color: var(--accent-color);
    opacity: 1;
    cursor: auto;
}

.about-text .tab-content {
    display: none;
}

.about-text .tab-content.active {
    display: block;
}

.about-text .timeline {
    position: relative;
}

.about-text .timeline::before {
    position: absolute;
    content: "";
    left: 5px;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--accent-color);
}

.about-text .timeline-item {
    position: relative;
    padding: var(--padding) 0 0 calc(var(--padding) * 2);
}

.about-text .timeline-item:before {
    position: absolute;
    content: "";
    left: 0;
    top: 22px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-circle);
}

.about-text .timeline-item .date {
    display: block;
    color: var(--accent-color);
    margin-bottom: var(--margin);
}

.about-text .timeline-heading {
    margin-bottom: var(--margin);
}

.about-text .timeline-details span {
    text-transform: capitalize;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    justify-content: center;
    align-items: center;
}

.about-links button {
    flex-basis: 100%;
    cursor: pointer;
}

/*.........................
Responsiveness
.........................*/
/*912px*/
@media screen and (max-width: 57em) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        align-self: center;
    }

    .about-text p:nth-child(1) {
        text-align: center;
    }
}
