@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

:root {
  /* Colors */
  --Midnight-Blue: #021024;
  --Dark-Sapphire-Blue: #052659;
  --Teal-Blue: #548383;
  --Light-Blue: #7da0ca;
  --Baby-Blue: #c1e8ff;

  --Orange-yellow: linear-gradient(315deg, #ff4e00 0%, #ec9f05 74%);
}

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

body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Evita scroll horizontal */
}

body {
  background-color: var(--Midnight-Blue);
}

html {
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2rem 6rem 3rem 6rem;
}

.sub-title {
  font-family: "Space Grotesk";
  color: orange;
  font-size: 2rem;
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.nav-container a {
  font-family: "Space Grotesk";
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.35 ease;
  border-bottom: 3px solid transparent;
}

.nav-container a:hover,
.nav-container a.active {
  color: orange;
  border-bottom: 3px solid orange;
}

/* Menu mobile style */
.open-menu i {
  color: orange;
  font-size: 30px;
}
.menu-mobile {
  background-color: var(--Midnight-Blue);
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
  width: 0%;
  overflow: hidden;
  transition: 0.5s;
}

.menu-mobile nav ul {
  text-align: right;
  list-style: none;
}

.menu-mobile nav ul li a {
  color: white;
  font-size: 20px;
  font-weight: 300;
  text-decoration: none;
  font-family: "Space Grotesk";
  display: block;
  padding: 20px 10%;
}

.menu-mobile.open {
  width: 70%;
}

.menu-mobile.open ~ .overlay-menu {
  display: block;
}

.menu-mobile nav ul li a:hover {
  background-color: orange;
  cursor: pointer;
  color: var(--Midnight-Blue);
}

.overlay-menu {
  background-color: #0000009f;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 88888;
  display: none;
}

.menu-mobile .close-button {
  padding: 20px 5%;
}

.menu-mobile .close-button i {
  font-size: 30px;
}
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0rem 0rem 3rem 0rem;
}

.efect-txt-main,
.efect-img-main,
.skills-subTitle,
.about-title,
.project-title,
.efect-card1,
.efect-card2,
.efect-card3,
.efect-img-about,
.efect-txt-about,
.ctn-social,
.efect-txt-contact,
.contact-container,
.efect-input-name,
.efect-input-email,
.efect-textarea-message,
.efect-footer-button,
.footer-icons {
  visibility: hidden;
}

.title-container {
  margin: 0rem 5rem 0rem 0rem;
  white-space: pre-line;
}
.title-container > h1 {
  font-family: "Space Grotesk";
  font-size: 4rem;
  color: orange;
  line-height: 1.8rem;
}
.title-container p {
  font-family: "Space Grotesk";
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.title-container button {
  font-family: "Space Grotesk";
  color: white;
  margin-top: 2rem;
  border: solid 1px var(--Light-Pink);
  border-radius: 1rem;
  width: 8rem;
  height: 2.3rem;
  cursor: pointer;
  box-shadow: 0px 0px 9px 0px orange;
  transition: 0.3s;
  background-color: orange;
  font-weight: 800;
}

.left-background {
  background-color: white;
  width: 30%;
}
.perfil-photo {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: absolute;
  z-index: 2;
}

.main-container img {
  width: 23rem;
  height: 23rem;
  border-radius: 22rem;
  position: relative;
  z-index: 2;
  animation: flutuar 2s ease-in-out infinite alternate;
}
@keyframes flutuar {
  0% {
    top: 0;
  }

  100% {
    top: 30px;
  }
}

.background-wave-top {
  background: url(../img/top.svg) no-repeat;
  background-size: cover;
  height: 16rem;
  margin-top: -4rem;
}

.background-wave-bottom {
  background: url(../img/bottom.svg) no-repeat;
  background-size: cover;
  height: 19rem;
}

.skills-subTitle {
  text-align: center;
  font-family: "Space Grotesk";
  color: white;
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.container-skills {
  height: 30%;
  background-color: #ffb000;
}

.container-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.ctn-social {
  width: 70px;
  height: 70px;
  margin: 0 30px;
  transform: rotate(-30deg) skew(25deg);
  background: #ccc;
  cursor: pointer;
  border-radius: 10px;
}

.container-skills span {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  border-radius: 11px;
}

.ctn-social span:nth-child(5) {
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ctn-social:hover span:nth-child(1) {
  transform: translate(0, 0);
  opacity: 0.2;
}

.ctn-social:hover span:nth-child(2) {
  transform: translate(10px, -10px);
  opacity: 0.4;
}

.ctn-social:hover span:nth-child(3) {
  transform: translate(20px, -20px);
  opacity: 0.6;
}

.ctn-social:hover span:nth-child(4) {
  transform: translate(30px, -30px);
  opacity: 0.8;
}

.ctn-social:hover span:nth-child(5) {
  transform: translate(40px, -40px);
  opacity: 1;
}

.ctn-social:nth-child(1) span {
  background: #ff6f00;
}

.ctn-social:nth-child(2) span {
  background: #005eff;
}

.ctn-social:nth-child(3) span {
  background: #fff700;
}

.ctn-social:nth-child(4) span {
  background: #ff7300;
}

.ctn-social:nth-child(5) span {
  background: #000000;
}
.ctn-social:nth-child(6) span {
  background: #74c0fc;
}
.ctn-social:nth-child(7) span {
  background: #93c745;
}
.ctn-social:nth-child(8) span {
  background: #7012f0;
}
.about-title {
  text-align: center;
  font-family: "Space Grotesk";
  font-size: 3rem;
  font-weight: 700;
  color: orange;
}
.about-container {
  padding: 1rem;
}
.about-container img {
  width: 300px;
  height: 460px;
  border-radius: 1rem;
  margin: 4rem;
}

.sub-about-container {
  display: flex;
  gap: 60px;
  padding: 2rem;
  margin: 0rem 7rem;
  align-items: center;
}

.text-about {
  color: white;
  font-family: "Space Grotesk";
}

.text-about p {
  color: white;
  margin: 20px 0;
  text-align: justify;
}

.text-about h2 {
  font-size: 40px;
  line-height: 40px;
}

.text-about h2 span {
  color: orange;
  display: block;
  margin: 0px;
}

.project-container {
  min-height: 100vh;
  padding: 2rem;
  /* height: 38rem; */
}

.project-title {
  text-align: center;
  font-family: "Space Grotesk";
  font-size: 3rem;
  font-weight: 700;
  color: orange;
  margin-bottom: 4rem;
}

.project-interface {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}
.card {
  width: 80%;
  height: 22rem;
  background-color: orange;
  border-radius: 1rem;
}

.card img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-family: "Space Grotesk";
  color: white;
  padding-top: 0.9rem;
  padding-bottom: 1.5rem;
  font-weight: 700;
}

.project-icons {
  display: flex;
  gap: 0.7rem;
}

.hidden-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Footer */
.footer-container {
  height: 29rem;
  background-color: #ffb000;
  padding: 2rem;
}

.footer-container h2 {
  font-family: "Space Grotesk";
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--Midnight-Blue);
  margin-left: 10rem;
}

.waves {
  background: url(../img/top.svg) no-repeat;
  background-size: cover;
  height: 12rem;
}

.sub-footer-container {
  display: flex;
  gap: 5rem;
  font-family: "Space Grotesk";
  color: var(--Midnight-Blue);
  font-weight: 700;
  margin: 1rem 10rem 0rem 10rem;
}

.sub-footer-container a {
  color: white;
}
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.message-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message-container input {
  border: none;
  border-radius: 0.2rem;
  width: 22rem;
  height: 3rem;
}

.message-container textarea {
  border: none;
  border-radius: 0.2rem;
  width: 22rem;
  height: 5rem;
}

.message-container button {
  font-family: "Space Grotesk";
  color: white;
  margin-top: 1rem;
  border: solid 1px var(--Light-Pink);
  border-radius: 0.2rem;
  width: 8rem;
  height: 2.3rem;
  cursor: pointer;
  box-shadow: 0px 0px 9px 0px var(--Midnight-Blue);
  transition: 0.3s;
  background-color: var(--Midnight-Blue);
  font-weight: 800;
}

.footer-container p:last-child {
  text-align: center;
  font-family: "Space Grotesk";
  position: relative;
  top: 5rem;
}

.message-container input,
textarea {
  font-family: "Space Grotesk";
  padding: 0.5rem;
}

@media (max-width: 360px) {
  header {
    width: 100%;
  }
  .message-container input {
    width: 90%;
  }

  .message-container textarea {
    width: 90%;
  }
}
@media (max-width: 428px) {
  /* Header */
  header {
    padding: 2rem 2rem 3rem 2rem;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 2;
    background-color: #021024;
    height: 0.7rem;
  }
  .nav-container {
    display: none;
  }

  .main-container {
    flex-direction: column-reverse;
    position: relative;
    z-index: 1;
    padding-top: 5rem;
  }

  .main-container img {
    width: 18rem;
    height: 18rem;
  }

  .title-container {
    margin: 2rem 0rem 0rem 0rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .title-container h1 {
    font-size: 26px;
    line-height: 1rem;
    text-align: center;
  }

  .title-container p {
    font-size: 1rem;
    text-align: center;
  }

  .title-container button {
    margin-bottom: 4rem;
  }

  /* My skills */
  .background-wave-top {
    background-size: cover;
    height: 8rem;
  }

  .container-skills {
    height: 30%;
  }
  .main-container-skills {
    min-height: 100vh;
    padding-top: 8rem;
  }

  .skills-subTitle {
    font-size: 2rem;
  }

  .container-icons {
    flex-wrap: wrap;
  }

  .background-wave-bottom {
    height: 8rem;
  }
  /* About me */

  .about-container {
    /* min-width: 100vh; */
    padding-top: 5rem;
  }

  .sub-about-container {
    flex-direction: column;
    margin: 0rem;
    padding: 0.5rem;
  }

  .sub-about-container img {
    display: none;
  }
  .about-title {
    font-size: 2rem;
  }

  .text-about h2 {
    font-size: 2rem;
  }

  /* Project */
  .project-container {
    padding: 6rem 0rem 0rem 0rem;
  }
  .project-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .project-interface {
    flex-direction: column;
    gap: 3rem;
  }

  .card {
    width: 80%;
    height: 15rem;
    margin-bottom: 6.5rem;
  }

  .card-title {
    font-weight: 700;
    padding-top: 0.9rem;
  }

  .overlay {
    position: absolute;
    top: 21rem;
  }

  .overlay a {
    color: white;
    text-decoration: none;
    font-family: "Space Grotesk";
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 3px solid orange;
    margin-right: 1rem;
  }

  /* footer */
  .waves {
    margin-top: 2rem;
    height: 4rem;
  }
  .footer-container {
    height: 48rem;
    padding: 0rem;
  }
  .footer-container h2 {
    margin: 0rem 0rem 2rem 0rem;
    text-align: center;
    padding-top: 6rem;
  }

  .sub-footer-container {
    flex-direction: column-reverse;
    margin: 0rem;
    padding: 0rem 0rem 0rem 1rem;
    gap: 2rem;
  }
}

@media only screen and (min-width: 429px) and (max-width: 1024px) {
  /* Header */

  header {
    position: fixed;
    z-index: 2;
    background-color: var(--Midnight-Blue);
    padding: 2rem 3rem 0rem 3rem;
  }

  .main-container {
    padding-top: 7rem;
    z-index: 1;
  }
  .nav-container {
    display: none;
  }

  .title-container h1 {
    font-size: 40px;
    line-height: 1.2rem;
    text-align: center;
    gap: 1rem;
    padding-top: 1rem;
  }

  .title-container p {
    font-size: 1rem;
    text-align: justify;
  }

  .title-container {
    margin: 0rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Main */
  .main-container {
    flex-direction: column-reverse;
  }

  /* My Skills */

  .skills-subTitle {
    font-size: 2.2rem;
  }
  .container-icons {
    flex-wrap: wrap;
  }

  .background-wave-top {
    height: 8rem;
  }

  .background-wave-bottom {
    height: 14rem;
  }

  /* About */
  .sub-about-container {
    flex-direction: column;
    margin: 0rem;
    padding: 1rem;
  }

  .about-title {
    font-size: 2.2rem;
  }

  .sub-about-container img {
    display: none;
  }

  .text-about h2 {
    font-size: 2rem;
    line-height: 2rem;
  }

  .project-interface {
    flex-direction: column;
    gap: 5rem;
  }
  /* Projects */
  .card {
    width: 70%;
    height: 25rem;
    background-color: orange;
    border-radius: 1rem;
    margin-bottom: 5rem;
  }

  .card-title {
    padding-top: 0.9rem;
    font-weight: 700;
  }

  .project-container {
    padding: 1rem;
  }
  .project-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .overlay {
    position: absolute;
    top: 31rem;
  }

  .overlay a {
    color: white;
    text-decoration: none;
    font-family: "Space Grotesk";
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 3px solid orange;
    margin-right: 1rem;
  }

  .menu-mobile.open {
    width: 60%;
  }

  .menu-mobile nav ul {
    text-align: center;
    list-style: none;
  }

  .menu-mobile nav ul li a {
    font-size: 25px;
  }

  /* Footer */
  .waves {
    height: 9rem;
    margin-top: 5rem;
  }

  .footer-container {
    height: 50rem;
  }

  .sub-footer-container {
    flex-direction: column-reverse;
    margin: 0rem;
    gap: 3rem;
    padding: 2rem;
  }

  .footer-container h2 {
    margin: 0rem 0rem 0rem 2rem;
    font-size: 2.2rem;
  }
  .message-container input {
    width: 70%;
  }

  .message-container textarea {
    width: 70%;
  }
}

@media only screen and (min-width: 1025px) and (max-width: 1444px) {
  /* header */
  header {
    position: fixed;
    z-index: 2;
    background-color: #021024;
    padding: 2rem 4rem 0rem 4rem;
  }

  header .open-menu {
    display: none;
  }
  .title-container {
    margin: 0;
  }
  .title-container h1 {
    font-size: 3rem;
    line-height: 1.5rem;
  }

  /* main */
  .main-container {
    gap: 4rem;
    margin-top: 3rem;
    height: 35rem;
    margin: 0rem 0rem 0rem 0rem;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding: 4rem 2rem 0rem 2rem;
  }

  /* Skill */

  .main-container-skills {
    min-width: 1rem;
  }
  .background-wave-top {
    height: 14rem;
    position: relative;
    bottom: 2rem;
  }

  .container-skills {
    position: relative;
    bottom: 2rem;
    z-index: 2;
  }

  .background-wave-bottom {
    height: 19rem;
    position: relative;
    bottom: 5rem;
    z-index: 1;
  }

  /* about */
  .sub-about-container {
    margin: 0rem 2rem;
    padding-top: 0rem;
  }

  .about-title {
    padding-top: 6rem;
  }

  .about-container img {
    height: 400px;
  }

  /* project */

  .ptoject-container {
    padding: 1rem;
  }
  .project-title {
    padding-top: 4rem;
    margin-bottom: 2rem;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hidden-container:hover .overlay {
    opacity: 1;
    cursor: pointer;
  }

  .overlay a {
    color: white;
    text-decoration: none;
    margin: 10px;
    font-family: "Space Grotesk";
    font-weight: 500;
    transition: 0.35 ease;
    border-bottom: 3px solid transparent;
  }

  .overlay a:hover,
  .overlay a.active {
    color: orange;
    border-bottom: 3px solid orange;
  }
  /* Footer */
  .waves {
    height: 11rem;
  }

  .footer-container {
    height: 29rem;
    padding: 1rem;
  }
}

@media (min-width: 1445px) {
  /* Header */
  header {
    position: fixed;
    z-index: 2;
    background-color: #021024;
  }

  header .open-menu {
    display: none;
  }
  /* Main */
  .main-container {
    gap: 6rem;
    height: 35rem;
    margin: 0rem 0rem 0rem 0rem;
    position: relative;
    z-index: 1;
    padding: 8rem 3rem 0rem 3rem;
    margin-bottom: 2rem;
  }

  /* My skills */
  .container-skills {
    padding: 1rem;
    height: 5rem;
  }

  .background-wave-top {
    height: 22.9rem;
  }

  .background-wave-bottom {
    height: 26rem;
  }

  /* About */
  .about-container {
    padding: 10rem 0rem 3rem 0rem;
  }

  .sub-about-container {
    padding: 2rem 5rem;
  }

  /* Project */
  .project-interface {
    padding-top: 3rem;
    padding-bottom: 11rem;
  }

  .project-container {
    padding: 8rem 3rem 0rem 3rem;
    min-height: 0rem;
  }

  .project-title {
    margin-bottom: 3rem;
  }

  .card {
    height: 25rem;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hidden-container:hover .overlay {
    opacity: 1;
    cursor: pointer;
  }

  .overlay a {
    color: white;
    text-decoration: none;
    margin: 10px;
    font-family: "Space Grotesk";
    font-weight: 500;
    transition: 0.35 ease;
    border-bottom: 3px solid transparent;
  }

  .overlay a:hover,
  .overlay a.active {
    color: orange;
    border-bottom: 3px solid orange;
  }
  /* Footer */
  .waves {
    height: 17rem;
  }

  .footer-container {
    height: 30rem;
  }
}
