@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  background: linear-gradient(to bottom, #ffe0e0, #e0fffd);
}

.nav-bar {
  width: 100%;
  display: flex;
  gap: 3rem;
  top: 0;
  padding: 1rem;
  background-color: white;
  position: fixed;
  justify-content: center;
  z-index: 1000;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-size: 1.2rem;
  color: black;
}

nav a:hover {
  color: #7879c9;
  font-weight: 700;
}

.section-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 5rem 2rem 2rem 2rem;
  gap: 1rem;
}

.section-hero div {
  text-align: center;
}

.word {
  background-color: #fbd160;
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  line-height: 3.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.word::after {
  content: "|"; /* El cursor */
  left: 100%; /* Ubicación al final del texto */
  top: 0;
  font-size: 2.5rem; /* Igual que el texto */
  line-height: 3.5rem; /* Alineación vertical con el texto */
  color: black; /* Color del cursor */
  animation: blink 700ms steps(2) infinite; /* Parpadeo */
}

.section-hero p {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 1rem;
  max-width: 800px;
}

.section-project {
  padding: 1rem;
  text-align: center;
  padding-top: 3rem;
  margin-bottom: 3rem;
}

.section-project h2 {
  font-size: 3rem;
  line-height: 2.2rem;
  margin-bottom: 4rem;
  color: #7879c9;
}

.main-project {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 2rem;
}

.project {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0.2rem 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
  max-width: 400px;
  max-height: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  color: #7879c9;
}

.image-container {
  width: 300px;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #7879c9;
  background-color: #fbd160;
  border-radius: 0.5rem;
  transition: background-color 0.3s;
  font-weight: 600;
}

.project-links a:hover {
  background-color: #d28ddc;
  color: #fbd160;
}

.section-skills {
  padding: 2rem 1rem;
  text-align: center;
}

.section-skills h2 {
  font-size: 3rem;
  color: #7879c9;
}

.main-skill {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.main-skill img {
  max-width: 4rem;
  transition: transform 0.3s ease;
}

.main-skill img:hover {
  transform: scale(1.2);
}

.footer {
  text-align: center;
  padding-top: 2rem;
}

.section-contact {
  padding: 1rem;
  text-align: center;
  padding-top: 3rem;
  margin-bottom: 3rem;
}

.section-contact h2 {
  font-size: 3rem;
  color: #7879c9;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Buttons */
.button-52 {
  font-family: "Courier New", Courier, monospace;
  width: 400px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 13px 20px 13px;
  outline: 0;
  border: 2px solid #7879c9;
  border-radius: 0.5em;
  cursor: pointer;
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  display: inline-block;
}

.button-52 a {
  text-decoration: none;
  color: #7879c9;
  display: block;
  width: 100%;
  height: 100%;
}
.button-52 a:hover {
  color: #fbd160;
}

.button-52:after {
  content: "";
  background-color: #fbd160;
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  transition: 0.2s;
  border-radius: 0.4em;
}

.button-52:hover:after {
  top: 0px;
  left: 0px;
  background-color: #d28ddc;
}

@media (min-width: 768px) {
  .button-52 {
    padding: 13px 50px 13px;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    gap: 1rem;
    padding: 1rem;
  }
  nav a {
    font-size: 1rem;
  }
  .section-hero p {
    font-size: 1rem;
  }
  .section-skills h2,
  .section-contact h2,
  .section-hero h2,
  .section-project h2 {
    font-size: 1.8rem;
  }
  .word {
    font-size: 2rem;
    line-height: 2rem;
  }
  .word::after {
    font-size: 2rem;
    line-height: 2rem;
  }
}
