:root {
    --background-color: #fff;
    --decord-color: #0072f5;
    --text-color: #333;
    --heading-color: #212121;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #212121;
        --decord-color: #0072f5;
        --text-color: #ffffffa6;
        --heading-color: #fff;
    }

    .tabs {
        color: #fff;
    }

    .socialContainer {
        background-color: #fff !important;
    }

    .container:hover {
        background-color: var(--decord-color) !important;
    }

    .socialSvg path {
        fill: rgb(0, 0, 0) !important;
    }

    button {
        color: black !important;
    }
}

@media (prefers-color-scheme: light) {
    .tabs {
        color: var(--heading-color);
    }

    .socialContainer {
        background-color: var(--heading-color);
    }

    button {
        color: var(--background-color) !important;
    }

    button::before {
        background: var(--heading-color) !important;
    }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: "Poppins", sans-serif;
    display: flex;
    background-color: var(--background-color);
    color: var(--text-color);
}

.arrow-div {
    width: 30px;
    height: 30px;
    /* background-color: #000; */
    margin: 20px auto;
    display: none;
}

/* Projects tab */
.description {
    display: flex;
    justify-content: space-around;
}

/* arrow */
/*------ Settings ------*/
.container-arrow {
    --color: #a5a5b0;
    --size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: var(--size);
    user-select: none;
    fill: var(--color);
}

.container-arrow .chevron-down {
    position: absolute;
    animation: keyframes-return .5s;
}

/* ------ On check event ------ */
.container-arrow input:checked~.chevron-down {
    animation: keyframes-rotate .5s;
    transform: rotate(180deg);
}

/* ------ Hide the default checkbox ------ */
.container-arrow input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* ------ Animation ------ */
@keyframes keyframes-rotate {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: rotate(-180deg);
    }
}

@keyframes keyframes-return {
    0% {
        transform: rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: rotate(0deg);
    }
}

/*  */

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 30%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    /* border: solid 1px var(--decord-color); */
}

/* card icon */
.card {
    display: flex;
    margin-bottom: 10%;
    gap: 10px;
}

/* for all social containers*/
.socialContainer {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgb(44, 44, 44);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition-duration: .3s;
    color: #fff;
}

.container:hover {
    background-color: var(--decord-color);
    transition-duration: .3s;
}

.socialContainer:active {
    transform: scale(0.9);
    transition-duration: .3s;
}

.socialSvg {
    width: 20px;
}

.socialSvg path {
    fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
    animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ẩn thanh scroll */
body::-webkit-scrollbar {
    width: 0px;
}

/*  */

.tabs {
    width: 15%;
    height: 100vh;
    border-right: solid black 1px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 5%;
}

.tab-content {
    margin: 50px 35px 20px 250px;
    font-size: 23px;
}

.tab-item {
    min-width: 80px;
    padding: 5px 20px 5px 20px;
    margin-bottom: 20px;
    font-size: 25px;
    border-radius: 10px;
    border-bottom: 5px solid transparent;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.5s ease;
}

.tab-item:hover {
    opacity: 1;
    background-color: rgba(0, 114, 245, 0.1);
    border-color: rgba(0, 114, 245, 0.2);
}

.tab-item.active {
    opacity: 1;
}

.tabs .line {
    position: absolute;
    left: 0px;
    /*offsetLeft*/
    top: 50%;
    /*offsetTop + offsetheight - border*/
    width: 0px;
    /* client width*/
    height: 6px;
    border-radius: 15px;
    background-color: var(--decord-color);
    transition: all 0.2s ease;
}

.tab-content {
    display: block;
}

.tab-pane {
    color: var(--heading-color);
    display: none;
}

.tab-pane h1 {
    margin-bottom: 30px;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    margin-top: 20px;
    margin-bottom: 20px;
}

.timestamp {
    display: flex;
    justify-content: space-between;
    height: 30px;
}

ul {
    margin-left: 50px;
    margin-bottom: 20px;
}

/* button show certification*/

button {
    outline: none;
    cursor: pointer;
    border: none;
    padding: 0.9rem 2rem;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05rem;
    font-weight: 700;
    font-size: 17px;
    border-radius: 500px;
    overflow: hidden;
    background: var(--decord-color);
    color: ghostwhite;
}

button span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
}

button:hover span {
    color: var(--heading-color);
}

button::before,
button::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

button::before {
    content: "";
    background: #fff;
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

button:hover::before {
    transform: translate3d(100%, 0, 0);
}

/* Certifications tab */

img {
    width: 100%;
    height: auto;
}

@keyframes img-slide-in-top {
    0% {
        transform: translateY(-15%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.img-show {
    animation: img-slide-in-top 0.9s both;
}

.degree-img {
    display: none;
}

.degree-img-visible {
    display: block;
}

.degree-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/**/

.link-icon {
    display: flex;
    justify-content: center;
}

.link-icon i {
    margin-bottom: 20px;
    font-size: 200%;
    color: var(--heading-color);
    transition-duration: .3s;
}

.link-icon i:hover {
    color: var(--decord-color);
}

.link-icon i:active {
    transform: scale(0.9);
    transition-duration: .3s;
    opacity: 0.5;
}

.project-images {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}

.project-images img {
    border-radius: 20px;
    width: 49%;
}

.spotify-review {
    display: flex;
    justify-content: space-around;
    margin-bottom: 100px;
}

.spotify-desktop-view {
    width: 60%;
    border-radius: 5px;
}

.spotify-mobile-view {
    height: 440px;
    width: auto;
    border-radius: 10px;
}

.blog-preview {
    margin: 0 auto;
    margin-bottom: 100px;
    width: 70%;
}

.blog-preview>img {
    border-radius: 10px;
}

#music-player {
    margin: 0 auto;
    width: 30%;
}

#y2m {
    margin: 0 auto;
    width: 90%;
}

#todos {
    margin: 0 auto;
}

a {
    text-decoration: none;
}

.link-icon>a+a {
    margin-left: 20px;
}

/* phông chữ và màu */

.tab-pane p {
    text-align: justify;
}

.experiences h3 {
    margin-bottom: 30px;
}

h1 span {
    color: var(--decord-color)
}

.time {
    color: var(--decord-color)
}

@media (max-width: 1250px) {
    body {
        display: block;
    }

    .tabs {
        width: 100%;
        height: 100%;
        padding-top: 30px;
        position: relative;
        border: none;
        box-shadow: none;
        animation: slide-in-top 0.5s both;
    }

    .timestamp.python {
        display: block;
        height: auto;
    }

    .avatar {
        display: none;
    }

    .tab-content {
        margin: 50px 30px
    }

    .tab-item,
    .card {
        margin: 10px 0;
    }

    .arrow-div {
        display: block;
    }

    .tb-certifications h1 {
        font-size: 37px;
    }

    .link-icon {
        margin-bottom: 20px;
    }

    .spotify-review {
        flex-direction: column;
        margin-bottom: 50px;
        row-gap: 20px;
    }

    .spotify-desktop-view {
        width: 100%;
    }

    .spotify-mobile-view {
        margin: 0 auto;
        height: 500px;
        width: fit-content;
    }
}

@media (max-width: 600px) {

    body {
        display: block;
    }

    .tabs {
        padding-top: 30px;
        width: 100%;
        height: 100%;
        position: relative;
        border: none;
        box-shadow: none;
        animation: slide-in-top 0.5s both;
    }

    .avatar {
        display: none;
    }

    .tab-content {
        margin: 50px 30px
    }

    .tab-item,
    .card {
        margin: 10px 0;
    }

    .arrow-div {
        display: block;
    }

    .timestamp {
        display: block;
        height: auto;
    }

    .tb-certifications h1 {
        font-size: 37px;
    }

    .link-icon {
        margin-bottom: 20px;
    }

    .description {
        display: flex;
        flex-direction: column;
    }

    .project-images {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 50px;
    }

    .project-images img {
        border-radius: 20px;
        width: 100%;
        margin-bottom: 10px;
    }

    .spotify-review {
        flex-direction: column;
        margin-bottom: 50px;
        row-gap: 20px;
    }

    .spotify-desktop-view {
        width: 100%;
    }

    .spotify-mobile-view {
        margin: 0 auto;
        height: 500px;
        width: fit-content;
    }

    .blog-preview {
        margin-bottom: 20px;
        width: auto;
    }

    .link-icon i {
        margin-bottom: 10px;
        font-size: 150%;
    }

    #y2m {
        width: 100%;
    }

    #music-player {
        width: 100%;
    }
}