body {
  color: #ffffff;
  background-color: #151515;
  font-family: "Space Grotesk", sans-serif;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

nav {
  text-align: center;
  padding: 3% 5%;
}
nav p.name {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
}
nav div.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}
nav div.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
nav div.icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
nav div.icons a:hover {
  transform: translateY(-2px);
}
nav div.icons a img,
nav div.icons a svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease, transform 0.2s ease;
}
nav div.icons a:hover img,
nav div.icons a:hover svg {
  filter: brightness(0) saturate(100%) invert(84%) sepia(21%) saturate(984%) hue-rotate(97deg) brightness(97%) contrast(92%);
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #242424;
  border: 1px solid #4EE1A0;
  border-radius: 20px;
  padding: 3px 6px;
  gap: 4px;
}
.lang-switcher .lang-btn,
.lang-switcher .lang-btn:link,
.lang-switcher .lang-btn:visited {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff !important;
  padding: 3px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.2;
}
.lang-switcher .lang-btn:hover {
  color: #4EE1A0 !important;
}
.lang-switcher .lang-btn.active,
.lang-switcher .lang-btn.active:link,
.lang-switcher .lang-btn.active:visited {
  background-color: #4EE1A0 !important;
  color: #151515 !important;
  cursor: default;
}
.lang-switcher .lang-divider {
  color: #888888;
  font-size: 0.8rem;
  user-select: none;
}
@media (min-width: 768px) {
  nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  nav div.nav-actions {
    margin-top: 0;
  }
}
@media (min-width: 1024px) {
  nav {
    width: 100%;
    padding: 3% 10%;
  }
}

section.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-image: url("../img/icon/Group 26.svg"), url("../img/icon/Oval.svg"), url("../img/img/SebastianMesa.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: -60% 5%, 100% 45%, top;
  background-size: 65%, 15%, 65%;
  justify-content: center;
  text-align: center;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 5%;
}
@media (min-width: 768px) {
  section.hero {
    padding-top: 10%;
    background-size: 55%, 10%, 45%;
    background-position: -60% 0%, 100% 82%, 100% 0%;
    text-align: left;
  }
}
@media (min-width: 1024px) {
  section.hero {
    background-image: url("../img/icon/Group 26.svg"), url("../img/icon/Oval1.svg"), url("../img/img/SebastianMesa.jpg");
    padding-top: 10%;
    padding-left: 10%;
    padding-right: 10%;
    background-size: 65%, 8%, 30%;
    background-position: -80% 0%, 60% 65%, 85% 0%;
    text-align: left;
  }
}
section.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  padding-bottom: 5%;
  padding-top: 120%;
  line-height: 1.1;
}
@media (min-width: 768px) {
  section.hero h1 {
    font-size: 4rem;
    width: 55%;
    padding-top: 0%;
  }
}
@media (min-width: 1024px) {
  section.hero h1 {
    font-size: 5rem;
  }
}
section.hero h1 span {
  text-decoration: underline;
  text-decoration-color: #4EE1A0;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}
section.hero p {
  line-height: 1.6;
  padding-bottom: 5%;
}
@media (min-width: 768px) {
  section.hero p {
    font-size: 1rem;
    width: 55%;
  }
}
@media (min-width: 1024px) {
  section.hero p {
    font-size: 1.5rem;
    width: 40%;
  }
}
section.hero a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #4EE1A0;
  text-underline-offset: 15px;
  text-decoration-thickness: 2px;
  padding-bottom: 15%;
}
section.hero a:hover {
  color: #4EE1A0;
}
@media (min-width: 1024px) {
  section.hero a {
    font-size: 1.5rem;
    padding-bottom: 10%;
  }
}

section.skills {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2%;
  background-image: url("../img/icon/Group 26 (1).svg");
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: right bottom;
  padding-bottom: 11%;
}
@media (min-width: 768px) {
  section.skills {
    grid-template-columns: 1fr 1fr;
    background-size: 40%;
    background-position: 120% 100%;
    justify-items: start;
    padding-left: 5%;
  }
}
@media (min-width: 1024px) {
  section.skills {
    width: 90%;
    padding-left: 5%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr 1fr 1fr;
    background-size: 40%;
    background-position: 110% 100%;
  }
}
section.skills article.skill h3 {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.1;
  padding-bottom: 3%;
}
@media (min-width: 768px) {
  section.skills article.skill h3 {
    text-align: left;
    font-size: 2.3rem;
  }
}
@media (min-width: 1024px) {
  section.skills article.skill h3 {
    text-align: left;
    font-size: 3rem;
  }
}
section.skills article.skill p {
  text-align: center;
}
@media (min-width: 768px) {
  section.skills article.skill p {
    text-align: left;
  }
}
@media (min-width: 1024px) {
  section.skills article.skill p {
    margin-bottom: 15%;
  }
}
section.skills hr {
  width: 90%;
  margin-top: 3%;
}
@media (min-width: 768px) {
  section.skills hr {
    display: none;
  }
}

section.projects {
  display: flex;
  flex-direction: column;
  padding-left: 5%;
  padding-right: 5%;
}
section.projects a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #4EE1A0;
  text-underline-offset: 12px;
  text-decoration-thickness: 2px;
}
section.projects a:hover {
  color: #4EE1A0;
}
section.projects div.hero-projects {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2%;
}
section.projects div.hero-projects h2 {
  font-size: 2.5rem;
  color: #ffffff;
}
@media (min-width: 768px) {
  section.projects div.hero-projects h2 {
    font-size: 4rem;
  }
}
@media (min-width: 1024px) {
  section.projects div.hero-projects h2 {
    font-size: 5rem;
  }
}
@media (min-width: 1024px) {
  section.projects div.hero-projects {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}
section.projects div.body-projects {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  justify-items: center;
}
@media (min-width: 768px) {
  section.projects div.body-projects {
    grid-template-columns: 1fr 1fr;
    column-gap: 3%;
  }
}
@media (min-width: 1024px) {
  section.projects div.body-projects {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    column-gap: 5%;
  }
}
section.projects div.body-projects article.project {
  position: relative;
}
section.projects div.body-projects article.project img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  border-radius: 4px;
}
section.projects div.body-projects article.project h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  margin-bottom: 1%;
}
section.projects div.body-projects article.project p {
  margin-bottom: 3%;
}
section.projects div.body-projects article.project p span {
  padding-bottom: 5%;
  padding-right: 5%;
  font-size: 0.9rem;
  color: #ffffff;
}
section.projects div.body-projects article.project div.overlay {
  margin-bottom: 5%;
}
section.projects div.body-projects article.project div.overlay a {
  padding-right: 3%;
}
@media (min-width: 1024px) {
  section.projects div.body-projects article.project div.overlay a {
    padding-bottom: 4%;
  }
}
@media (min-width: 1024px) {
  section.projects div.body-projects article.project div.overlay {
    position: absolute;
    width: 40%;
    top: 30%;
    left: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
  }
}
@media (min-width: 1024px) {
  section.projects div.body-projects article.project:hover img {
    opacity: 0.2;
  }
  section.projects div.body-projects article.project:hover div.overlay {
    opacity: 1;
  }
}

section.form {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  padding: 5%;
  justify-content: center;
  background-color: #242424;
  background-image: url("../img/icon/Group 26 (2).svg");
  background-repeat: no-repeat;
  background-position: -180% 83%;
  padding-bottom: 15%;
}
@media (min-width: 768px) {
  section.form {
    background-position: -35% 95%;
  }
}
@media (min-width: 1024px) {
  section.form {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 5%;
    background-position: 0% 83%;
  }
}
section.form h2 {
  font-size: 1.8rem;
  padding: 5% 0;
  text-align: center;
}
@media (min-width: 768px) {
  section.form h2 {
    font-size: 4rem;
    padding-top: 0;
  }
}
@media (min-width: 1024px) {
  section.form h2 {
    text-align: left;
    margin-left: 10%;
  }
}
section.form p {
  font-size: 0.9rem;
  padding: 0 0 15% 0;
  text-align: center;
}
@media (min-width: 768px) {
  section.form p {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.5;
  }
}
@media (min-width: 1024px) {
  section.form p {
    margin: 10%;
    text-align: left;
  }
}
section.form div.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  width: 100%;
}
@media (min-width: 768px) {
  section.form div.form-group {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }
}
section.form div.form-group label {
  padding-left: 5%;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #D9D9D9;
  margin-bottom: 0.5rem;
}
section.form div.form-group input,
section.form div.form-group textarea {
  background: none;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}
section.form div.form-group input:required:invalid,
section.form div.form-group textarea:required:invalid {
  border-bottom-color: #FF6F5B;
}
section.form div.form-group input:valid,
section.form div.form-group textarea:valid {
  border-bottom-color: #4EE1A0;
}
section.form div.form-group input:focus,
section.form div.form-group textarea:focus {
  border-bottom-color: #4EE1A0;
}
section.form div.form-group .error-message {
  display: none;
  font-size: 0.8rem;
  color: #FF6F5B;
  margin-top: 0.4rem;
  padding-left: 5%;
  text-align: right;
}
section.form div.form-group input:invalid + .error-message,
section.form div.form-group textarea:invalid + .error-message {
  display: block;
}
section.form div.form-group input:valid + .error-message,
section.form div.form-group textarea:valid + .error-message {
  display: none;
}
section.form div.form-submit {
  display: flex;
  justify-content: flex-end;
}
@media (min-width: 768px) {
  section.form div.form-submit {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }
}
section.form div.form-submit button {
  background: none;
  border: none;
  color: #ffffff;
  letter-spacing: 1px;
  cursor: pointer;
  border-bottom: 2px solid #4EE1A0;
  padding-bottom: 10px;
  transition: color 0.2s, border-color 0.2s;
}
section.form div.form-submit button:hover {
  color: #4EE1A0;
}

footer {
  background-color: #242424;
}