* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'lato', sans-serif;
  /* font-family: 'ibm-plex-mono', sans-serif;*/
}

body {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  background: #24241f;
  color: rgb(181, 177, 177);
  overflow-x: hidden;
  outline: 2px solid red;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  padding: auto;
  margin: auto;
  overflow-x: hidden;
}

h2 {
  color: #66d2f6;
  font-weight: 400;
  margin-top: 80px;
  margin-left: auto;
  font-size: 1.3rem;
}

h4 {
  font-weight: 400;
  height: 10vh;
  font-size: 1.3rem;
  text-align: center;
}

/* navbar */

.logo {
  width: 5%;
  position: fixed;
  top: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #24241f;
  padding: 0 10vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9;
}

.links-container {
  display: flex;
  list-style: none;
  position: relative;
}

.link {
  text-transform: capitalize;
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  padding: 10px;
  position: relative;
  font-size: 1rem;
  font-weight: 300;
}

.link:hover:not(.active) {
  opacity: 0.7;
}

.link.active::before,
.seperator::before {
  content: ''; /* this line is important to see the sudo element(decoration line) */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 5px;
  border-radius: 50%;
  background: #66d2f6;
}
.link.active::before,
.seperator-black::before {
  content: ''; /* this line is important to see the sudo element(decoration line) */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 5px;
  border-radius: 50%;
  background: #66d2f6;
}

.link.active::after,
.seperator::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
}
.link.active::after,
.seperator-black::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #2a2a2a;
}

/* home section */

.home {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.hero-content .image {
  max-width: 600px;
  width: 100%;
  height: auto;

  margin-bottom: 1.5rem;
  display: block;
}

.profession {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #66d2f6;
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
  opacity: 1;
  filter: drop-shadow(0 0 6px #66d2f6);
  outline: none;
}

.scroll-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.scroll-arrow {
  animation: glow 2.5s infinite ease-in-out;
}

@keyframes glow {
  0%,
  100% {
    stroke-opacity: 0.7;
    filter: drop-shadow(0 0 3px #66d2f6);
  }
  50% {
    stroke-opacity: 1;
    filter: drop-shadow(0 0 8px #66d2f6);
  }
}

/* about section */

.about {
  width: 100%;
  height: auto;
  padding: 50px 10vw 10px 10vw;
  align-items: center;
  margin: 0 auto;
}

.heading {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem 1rem; /* top, right, bottom, left */
  margin: 0 auto; /* elimina margen inferior innecesario */
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: capitalize;
  color: #66d2f6;
}

.seperator {
  width: 20%;
  margin: 0 auto 3rem auto; /* TOP: 0.5rem | BOTTOM: 4rem */
  position: relative;
}
.seperator-black {
  width: 20%;
  margin: 0 auto 3rem auto; /* TOP: 0.5rem | BOTTOM: 4rem */
  position: relative;
}

.seperator-footer {
  width: 50%;
  height: 100%;
  margin: 20px auto;
  position: relative;
}
.about {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /*background-color: #7e7d7b; /* color crema */
}

.about-me-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
  flex-wrap: nowrap;
}

.text-wrapper {
  flex: 2 1 400px;
  max-width: 100%;
}

.about-image-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.about-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #00bcd4, #8be9fd) padding-box,
    linear-gradient(135deg, #00bcd4, #8be9fd) border-box;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.about-image-wrapper:hover {
  transform: translateY(-5px) rotate(-1deg);
}

.about-para {
  color: #e4e4e4;
  font-size: 1rem;
  font-weight: 300; /* Lighter font */
  line-height: 1.6;
  text-align: left;
  padding: 1rem 0;
}

.highlight {
  color: #66d2f6;
  font-weight: 500;
}

.highlight.big {
  font-size: 1.5em; /* 50% más grande que el texto normal */
}
.underline-accent {
  border-bottom: 2px solid #66d2f6; /* cyan line */
  padding-bottom: 0.1em;
}

.mail-link {
  background-color: #66d2f6;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none;
  border-radius: 32px;
  text-transform: capitalize;
  border: none;
  display: flex;
  justify-content: center;
  width: 230px;
  height: 48px;
  flex-direction: row;
  align-items: center;
  padding: 16px 60px;
  gap: 8px;
}

a.mail-link {
  margin: 50px 1px;
  color: #333333;
}

.mail-link:hover {
  background-color: #333333;
  border: 0.1rem solid #66d2f6;
  color: #66d2f6;
}

/* project section */

.project {
  position: relative;
  padding: 50px 10vw 150px 10vw;
  background: #fff;
  margin: 0 auto;
}

.filters {
  width: fit-content;
  display: block;
  margin: 100px auto;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  text-transform: capitalize;
  margin: 0 5px 10px;
  cursor: pointer;
}

.filter-btn.active {
  background: #060606;
  border: 0.2rem solid #66d2f6;
  color: #fff;
}

.project-container {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
/* Card base */
.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background-color: #fff;
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

/* Image wrapper */
.image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/**/
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Info block */
.content {
  padding: 2rem;
  background-color: #fff;
  border-radius: 0 0 16px 16px;
  box-sizing: border-box;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 500;
  padding-left: 0.75rem;
  border-left: 4px solid #66d2f6; /* your brand cyan */
  margin-bottom: 0.5rem;
  color: #111;
}

.tags {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.contact {
  position: relative;
  padding: 50px 0vw;
  background: #fff;
  margin: 0 auto;
}
.contact-container {
  width: 100%;
  margin: 100px 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.writeme-link {
  background-color: #66d2f6;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none;
  border-radius: 32px;
  text-transform: capitalize;
  border: none;
  display: flex;
  justify-content: center;
  width: 230px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  padding: 16px 60px;
  gap: 8px;
}

a.writeme-link {
  margin: 176px auto;
  color: #333333;
}

.writeme-link:hover {
  background-color: #333333;
  border: 0.1rem solid #66d2f6;
  color: #66d2f6;
}

.social {
  font-size: 30px;
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 4em 0 0;
  gap: 30px;
  padding: 0;
}

.social-item {
  margin: 0 0.2em;
  color: rgb(47, 46, 46);
}

.social-link {
  padding: 0.7em;
}

.mail {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
}
.follow {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 2em;
  margin-bottom: 2em;
}
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #66d2f6;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #66d2f6;
  color: #000;
}

.social-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.icon-label {
  font-size: 0.85rem;
  margin-top: 6px;
  user-select: none;
}
.contact-intro {
  text-align: center;
  color: black;
  max-width: 600px; /* opcional, para limitar ancho y mejorar lectura */
  margin: 0 auto 20px; /* centrado horizontal y espacio abajo */
  font-size: 1rem; /* ajusta tamaño si quieres */
}

.resume-download {
  text-align: center;
  margin-top: 2.5rem;
}

.resume-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.8rem;
}

.resume-button.subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.resume-button.subtle i {
  margin-right: 0.4rem;
  font-size: 1rem;
}

.resume-button.subtle:hover,
.resume-button.subtle:focus {
  background-color: #e0e0e0;
  border-color: #999;
  transform: translateY(-1px);
  outline: none;
}

.resume-button.subtle:active {
  transform: scale(0.98);
}

/* footer */

.footer {
  width: 100%;
  height: 30px;
  margin-top: 40px;
  text-align: center;
  background-color: #0d0d0d;
  line-height: 30px;
  color: #66d2f6;
  font-size: small;
}

/* -------------tablet view --------------*/

@media (max-width: 996px) {
  html {
    font-size: 14px;
  }
  /* toggle btn */
  .logo {
    position: absolute;
    width: 60px;
    height: 70px;
    top: 10%;
  }
  .toggle-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    right: 10vw;
    cursor: pointer;
  }
  .toggle-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    top: 30%;
    transition: 0.5s;
  }
  .toggle-btn span:nth-child(2) {
    top: 70%;
  }
  .toggle-btn.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
  }
  .toggle-btn.active span:nth-child(2) {
    top: 50%;
    transform: rotate(-45deg);
  }
  /* links */
  .links-container {
    position: absolute;
    top: 60px;
    background: #24241f;
    width: 100%;
    left: 0;
    padding: 0 10vw;
    flex-direction: column;
    transition: 0.5s;
    opacity: 0;
    pointer-events: none;
  }
  .links-container.show {
    opacity: 1;
    pointer-events: all;
  }
  .link {
    margin-left: auto;
    text-align: center;
    display: block;
    height: 50px;
  }
  /* home section */
  .home {
    grid-template-columns: 1fr;
    flex-direction: column-reverse;
    height: fit-content;

    padding-bottom: 180px;
  }
  .home .image {
    width: 55vh;
    margin: 10px;
    height: auto;
  }
  .hero-content {
    width: 58vh;
    min-width: 300px;
    margin-top: 8rem;
    text-align: center;
  }
  .hero-heading {
    padding: auto 30px;
  }

  .about-me-container {
    flex-direction: column;
    align-items: center;
  }
  .about-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .about-image {
    width: 100%;
    height: auto;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }
  .about-para {
    width: 80%;
    margin: 1rem auto 0;
    justify-content: normal;
    text-align: left;
  }
  .left-col {
    margin: auto;
    width: 50%;
    min-width: 320px;
  }

  .project-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .about-image-wrapper {
    margin-bottom: 2rem;
  }

  .about-para {
    font-size: 1.1rem;
    text-align: left;
    padding: 0 1rem;
  }
  .about-image {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .image {
    max-width: 80vw;
  }
  .profession {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .home {
    height: 100vh; /* Modifica: antes era 100vh, lo hacemos auto */
    padding-bottom: 100px; /* Puedes ajustar para espaciado final */
    flex-direction: column;
  }
  .hero-content .image {
    display: block !important; /* Fuerza que se muestre */
    max-width: 90vw; /* Tamaño máximo en función del viewport */
    width: 100%; /* Ancho completo dentro del max */
    height: auto; /* Mantener proporción */
    margin-bottom: 1rem; /* Espacio inferior */
    position: relative; /* Para evitar problemas con z-index */
    z-index: 10; /* Que esté por encima si algo la tapa */
  }
  .resume-button {
    width: 80%;
    font-size: 1rem;
  }
}

/* -------------mobile view ----------*/
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  p,
  .sub-heading,
  .about-para,
  .left-col::before,
  .tags,
  h2 {
    font-size: 1rem;
    width: 90%;
  }
  .about-image {
    width: 100%;
    margin: auto;
    display: block;
  }
  .about-para {
    font-size: 1rem;
    width: 100%;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .project-name {
    font-size: 2rem;
  }
  .name {
    flex-direction: column;
  }
  .name input {
    width: 100%;
  }
  .first-name {
    margin-bottom: 20px !important;
  }
}
