/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
  margin-top: 10px;
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
 
  border-bottom: 1px solid;


}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  background-size: 100%;
  background-clip: text;
  background-image: linear-gradient(to right, rgb(102, 0, 102) , rgb(48, 14, 113));
  -webkit-text-fill-color: transparent;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2.5rem;
  background-size: 100%;
  background-clip: text;
  background-image: linear-gradient(to right, rgb(102, 0, 102) , rgb(48, 14, 113));
  -webkit-text-fill-color: transparent;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
  
}

.menu-links {

  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
  z-index: 10;
}

.menu-links a { 
  border: 1px solid black;
  
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links a:hover{
  background-size: 100%;
  background-clip: text;
  background-image: linear-gradient(to right, rgb(102, 0, 102) , rgb(48, 14, 113));
  -webkit-text-fill-color: transparent;
 
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}
.profile-pic{
  border-radius: 100%;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.section__text__p3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.title {
  background-size: 100%;
  background-clip: text;
  background-image: linear-gradient(to right, rgb(102, 0, 102) , rgb(48, 14, 113));
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1
{
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover {
  cursor: pointer;
}

.btn-color-1
{
 
  background: rgb(0, 0, 0);
  color: white;

  
}

.btn-color-1:hover {
   background-size: 100%;
  background-image: linear-gradient(to right, rgb(102, 0, 102) , rgb(48, 14, 113));
  transition: all 300ms ease-in-out;
}




.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}


.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* SERVICES SECTION */
#services {
  position: relative;
  padding-bottom: 5rem;
}

.services-details-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.service-container {
  padding: 1.5rem 1.2rem; 
  flex: 1 1 300px; 
  max-width: 350px; 
  background: rgb(250, 250, 250);
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.service-container .experience-sub-title {
  font-size: 1.4rem; 
  margin-bottom: 1rem;
}

.service-container p {
  font-size: 0.95rem; 
  line-height: 1.6;
}

.service-container .icon {
  margin-bottom: 0.5rem;
}


/* --- EXPERIENCE SECTION (REDISEÑADA) --- */

#experience {
  position: relative;
}

/* Contenedor principal que centra los dos bloques */
.experience-details-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* El div que envuelve los dos bloques de experiencia */
#experience .about-containers {
  display: flex;
  justify-content: center;
  gap: 3rem; /* Espacio entre los bloques Frontend y Backend */
  flex-wrap: wrap;
}

/* Estilo para los bloques individuales (Frontend y Backend) */
.details-container-exp {
  flex: 1; /* Permite que los bloques crezcan por igual */
  min-width: 300px; /* Ancho mínimo para responsiveness */
  padding: 2.5rem;
  background: white;
  text-align: center;
  border: 2px solid purple;
  border-radius: 2rem; /* Bordes más redondeados */
}

/* Título (Frontend/Backend Development) */
.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Contenedor de todas las habilidades (HTML, JS, etc.) */
.details-container-exp .article-container {
  display: flex;
  flex-direction: column; /* Apila las habilidades verticalmente */
  align-items: flex-start; /* Alinea las habilidades a la izquierda */
  gap: 2rem; /* Espacio vertical entre cada habilidad */
  margin: 0;
}

/* Cada fila de habilidad individual */
.details-container-exp article {
  display: flex;
  gap: 1.5rem; /* Espacio entre el checkmark y el texto */
  align-items: center; /* Centra verticalmente el checkmark con el texto */
  width: auto; /* Ancho se ajusta al contenido */
  justify-content: flex-start;
}

/* El checkmark */
.details-container-exp article .icon {
  height: 2rem;
  cursor: default;
}

/* Nombre de la habilidad (HTML, JS...) */
.details-container-exp h3 {
  background-size: 100%;
  background-clip: text;
  background-image: linear-gradient(to right, rgb(102, 0, 102) , rgb(48, 14, 113));
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
  margin: 0;
  display: flex; /* Para alinear el texto con el icono pequeño */
  align-items: center;
  gap: 0.5rem;
  /* Se eliminan width y margin-left para un layout más limpio */
}

/* Nivel de experiencia (Experimentado, etc.) */
.details-container-exp p {
  margin: 5px 0 0;
  text-align: left;
}


/* --- FIN DE LA SECCIÓN DE EXPERIENCIA --- */


/* PROJECTS SECTION */

#projects {
  position: relative;
  height: 50%;
 
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}
.project-img:hover {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  
}

.downloadlink{
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-img-container {
  position: relative;
  display:flex;
  overflow: hidden; 
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
}
.project-2-img-container {
  position: relative;
  display: flex;
  overflow: hidden; 
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
}
.project-3-img-container {
  position: relative;
  display: flex;
  overflow: hidden; 
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
}
.project-4-img-container {
  position: relative;
  display:flex;
  overflow: hidden; 
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
}

.project-4-img-container {
  position: relative;
  display:flex;
  overflow: hidden; 
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
}
.project-5-img-container {
  position: relative;
  display:flex;
  overflow: hidden; 
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; 
  transition: opacity 0.3s ease; 
  z-index: 1; 
}

.video-overlay video {
  width: 100%; 
  height: auto;
}

.project-3-img-container:hover .video-overlay {
  opacity: 1; 
}

.project-2-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%; 
  background: url('./assets/project-2.png') no-repeat center center;
  background-size: cover;
  filter: blur(8px); 
  z-index: 1; 
  transition: opacity 0.3s ease; 
  opacity: 0; 
}
.project-4-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%; 
  background: url('./assets/project-4.png') no-repeat center center;
  background-size: cover;
  filter: blur(8px); 
  z-index: 1; 
  transition: opacity 0.3s ease; 
  opacity: 0; 
}

.project-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%; 
  height: 120%; 
  background: url('./assets/project-1.png') no-repeat center center;
  background-size: cover;
  filter: blur(8px); 
  z-index: 1; 
  transition: opacity 0.3s ease; 
  opacity: 0; 
}
.project-3-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%; 
  background: url('./assets/project-3.png') no-repeat center center;
  background-size: cover;
  filter: blur(8px); 
  z-index: 1; 
  transition: opacity 0.3s ease; 
  opacity: 0; 
}
.project-5-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%; 
  background: url('./assets/project-5.png') no-repeat center center;
  background-size: cover;
  filter: blur(8px); 
  z-index: 1; 
  transition: opacity 0.3s ease; 
  opacity: 0; 
}
.project-2-img-container:hover::before {
  opacity: 1; 
}

.project-img-container:hover::before {
  opacity: 1; 
}
.project-3-img-container:hover::before {
  opacity: 1; 
}
.project-2:hover .project-img {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(0.9); 
}
.project-3:hover .project-img {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(0.9); 
  
  
}
.project-1:hover .project-img{
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(0.9);

}


.project-img-container:hover .project-img {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(0.9); 
}

.project-3-img-container:hover .project-img {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); 
  transform: scale(0.9); 
  opacity: 0.0;
}

.project-title {
  margin: 1rem;
  color: black;
}
.project-1{
  width: 60%;
}

.project-2{
  width: 30%;
}
/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}


.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* Language Switcher */
.lang-switcher a {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

.lang-switcher a:hover {
  text-decoration: underline;
  background-image: none; 
  -webkit-text-fill-color: initial;
}