/*================ GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;600&display=swap');

/*================ VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    --first-color: hsla(203, 79%, 48%, 0.866);
    --first-color-dark: hsl(167, 77%, 51%);
    --first-color-light: hsla(203, 79%, 48%, 0.866);
    --title-color: hsl(0, 0%, 100%);
    --text-color: hsl(0, 0%, 69%);
    --body-color: hsl(200, 12%, 5%);
    --container-color: hsl(200, 10%, 8%);
    --border-color: hsl(0, 0%, 20%);
    --box-color:hsl(242, 14%, 10%);
    --white: #fff;

    /*========== Font and Typography ==========*/
    --body-font: "Jost", sans-serif;
    --big-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --larger-font-size: 1.2rem;
    --large-font-size: 1.125rem;

    /*========== Font Weight ==========*/
    --weight-300: 300;
    --weight-400: 400;
    --weight-600: 600;
}

/*=============== DARK THEME ===============*/
#day-night:checked ~ * {
    --title-color: hsl(247, 27%, 31%);
    --text-color: hsl(0, 0%, 41%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(266, 78%, 98%);
    --border-color: hsl(0, 0%, 87%);
}

/*=============== BASE ===============*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

input,
textarea,
button,
body {
    font-family: var(--body-font);
    font-size: var(--larger-font-size);
}

main {
    background-color: var(--body-color);
    color: var(--text-color);
}

input,
textarea,
button {
    outline: none;
    border: none;
    background-color: transparent;
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--weight-600);
}

u1 {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/*====================== REUSABLE CSS CLASSES ===========================*/
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 6rem;
}

.section__title {
    font-size: var(--h1-font-size);
    font-weight: var(--weight-400);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section__title::before {
    content: attr(data-title);
    display: block;
    color: var(--first-color);
    font-size: var(--large-font-size);
    font-weight: var(--weight-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.title-center {
    text-align: center;
    margin-bottom: 3rem;
}


/*==================== STYLE SWITCHER ====================*/
input[type='radio'],
input[type='checkbox'] {
    display: none;
}
.style__switcher {
    position: fixed;
    right: 0;
    bottom: 20%;
    padding: 1rem;
    width: 220px;
    border: 1px solid var(--border-color);
    background-color: var(--container-color);
    border-radius: 0.5rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

#toggler:checked ~ .style__switcher {
    transform: translateX(0);
}

.style__switcher-toggler,
.style__switcher-theme {
    position: absolute;
    right: 110%;
    color: var(--title-color);
    background-color: var(--body-color);
    border: 1px solid var(--border-color);
    height: 48px;
    width: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.style__switcher-toggler {
    top: 7%;
}

.style__switcher-theme {
    bottom: 7%;
}

.style__switcher-theme .fa-moon {
    display: none;
}

#day-night:checked ~ * .fa-sun {
    display: none;
}

#day-night:checked ~ * .fa-moon {
    display: block;
}

.style__switcher-title {
    font-size: var(--large-font-size);
    margin-bottom: 0.75rem;
}

.style__switcher-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.style__switcher-colors .color {
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

.color-1 {
    background-color: hsl(252, 35%, 51%);
}

.color-2 {
    background-color: hsl(351, 85%, 51%);
}

.color-3 {
    background-color: hsl(271, 76%, 53%);
}

.color-4 {
    background-color: hsl(225, 73%, 57%);
}

.color-5 {
    background-color: hsl(43, 74%, 49%);
}

.color-6 {
    background-color: hsl(339, 81%, 66%);
}

.color-7 {
    background-color: hsl(80, 61%, 50%);
}

.color-8 {
    background-color: hsl(19, 96%, 52%);
}

.color-9 {
    background-color: hsl(88, 65%, 43%);
}

.color-10 {
    background-color: hsl(42, 100%, 50%);
}

#color-1:checked ~ * {
    --first-color: hsl(252, 35%, 51%);
    --first-color-dark: hsl(252, 25%, 51%);
    --first-color-light: hsl(252, 100%, 83%);
}

#color-2:checked ~ * {
    --first-color: hsl(351, 85%, 51%);
    --first-color-dark: hsl(351, 75%, 51%);
    --first-color-light: hsl(351, 100%, 83%);
}

#color-3:checked ~ * {
    --first-color: hsl(271, 76%, 53%);
    --first-color-dark: hsl(271, 60%, 53%);
    --first-color-light: hsl(271, 100%, 83%);
}

#color-4:checked ~ * {
    --first-color: hsl(225, 73%, 57%);
    --first-color-dark: hsl(225, 63%, 57%);
    --first-color-light: hsl(225, 100%, 83%);
}

#color-5:checked ~ * {
    --first-color: hsl(43, 74%, 49%);
    --first-color-dark: hsl(43, 64%, 49%);
    --first-color-light: hsl(43, 100%, 83%);
}

#color-6:checked ~ * {
    --first-color: hsl(339, 81%, 66%);
    --first-color-dark: hsl(339, 71%, 66%);
    --first-color-light: hsl(339, 100%, 83%);
}

#color-7:checked ~ * {
    --first-color: hsl(80, 61%, 50%);
    --first-color-dark: hsl(80, 51%, 50%);
    --first-color-light: hsl(80, 100%, 83%);
}

#color-8:checked ~ * {
    --first-color: hsl(19, 96%, 52%);
    --first-color-dark: hsl(19, 86%, 52%);
    --first-color-light: hsl(19, 100%, 83%);
}

#color-9:checked ~ * {
    --first-color: hsl(88, 65%, 43%);
    --first-color-dark: hsl(88, 55%, 43%);
    --first-color-light: hsl(88, 100%, 83%);
}

#color-10:checked ~ * {
    --first-color: hsl(42, 100%, 50%);
    --first-color-dark: hsl(42, 85%, 50%);
    --first-color-light: hsl(42, 100%, 83%);
}


/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    box-shadow: 0 3px 9px hsla(0, 0%, 0%, 0.05);
    z-index: 100;
}

.nav,
.nav__list {
    display: flex;
}

.nav {
    height: calc(var(--header-height) + 2.25rem);
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--first-color);
    font-size: var(--h2-font-size);
}

.nav__list {
    list-style: none;
    column-gap: 1.5rem;
}

.nav__link {
    color: var(--title-color);
    transition: all .3s ease;
}

.nav__toggle {
    display: none;
}

/* Active link */
.active-link,
.nav__link:hover {
    color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
    background-color: var(--container-color);
    padding-block: 9rem 3rem;
}

.home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.home__small {
    font-size: var(--large-font-size);
    font-weight: var(--weight-600);
    letter-spacing: 1px;
}

.home__title {
    font-size: var(--big-font-size);
    line-height: 1.4;
}

.home__title span {
    font-weight: var(--weight-300);
}

h1.my-profession {
    font-size: 30px;
    margin: 15px 0;
}

.typing {
    color: var(--first-color);
}

.home_description {
    margin-block: 1.5rem 3rem;
}

.home__btns {
    display: flex;
    column-gap: 1rem;
}

.home__img-wrapper {
    margin-inline: auto 2rem;
    position: relative;
}

.home__img-wrapper::before,
.home__img-wrapper::after{
    content: '';
    position: absolute;
    inset: 0;
} 

.home__img-wrapper::before {
    background-color: var(--first-color-light);
    animation: animate__before 8s ease-in-out infinite;
}

.home__img-wrapper::after {
    background-color: var(--first-color);
}

.home__img-wrapper::after,
.home__img {
    animation: animate__after 8s ease-in-out infinite;
}

.home__img {
    z-index: 10;
    height: 400px;
    width: 300px;
    position: relative;
    vertical-align: middle;
}

/* Home Animation */
@keyframes animate__before {
    0% {
        border-radius: 65% 35% 29% 71% / 55% 30% 70% 45% ;
    }

    50% {
        border-radius: 21% 79% 50% 50% / 21% 50% 50% 79% ;
    }

    100% {
        border-radius: 65% 35% 29% 71% / 55% 30% 70% 45% ;
    }
}

@keyframes animate__after {
    0% {
        border-radius: 21% 79% 50% 50% / 21% 50% 50% 79% ;
    }

    50% {
        border-radius: 65% 35% 29% 71% / 55% 30% 70% 45% ;
    }

    100% {
        border-radius: 21% 79% 50% 50% / 21% 50% 50% 79% ;
    }
}

/*===================== BUTTON =======================*/
.btn {
    display: inline-block;
    background-color: var(--first-color);
    border: 1px solid var(--first-color);
    color: var(--white);
    padding: 0.9rem 2.5rem;
    font-size: var(--large-font-size);
    border-radius: 0.5rem;
    transition: all 0.5s ease;
}

.btn--transparent {
    background-color: transparent;
    color: var(--first-color);
}

/* Button hover */
.btn:hover {
    background-color: var(--first-color-dark);
}

.btn--transparent:hover {
    background-color: var(--first-color);
    color: var(--white);
}

/*================================== ABOUT ======================================*/
.about__container {
    grid-template-columns: 4fr 8fr;
    align-items: center;
}

.about__img-wrapper {
    position: relative;
    height: 400px;
    margin-left: 100px;
}

.about__img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    transition: all .3s ease;
    width: 200px;
}

.about__img:nth-child(1) {
    clip-path: polygon(0 0, 0 32%, 28% 0);
    transform: translateY(-1.25rem);
}

.about__img:nth-child(2) {
    clip-path: polygon(28% 0, 0 32%, 0 100%, 17% 100%, 90% 0);
    transform: translateY(-0.75rem);
}

.about__img:nth-child(3) {
    clip-path: polygon(100% 0, 100% 65%, 74% 100%, 17% 100%, 90% 0);
    transform: translateY(-0.25rem);
}

.about__img:nth-child(4) {
    clip-path: polygon(100% 65%, 74% 100%, 100% 100%);
    transform: translateY(0.25rem);
}

/* About img hover */
.about__img-wrapper:hover .about__img {
    transform: translateY(0);
}

.about__description {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.about__data {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    margin-bottom: 3rem;
    list-style: none;
}

.data__item {
    display: flex;
    column-gap: 0.75 rem;
}

.data__title {
    font-size: var(--larger-font-size);
}

.about__link {
    color: hsl(225, 73%, 57%);
}

.about__bottom,
.about__social-links {
    display: flex;
    align-items: center;
}

.about__bottom {
    column-gap: 3rem;
}

.about__social-links {
    column-gap: 1.25rem;
}

.about__social-links::before {
    content: '';
    background-color: var(--text-color);
    width: 60px;
    height: 2px;
}

.about__social-link {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.about__social-link:hover {
    color: var(--first-color);
}

/*============================ QUALIFICATION ============================*/
.qualification {
    background-color: var(--container-color);
}

.resume__container {
    grid-template-columns: repeat(1, 1fr);
}

.resume__heading {
    text-align: center;
    font-size: var(--h3-font-size);
    padding-bottom: 2rem;
}

.resume__item,
.resume__heading {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.resume__item:not(:first-child) {
    border-right: 2px solid var(--border-color);
}

.resume__item {
    position: relative;
}

.resume__header {
    padding: 2rem 1.5rem;
}

.resume__subtitle {
    font-size: var(--larger-font-size);
    cursor: pointer;
}

.resume__icon {
    background-color: var(--container-color);
    border: 2px solid var(--border-color);
    font-size: var(--h2-font-size);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    line-height: 1.1em;
    text-align: center;
    cursor: pointer;
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    z-index: 10;
}

.resume__content {
    padding-inline: 1.5rem 3rem;
}

.resume__date-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resume__title {
    font-size: var(--h3-font-size);
}

.resume__date {
    color: var(--title-color);
    font-size: var(--large-font-size);
}

.resume__grade {
    font-size: var(--large-font-size);
}

.resume__description {
    margin-block: 1.25rem 2rem;
}

/*===================== SERVICES =======================*/
.services__container {
    grid-template-columns: repeat(3, 1fr);
}

.services__item {
    background-color: var(--container-color);
    border: 1px solid var(--container-color);
    padding: 2.5rem 1.8rem;
    border-radius: 0.5rem;
    position: relative;
    transition: all .5s ease;
}


/* Service hover */
.services__item:hover {
    background-color: var(--body-color);
    border-color: var(--border-color);
}

.services__icon {
    color: var(--first-color);
    font-size: 1.8rem;
}

.services__title {
    font-size: var(--h3-font-size);
    margin-block: 1.5rem 1rem;
}

.services__no {
    position: absolute;
    right: 2.5rem;
    top: 1rem;
    color: var(--title-color);
    font-size: 3.75rem;
    opacity: 0.07;
}


/*===================== SKILLS =======================*/
.skills__container {
    grid-template-columns: 360px 320px;
    column-gap: 3rem;
    justify-content: center;
}

.skills__header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.skills__header:not(:last-child) {
    margin-bottom: 2.5rem;
}


.skills__arrow {
    font-size: 2rem;
    color: var(--first-color);
}

.skill__icon {
    margin-bottom: .2rem;
    width: 2rem;
    height: 2rem;
    margin-left: 0.5rem;
    margin-right: 0.75rem;
    filter: brightness(1.5);
    opacity: 1;
}

.skills__title {
    font-size: var(--h3-font-size);
    font-weight: 500;
    margin-bottom: .2rem;
}

.skills__subtitle {
    font-size: .813rem;
}

.skills__arrow {
    margin-left: auto;
}

.skills__active .skills__arrow {
    transform: rotate(-90deg);
    transition: transform 0.3s;
} 

.skills [data-content] {
    display: none;
}

.skills__active[data-content] {
    display: block;
}

.skills__list {
    row-gap: 1.8rem;
}

.skills__group {
    margin-bottom: 1.8rem;
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-direction: column;
}

.skills__name {
    display: flex;
    flex-direction: row;
    width: 300px;
    font-size: 1rem;
    font-weight: 500;
}

.skills-icon {
    display: inline-block;
    margin-bottom: .5rem;
    margin-left: .5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.skills__number {
    margin-left: auto;
    margin-bottom: .5rem;
    font-size: 1rem;
}

.skills__bar{
    height: 5px;
    border-radius: .25rem;
}

.skills__bar {
    width: 100%;
    background-color: hsl(242, 14%, 10%);
    margin-top: 0.5rem;
}

.skills__percentage {
    display: block;
    background-color: var(--first-color);
    width: 85px;
    height: 5px;
}


/*======================== PORTFOLIO ======================*/
.work__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    justify-content: center;
    padding-top: 1rem;
}

.work__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.75rem;
    margin-bottom: 2rem;
}

.work__item {
    cursor: pointer;
    color: var(--title-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.work__card {
    background-color: var(--container-color);
    padding: 1.25rem;
    border-radius: 0.5rem;
}

.portfolio__item-details {
    display: none;
}

.work__img {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.work__title {
    font-size: var(--weight-400);
    font-weight: var(--weight-600);
    margin-bottom: 0.5rem;
}

.work__button {
    color: var(--first-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    column-gap: .25rem;
    cursor: pointer;
}

.work__button-icon {
    font-size: 1rem;
    transition: .3s;
}

.work__button:hover .work__button-icon{
    transform: translateX(.25rem);
}

li {
    list-style: none;
}


/* Active Item Work  */
.active-work {
    background-color: var(--first-color);
    color: var(--title-color);
}

/* Portfolio Popup  */
.portfolio__popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.portfolio__popup.open {
    opacity: 1;
    visibility: visible;
}

.portfolio__popup-inner {
    background-color: hsl(242, 14%, 10%);
    width: 900px;
    border-radius: .5rem;
    padding: 2.5rem;
    position: relative;
}

.portfolio__popup-content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 3rem;
}

.portfolio__popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

.portfolio__popup-img {
    border-radius: .5rem;
}

.portfolio__popup-subtitle {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.details__title {
    font-size: var(--h3-font-size);
    font-weight: 500;
    margin-bottom: 1rem;
}

.details__description {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.details__info li {
    margin-bottom: 0.75rem;
    text-transform: capitalize;
    font-size: 1rem;
}

.details__info li:last-child {
    margin-bottom: 0;
}

.details__info li span {
    font-weight: normal;
}

.details__info li a {
    text-transform: lowercase;
    color: var(--first-color);
}


/*========================= CONTACT ===========================*/
.contact__container {
    grid-template-columns: 5fr 7fr;
    column-gap: 3rem;
    justify-content: center;
    align-items: center;
}

.contact__info {
    display: grid;
    row-gap: 1rem;
}

.contact__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: .5rem;
    text-align: center;
}

.contact__card-icon {
    font-size: 1.8rem;
    color: var(--first-color);
    margin-bottom: 0.25rem;
}

.contact__card-title,
.conatct__card-data {
    font-size: 1rem;
}

.contact__card-title {
    font-weight: var(--weight-600);
}

.contact__card-data {
    display: block;
    margin-bottom: .75rem;
}

.contact__button {
    color: var(--first-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
    cursor: pointer;
}

.contact__button-icon {
    font-size: 1rem;
    transition: .3s;
}

.contact__button:hover .contact__button-icon {
    transform: translateX(.25rem);
}

.input__container {
    position: relative;
    margin-top: .1rem;
    margin-bottom: 1.9rem;
}

.input {
    width: 100%;
    border: 2px solid var(--text-color);
    background-color: transparent;
    padding: .6rem 1.2rem;
    color: var(--title-color);
    font-weight: 500;
    font-size: medium;
    letter-spacing: .5px;
    outline: none;
    border-radius: .50rem;
    transition: .3s;
}

textarea.input {
    padding: .8rem 1.2rem;
    min-height: 140px;
    border-radius: .50rem;
    resize: none;
}

.input__container label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    padding: 0 .4rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1000;
    transition: .5s;
}

.input__container.textarea label {
    top: 1rem;
    transform: translateY(0);
}

.input__container span {
    position: absolute;
    top: 0;
    left: 25px;
    color: transparent;
    transform: translateY(-50%);
    font-size: 1rem;
    padding: 0 .4rem;
    pointer-events: none;
    z-index: 500;
}

.input__container span::before,
.input__container span::after {
    content: '';
    position: absolute;
    width: 10%;
    height: 5px;
    opacity: 0;
    background-color: var(--body-color);
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
}

.input__container span::before {
    left: 50%;
}

.input__container span::after {
    right: 50%;
}

.input__container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 1rem;
}

.input__container.focus span::before ,
.input__container.focus span::after {
    width: 50%;
    opacity: 1;
}

.button {
    color: var(--white);
    padding: 1rem;
    border-radius: .5rem;
    cursor: pointer;
    background-color: var(--first-color);
}


/*======================== FOOTER =============================*/
.footer {
    background-color: var(--container-color);
    padding-block: 3rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    color: var(--text-color);
}

.footer__social-links {
    display: flex;
    column-gap: 1.25rem;
}

.footer__social-link {
    color: var(--text-color);
    font-size: var(--large-font-size);
}

/*========================= BREAKPOINTS ======================== */
/* For large devices */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    :root {
    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --larger-font-size: 1rem;
    --large-font-size: .938rem;
    }

    .home__img {
        width: 270px;
    }

    .about__img-wrapper {
        height: 320px;
    }

    .resume__icon {
        line-height: 1.4rem;
    }

    .service__icon {
        font-size: 1.5rem;
    }

    .service__no {
        font-size: 2.5rem;
    }

    .service__title {
        margin-block: 1.25rem .75rem;
    }

    .style__switcher {
        width: 200px;
    }

    .style__switcher-colors color {
        width: 24px;
        height: 24px;
    }

    .style__switcher-toggler,
    .style__switcher-theme {
        width: 40px;
        height: 40px;
    }

    .style__switcher-toggler {
        top: 10%;
    }

    .style__switcher-theme {
        bottom: 10%;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .home__container,
    .about__container,
    .resume__container,
    .contact__container {
        grid-template-columns: 1fr;
    }

    .home__content {
        order: 1;
    }

    .home__img-wrapper {
        margin-inline: auto;
    }

    .about__container,
    .contact__container {
        row-gap: 2rem;
    }

    .about__img:not(:first-child) {
        display: none;
    }

    .about__img:first-child {
        margin-left: -10%;
        width: 170px;
        clip-path: initial;
        transform: initial;
        left: 50%;
        translate: -50%;
    }

    .services__container,
    .skills__container,
    .work__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .resume__container {
        row-gap: 2.5rem;
    }
    
    .resume__icon {
        line-height: 2.5rem;
    }

    .work__card {
        padding: 1rem;
    }

    .work__img {
        margin-bottom: .75rem;
    }

    .work__title {
        margin-bottom: .25rem;
    }

    .portfolio__item-details {
        margin-bottom: 1.5rem;
    }

    .details__info li {
        margin-bottom: 0.5rem;
    }

    .details__title {
        margin-bottom: 0.75rem;
    }

    .contact__container {
        grid-template-columns: 340px 300px;
    }
}

/* For medium devices */
@media screen and (max-width: 768px) {
    .container {
        max-width: 560px;
    }

    .nav {
        height: calc(var(--header-height) + 1rem);
    }

    .nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        flex-direction: column;
        align-items: center;
        row-gap: 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: all .3s ease;
    }

    .nav__toggle {
        display: block;
        color: var(--text-color);
        font-size: 1.3rem;
    }

    #nav-toggler:checked ~ .nav__list {
        max-height: 500px;
        padding: 1.75rem;
    }

    .home__img{
        width: 250px;
    }

    .skills__container {
        grid-template-columns: 300px;
        row-gap: 3rem;
    }

    .contact__container {
        grid-template-columns: 360px;
        row-gap: 3rem;
    }

    .portfolio__popup-inner {
        width: 420px;
        padding: 2.8rem 1.5rem 2.5rem;
    }

    .portfolio__popup-content {
        grid-template-columns: 1fr;
        row-gap: 1.6rem;
    }

    .details__title {
        font-size: var(--large-font-size);
    }

    .portfolio__popup-close {
        top: .5rem;
    }
}

/* For small devices */
@media screen and (max-width: 576px) {
    .home {
        padding-top: 7rem;
    }

    .section {
        padding-block: 4rem;
    }

    .resume__icon {
        display: none;
    }

    .services__container,
    .skills__container,
    .work__container,
    .form__group {
        grid-template-columns: 1fr;
    }

    .about__img:first-child {
        margin-left: -20%;
    }

    .footer__container {
        flex-direction: column;
        row-gap: 1rem;
    }
}

@media screen and (max-width: 450px) {

    .home__img {
        height: 350px;
    }


    .about__data {
        grid-template-columns: 1fr;
    }

    .about__bottom,
    .resume__date-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .about__bottom {
        row-gap: 1.25rem;
    }

    .about__bottom .btn {
        order: 1;
    }

    .resume__date-title {
        row-gap: .25rem;
    }

    .resume__header,
    .skills__titles,
    .skills__description {
        padding-inline: 1rem;
    }

    .resume__content {
        padding-inline: 1rem 1.5rem;
    }

    .services__item {
        padding: 2rem 1.5rem;
    }
}

#msg {
    color: #61b752;
    margin-top: 10px;
    display: block;
}