@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: red;
  --primary-color-dark: green;
  --secondary-color: green;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: #faf5ff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;

}

body {
  font-family: "Poppins", sans-serif;
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #373636;
  z-index: 99;
  
}


.nav__content {
  max-width: var(--max-width);
 
  
  display: flex;
  align-items: center;
  margin-top: 16px;
  justify-content: space-between;

  
}

.logo{
  margin-top: -15px;
  display: flex;
  align-items: center;
  height: auto;

}

.logo img{
  width: 200px;
}


nav .logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(15, 189, 15);
  transition: 0.3s;
}
nav .logo a:hover {
  color: green;
}

nav .checkbox {
  display: none;
}

nav input {
  display: none;
}
nav .checkbox i {
  font-size: 2rem;
  color: rgb(15, 189, 15);
  cursor: pointer;
}

ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: left 0.3s;
}

ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}

ul li a:hover {
  border-top-color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  color: var(--secondary-color);
}

.section {
  background-color: var(--extra-light);
}

.section__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.sectionM {
 padding-top: 70px;
width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  
}

.section__containerM {
  margin-top: 30px;
  max-width: var(--max-width);
  
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(1);
  padding: 50px;
}



.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

.subtitle {
  letter-spacing: 8px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 40px;
}

.title {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 8px;

}

.title span {
  font-weight: 600;
  letter-spacing: 8px;

}



.contentM {
  display: flex;
 flex-direction: column;
  justify-content: center;
  align-items: center;
}

.subtitleM {
  letter-spacing: 10px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 40px;
}

.titleM {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 3rem;
  color: white;
  margin-bottom: 1rem;
  background-color: green;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.titleM span {
  font-weight: 600;
}



.descriptionM {
  background-color: #f0f2f5; /* Fondo claro para destacar el área de texto */
  border-left: 5px solid var(--secondary-color); /* Borde lateral para destacar la sección */
  padding: 20px; /* Espaciado interno para no tocar los bordes */
  margin: 20px 0; /* Margen externo para separar de otros contenidos */
  font-size: 1rem; /* Tamaño de fuente adecuado para la legibilidad */
  line-height: 1.6; /* Espaciado de línea para mejorar la lectura */
  color: var(--text-dark); /* Color de texto para contraste con el fondo */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombra sutil para profundidad */
}

.descriptionM strong {
  color: var(--primary-color); /* Color principal para los títulos y puntos fuertes */
  font-weight: bold; /* Negrita para destacar aún más */
}

.descriptionM ul {
  list-style-type: none; /* Sin viñetas para una lista limpia */
  padding-left: 20px; /* Espaciado para alineación de texto */
}

.descriptionM li {
  margin-bottom: 10px; /* Espacio entre ítems de la lista */
}

.descriptionM li::before {
  content: "•"; /* Uso de un pseudo-elemento para personalizar viñetas */
  color: var(--primary-color); /* Color de la viñeta para que coincida con los títulos */
  font-size: 1.2em; /* Tamaño más grande para hacerlo notable */
  padding-right: 10px; /* Espacio entre la viñeta y el texto */
}





.description {
  line-height: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
 
}

.action__btns {
  display: flex;
  gap: 1rem;
}

.action__btns button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  outline: none;
  border: 2px solid rgb(15, 189, 15);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.hire__me {
  background-color:   rgb(15, 189, 15);
  color: #ffffff;
}

.hire__me:hover {
  background-color: green;
}

.portfolio {
  color: rgb(15, 189, 15);
}

.portfolio:hover {
  background-color: green;
  color: #ffffff;
}

.image {
  display: grid;
  place-items: center;
}

.image img {
  width: min(25rem, 90%);
  border-radius: 100%;
}


@media (width < 750px) {
  nav .checkbox {
    display: block;
  }

  ul {
    position: absolute;
    width: 100%;
    height: calc(100vh - 85px);
    left: -100%;
    top: 85px;
    background-color: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  .contentM {
    display: flex;
   flex-direction: column;
    justify-content: center;
  }

  nav #check:checked ~ ul {
    left: 0;
  }

  ul li a {
    font-size: 1.25rem;
  }

  .section__container {
    padding: 10rem 1rem 5rem 1rem;
    text-align: center;
    grid-template-columns: repeat(1, 1fr);
    
  }

  .image {
    grid-area: 1/1/2/2;
  }

  .action__btns {
    margin: auto;
  }
  
}


@media (min-width:1000px) {
  .section__container {
    
    font-size: 1.2em; /* Aumentar el tamaño de la fuente */
    padding: 20px; /* Aumentar el padding para más espacio alrededor del contenido */
    margin: auto; /* Centrar el contenedor si es más pequeño que el ancho de la ventana */
    width: 80%; /* Aumentar el ancho del contenedor */
   
  }

.logo{
  left: 20px;
}

  .image{
    margin-top: 40px;
  }
}



@media (min-width:1367px) {
  .section__container {
    font-size: 1.2em; /* Aumentar el tamaño de la fuente */
    padding: 20px; /* Aumentar el padding para más espacio alrededor del contenido */
    margin: auto; /* Centrar el contenedor si es más pequeño que el ancho de la ventana */
    width: 80%; /* Aumentar el ancho del contenedor */
    transform: scale(1.4); /* Escala el contenedor a 110%, simulando un zoom */
  }


  nav .logo {
    margin-top: 0; /* Restablece cualquier margen superior que pueda interferir */
    order: -1; /* Asegura que el logo se muestre primero */
  }
  nav {
    padding: 0 1rem; /* Adjust padding to ensure it's to the edge */
  }

  .nav__content {
    max-width: var(--max-width);
    display: flex;
    justify-content: space-between; /* This separates the logo and the menu to opposite ends */
    align-items: center;
  }

   nav ul {
    position: absolute; /* Absolute positioning */
    right: 30px; /* Align to the right */
    top: 50%; /* Start from the middle vertically */
    transform: translateY(-50%); /* Shift upwards by half its height to center vertically */
    margin-right: 0; /* Ensure no margin on the right */
  }
}
@media (max-width: 750px) {
  nav .checkbox {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
  }

  nav .nav__content {
    justify-content: space-between;
    padding: 1rem;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  nav #check:checked ~ ul {
    transform: translateX(0);
  }

  ul li a {
    font-size: 1.5rem;
    padding: 0.8rem 1.2rem;
  }

  .section__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 1rem;
  }

  .title, .subtitle {
    font-size: 1.5rem; /* Reduce the font size for titles */
  }

  .action__btns button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .image img {
    width: 70%;
  }
}

@media (max-width: 500px) {

.content{
  margin-top: -150px;
}



.nav__content ul li{
  background-color: green;
}

.image{
  margin-top: 20px;
}
  .logo img {
    width: 150px; /* Make logo smaller to fit better on smaller screens */
  }

  .subtitle{
    background-color: green;
    color: white;
  }

  .title, .subtitle {
    font-size: 1.2rem; /* Further reduce the font size for very small screens */
  }

  .description, .descriptionM {
    padding: 0 10px; /* Add padding to descriptions for better readability */
    color: #1f2937;
  }
}
@media (max-width: 768px) {
  .descriptionM {
    padding: 15px; /* Reducción del padding en dispositivos pequeños */
    font-size: 0.9rem; /* Ligera reducción del tamaño de fuente */
  }

  .descriptionM li::before {
    font-size: 1em; /* Reducción del tamaño de la viñeta */
  }
}
