@media (max-width: 1610px) {
  :root {
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.7rem;
    --h3-font-size: 2.1rem;
    --h4-font-size: 0.9rem;
    /* --p-font-size: 0.7rem; */
  }
  #portfolio .projects,
  #other-portfolio .projects {
    pointer-events: none;
    margin-top: 2rem;
  }
  #portfolio .projects .box,
  #other-portfolio .projects .box {
    width: 40%;
    margin: 3%;
    /* padding: 1.5%; */
    border-radius: 10px;
    pointer-events: auto;
    /* box-shadow: none; */
    /* box-shadow: 3px 3px 10px #63636328; */
    background-color: var(--default-light-color);
    /* background-color: transparent; */
  }
  /* .box:hover {
        padding: 1.5%;
    } */

  .box-img {
    /* border-top-left-radius: 5px;
        border-top-right-radius: 5px; */
    border-radius: 0;
    /* box-shadow: 0 1px 1px #00000029; */
    /* border-bottom: 1px solid var(--default-dark-color); */
  }
  .project-text-content {
    padding: 5%;
    padding-top: 1.5rem;
  }

  .box:hover,
  .box:active {
    transform: scale(1.03);
  }
  .projects:hover > :not(:hover),
  .projects:active > :not(:active) {
    margin-inline: 2.8rem;
    transform: none;
  }

  .box:hover ~ .box,
  .box:active ~ .box {
    transform: none;
  }
  .project-options {
    /* margin-top: auto; */
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    /* flex-wrap: wrap; */
    /* gap: 0.6rem; */
  }
  /* .project-options .live-demo {
        order: -1;
    } */
  .project-options > .source-code {
    order: 1;
    border-radius: 0;
    margin: 0;
    border-radius: 5px;
  }
}
@media (max-width: 1460px) {
  :root {
    --h1-font-size: 3.1rem;
    --h2-font-size: 2.3rem;
    --h3-font-size: 1.8rem;
    /* --h4-font-size: 1rem; */
    /* --p-font-size: 0.7rem; */
  }
  h1,
  h2,
  h3 {
    font-weight: 800;
  }
  .socials a {
    height: 2.75rem;
    width: 2.75rem;
  }
  .socials a i {
    font-size: 1.1rem;
  }
  .socials a::before,
  .socials a::after {
    padding: 2.7px;
  }
  .about-content {
    margin-left: 4rem;
    /* width: auto; */
    flex: 1;
  }
  #portfolio .projects .box,
  #other-portfolio .projects .box {
    flex-direction: row;
    width: 80%;
    /* height: 70%; */
    margin: 3%;
    background: transparent;
    /* box-shadow: none; */
    padding: 12px;
  }
  .box-img {
    width: 60%;
    border-radius: 10px;
    box-shadow: 3px 3px 15px var(--dark-shadow-color);
  }

  .project-text-content {
    padding: 1% 3%;
    /* padding-bottom: 1.5rem; */
    justify-content: center;
  }
  .project-options > .source-code {
    order: 1;
  }
}

@media (max-width: 1230px) {
  :root {
    /* --h1-font-size: 3.1rem; */
    /* --h2-font-size: 2.3rem; */
    /* --h3-font-size: 1.8rem; */
    /* --h4-font-size: 1rem; */
    /* --p-font-size: 0.9rem; */
    /* --min-about-text-height: 10vh;
    --max-about-text-height: 35vh; */
    --header-height: 3.4rem;
  }
  /* #body-container section {
        height: auto;
    } */

  .navbar a {
    margin: 0 0.8rem;
    font-size: 0.8rem;
  }
  .navbar .switch-mode {
    width: 33px;
    height: 11px;
  }
  .navbar .switch-mode i {
    width: 19px;
    height: 19px;
    font-size: 9px;
  }
  .img-container .hexagon .shape img {
    transform: translateY(50px) scale(0.9);
  }
  /* .box-content {
        margin: 7%;
    } */
  .about-content {
    width: auto;
    /* border: 2px solid blue; */
  }
  .more-about-me {
    font-size: 1rem;
    padding: 0.4rem 1.1rem;
  }
  .img-container .hexagon {
    width: 24vh;
    height: 35vh;
  }
  #portfolio .projects .box,
  #other-portfolio .projects .box {
    width: 90%;
    background: transparent;
  }
  .box-img {
    width: 50%;
  }
  .project-text-content {
    padding: 3% 3% 1% 3%;
    /* background-color: var(--default-light-color); */
  }
  .project-options a {
    font-size: 0.9rem;
    padding: 0.05rem 0.4rem 0.2rem 0;
  }
  .project-options > .source-code {
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 980px) {
  :root {
    --h1-font-size: 3rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.3rem;
    /* --h4-font-size: 0.8rem; */
    --p-font-size: 0.9rem;
    /* --min-about-text-height: 10.5vh;
    --max-about-text-height: 37vh; */
  }

  header {
    padding-right: 2%;
    /* gap: 2%; */
  }
  .logo-text a {
    font-size: 1.2rem;
  }

  .navbar a::after {
    display: none;
  }
  .navbar {
    position: fixed;
    margin-right: 0;
    width: clamp(200px, 50%, 350px);
    height: clamp(400px, 90vh, 700px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    top: 0;
    /* right: 0; */
    right: -500px;
    padding: 1.2rem 0 0.9rem 0.7rem;
    background: var(--nav-bg-color);
    border-left: 1px solid var(--second-font-color);
    border-bottom: 1px solid var(--second-font-color);
    border-radius: 0 0 0 30px;
    transition: right 0.5s ease-out;
    overflow: hidden;
    /* z-index: 1; */
    backdrop-filter: blur(15px);
  }
  .navbar a {
    /* font-size: 0.8rem; */
    /* font-weight: 500; */
    width: 100%;
    display: flex;
    align-items: center;
    text-align: start;
    margin: 0.3rem 0;
    border-radius: 28px 0 0 28px;
    padding: 1rem;
    padding-left: 2rem;
    transition: 0.3s;
    order: 1;
  }
  .navbar .night-mode {
    margin-left: 0;
    margin-bottom: 1rem;
  }
  .navbar a:hover {
    background-color: var(--default-light-color);
  }
  .show-side-navbar {
    right: 0;
  }

  .menu-icon {
    display: flex;
  }
  .menu-icon i {
    cursor: default;
    border-radius: 10px;
  }

  .menu-icon i:active {
    background-color: var(--nav-bg-color);
  }
  .socials a {
    height: 2.5rem;
    width: 2.5rem;
    margin-right: 1.2rem;
  }
  /* .socials a i {
        font-size: 0.8rem;
    } */
  .socials a::before,
  .socials a::after {
    padding: 2.5px;
  }
  #home {
    padding: 8%;
    /* background: url("iil/image/bg-grid-lighter.svg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center; */
  }
  .about-content {
    width: 100%;
    /* width: 25rem; */
    /* margin: 0; */
    margin: 0 1rem 0 3.5rem;
    /* border: 2px solid blue; */
  }
  .about-content h1 {
    width: max-content;
    /* border: 2px solid red; */
  }
  /* .about-content > p {
        height: 25%;
    } */

  .skills {
    gap: 0.6rem;
  }
  .skills .tools {
    left: max(calc(75px * 18), 100%);
    height: 70px;
    width: 45px;
  }
  .skills .tools p {
    font-size: 0.55rem;
  }
  .wrapper {
    height: 110px;
  }

  .img-container .hexagon {
    width: 20vh;
    height: 28vh;
  }
  .more-about-me {
    /* margin-top: 5vh; */
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
  }
  #portfolio .projects .box,
  #other-portfolio .projects .box {
    border: 1px solid #d6d5d625;
    flex-direction: column;
    width: 80%;
    /* height: 70%; */
    margin: 2%;
    padding: 5% 16px;
    /* box-shadow: 3px 3px 10px #63636328; */
  }
  .box:hover,
  .box:active {
    transform: scale(1);
  }

  .box-img {
    width: 100%;
    /* margin-bottom: 3vh; */
    /* box-shadow: none; */
  }
  .project-text-content {
    padding: 3% 1%;
    /* background-color: var(--default-light-color); */
  }
  #move-to-top i {
    font-size: 2.5rem;
    padding: 0.8rem;
  }
  #report-cancel {
    top: 2%;
    left: 87%;
  }
  footer {
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  :root {
    --h1-font-size: 2.4rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.1rem;
    /* --h4-font-size: 0.8rem; */
    --p-font-size: 0.9rem;
    /* --min-about-text-height: 8vh; */
    /* --max-about-text-height: 37vh; */
  }
  #main-logo {
    margin-left: 3%;
  }
  .logo-text a {
    font-size: 1rem;
  }
  .menu-icon i {
    font-size: 1.9rem;
  }
  .socials a::before,
  .socials a::after {
    padding: 2px;
  }
  .img-container .hexagon .shape img {
    transform: translateY(40px) scale(0.9);
  }
  .text-content > h3:first-child {
    letter-spacing: 0.05rem;
    /* font-size: 2rem; */
  }

  .text-content {
    padding: 2rem;
  }
  #name-text {
    letter-spacing: 0.07rem;
  }
  #about {
    min-height: 70vh;
    padding: 10vh 7%;
  }
  .about-container,
  .about-content {
    padding: 0;
    margin: 0;
  }
  .img-container {
    display: none;
    /* padding: 7px;
        margin-bottom: 12vh; */
  }
  /* .img-container::after {
        padding: 25px;
    } */
  /* .about-content p {
        max-height: var(--min-about-text-height);
    } */

  #portfolio > h2,
  #other-portfolio > h2 {
    letter-spacing: 0.05rem;
  }
  #portfolio .projects,
  #other-portfolio .projects {
    margin-top: 0;
  }
  #portfolio .projects .box,
  #other-portfolio .projects .box {
    padding: 12px;
    width: 90%;
    margin: 2% 0;
    /* box-shadow: none; */
  }
  .box:hover,
  .box:active {
    transform: scale(1);
  }
  .box-img {
    margin-bottom: 1.7vh;
    /* box-shadow: 5px 5px 10px #6363637a; */
  }
  .box:hover .box-img {
    transform: scale(1);
  }

  .project-text-content {
    padding: 1%;
    background-color: transparent;
  }

  .contact-container .row1 .col {
    padding: 0 1rem;
    margin: 1rem 0 1rem;
  }
  .contact-container {
    width: 90%;
  }
  .contact-container .contact-input-box .contact-text {
    font-size: 1rem;
    font-weight: 500;
  }
  .contact-container .submit-message {
    padding: 0.3rem 1.8rem;
    font-size: 1rem;
  }
  #report-cancel i {
    font-size: 1.5rem;
  }
  footer p {
    font-size: 0.8rem;
    font-weight: 300;
  }
}
@media (max-width: 480px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.1rem;
    /* --h4-font-size: 0.8rem; */
    --p-font-size: 0.8rem;
    --min-about-text-height: 11vh;
    --header-height: 2.7rem;
  }
  #home {
    padding: 1.2%;
  }
  /* .box-content {
        margin: 0;
    } */
  .text-content {
    padding: 0 0 1rem 1rem;
  }
  .my-title {
    gap: 2%;
  }
  .socials a {
    height: 2.1rem;
    width: 2.1rem;
    margin-right: 1rem;
  }
  .socials a i {
    font-size: 0.85rem;
    border-radius: 50%;
    border: 0.5px solid var(--main-font-color);
  }
  .socials a::before,
  .socials a::after {
    padding: 1.5px;
  }
  .img-container {
    padding: 5px;
  }
  .img-container::after {
    padding: 20px;
  }
  .img-container .hexagon {
    width: 18vh;
    height: 25vh;
  }
  .skills {
    /* justify-content: center; */
    flex-wrap: wrap;
    width: auto;
    gap: 0.4rem;
  }
  .skills .tools {
    left: max(calc(65px * 18), 100%);
    height: 60px;
    width: 40px;
  }
  .skills .tools p {
    font-size: 0.5rem;
  }
  .wrapper {
    height: 95px;
  }

  #portfolio .projects .box,
  #other-portfolio .projects .box {
    margin: 5% 8px;
  }
  .project-options a {
    font-size: 0.8rem;
    padding: 0.05rem 0.4rem 0.2rem 0;
  }
  .project-options > .source-code {
    padding: 0.35rem 0.85rem;
  }
  #about {
    padding: 10vh 5% 2vh;
  }
  #move-to-top {
    bottom: 2%;
  }
  #move-to-top i {
    font-size: 2.1rem;
    padding: 0;
  }
  .contact-container {
    width: 100%;
    padding: 0 5%;
  }
  .contact-container .row1 .col {
    padding: 0;
    margin: 0;
  }
  .contact-container .contact-input-box .contact-text {
    font-size: 0.85rem;
  }
  .contact-container .submit-message {
    padding: 0.2rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
  }
  .footer-socials i {
    font-size: 0.9rem;
  }
  footer p {
    font-size: 0.7rem;
    font-weight: 300;
  }
}
