/******************************** Global *********************************/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Ping', Arial, Helvetica, sans-serif;
    line-height: 1em;
    background-color: var(--site-color-background);
}

:root {
    --site-color-black: #333;
    --site-color-dark-grey: #555;
    --site-color-grey: #888;
    --site-color-background: #eee;
    --site-color-light-grey: #ddd;
    --site-color-almost-white: #F5F5F5;
    --site-color-white: #fff;
    --site-color-white-50: rgba(255, 255, 255, 0.5);
    --site-color-white-70: rgba(255, 255, 255, 0.7);
    --site-color-yellow: rgb(221, 181, 50);
    --projects-color-pd: #4393EB;
    --projects-color-ud: #AC3137;
    --about-color-green: #81895F;
}

h1, h3, h5{
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    margin: 0;
}

h1, h3{
    font-weight: 600;
    font-size: 48px;
    line-height: 58px;
    color: var(--site-color-black);
}

h2 {
    font-weight: 400;
    font-size: 28px;
    line-height: 40px;
    color: var(--site-color-grey);
    margin: 0;
}

h4 {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
    margin: 0;
    color: var(--about-color-green);
}

h5 {
    font-weight: 600;
    font-size: 28px;
    line-height: 38px;
}

p {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--site-color-dark-grey);
    margin: 0;
}


.the-box {
    padding: 36px;
    background-color: var(--site-color-white);
    border-radius: 25px;
}

.section-title {
    padding-left: 36px;
}

.you-need-a-flex {
    display: flex;
}
/******************************** Main *********************************/
main {
    display: grid;
    grid-template-columns: 1fr 1000px 1fr;
}

.about-header {
    grid-column: 1/4;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 238px;
    height: 540px;
    width: 100%;
    position: relative;
    top: -70px;
    background-color: var(--site-color-white);
    margin-bottom: -50px;
}

.about-header-content-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px 36px;
    gap: 150px;
    justify-content: space-between;
    isolation: isolate;
    width: 1000px;
    height: 100%;
}

.about-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    padding-top: 80px;
}

.about-header img {
    height: 400px;
    position: relative;
    align-self: flex-end;
}

.about-header .das {
    color: var(--about-color-green);
}


/*************** Content *************/
.about-content {
    grid-column: 2/3;
}


/*--------------- Background ---------------*/
.background {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 36px;
    gap: 80px;
    background-color: var(--site-color-white);
    border-radius: 25px;
}

.background img {
    height: 140px;
}

.background-text {
    width: 580px;
}

.background-text p:last-of-type {
    margin-top: 10px;
}


/*--------------- Design Philosophy ---------------*/
.design-philosophy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 60px;
}

.design-philosophy-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 560px;
}

.philo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 490px;
}


/*--------------- More About Me ---------------*/
.more-about-me {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 60px;
}

.more-about-me .you-need-a-flex {
    justify-content: space-between;
    align-items: baseline;
    padding-right: 36px;
}

.more-about-me-content {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    gap: 20px;
}

.more-about-me-content .you-need-a-flex {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.more-about-me a {
    text-decoration: none;
    color: var(--site-color-dark-grey);
    font-size: 20px;
}

.more-about-me a:hover {
    color: var(--about-color-green);
}

.experience-box, .fun-facts{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.more-about-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--about-color-green);
}

.fun-facts {
    min-width: 542px;
}

.experience-list, .fun-facts-list {
    display: flex;
    flex-direction: column;
}

.experience-list {
    gap: 15px;
}

.experience {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    gap: 3px;
    background-color: var(--site-color-background);
    border-radius: 10px;
}

.experience-des {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

.experience-time {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--site-color-grey);
}

.experience-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
    color: var(--site-color-black);
}

.experience-location {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--site-color-black);
}

.fun-facts-list {
    gap: 30px;
}

.fun-fact-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
}

.the-fact {
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    text-align: left;
}

.double-deck, .monk {
    font-weight: 600;
}

.double-deck {
    color: #C8102E;
}

.monk {
    color: #DFBE57;
}

.watching {
    height: 45px;
    object-fit: contain;
    align-self: flex-start
}

.i-statement {
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
}

.emoji {
    height: 35px;
}

.os {
    height: 50px;
}

.watch-os {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.15));
}


@media screen and (max-width: 1019px) {
    main {
        grid-template-columns: 1fr 800px 1fr;
    }

    .the-box {
        padding: 30px;
    }
    
    .about-header-content-box {
        padding: 0px 30px;
        gap: 20px;
        width: 800px;
    }
    
    .design-philosophy-content {
        max-height: 590px;
    }
    
    .philo {
        width: 390px;
    }

    .philo-title {
        font-size: 28px;
        line-height: 36px;
    }

    /*--------------- More About Me ---------------*/
    .more-about-me .section-title {
        padding-left: 30px;
    }

    .more-about-me .you-need-a-flex {
        padding-right: 30px;
    }

    .experience-box, .fun-facts{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 30px;
        width: 100%;
    }

    .more-about-title {
        font-weight: 700;
        font-size: 20px;
        line-height: 24px;
        color: var(--about-color-green);
    }

    .fun-facts {
        min-width: 400px;
    }

    .experience-list, .fun-facts-list {
        display: flex;
        flex-direction: column;
    }

    .experience-time, .experience-location {
        font-size: 16px;
        line-height: 20px;
    }

    .fun-facts-list {
        gap: 30px;
    }

    .fun-fact-item {
        gap: 5px;
    }

    .the-fact {
        font-size: 24px;
        line-height: 32px;
    }

    .watching {
        height: 40px;
        object-fit: contain;
        align-self: flex-start
    }

    .i-statement {
        font-size: 18px;
        line-height: 22px;
    }
}


@media screen and (max-width: 819px) {
    h1, h3{
        font-size: 40px;
        line-height: 50px;
    }
    
    h2 {
        font-size: 24px;
        line-height: 32px;
    }

    p {
        font-size: 18px;
    }

    main {
        grid-template-columns: 1fr 600px 1fr;
    }

    .section-title {
        padding-left: 30px;
    }

    .about-header {
        height: 400px;
    }

    .about-header img {
        height: 300px;
    }

    .about-header-content-box {
        padding: 0px 30px;
        gap: 0px;
        width: 600px;
    }

    .background {
        gap: 40px;
    }
    
    .design-philosophy-content {
        flex-direction: column;
        flex-wrap: nowrap;
        max-height: 100%;
    }
    
    .philo {
        width: 100%;
    }

    .more-about-me-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

}

@media screen and (max-width: 619px) {
    main {
        grid-template-columns: 20px 1fr 20px;
    }

    h1{
        font-size: 32px;
        line-height: 42px;
    }

    h3 {
        font-size: 28px;
        line-height: 32px;
    }
    
    h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .the-box {
        padding: 20px;
        width: calc(100vw - 40px);
    }

    .section-title {
        padding-left: 0 !important;
        text-align: center;
    }

    .about-header {
        height: 600px;
    }

    .about-header-content-box {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 30px;
        width: calc(100vw - 40px);
        padding: 0 20px;
        
    }

    .about-header-text {
        align-items: center;
        text-align: center;
    }

    .about-header-text h2 {
        width: 90%;
    }

    .about-header img {
        height: 250px;
        align-self: center;
    }

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

    .background-text {
        width: 100%;
    }

    .philo-title {
        font-size: 24px;
        line-height: 32px;
    }

    .more-about-me > .you-need-a-flex {
        padding-right: 0px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .more-about-me a {
        font-size: 18px;
    }

    .more-about-title {
        font-size: 24px;
    }

    .fun-facts {
        min-width: 100%;
    }

}

@media screen and (max-width: 370px) {
    .experience-time, .experience-location {
        font-size: 14px;
    }
}