@font-face {
    font-family: Poppins;
    src: url("/fonts/Poppins-Light.ttf");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Poppins;
    src: url("/fonts/Poppins-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Poppins;
    src: url("/fonts/Poppins-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Poppins;
    src: url("/fonts/Poppins-SemiBold.ttf");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Poppins;
    src: url("/fonts/Poppins-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: Poppins;
    src: url("/fonts/Poppins-Black.ttf");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: OpenSans;
    src: url("/fonts/OpenSans-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: OpenSans;
    src: url("/fonts/OpenSans-SemiBold.ttf");
    font-weight: 600;
    font-style: normal;
}

:root {
    --surface-color: #111111;
    --on-suface-color: #ffffff;
    --primary-color: #ffb400;
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: #676767;
}

html, body {
    margin: 0;
}

body {
    background-color: var(--surface-color);
    color: var(--on-suface-color);
    font-family: OpenSans, sans-serif;
}

#header-container {
    height: 100vh;
    position: relative;
    min-height: 400px;
}

#header-bg {
    width: 23%;
    height: 100%;
    position: absolute;
}

#header-container #content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
}

#header-container #profile {
    margin: 40px;
    border-radius: 30px;
    width: 33.333%;
    background-color: var(--surface-color);
    object-fit: cover;
    box-shadow: 0 0 7px rgb(0 0 0 / 90%);
    flex-shrink: 0;
}

h1 {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 51px;
    line-height: 62px;
    padding-left: 70px;
    position: relative;
    margin: 0;
}

h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 29px;
    height: 4px;
    width: 40px;
    border-radius: 10px;
    background-color: var(--primary-color);
}

h1 span {
    color: var(--primary-color);
}

#summary-container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px
}

#summary {
    max-width: 600px;
}

#summary p {
    font-size: 16px;
    line-height: 35px;
    font-weight: 500;
    margin-bottom: 40px;
}

.button {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #ffffff;
    font-size: 15px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    padding: 16px 35px;
    padding-right: 65px;
    border-radius: 50px;
    position: relative;
    transition: background-color 150ms;
    background-color: transparent;
    cursor: pointer;
}

.button:hover {
    background-color: var(--primary-color);
}

.button:active {
    background-color: transparent;
}

.button svg {
    position: absolute;
    bottom: 15px;
    right: 18px;
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.button span {
    position: absolute;
    right: -1px;
    bottom: -1px;
    display: inline-flex;
    height: 55px;
    width: 55px;
    border-radius: 100px;
}

.button:disabled {
    color: gray;
    border: 1px solid gray;
}

.button:disabled svg {
    fill: gray;
}

.button:disabled:hover {
    background-color: transparent;
}

main, footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

main #title, footer h2 {
    margin: 80px 0;
    text-align: center;
    font-size: 56px;
    font-family: Poppins, sans-serif;
    font-weight: 900;
}

main #title span, footer h2 span {
    color: var(--primary-color);
}

#personal-info {
    display: flex;
    width: 100%;
}

#pi-container {
    width: 100%;
}

#pi-container .title, #info h4 {
    font-family: Poppins, sans-serif;
    font-size: 26px;
    margin: 0;
    font-weight: 600;
    margin-bottom: 20px;
}

#pi-container ul {
    font-family: OpenSans, sans-serif;
    font-size: 15px;
    font-weight: 500;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#pi-container ul li {
    font-weight: 600;
    color: #cfcfcf;
    line-height: 24px;
}

#pi-container ul li ~ li {
    margin-top: 20px;
}

#pi-container ul li span {
    color: #ffffff;
    margin-left: 3px;
}

#pi-container #pi {
    display: flex;
    width: 100%;
}

#personal-info #stats {
    width: 100%;
    display: grid;
    gap: 30px;
    grid-template-columns: auto auto;
}

.stat-container {
    border: 1px solid #252525;
    padding: 20px 40px;
}

.stat-container .stat-value {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 50px;
    color: var(--primary-color);
    position: relative;
}

.stat-container .stat-value:after {
    content: "+";
    position: absolute;
    right: -24px;
    font-size: 33px;
    font-weight: 300;
    top: 2px;
}

.stat-container .stat-label {
    display: block;
    font-family: OpenSans, sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding-left: 45px;
    position: relative;
}

.stat-container .stat-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 30px;
    height: 1px;
    background: #777;
}

#skills-container {
    margin-top: 80px;
}

#skills-container .title {
    font-size: 26px;
    margin: 0;
    margin-bottom: 40px;
    font-family: Poppins, sans-serif;
    text-align: center;
    font-weight: 600;
}

.skill-progress {
    width: var(--progress-size);
    height: var(--progress-size);
    position: relative;
    --progress-size: 120px;
    --stroke-width: 9px;
}

.skill-progress svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.skill-progress circle:first-child {
    stroke: #252525;
    stroke-width: var(--stroke-width);
    fill: none;
}

.skill-progress circle:last-child {
    stroke-width: var(--stroke-width);
    stroke: var(--primary-color);
    fill: none;
    stroke-dasharray: 100;
}

.skill-progress .progress-value {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    display: block;
    width: 100%;
    top: 0;
    position: absolute;
    line-height: var(--progress-size);
}

.skill-label {
    font-size: 16px;
    font-family: OpenSans, sans-serif;
    line-height: 19px;
    text-align: center;
    font-weight: 500;
    display: block;
    margin-top: 24px;
}

.skill {
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skills-progress-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    row-gap: 60px;
}

.skill-category-title {
    margin: 0;
    font-family: 'OpenSans', sans-serif;
    font-size: 16px;
    color: #b5b5b5;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.skill-category-title span {
    flex-grow: 1;
    border: none;
    border-top: 1px dotted #787878;
    margin-left: 12px;
    flex-shrink: 1;
}

.skill-category ~ .skill-category {
    margin-top: 40px;
}

footer {
    margin-bottom: 80px;
}

#footer-content {
    display: flex;
    font-family: OpenSans, sans-serif;
    font-weight: 500;
}

#footer-content #info {
    width: 33.3%;
    font-size: 15px;
    flex-shrink: 0;
    padding: 0 15px;
}

#info p {
    margin: 0;
}

#footer-content form {
    flex-grow: 1;
    margin-left: 45px;
    position: relative;
}

input, textarea {
    border: 1px solid #111;
    width: 100%;
    background: #252525;
    color: #fff;
    padding: 11px 26px;
    border-radius: 30px;
    outline: none !important;
    font-size: 15px;
    font-family: Poppins, sans-serif;
    font-weight: 400;
}

input:focus, textarea:focus {
    border: 1px solid var(--primary-color);
}

form div:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

textarea {
    margin-top: 30px;
    resize: vertical;
}

form button {
    margin-top: 30px;
}

.info-icon svg {
    fill: var(--primary-color);
    width: 100%;
    height: 100%;
}

.info-icon {
    width: 45px;
    height: 45px;
}

.info-item {
    display: flex;
    line-height: 25px;
    margin-top: 35px;
}

.info-value {
    text-decoration: none;
    color: #ffffff;
}

.info-label {
    display: block;
    color: #cfcfcf;
}

.info-details {
    padding-left: 13px;
}

#success-message svg {
    fill: #2ea55a;
    width: 60px;
    height: 60px;
}

#success-message {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: OpenSans, sans-serif;
    font-weight: 500;
    flex-grow: 1;
    font-size: 22px;
    border: 1px solid #3a3a3a;
    border-radius: 30px;
}

@media screen and (max-width: 1200px) {
    h1 {
        padding-left: 0;
        font-size: 42px;
        line-height: 52px;
    }

    h1:before {
        display: none;
    }

    #pi-container ul li span {
        display: block;
        margin-left: 0;
    }
}

@media screen and (max-width: 1100px) {
    #summary-container {
        padding: 40px 45px
    }
}

@media screen and (max-width: 990px) {
    #footer-content {
        flex-direction: column;
    }

    #footer-content #info {
        width: 100%;
        padding: 0;
    }

    #info {
        margin-bottom: 40px;
    }

    #footer-content form {
        margin-left: 0;
    }

    #pi-container ul li span {
        display: inline;
        margin-left: 3px;
    }

    #pi-container ul:first-child {
        margin-right: 15px;
    }

    #pi-container ul:last-child {
        margin-left: 15px;
    }

    #stats {
        margin-top: 40px;
    }

    #personal-info {
        flex-direction: column;
    }

    #header-bg {
        display: none;
    }

    #header-container #content {
        flex-direction: column;
    }

    #header-container #profile {
        border-radius: 500%;
        height: 270px;
        width: 270px;
        border: 4px solid #252525;
        background-color: var(--surface-color);
        object-fit: cover;
        flex-shrink: 0;
        margin: 0;
        margin-top: 105px;
        box-shadow: 0 0;
    }

    #header-container #content {
        align-items: center;
    }

    #header-container {
        height: auto;
    }

    h1 {
        font-size: 38px;
        line-height: 48px;
        text-align: center;
        margin-top: 40px;
    }

    #summary p {
        line-height: 30px;
        text-align: center;
    }

    #summary-container {
        padding-top: 0;
    }

    #summary .button {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }
}

@media screen and (max-width: 760px) {
    #summary p {
        line-height: 28px;
        font-size: 14px;
    }

    .skills-progress-container {
        grid-template-columns: 1fr 1fr;
    }

    form div:first-child {
        display: block;
    }

    form div input:last-child {
        margin-top: 30px;
    }
}

@media screen and (max-width: 580px) {
    main, footer {
        padding: 0 15px;
    }

    main #title, footer h2 {
        font-size: 35px;
        line-height: 45px;
        text-align: left;
    }

    #header-container #profile {
        height: 230px;
        width: 230px;
        margin-top: 130px;
    }

    #pi-container ul li span {
        display: block;
        margin-left: 0;
    }

    #pi-container .title, #info h4 {
        font-size: 21px;
    }

    #skills-container .title {
        text-align: left;
        font-size: 21px;
    }

    #personal-info #stats {
        grid-template-columns: auto;
    }

    .stat-container {
        padding: 15px 25px;
    }

    h1 {
        font-size: 29px;
        line-height: 39px;
    }

    .skill-progress {
        --progress-size: 96px;
        --stroke-width: 9px;
    }

    .skill-progress .progress-value {
        font-size: 18px;
    }

    #success-message {
        font-size: 18px;
    }

    #success-message svg {
        width: 60px;
        height: 60px;
    }
}