@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap");

* {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

@viewport {
    width: device-width;
    zoom: 1.0;
}

:root {
  --header-height: 3.5rem;

  
  --first-color: hsl(14, 98%, 50%);
  --black-color: hsl(0, 0%, 0%);
  --black-color-light: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 95%);
  --title-color: hsl(0, 0%, 0%);
  --text-color: hsl(0, 0%, 35%);
  --text-color-light: hsl(0, 0%, 64%);
  --body-color: hsl(0, 0%, 87%);
  --container-color: hsl(0, 0%, 83%);

 
  --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.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

 
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;


  --z-tooltip: 10;
  --z-fixed: 100;
}


@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;
    --tiny-font-size: .688rem;
  }
}


* {
  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);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 1rem 1rem;
}

.section__title-1, 
.section__title-2 {
  position: relative;
  font-size: var(--h1-font-size);
  width: max-content;
  margin: .75rem auto 2rem;
}

.section__title-1 span, 
.section__title-2 span {
  z-index: 5;
  position: relative;
}

.section__title-1::after, 
.section__title-2::after {
  content: "";
  width: 40px;
  height: 28px;
  background-color: hsla(14, 98%, 50%, .2);
  position: absolute;
  top: -4px;
  right: -8px;
}

.section__title-2::after {
  top: initial;
  bottom: -4px;
}

.main {
  overflow: hidden; 
}


.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  display: flex;
  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: var(--black-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
}

.nav__logo-circle{
  border-radius: 50%;
}

.nav__toggle{
  border-radius: 30%;
  font-size: 1.25rem;
  cursor: pointer;
}


@media screen and (max-width: 1150px) {
  .nav__menu{
      position: fixed;
      top:-100%;
      left: 0;
      background-color: hsla(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(--smaller-font-size);
  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::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: 40%;
}

.nav__close{
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

.show-menu{
  top: 0;
}


.shadow-header{
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, .12);
}


.home__container{
  padding-top: 2rem;
}

.home__name{
  font-size: var(--biggest-font-size);
  text-align: center;
}

.home__perfil{
  position: relative;
  justify-self: center;
}

.home__image{
  width: 220px;
}

.home__img{
  position: relative;
  z-index: 10;
}

.home__shadow{
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  /* position: absolute; */
  bottom: -0.75rem;
  right: -0.75rem;
  /* border: 4px solid var(--black-color); */
  z-index: 5;
  transition: background-color .4s;
}

.home__social{
  height: max-content;
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  display: grid;
  row-gap: 1rem;
}

.home__social-link{
  background-color: var(--black-color-light);
  color: var(--white-color);
  font-size: 1.25rem;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: background-color .4s;
}

.home__social-link:hover{
  background-color: var(--black-color);
}

.home__info{
  margin-top: 4rem;
}

.home__description{
  text-align: center;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.home__description b{
  background: linear-gradient(90deg,
                           hsla(14, 98%, 50%, .3),
                           hsla(14, 98%, 50%,0));
}

.home__scroll{
  display: block;
  width: max-content;
  margin: 0 auto;
}

.home__scroll-text{
  display: none;
}

.home__scroll-box{
  background-color: var(--black-color);
  color: var(--white-color);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .4s;
}
.home__scroll-box i{
  animation: scroll-down 3s infinite;
}



@keyframes scroll-down{
  0%{
    transform: translateY(-1rem);
    opacity: 0;
  }
  50%{
    transform: translateY(0);
    opacity: 1;
  }
  100%{
    transform: translateY(.6rem);
    opacity: 0;
  }
}


.section__title{
  text-align: center;
}
.section__subtitle{
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.skills__container{
  row-gap: 3.5rem;
}

.skills__title{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.skills__title i{
  font-size: 1rem;
  font-weight: initial;
}

.skills__info,
.skills__data,
.skills__blob{
  display: grid;
}

.skills__info{
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.skills__data{
  justify-content: center;
  text-align: center;
}

.skills__blob{
  width: 80px;
  height: 100px;
  background-color: var(--container-color);
  border-radius: 3rem;
  place-items: center;
  margin-bottom: 1rem;
 
}

.skills__blob img{
  width: 40px;
}

.skills__name{
  font-size: var(--small-font-size);
  margin-bottom: .25rem;

}

.skills__subtitle{
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
  
}

.skills__blob:hover img{
  animation: bounce-skills .6s;
}

@keyframes bounce-skills{
  0%{
    transform: translate(0);
  }
  20%{
    transform: translateY(-6px);
  }
  40%{
    transform: 0;
  }
  60%{
    transform: translateY(-3px);
  }
  80%{
    transform: 0;
  }
}

.footer{
  background-color: var(--black-color);
}

.footer__container{
  padding-block: 3rem 2rem;
  row-gap: 2.5rem;
}

.footer__links{
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link{
  transition: color .4s;
  color: var(--text-color-light);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

.footer__link:hover{
  color: var(--text-color-light);
  
}




@media screen and (max-width: 340px) {
  .container{
    margin-inline: 1rem;
  }
  .home__image{
    width: 180px;
  }
  .skills__info{
    grid-template-columns: repeat(2, 1fr);
  }

  .home__name{
    font-size: var(--h2-font-size);
  }

  
}



@media screen and (min-width:576px) {
  .home__container{
    grid-template-columns: 350px;
    justify-content: center;
  }
  .skills__info{
    grid-template-columns: repeat(3, 1fr);
  }
}


@media  screen and (min-width:1150px) {
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 7rem 2rem;
  }

  .section__title-1::after,
  .section__title-2::after{
    width: 70px;
    height: 48px;
  }
  .nav{
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
  }
  .nav__close,
  .nav__toggle,
  .nav__title,
  .nav__name{
    display: none;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }
  
  .nav__menu{
    margin-left: auto;
  }

  .nav__link{
    color: var(--text-color);
    font-size: var(--normal-font-size);
  }

  .nav__link:hover{
    color: var(--title-color);
  }

  .nav__link::after{
    background-color: var(--title-color);
  }

  .home__container{
    grid-template-columns: repeat(2,460px);
    gap: 2rem 4rem;
    padding-block: 4rem;
  }
  .home__perfil{
    grid-column: 2/3;
    grid-row: 1/3;
  }
  .home__image{
    width: 300px;
  }
  .home__shadow{
    right: -1.25rem;
    bottom: -1.25rem;
    /* border: 6px solid var(--black-color); */
  }

  .home__description,
  .home__name{
    text-align: initial;
  }

  .home__name{
    align-self: flex-end;
  }
  .home__info{
    margin-top: 0;
    align-self: flex-start;
  }
  .home__description{
    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: 0;
    display: flex;
    align-items: center;
    column-gap: .75rem;

  }
  .home__scroll-box{
    display: block;
  }
  .home__scroll-text{
    display: block;
    color: var(--text-color);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
  }
  .home__scroll-box{
    width: 44px;
    height: 44px;
  }
  .home__scroll-box i{
    font-size: 1.25rem;
  }

  .home__social{
    left: initial;
    right: -6rem;
  }

  .home__social-link{
    font-size: 1.5rem;
    padding: .5rem;
  }
  .skills__info{
    grid-template-columns: repeat(4, 1fr);
  }
  

  /* .footer__container{
    padding-block: 4rem;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    text-align: center;
  }

  .footer__links{
    column-gap: 3rem;
    order: 1;
  } */

  

  .scrollup{
    right: 3rem;
  }

}

.footer-section{
  padding-top: 5rem;
}

.footer {
  background-color: #000;
  padding: 2rem 1rem;
  font-family: Arial, sans-serif;
  color: #fff;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__quote {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.footer__cta {
  margin-bottom: 1.5rem;
}

.footer__cta p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #aaa;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 0.3rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: #777;
}

.project-slider-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem 1rem;
}

.project-slider-heading {
  color: var(--title-color);
  margin-bottom: 1rem;
  font-size: var(--h2-font-size);
  text-align: center;
}

.project-slider-subheading {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.project-slider {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
}

.project-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.project-slide {
  flex: 0 0 300px;
  height: 300px;
  margin-right: 2rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white-color);
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-slide:hover .project-slide-content {
  opacity: 1;
  transform: translateY(0);
}

.project-slide-content h3 {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
  color: var(--white-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.project-slide-content p {
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
  color: var(--text-color-light);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.project-slide-content a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: var(--small-font-size);
  color: var(--white-color);
  background-color: var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: var(--font-bold);
  opacity: 0;
  transform: translateY(20px);
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease 0.3s;
}

.project-slide:hover .project-slide-content h3,
.project-slide:hover .project-slide-content p,
.project-slide:hover .project-slide-content a {
  opacity: 1;
  transform: translateY(0);
}

.project-slide-content a:hover {
  background-color: var(--primary-color-dark);
  transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
  .project-slide {
    flex: 0 0 250px;
    height: 250px;
  }
}

@media screen and (max-width: 768px) {
  .project-slider-section {
    padding: 3rem 1rem;
  }

  .project-slider-heading {
    font-size: var(--h3-font-size);
  }

  .project-slider-subheading {
    font-size: var(--small-font-size);
  }

  .project-slide {
    flex: 0 0 200px;
    height: 200px;
    margin-right: 1rem;
  }

  .project-slide-content h3 {
    font-size: var(--normal-font-size);
  }

  .project-slide-content p {
    font-size: var(--small-font-size);
  }

  .project-slide-content a {
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .project-slider-section {
    padding: 2rem 0.5rem;
  }

  .project-slide {
    flex: 0 0 180px;
    height: 180px;
    margin-right: 0.75rem;
  }

  .project-slide-content {
    padding: 1rem;
  }

  .project-slide-content h3 {
    font-size: var(--small-font-size);
  }

  .project-slide-content p {
    display: none;
  }

  .project-slide-content a {
    padding: 0.5rem 0.75rem;
    font-size: var(--small-font-size);
  }
}



/* Media Queries */
@media screen and (min-width: 768px) {
  .footer {
      padding: 1.5rem 1rem;
  }

  .footer__container {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      text-align: left;
  }

  .footer__quote, .footer__cta, .footer__brand {
      flex: 1;
      margin: 0 1rem;
  }

  .footer__quote {
      font-size: 1.1rem;
  }

  .footer__cta p {
      font-size: 1rem;
  }

  .cta-button {
      font-size: 0.9rem;
  }

  .logo {
      font-size: 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .footer {
      padding: 2rem;
  }

  .footer__quote {
      font-size: 1.2rem;
  }

  .footer__cta p {
      font-size: 1.1rem;
  }

  .cta-button {
      font-size: 1rem;
      padding: 0.7rem 1.5rem;
  }

  .logo {
      font-size: 2.2rem;
  }

  .footer__copy {
      font-size: 0.9rem;
  }
}

.contact-section {
  font-family: var(--body-font);
  line-height: 1.6;
  color: #333;
  background-color: var(--body-color);
  padding: 2rem 1rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-title {
  color: var(--title-color);
  margin-bottom: 1rem;
  font-size: var(--h2-font-size);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-subsection {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.contact-subsection:hover {
  transform: translateY(-5px);
}

.contact-subtitle {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.contact-map {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 8px;
}

.contact-info-group {
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-text {
  margin: 0;
  padding: 0.25rem 0;
}

/* Responsive adjustments */
@media (min-width: 576px) {
  .contact-section {
      padding: 3rem 1.5rem;
  }

  .contact-title {
      font-size: var(--h2-font-size);
  }

  .contact-subtitle {
      font-size: 1.5rem;
  }

  .contact-map {
      height: 300px;
  }
}

@media (min-width: 768px) {
  .contact-grid {
      grid-template-columns: 1fr 1fr;
  }

  .contact-section {
      padding: 4rem 2rem;
  }

  .contact-title {
      font-size: var(--h2-font-size);
      margin-bottom: 3rem;
  }
}

@media (min-width: 992px) {
  .contact-container {
      padding: 0 2rem;
  }

  .contact-map {
      height: 350px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
  html {
    /* Prevent zooming on mobile */
    touch-action: manipulation;
    -ms-touch-action: manipulation;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  .home__container {
    padding-top: 1rem !important;
  }

  .home__name {
    font-size: var(--h2-font-size) !important;
  }

  .home__perfil {
    width: 100% !important;
  }

  .home__image {
    width: 180px !important;
    margin: 0 auto !important;
  }

  .skills__info {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-subsection {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  .footer__container {
    flex-direction: column !important;
    text-align: center !important;
  }
}

/* Force mobile layout even when "desktop site" is requested */
@media screen and (max-width: 576px) and (min-resolution: 1.1dppx) {
  body {
    /* Force mobile layout */
    min-width: 320px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .nav__menu {
    width: 100% !important;
  }

  .project-slide {
    flex: 0 0 100% !important;
    margin-right: 0 !important;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
  .contact-subsection {
      padding: 1rem;
  }

  .contact-title {
      font-size: var(--h3-font-size);
  }

  .contact-subtitle {
      font-size: var(--normal-font-size);
  }

  .contact-info-group {
      margin-bottom: 0.5rem;
  }

  .contact-label {
      font-size: var(--small-font-size);
  }

  .contact-text {
      font-size: var(--small-font-size);
  }
}

/* Enhanced Mobile Styles (max-width: 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
    margin: 0;
  }

  .home__container {
    padding-top: 2rem;
  }

  .home__image {
    width: 200px;
    margin: 0 auto;
  }

  .home__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .home__social {
    left: 0.5rem; /* Changed from -1rem to add margin */
    position: absolute;
    display: grid;
    row-gap: 0.75rem;
    padding: 0.5rem;
    background-color: transparent;
  }

  .home__social-link {
    padding: 0.35rem;
    font-size: 1.25rem;
    border-radius: 4px;
  }

  /* For devices with very small screens */
  @media screen and (max-width: 320px) {
    .home__social {
      left: 0.25rem;
    }
  }

  .skills__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .skills__blob {
    width: 70px;
    height: 90px;
  }

  .skills__blob img {
    width: 35px;
  }

  .project-slider-section {
    padding: 3rem 0.5rem;
  }

  .project-slide {
    flex: 0 0 280px;
    height: 250px;
    margin-right: 1rem;
  }

  .project-slide-content {
    padding: 1rem;
  }

  .project-slide-content h3 {
    margin-bottom: 0.5rem;
  }

  .project-slide-content p {
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .contact-section {
    padding: 2rem 0.75rem;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .contact-subsection {
    padding: 1.25rem;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer__container {
    gap: 1.5rem;
  }

  .nav__menu {
    padding-block: 1.5rem 4rem;
  }

  .nav__list {
    row-gap: 2rem;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .section {
    padding-block: 4rem 1rem;
  }

  .section__title-1, 
  .section__title-2 {
    margin: 0.5rem auto 1.5rem;
  }
}

/* Prevent text size adjustment on orientation change */
@media screen and (max-width: 576px) and (orientation: landscape) {
  html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .home__container {
    grid-template-columns: 1fr;
  }

  .project-slide {
    height: 200px;
  }
}