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

:root {
  --header-height: 5rem;
  --first-color: hsl(18, 96%, 54%);
  --first-color-alt: hsl(31, 100%, 58%);
  --first-color-soft: hsla(18, 96%, 54%, .14);
  --body-color: hsl(220, 33%, 98%);
  --body-color-alt: hsl(220, 24%, 95%);
  --container-color: hsla(0, 0%, 100%, .88);
  --container-color-solid: hsl(0, 0%, 100%);
  --title-color: hsl(225, 23%, 14%);
  --text-color: hsl(223, 12%, 38%);
  --text-color-light: hsl(220, 10%, 56%);
  --border-color: hsla(225, 18%, 18%, .12);
  --shadow-color: hsla(220, 32%, 18%, .12);
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(225, 23%, 14%);
  --black-color-light: hsl(223, 12%, 38%);
  --body-font: 'Bai Jamjuree', sans-serif;
  --display-font: 'Poppins', sans-serif;
  --biggest-font-size: clamp(2.7rem, 9vw, 5.7rem);
  --h1-font-size: clamp(2rem, 5vw, 3.4rem);
  --h2-font-size: 1.45rem;
  --h3-font-size: 1.12rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .78rem;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --shadow-sm: 0 12px 32px var(--shadow-color);
  --shadow-md: 0 22px 70px var(--shadow-color);
  --z-tooltip: 10;
  --z-fixed: 100;
}

body.dark-theme {
  --first-color: hsl(18, 96%, 58%);
  --first-color-alt: hsl(31, 100%, 62%);
  --first-color-soft: hsla(18, 96%, 58%, .16);
  --body-color: hsl(225, 31%, 7%);
  --body-color-alt: hsl(226, 27%, 10%);
  --container-color: hsla(225, 26%, 13%, .8);
  --container-color-solid: hsl(225, 26%, 13%);
  --title-color: hsl(220, 35%, 96%);
  --text-color: hsl(221, 16%, 74%);
  --text-color-light: hsl(221, 12%, 58%);
  --border-color: hsla(220, 38%, 90%, .13);
  --shadow-color: hsla(0, 0%, 0%, .36);
  --black-color: hsl(220, 35%, 96%);
  --black-color-light: hsl(222, 16%, 24%);
}

* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  line-height: 1.65;
  background: radial-gradient(circle at top left, var(--first-color-soft), transparent 30rem), linear-gradient(180deg, var(--body-color), var(--body-color-alt));
  color: var(--text-color);
  transition: background-color .35s ease, color .35s ease;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 58%);
}
h1, h2, h3, h4 { color: var(--title-color); font-weight: var(--font-bold); line-height: 1.12; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; }
img { display: block; max-width: 100%; height: auto; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.grid { display: grid; gap: 1.5rem; }
.section, #Certifications { position: relative; padding-block: 6rem; }
.main { overflow: hidden; }
.section__title-1, .section__title-2 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 3rem;
  font-family: var(--display-font);
  font-size: var(--h1-font-size);
  letter-spacing: 0;
}
.section__title-1 span, .section__title-2 span { position: relative; z-index: 1; }
.section__title-1::before, .section__title-2::before {
  content: 'Featured';
  display: block;
  margin-bottom: .6rem;
  color: var(--first-color);
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section__title-1::after, .section__title-2::after {
  content: '';
  position: absolute;
  right: -1rem;
  bottom: .2rem;
  width: 4.8rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--first-color-soft);
}
.about .section__title-1::before { content: 'Profile'; }
.services .section__title-2::before { content: 'What I Build'; }
.projects .section__title-1::before { content: 'Selected Work'; }
#Certifications .section__title-1::before { content: 'Proof Of Practice'; }
.contact .section__title-2::before { content: 'Let\'s Talk'; }

.geometric-box {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: .25rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  rotate: -24deg;
  box-shadow: 0 12px 24px hsla(18, 96%, 54%, .35);
}
.geometric-box::after {
  content: '';
  position: absolute;
  inset: .35rem -.35rem -.35rem .35rem;
  border: 2px solid var(--title-color);
  border-radius: .25rem;
  opacity: .55;
}

.button, .button__ghost, .nav__link-button, .projects__link, .projects__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  border-radius: 999px;
  font-weight: var(--font-semi-bold);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.button, .nav__link-button, .projects__button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: var(--white-color);
  box-shadow: 0 14px 32px hsla(18, 96%, 54%, .28);
}
.button { padding: .9rem 1.25rem; }
.button:hover, .nav__link-button:hover, .projects__button:hover { transform: translateY(-2px); box-shadow: 0 18px 40px hsla(18, 96%, 54%, .38); }
.button__ghost { width: 3rem; height: 3rem; border: 1px solid var(--border-color); background: var(--container-color); color: var(--title-color); }
.button__ghost:hover { border-color: var(--first-color); color: var(--first-color); transform: translateY(-2px); }

.header {
  position: fixed;
  top: .75rem;
  left: 50%;
  z-index: var(--z-fixed);
  width: min(1180px, calc(100% - 2rem));
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: hsla(220, 33%, 98%, .78);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.dark-theme .header { background: hsla(225, 31%, 7%, .72); }
.scroll-header, .shadow-header { border-color: var(--border-color); box-shadow: var(--shadow-sm); }
.nav {
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  column-gap: 1.5rem;
}
.nav__logo { display: inline-flex; align-items: center; gap: .75rem; color: var(--title-color); font-weight: var(--font-bold); }
.nav__logo-circle, .nav__toggle, .change-theme { display: grid; place-items: center; border-radius: 50%; }
.nav__logo-circle { width: 2.45rem; height: 2.45rem; background: linear-gradient(135deg, var(--first-color), var(--first-color-alt)); color: var(--white-color); box-shadow: 0 12px 30px hsla(18, 96%, 54%, .3); }
.nav__menu { justify-self: center; }
.nav__buttons { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.change-theme, .nav__toggle { width: 2.55rem; height: 2.55rem; border: 1px solid var(--border-color); background: var(--container-color); color: var(--title-color); cursor: pointer; transition: transform .25s ease, border-color .25s ease, color .25s ease; }
.change-theme:hover, .nav__toggle:hover { transform: translateY(-2px); border-color: var(--first-color); color: var(--first-color); }
.nav__list { display: flex; align-items: center; gap: 1.55rem; }
.nav__link { position: relative; color: var(--text-color); font-weight: var(--font-semi-bold); font-size: var(--small-font-size); transition: color .25s ease; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -.45rem; width: 0; height: 2px; border-radius: 999px; background: var(--first-color); transition: width .25s ease; }
.nav__link:hover, .active-link { color: var(--title-color); }
.nav__link:hover::after, .active-link::after { width: 100%; }
.nav__link-button { padding: .78rem 1rem; color: var(--white-color); }
.nav__link-button::after { display: none; }
.nav__title, .nav__name, .nav__close, .nav__toggle { display: none; }

.home { min-height: 100vh; display: grid; align-items: center; padding-block: 8.5rem 4rem; }
.home__container { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); align-items: center; gap: 3rem 5rem; }
.home__name { font-family: var(--display-font); font-size: var(--biggest-font-size); letter-spacing: 0; }
.home__name::before { content: 'Full Stack Engineer / Mobile Developer / AI Integration'; display: block; margin-bottom: 1rem; color: var(--first-color); font-family: var(--body-font); font-size: var(--small-font-size); font-weight: var(--font-bold); letter-spacing: .14em; text-transform: uppercase; }
.home__perfil { position: relative; justify-self: center; grid-column: 2; grid-row: 1 / span 2; }
.home__image { position: relative; width: min(385px, 78vw); aspect-ratio: 4 / 5; }
.home__image::before { content: ''; position: absolute; inset: -1.2rem; border-radius: 2rem; background: radial-gradient(circle at 20% 10%, var(--first-color-soft), transparent 40%), linear-gradient(145deg, var(--container-color), transparent); border: 1px solid var(--border-color); transform: rotate(-3deg); }
.home__img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--border-color); border-radius: 1.65rem; box-shadow: var(--shadow-md); }
.home__shadow { position: absolute; right: -1rem; bottom: -1rem; z-index: 1; width: 100%; height: 100%; border-radius: 1.65rem; background: linear-gradient(135deg, var(--first-color), transparent 72%); opacity: .72; }
.home__arrow, .home__line, .about__line, .contact__social-arrow { opacity: .45; filter: invert(.4) sepia(1) saturate(3) hue-rotate(342deg); }
.home__arrow { position: absolute; left: -4.5rem; bottom: 1rem; width: 4.5rem; rotate: 70deg; }
.home__line { position: absolute; right: -3rem; top: 1rem; width: 4rem; }
.home__perfil .geometric-box { top: 2rem; left: -1.2rem; z-index: 3; }
.home__social { position: absolute; right: -1.25rem; bottom: 2rem; z-index: 4; display: grid; gap: .75rem; }
.home__social-link, .contact__social-link { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--border-color); border-radius: 50%; background: var(--container-color); color: var(--title-color); box-shadow: var(--shadow-sm); transition: transform .25s ease, color .25s ease, border-color .25s ease, background-color .25s ease; }
.home__social-link:hover, .contact__social-link:hover { transform: translateY(-3px); border-color: var(--first-color); background: var(--first-color); color: var(--white-color); }
.home__info { max-width: 650px; }
.home__description { margin-bottom: 2rem; color: var(--text-color); font-size: 1.08rem; }
.home__description b, .about__description b, .about__item b { color: var(--title-color); background: linear-gradient(90deg, var(--first-color-soft), transparent); border-radius: .35rem; padding-inline: .18rem; }
.home__scroll { display: inline-flex; align-items: center; gap: .75rem; color: var(--text-color); font-weight: var(--font-semi-bold); }
.home__scroll-box { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--title-color); color: var(--body-color); overflow: hidden; }
.home__scroll-box i { animation: scroll-down 2.4s infinite; }
.home__scroll-text { font-size: var(--small-font-size); }
@keyframes scroll-down { 0% { transform: translateY(-.75rem); opacity: 0; } 45% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(.75rem); opacity: 0; } }

.about, .projects, #Certifications { background: radial-gradient(circle at 85% 12%, var(--first-color-soft), transparent 25rem), linear-gradient(180deg, var(--body-color-alt), var(--body-color)); }
.about__container { grid-template-columns: minmax(250px, 430px) minmax(0, 1fr); align-items: center; gap: 4rem 6rem; }
.about__container .section__title-1 { grid-column: 2; margin-inline: 0; margin-bottom: 0; }
.about__perfil { position: relative; grid-row: 1 / span 2; justify-self: center; }
.about__image { position: relative; width: min(350px, 78vw); aspect-ratio: 4 / 5; }
.about__img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: top; border: 1px solid var(--border-color); border-radius: 1.4rem; box-shadow: var(--shadow-md); }
.about__shadow { position: absolute; inset: 1rem -1rem -1rem 1rem; border-radius: 1.4rem; background: var(--container-color-solid); border: 1px solid var(--border-color); }
.about__perfil .geometric-box { right: -1.4rem; top: 2.5rem; z-index: 3; }
.about__line { position: absolute; right: -2rem; top: 9rem; width: 4.25rem; z-index: 3; }
.about__box { position: absolute; right: -.9rem; bottom: 2rem; z-index: 3; width: 4rem; height: 4rem; border-radius: 1rem; background: linear-gradient(135deg, var(--first-color), var(--first-color-alt)); }
.about__info { max-width: 620px; }
.about__description { margin-bottom: 1.5rem; color: var(--text-color); font-size: 1.08rem; }
.about__list { margin-bottom: 2rem; }
.about__item { padding: 1.25rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--container-color); box-shadow: var(--shadow-sm); color: var(--text-color); }
.about__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }

.services__container, .projects__container { display: grid; gap: 1.25rem; }
.services__container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.projects__container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services__card, .projects__card, .contact__mail, .contact__data, .modal-content { border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--container-color); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.services__card, .projects__card { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.services__card::before, .projects__card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--first-color-soft), transparent 45%); opacity: 0; transition: opacity .25s ease; }
.services__card:hover, .projects__card:hover { transform: translateY(-6px); border-color: hsla(18, 96%, 54%, .38); box-shadow: var(--shadow-md); }
.services__card:hover::before, .projects__card:hover::before { opacity: 1; }
.services__border { display: none; }
.services__content { position: relative; z-index: 1; height: 100%; padding: 1.5rem; }
.services__icon { position: relative; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.4rem; border-radius: 1rem; background: var(--first-color-soft); color: var(--first-color); }
.services__icon i { position: relative; z-index: 1; font-size: 1.45rem; }
.services__box { position: absolute; width: 1.6rem; height: 1.6rem; right: -.25rem; top: -.25rem; border-radius: .55rem; background: linear-gradient(135deg, var(--first-color), var(--first-color-alt)); opacity: .85; }
.services__title { margin-bottom: .85rem; font-size: 1.1rem; }
.services__description, .projects__description { color: var(--text-color); font-size: var(--small-font-size); }
.projects__card { display: flex; flex-direction: column; cursor: pointer; }
.projects__image { position: relative; z-index: 1; margin: .75rem .75rem 0; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border-color); background: var(--body-color-alt); }
.projects__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.projects__card:hover .projects__img { transform: scale(1.045); }
.projects__button { position: absolute; right: .75rem; top: .75rem; z-index: 2; width: 2.65rem; min-height: 2.65rem; padding: 0; }
.projects__button.button { padding: 0; }
.projects__content { position: relative; z-index: 1; flex: 1; padding: 1.15rem 1.25rem .75rem; }
.projects__subtitle { margin-bottom: .55rem; color: var(--first-color); font-size: var(--smaller-font-size); font-weight: var(--font-bold); letter-spacing: .12em; text-transform: uppercase; }
.projects__title { margin-bottom: .7rem; font-size: 1.22rem; }
.projects__buttons { position: relative; z-index: 1; display: flex; padding: 0 1.25rem 1.25rem; }
.projects__link { padding: .65rem .95rem; border: 1px solid var(--border-color); background: var(--body-color); color: var(--title-color); font-size: var(--small-font-size); }
.projects__link:hover { border-color: var(--first-color); color: var(--first-color); transform: translateY(-2px); }

#Certifications { padding-top: 5rem; }
#carousel { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; padding: 1rem 0 0; }
.carousel-container { position: relative; height: 430px; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 20%, var(--first-color-soft), transparent 28rem), var(--container-color); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.carousel-items-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-item { position: absolute; overflow: hidden; border: 1px solid var(--border-color); border-radius: 1rem; background: var(--container-color-solid); box-shadow: var(--shadow-md); cursor: pointer; transition: transform .45s ease, opacity .45s ease, box-shadow .25s ease; }
.carousel-item img { display: block; max-height: 360px; width: auto; object-fit: contain; }
.carousel-item.hidden { display: none; }
.carousel-nav { position: absolute; top: 50%; z-index: 20; display: grid; place-items: center; width: 2.85rem; height: 2.85rem; border: 1px solid var(--border-color); border-radius: 50%; background: var(--container-color-solid); color: var(--title-color); cursor: pointer; transform: translateY(-50%); transition: transform .25s ease, color .25s ease, border-color .25s ease; }
.carousel-nav:hover { transform: translateY(-50%) scale(1.05); border-color: var(--first-color); color: var(--first-color); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-indicators { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.carousel-indicator { width: .65rem; height: .65rem; border: 0; border-radius: 999px; background: var(--border-color); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.carousel-indicator.active { width: 1.8rem; background: var(--first-color); }

.contact__container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; grid-template-columns: minmax(260px, 390px) minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.contact__data { position: relative; padding: 2rem; overflow: hidden; }
.contact__data::after { content: ''; position: absolute; right: -4rem; bottom: -4rem; width: 11rem; height: 11rem; border-radius: 50%; background: var(--first-color-soft); }
.contact__data .section__title-2 { margin: 0 0 1.5rem; }
.contact__description-1, .contact__description-2 { position: relative; z-index: 1; }
.contact__description-1 { margin-bottom: 1rem; color: var(--title-color); font-size: 1.08rem; font-weight: var(--font-semi-bold); }
.contact__description-2 { color: var(--text-color); }
.contact__mail { padding: 2rem; }
.contact__title { margin-bottom: 1.5rem; font-size: var(--h2-font-size); }
.contact__form { position: relative; display: grid; gap: 1rem; }
.contact__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact__box { position: relative; }
.contact__input { width: 100%; min-height: 3.45rem; border: 1px solid var(--border-color); border-radius: .95rem; background: var(--body-color); color: var(--title-color); padding: 1rem; outline: none; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.contact__input::placeholder { color: var(--text-color-light); }
.contact__input:focus { border-color: var(--first-color); box-shadow: 0 0 0 4px var(--first-color-soft); }
.contact__label { position: absolute; top: -.65rem; left: .85rem; padding-inline: .45rem; border-radius: 999px; background: var(--container-color-solid); color: var(--first-color); font-size: var(--smaller-font-size); font-weight: var(--font-bold); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.contact__input:focus + .contact__label, .contact__input:not(:placeholder-shown) + .contact__label { opacity: 1; }
.contact__area textarea { min-height: 10rem; resize: vertical; }
.contact__button { width: max-content; cursor: pointer; }
.contact__message { min-height: 1.2rem; color: var(--first-color); font-size: var(--small-font-size); }
.contact__social { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--container-color); box-shadow: var(--shadow-sm); }
.contact__social-arrow { width: 2.5rem; }
.contact__social-data { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.contact__social-description-1 { color: var(--text-color-light); font-size: var(--small-font-size); }
.contact__social-description-2 { color: var(--title-color); font-weight: var(--font-semi-bold); }
.contact__social-links { display: flex; gap: .7rem; }

.modal { display: none; position: fixed; inset: 0; z-index: 1000; overflow: auto; padding: 1rem; background: hsla(225, 32%, 6%, .78); backdrop-filter: blur(10px); }
.modal-content { position: relative; width: min(760px, 100%); margin: 4rem auto; padding: 1.5rem; color: var(--text-color); }
.close { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--text-color-light); font-size: 1.8rem; cursor: pointer; transition: color .25s ease, background-color .25s ease; }
.close:hover { background: var(--first-color-soft); color: var(--first-color); }
.modal-title { margin: .5rem 3rem 1rem 0; font-size: var(--h2-font-size); }
.modal-img { width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--border-color); border-radius: 1rem; background: var(--body-color); }
.modal-description { margin-top: 1rem; }
.modal-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.modal-buttons a { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1rem; border-radius: 999px; background: var(--first-color); color: var(--white-color); font-weight: var(--font-semi-bold); }

.footer { border-top: 1px solid var(--border-color); background: var(--container-color-solid); }
.footer__container { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.footer__link { color: var(--text-color); font-weight: var(--font-semi-bold); transition: color .25s ease; }
.footer__link:hover, .footer__copy a { color: var(--first-color); }
.footer__copy { color: var(--text-color-light); font-size: var(--small-font-size); text-align: right; }
.scrollup { position: fixed; right: 1rem; bottom: -50%; z-index: var(--z-tooltip); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--first-color); color: var(--white-color); box-shadow: 0 14px 32px hsla(18, 96%, 54%, .28); transition: bottom .35s ease, transform .25s ease; }
.scrollup:hover { transform: translateY(-.25rem); }
.show-scroll { bottom: 1.25rem; }
::-webkit-scrollbar { width: .65rem; background: var(--body-color-alt); }
::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--text-color-light); }

@media screen and (max-width: 1150px) {
  .header { top: 0; width: 100%; border-inline: 0; border-top: 0; border-radius: 0; }
  .nav { display: flex; justify-content: space-between; }
  .nav__toggle { display: grid; }
  .nav__menu { position: fixed; top: -110%; left: 0; width: 100%; padding: 2rem 1.5rem 3rem; border-bottom: 1px solid var(--border-color); background: hsla(225, 31%, 7%, .92); backdrop-filter: blur(18px); transition: top .35s ease; }
  .show-menu { top: 0; }
  .nav__title, .nav__name { display: block; color: var(--white-color); text-align: center; }
  .nav__title { margin-bottom: .75rem; color: hsla(0, 0%, 100%, .55); font-size: var(--smaller-font-size); letter-spacing: .16em; text-transform: uppercase; }
  .nav__name { margin-bottom: 2rem; font-size: var(--h2-font-size); }
  .nav__list { flex-direction: column; gap: 1.4rem; }
  .nav__link { color: hsla(0, 0%, 100%, .72); font-size: 1rem; }
  .nav__link:hover, .active-link { color: var(--white-color); }
  .nav__link::after { background: var(--first-color); }
  .nav__link-button { margin-top: .5rem; }
  .nav__close { position: absolute; right: 1.25rem; top: 1.25rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--white-color); cursor: pointer; }
  .home__container, .about__container, .contact__container { grid-template-columns: 1fr; }
  .home__perfil { grid-column: auto; grid-row: auto; order: -1; }
  .home__name, .home__description, .home__info { text-align: center; margin-inline: auto; }
  .home__scroll { margin-inline: auto; }
  .about__container .section__title-1 { grid-column: auto; margin-inline: auto; order: -2; }
  .about__perfil { grid-row: auto; order: -1; }
  .about__info { text-align: center; margin-inline: auto; }
  .about__buttons { justify-content: center; }
  .services__container, .projects__container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 760px) {
  :root { --header-height: 4rem; }
  .section, #Certifications { padding-block: 4.5rem; }
  .nav__logo-name { display: none; }
  .home { min-height: auto; padding-top: 6rem; }
  .home__social { position: static; display: flex; justify-content: center; margin-top: 1rem; }
  .home__arrow, .home__line, .about__line, .contact__social-arrow { display: none; }
  .services__container, .projects__container, .contact__group { grid-template-columns: 1fr; }
  .contact__social, .contact__social-data, .footer__container { flex-direction: column; display: flex; text-align: center; }
  .footer__copy { text-align: center; }
  .carousel-container { height: 330px; }
  .carousel-item img { max-height: 275px; max-width: 82vw; }
}

@media screen and (max-width: 430px) {
  .container, #carousel, .contact__container { width: min(100% - 1rem, 1120px); }
  .section__title-1, .section__title-2 { text-align: center; }
  .button { width: 100%; }
  .about__buttons { display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .about__buttons .button { grid-column: 1 / -1; }
  .contact__mail, .contact__data { padding: 1.25rem; }
  .carousel-container { height: 285px; }
  .carousel-nav { width: 2.35rem; height: 2.35rem; }
}
