@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,600;1,400&family=Mooli&display=swap');

:root {
    --header-height: 4rem;
    /* =======================================Colors========================*/
    /*====Color mode HSL(hue,saturation,lightness)*/
    --first-color: hsl(14, 98%, 50%);
    --black-color: hsl(0, 0%, 0%);
    --blacl-color-light: hsl(0, 0%, 40%);
    --white-color: hsl(0, 0%, 95%);
    --title-color: hsl(0, 0%, 0%);
    --text-color: hsl(0, 0%, 40%);
    --text-color-light: hsl(0, 0%, 64%);
    --body-color: hsl(0, 0%, 87%);
    --container-color: hsl(0, 0%, 73%);
    --about-color: #cdcccc;



    /*==========================Font and typography==================*/
    /*.5rem=8px 1rem=16px---------------------*/
    --body-font:
        "Bai Jamjuree", sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --smallest-font-size: .75rem;
    /*==========================font weight==========================*/
    --font-weight: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    /*===========================z index============================*/

    --z-tooltip: 10;
    --z-fixed: 100;
}

/*=========================Responsive typography================*/
@media screen and (min-width:1150px) {
    :root {
        --biggest-font-size: 4.5rem;
        --h1-font-size: 3rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }

}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: background-color .4s;
    /*=========================Dark mode======================*/
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-weight);
}

ul {
    list-style: none;
    display: inline-block;
    display: flex;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*=========================theme=====================================*/
.nav__btn {

    display: flex;
    flex-direction: column;
    align-items: center;
    column-gap: 3rem;
    margin-right: 3px;
    margin-left: auto;
}

.change_theme {
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .3s;
}

/*=================================================DARK VARIABLE THEMES========================*/
body.dark-theme {
    --first-color: hsl(14, 98%, 50%);
    --black-color: hsl(0, 0%, 18%);
    --blacl-color-light: hsl(0, 0%, 30%);
    --title-color: hsl(0, 0%, 95%);
    --text-color: hsl(0, 0%, 35%);
    --text-color-light: hsl(0, 0%, 70%);
    --body-color: hsl(0, 3%, 7%);
    --container-color: hsl(0, 1%, 23%);
    --about-color: hsl(0, 0%, 8%);
}

.dark-theme .shadow-header {
    box-shadow: 0 1px 2px hsl(0, 0%, 0%, .6);
}

.dark-theme .section-title-1 ::after,
.dark-theme .section-title-2::after {
    background-color: hsla(14, 62%, 52%, 0.2);
}

.dark-theme :is(.home__arrow, .home__line, .about__line) {
    filter: invert(1);
}

.dark-theme .home__description b {
    background: linear-gradient(90deg, hsla(14, 80%, 50%, .3), hsla(14, 80%, 50%, 0));
}

.dark-theme :is(.button__ghost, .services__icon i, .contact__title) {
    color: var(--white-color);
}

.dark-theme :is(.geometric-box, .home__shadow) {
    border: solid white;
}

.dark-theme .projects__card:hover {
    background-color: var(--white-color);
}

.dark-theme .projects__card:hover,
.projects__title {
    color: var(--text-color)
}

.dark-theme :is(.about__description, .about__list) {
    color: var(--text-color);
}

.dark-theme :is(.contact__mail, .contact__input, .contact__label) {
    background-color: var(--container-color);
}

.dark-theme .footer {
    background-color: hsl(0, 0%, 4%);
}

.dark-theme::-webkit-scrollbar {
    background-color: hsl(0, 0%, 20%);
}

.dark-theme::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 30%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
    background-color: hsl(0, 0%, 40%);
}

/*================================Resuable classes====================*/

.container {
    max-width: 1120px;
    /* margin-inline: 1.5rem; */
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 2rem 2rem;
}

.section-title-1,
.section-title-2 {
    position: relative;
    font-size: var(--h1-font-size);
    width: max-content;
    margin: .75rem auto 1.5rem;
}

.section-title-1,
.section-title-2 {
    z-index: 5;
    position: relative;
}

.section-title-1::after,
.section-title-2::after {
    content: "";
    width: 40px;
    height: 28px;
    background-color: hsl(14, 98%, 50%, .2);
    position: absolute;
    top: -4px;
    right: -8px;
}

.section-title-2::after {
    top: initial;
    bottom: -4px;
}

.geometric-box {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--first-color);
    rotate: -30deg;
}

.geometric-box::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--black-color);
    left: -5px;
    top: -5px;
}

.geometric-box1 {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--first-color);
    rotate: -30deg;
}

.geometric-box1::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--black-color);
    left: -5px;
    top: -5px;
}

/*============================================Header & menu==========================*/
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 3px;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shadow .4s, background-color .4s;

}

.nav__container {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 10px;
}

.nav__logo {
    display: flex;
    text-align: center;
    column-gap: .5rem;
    align-items: center;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.nav__logo-circle,
.nav__toggle {

    width: 32px;
    height: 32px;
    background-color: black;
    color: var(--white-color);
    display: grid;
    place-items: center;

}

.nav__logo-circle {
    font-size: 1.2rem;
    border-radius: 50%;
}

.nav__toggle {
    cursor: pointer;
}

@media screen and (max-width:1150px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        background-color: hsl(0, 0%, 0%, .75);
        width: 100%;
        padding-block: 1.8rem 5rem;
        text-align: center;
        backdrop-filter: blur(8px);
        transition: top .4s;

    }
}

.nav__title,
.nav__name,
.nav__close {
    color: var(--white-color);
}

.nav__title {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 3.5rem;
}

.nav__name {
    position: relative;
    width: max-content;
    margin: 0 auto 3rem;
    font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--text-color-light);
    position: absolute;
    top: 50%;
    left: -4rem;
}

.nav__name::before {
    left: initial;
    right: -4rem;
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

.nav__link {
    position: relative;
    color: var(--text-color-light);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    transition: color .3s;
}

.nav-link {
    color: #2c3e50;
    font-size: 1.1em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #18bc9c;
}

.active-nav-link {
    color: #18bc9c;
}

.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .3s;
}

.nav__link:hover {
    color: var(--white-color);
}

.nav__link:hover::after {
    width: 25%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5em;
    font-size: 1.5rem;
    cursor: pointer;
}

/*=======================show menu==================================*/
.show-menu {
    top: 0;
}

.shadow-header {
    box-shadow: 0 1px 16px hsl(0, 0%, 0%, .75);
}

/*======================active link===================================*/
.active-link {
    color: var(--white-color);
}

.active-link::after {
    width: 25%;
}

/*==================== HOME ====================*/
.home__contaniner {
    padding-top: 2rem;
    align-content: center;
}

.home__name {
    font-size: var(--biggest-font-size);
    text-align: center;
    margin-left: 15px;
    margin-right: 15px;
}

.home__perfil {
    position: relative;
    justify-self: center;
    margin-right: 5rem;
    margin-left: 5rem;

}

.home__image {
    width: 170px;
    height: 170px;
}

.home__img {
    position: relative;
    z-index: 10;
}

.home__shadow {
    width: 100%;
    height: 132%;
    background-color: var(--container-color);
    position: absolute;
    bottom: -4.9rem;
    right: -0.9rem;
    border: 4px solid var(--black-color);
    transition: background-color .4s;
}

.home__arrow {
    position: absolute;
    filter: invert(1);
    transition: filter .4s;
    left: 34%;
    bottom: -3rem;
    z-index:-1;
    height:60px;
    width:60px;
}
.home__line {
    position: absolute;
    filter: invert(1);
    transition: filter .4s;
    z-index:-1;
    width:60px;
}


.home__line {
    top: 35%;
    left: 83%;
    bottom: -5rem;
}

.geometric-box {
    top: 17%;
    right: 90%;
    position: absolute;
    z-index: 10;
    /* Set lower z-index than the arrow and line */
}

.home__social {
    height: max-content;
    position: absolute;
    left: -2.5rem;
    top: 5.0rem;
    bottom: 0;
    margin: auto 0;
    display: grid;
    row-gap: 1rem;
}

.home__Social-link {
    background-color: var(--blacl-color-light);
    color: var(--white-color);
    font-size: 0.8rem;
    padding: 6px;
    display: grid;
    place-items: center;
    transition: background-color .3s;
}

.home__Social-link:hover {
    background-color: var(--black-color);
}

.home__info {
    margin-top: 3rem;
    padding: 3rem 0 0 1rem;
}

.home__description {
    text-align: center;
    counter-reset: var(--title-color);
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
}

.home__description b {
    background: linear-gradient(95deg, hsla(14, 89%, 49%, .3), hsla(14, 89%, 50%, 0));
}

.home__Scroll {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home__scroll-box {
    background-color: var(--black-color);
    color: var(--white-color);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1rem;
    overflow: hidden;
    transition: background-color .4s;
}

.home__scroll-text {
    display: none;
}

.home__scroll-box i {
    animation: scroll-down 3s infinite;
}

@keyframes scroll-down {
    0% {
        transform: translateY(-1rem);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    0% {
        transform: translateY(.6rem);
        opacity: 0;
    }
}

/*==================== BUTTONS ====================*/
.button,
.button__ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .5rem;
}

.button {
    background-color: var(--black-color);
    padding: 1.1rem 1.5rem;
    color: white;
    font-weight: var(--font-medium);
    transition: background-color .4s;
}

.button i {
    font-size: 1.5rem;
}

.button:hover {
    background-color: var(--first-color);
}

.button__ghost {
    border: 3px solid black;
    color: var(--black-color);
    padding: .5rem;
    transition: border .4s, color .4s;
}

.button__ghost i {
    font-size: 1.25rem;
}

.button__ghost:hover {
    border: 3px solid var(--first-color);
}

/*==================== ABOUT ====================*/
.about__image {
    width: 220px;
    height: 210px;
    margin-left: -5rem;
}

.about__container {
    background-color: var(--about-color);
    transition: background-color .4s;
}

.about__perfill {
    position: relative;
    justify-self: center;
    margin-block: -0.5rem 11.9rem;
}

.about__img {
    position: relative;
    border: 4px solid var(--white-color);
    z-index: 1;
}

.about__shadow,
.about__line,
.about__box {
    position: absolute;
}

.about__shadow {
    width: 150px;
    height: 385px;
    background-color: var(--container-color);
    top: -2.5rem;
    right: -3.1rem;
    border-bottom: 4px solid var(--first-color);
    transition: background-color .4s;
}

.about__line {
    filter: invert(0);
    right: -2.25rem;
    top: 6rem;
    width: 60px;
    height: 90px;
    transition: filter .4s;
}

.about__perfill {
    top: 1.5rem;
    right: -2.2rem;
}

.geometric-box1 {
    top: 1.5rem;
    right: -1.9rem;
}

.about__box {
    width: 40px;
    height: 40px;
    background-color: var(--first-color);
    right: -0.9rem;
    bottom: -2.8rem;
}

.about__info {
    padding: 0 2rem 0 3rem;
}

.about__description {
    position: relative;
    color: var(--black-color);
    margin-bottom: 1.5rem;
}

.about__description::after {
    content: '';
    width: 20px;
    height: 1px;
    background-color: var(--black-color);
    position: absolute;
    left: -1.75rem;
    top: .5rem;
}

.about__list {
    list-style: square;
    color: var(--black-color);
    margin-bottom: 3rem;
}

.about__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
    margin-bottom: 2.5rem;
}

/*==================== SERVICES ====================*/
.services__cont{
justify-content: center;
row-gap: 1rem;
}
.services__container {
    grid-template-columns: 250px;
    justify-content: center;
    row-gap: 2rem;
    padding-top: 1rem;
}

.services__card {
    position: relative;
}

.services__content {
    height: 100%;
    background-color: var(--body-color);
    border: 4px solid var(--black-color);
    padding: 6rem 1rem 3rem;
    z-index: 5;
    position: relative;
    transition: background-color .4s, border .4s;
}

.services__border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--first-color);
    top: 0;
    left: 0;
    transition: transform .4s;
}

.services__card:hover .services__border {
    transform: translate(.75rem, .75rem);
}

.services__icon {
    position: relative;
    display: inline-block;
}

.services__icon i {
    font-size: 2rem;
    color: var(--black-color);
    position: relative;
    z-index: 5;
}

.services__box {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--first-color);
    right: -27px;
    top: -2px;
}

.services__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.25rem;
    margin-left: 2.3rem;
}

/* Active Modal */
/*==================== PORTFOLIO ====================*/
/*==================== PROJECT IN MIND ====================*/
.projects {
    background-color: var(--about-color);
    transition: background-color .4s;
    ;
}

.projects-container {
    row-gap: 2;
    background-color: var(--about-color);
    margin: 2rem 3rem;
}

.projects__card {
    padding: 1rem 1.5rem 2rem;
    transition: background-color .4s;
    background-color: var(--body-color);
    margin: 0.3rem 1.5rem;
}

.projects__images {
    position: relative;
    margin-bottom: .75rem;
}

.projects__content {
    margin-bottom: 1.25rem;
}

.projects__button {
    position: absolute;
    right: 0.1rem;
    padding: 1rem;
    bottom: -1.8rem;
}

.projects__subtitle {
    position: relative;
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    margin-bottom: .75rem;
    padding-left: 1.75rem;
}

.projects__subtitle::after {
    content: '';
    width: 20px;
    height: 1px;
    background-color: var(--text-color);
    position: absolute;
    top: 50%;
    left: 0;
}

.projects__buttons {
    display: flex;
    align-items: center;
    column-gap: 1.75rem;
}

.projects__title {
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
}

.projects__link {
    column-gap: .75rem;
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    transition: color .4s;
}

.projects__link i {
    font-size: 2rem;
    color: var(--title-color);
    transition: color .4s;
}

.projects__link:hover,
.projects__link:hover i {
    color: var(--first-color);
}

.projects__card:hover {
    background-color: white;
}

/*==================== CONTACT ME ====================*/
.contact {
    padding-bottom: 0;
}

.contact__container {
    position: relative;
    grid-template-rows: 300px max-content max-content;
    row-gap: 0;

}

.contact_data {
    position: relative;
    width: 280px;
    height: 300px;
    background-color: var(--container-color);
    padding: 3rem 1.5rem 3.5rem;
    margin-left: auto;
    margin-right: 2.5rem;
    border-bottom: 4px solid var(--first-color);
    z-index: 5;
    transition: background-color .4s;
}

.contact_data .section-title-1 {
    margin: 0 0 1.5rem;
    transform: translateX(-3rem);
}

.contact__description-1 {
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-bottom: 2rem;
}

.contact__description-2 {
    color: var(--title-color);
    font-size: 12px;
}

.contact_data .geometric-box {
    top: 2rem;
    right: 2.5rem;
}

.contact_data {
    top: -1rem;
    right: -2.5rem;
}

.contact__mail {
    position: relative;
    background-color: var(--black-color);
    padding: 5rem 1.5rem 2.5rem;
    margin-top: -2.5rem;
    transition: background-color .4s;
}

.contact__title {
    color: var(--black-color);
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
    text-align: center;
}

.contact_form,
.contact__group {
    display: grid;
    row-gap: 1.25rem;
}

.contact_form {
    position: relative;
}

.contact__box {
    position: relative;
    width: 100%;
    height: 58px;
}

.contact__input,
.contact__button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    outline: none;
    border: none;
}

.contact__input {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--black-color);
    border: 4px solid var(--white-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    font-weight: var(--font-medium);
    transition: border .4s, background-color .4s;
}

.contact__input::placeholder {
    color: var(--text-color-light);
    transition: opacity .4s;
}

.contact__input:focus {
    border: 3px solid var(--white-color);
}

.contact__input:-webkit-autofil {
    transition: background-color 2000s, color 2000s;
}

.contact__area:-webkit-autofil {
    transition: background-color 2000s, color 2000s;
}

.contact_label {
    position: absolute;
    top: 8px;
    left: 10px;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    background-color: var(--black-color);
    padding: 8px;
    pointer-events: none;
    transition: top .4s, opacity .4s, background-color .4s;
    opacity: 0;
}

.contact_form .contact__area {
    height: 10rem;
}

.contact__area textarea {
    height: 10rem;
    resize: none;
    padding-top: 1rem;
}

.contact__button {
    background-color: var(--first-color);
    cursor: pointer;
}

.contact__button:hover {
    background-color: var(--first-color);
    color: black;
}

.contact__input::placeholder {
    opacity: 1;
}

.contact__input:focus+.contact_label,
.contact__input:focus~.contact_label,
.contact__input:not(:placeholder-shown)+.contact_label,
.contact__input:not(:placeholder-shown)~.contact_label {
    opacity: 1;
    top: -20px;
    /* Adjust this value as needed */
}

.contact__input:focus::placeholder,
.contact__input:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

.contact-message {
    color: white;
    font-size: large;
}

.contact__social {
    display: grid;
    row-gap: 0.3rem;
    background-color: hsl(0, 0%, 10%);
    text-align: center;
}

.contact__social-arrow {
    width: 60px;
    margin: 1rem auto;
    filter: invert(1);
    transform: rotate(419deg);
    /* Change the rotation degree as needed */
}

.contact__social-data {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.contact__social-description-1 {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: 0.1rem;
}

.contact__social-description-2 {
    color: var(--white-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
}

.contact__social-links {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    /* Changed to row */
    align-items: center;
    justify-content: center;

}

.contact__Social-link {
    background-color: var(--blacl-color-light);
    display: grid;
    padding: 6px;
    color: var(--white-color);
    font-size: 1.25rem;
    place-items: center;
    transition: background-color .3s;
    margin-right: 0.75rem;
    /* Optional: Adjust margin between social links */
}

.contact__Social-link:last-child {
    margin-right: 0;
    /* Optional: Remove margin from the last social link */
}

.contact__Social-link:hover {
    background-color: var(--black-color);
}

/*==================== FOOTER ====================*/
.footer {
    background-color: var(--black-color);
    height: 130px;
}

.footer__container {
    gap: 1rem;
    padding: 1.6rem 3.5rem;

}

.footer__copy {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    text-align: center;
}

.footer__copy a {
    color: var(--white-color);
    font-weight: var(--font-medium);
}

.footer_link {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer_links {
    color: var(--white-color);
    transition: color .4s;
}

.footer_links:hover {
    color: var(--text-color-light);
}

/*========== SCROLL UP ==========*/
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(0, 0%, 65%);
}

::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: hsl(0, 0%, 55%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(0, 0%, 45%);
}

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--black-color);
    display: inline-flex;
    padding: 8px;
    font-size: 1.25rem;
    color: var(--white-color);
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s, background-color .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

/* Show scroll */
.show-scroll {
    bottom: 6rem;
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
/* For small devices */
@media screen and (max-width: 360px) {
    .nav__container {
        padding: 0 10px;
    }

    .nav__toggle,
    .nav__logo-circle {
        width: 28px;
        height: 28px;
    }

    .nav__name::before,
    .nav__name::after {
        width: 30px;
    }

    .nav__menu {
        padding: 1.5rem 2rem;
    }
    .home__contaniner {
        margin-inline: 1rem;
    }
    .home__line {
        width: 60px;
        height: 60px;
    }
    
     .home__arrow{
         width:50px;
         height:50px;
     }
    .home__image {
        width: 150px;
        height: 150px;
    }
    .home__social {
        left: -2.5rem;
        top: 5.5rem;
    }
    .home__scroll-box {
        width: 25px;
        height: 25px;
        font-size: .875rem;
    }

    .about__container {
        margin: 0 -13px;
    }

    .about__image {
        width: 180px;
        height: 170px;
        margin-left: -3rem;
    }

    .about__shadow {
        height: 330px;
    }

    .services__container {
        align-items: center;
        padding-left: 15px;
    }

    .projects__container {
        align-items: center;
        padding-left: 15px;
    }

    .projects__card {
        margin: 0.5rem 1rem;
    }

    .contact__container {
        margin: 0 -12px;
        padding-left: 12px;
    }
}

/* For medium devices */
@media screen and (min-width: 500px) and (max-width: 576px) {
    .nav__container {
        padding: 0 20px;
    }

    .nav__toggle,
    .nav__logo-circle {
        width: 32px;
        height: 32px;
    }

    .nav__name::before,
    .nav__name::after {
        width: 40px;
    }

    .nav__menu {
        padding: 1.8rem 3rem;
    }

    .home__line {
        width: 50px;
        height:80px;
    }

    .home__image {
        width: 170px;
        height: 170px;
    }

    .home__social {
        top: 5rem;
    }

    .home__scroll-box {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .about__image {
        width: 200px;
        height: 190px;
        margin-left: -4rem;
    }

    .home__contaniner,
    .about__container,
    .projects-container {
        grid-template-columns: 350px;
        justify-content: center;
    }

    .contact_data {
        width: 350px;
        padding: 4rem 1.5rem;
        margin-inline: 50px;

    }

    .contact__container {
        grid-template-columns: 500px;
        justify-content: center;
    }

    .contact__group {
        grid-template-columns: auto;
        column-gap: 1.5rem;
    }

    .contact__social {
        background-color: transparent;
    }

    .contact__social-arrow {
        filter: revert;
        width: 12%;
    }

    .contact__social-description-1 {
        color: var(--text-color);
    }

    .contact__social-description-2 {
        color: var(--title-color);
    }

    .dark-theme .contact__social-arrow {
        filter: invert(1);
    }
}


@media screen and (min-width: 576px) {

    .nav__container {
        padding: 0 20px;
    }

    .nav__toggle,
    .nav__logo-circle {
        width: 32px;
        height: 32px;
    }

    .nav__name::before,
    .nav__name::after {
        width: 40px;
    }

    .nav__menu {
        padding: 1.8rem 5rem;
    }

    .home__line {
        width: 50px;
        height: 70px;
    }

    .home__social {
        top: 5rem;
    }

    .home__scroll-box {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .about__image {
        width: 220px;
        height: 210px;
        margin-left: -5rem;
    }

    .projects-container {
        grid-template-columns: 350px;
        justify-content: center;
    }

    .home__contaniner,
    .about__container {
        grid-template-columns: 450px;
        justify-content: center;
    }

    .services__container {
        grid-template-columns: repeat(2, 250px);
    }

    .contact_data {
        width: 350px;
        padding: 4rem 1.5rem;
        margin-inline: auto;
    }
}

/* For large devices */
@media screen and (min-width: 770px) {

    .nav__container {
        padding: 0 20px;
    }

    .nav__toggle,
    .nav__logo-circle {
        width: 32px;
        height: 32px;
    }

    .nav__name::before,
    .nav__name::after {
        width: 40px;
    }

    .nav__menu {
        padding: 1.8rem 5rem;
    }

    .home__arrow,
    .home__line {
        width: 70px;
        height: 60px;
    }

    .home__image {
        width: 208px;
        height: 222px;
    }

    .home__social {
        top: 5.0rem;
    }

    .home__scroll-box {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .about__image {
        width: 220px;
        height: 210px;
        margin-left: -5rem;
    }

    .services__container {
        grid-template-columns: repeat(2, 250px);
    }

    .projects__container {
        grid-template-columns: repeat(2, 350px);
        justify-content: center;
    }

    .contact_data {
        width: 350px;
        padding: 4rem 1.5rem;
        margin-inline: auto;
    }
}

@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }
    .section {
        padding: 6rem 2rem;
    }
    .section-title-1::after,
    .section-title-2::after {
        width: 70px;
        height: 48px;
    }

    .geometric-box {
        transform: scale(1.2);
    }

    .nav__container {
        height: calc(3.5rem + 2rem);
        column-gap: 4rem;
    }

    .nav__close,
    .nav__toggle,
    .nav__title,
    .nav__name {
        display: none;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 4rem;
        margin-bottom: -10px;
    }

    .nav__menu {
        margin-left: auto;
    }

    .nav__link {
        color: var(--text-color);
        font-size: var(--font-medium);
    }

    .nav__link:hover {
        color: var(--black-color);
    }

    .nav__link::after {
        background-color: var(--title-color);
    }

    .active-link {
        color: var(--title-color);
    }

    .nav__link-button {
        background-color: var(--black-color);
        color: var(--white-color);
        padding: 1.0rem 1.1rem;
        margin-bottom: 10px;
    }

    .nav__link-button:hover {
        color: var(--white-color);
    }

    .nav__link-button::after {
        background-color: transparent;
    }

    .change_theme {
        color: var(--text-color);
    }

    .change_theme:hover {
        color: var(--title-color);
    }

    .home__contaniner {
        grid-template-columns: repeat(2, 460px);
        gap: 2rem 4rem;
        align-items: center;
        padding-block: 4.9rem;
    }

    .home__perfil {
        grid-column: 2/3;
        grid-row: 1/3;
    }

    .home__image {
        width: 300px;
    }

    .home__shadow {
        height: 400px;
        top: 1.90em;
        right: -1.25rem;
        bottom: -1.05rem;
        border: 6px solid black;
    }

    .home__name,
    .home__description {
        text-align: initial;
    }

    .home__name {
        align-self: flex-end;
    }

    .home__info {
        margin-top: 0;
        padding-top: 20px;
        align-self: flex-start;
    }

    .home__description {
        padding-top: -90px;
        position: relative;
        font-size:var(--h2-font-size);
        margin-bottom: 5.5rem;
        padding-left: 3rem;
    }

    .home__description::after {
        content: '';
        width: 32px;
        height: 2px;
        background-color: var(--title-color);
        position: absolute;
        left: 0;
        top: 14px;
    }

    .home__Scroll {
        margin-left: -330px;
        display: flex;
        flex-direction: row;
        align-items: start;
        column-gap: .75rem;
    }

    .home__scroll-text {
        margin-top: 10px;
        display: block;
        color: var(--text-color);
        font-size: var(--smallest-font-size);
        font-weight: var(--font-medium);
    }

    .home__scroll-box {
        width: 44px;
        height: 44px;
    }

    .home__scroll-box i {
        font-size: 1.25rem;
    }

    .home__perfil {
        top: -6rem;
        left: -3rem;
    }

    .geometric-box {
        top: 10rem;
    }

    .home__arrow {
        top: 1.6rem;
        left: -9rem;
        rotate: 95deg;
        width: 80px;
    }

    .home__line {
        left: -15rem;
        top: 15rem;
        width: 80px;
        rotate: 30deg;
    }

    .home__social {
        left: initial;
        right: -5rem;
        top: 13rem;
    }

    .home__Social-link {
        font-size: 1.5rem;
        padding: .5rem;
    }

    .about__container {
        grid-template-columns: 440px 525px;
        gap: 1rem 9rem;
        align-items: center;
        padding-block: 1rem;
    }

    .about__perfill {
        order: -1;
        grid-row: 1/3;
    }

    .about__image {
        width: 300px;
    }

    .about__img {
        border: 8px solid var(--white-color);
    }

    .about__shadow {
        width: 240px;
        height: 446px;
        top: -2rem;
        right: -5.5rem;
        border-bottom: 6px solid var(--first-color);
    }

    .about__perfill .geometric-box {
        right: -4rem;
        top: 4.5rem;
    }

    .about__line {
        width: 80px;
        right: -2rem;
        top: 7rem;
        filter: invert(1);
    }

    .about__box {
        width: 64px;
        height: 64px;
        right: -.75rem;
        top: 18rem;
    }

    .about__container .section-title-1 {
        align-self: flex-end;
        margin-inline: 0;
    }

    .about__info {
        align-self: flex-start;
        padding-left: 3rem;
    }

    .about__description {
        font-size: var(--h2-font-size);
        margin-bottom: 2rem;
    }

    .about__description::after {
        width: 32px;
        height: 2px;
        left: -3rem;
        top: 14px;
    }

    .about__list {
        margin-bottom: 5rem;
    }

    .about__buttons {
        justify-content: initial;
    }

    .button__ghost {
        padding: .75rem;
    }

    .button__ghost i {
        font-size: 1.5rem;
    }

    .services__container {
        grid-template-columns: repeat(3, 282px);
        column-gap: 5rem;
     padding-block: 2rem 5rem;

    }


    .services__content {
        padding: 6.5rem 1.5rem 3.5rem;
        border: 6px solid var(--black-color);
    }

    .services__icon i {
        font-size: 3rem;
    }

    .services__box {
        width: 32px;
        height: 32px;
    }

    .services__title {
        margin-bottom: 1.5rem;
    }

    .services__card:hover .services__border {
        transform: translate(1.25rem, 1.25rem);
    }

    .projects__container {
        grid-template-columns: repeat(3, 400px);
        padding-block: 3rem 1rem;
    }

    .projects__card {
        padding: 1.25rem 1.25rem 2.5rem;
    }

    .projects__images {
        margin-bottom: 1rem;
    }

    .projects__content {
        margin-bottom: 2rem;
    }

    .projects__button {
        right: 1.25rem;
    }

    .projects__link {
        margin-top: -1rem;
    }
    .contact__container {
        grid-template-columns: 440px 670px;
        grid-template-rows: initial;
     
    }
    .contact__title {
        color: var(--text-color);
        text-align: center;
    }
    .contact__mail {
        grid-column: 2/3;
        grid-row: 1/3;
        padding:5rem 5.5rem 2rem 7.5rem;
        margin-top:0;
    }
    .contact__title {
        font-size: var(--h3-font-size);
        text-align: initial;
    }
    .contact__box {
        height: 60px;
    }
    .contact_form .contact__area {
        height: 11rem;
    }
    .contact__button {
        margin-top: 1.25rem;
        width: max-content;
        margin-left:120px;
    }
    .contact__social-description-1 ,.contact__social-description-2{
        color: var(--text-color);
    }
    .contact_data {
        width: 392px;
        height: 375px;
        padding: 4.5rem 3.5rem 3.5rem;
        margin: 7.5rem 0 0 8rem;
        border-bottom: 6px solid;
    }
    .contact_data .section-title-1 {
        margin: 0 0 2rem;
        transform: translate(-6.5rem);
    }
    .contact__social {
        background-color: transparent;
        margin-top: -30px;
        margin-left:10rem;
        text-align: initial;
    }
    .contact__social-data {
        margin-left:10px;
        align-items: center;
    }
    .contact__social-arrow {
        width: 50px;
        filter:invert(1);
        transform: rotate(45deg);
    }
    .contact__social-links {
        font-size: 1.5rem;
       margin-left:-50px;
    }
   
    .contact-message {
        bottom: -2.5rem;
    }
    .dark-theme .contact_data {
        box-shadow: 4px 0 8px hsl(0, 0%, 4%, .3);
    }
    .footer__container{
        padding-block: 4rem;
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }
    .footer_links{
        column-gap: 3rem;
        order: 1;
    }
    .scrollup{
        right: 3rem;   
    }
}

/*======================large devices============================*/