*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html,body {
    scroll-behavior: smooth; 
}

/* Header */
header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

li a {
    position: relative;
    color: white;
    font-weight: 300;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
}

li a:hover::before {
    width: 100%;
}

.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
}

.visit-btn:hover {
    background: linear-gradient(to right, rgb(255,0,255), rgb(0,157,255));
    transform: scale(1.03);
}

#menu-icon {
    font-size: 2rem;
    margin-left: 1rem;
    color: white;
    display: none; /* Oculto por defecto */
}





/* Main */


/* Principio */

section {
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.about img{
    width: 40vh;
    background-color: #f5eef986;
    border-radius: 50%;
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1{
    font-size: 4rem;
    font-weight:600;
}

.info-box span{
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.btn-group{
    display: flex;
    gap: 1rem;
    margin-top: 5px;
}

.btn {
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
    color: black;
}

.btn:hover{
    background-color: black;
    color: white;
}




.socials{
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2 ease-in-out;
}

.socials i:hover{
    transform: scale(1.1);
    color: #0073b1;
}
.social-icon {
    font-size: 2rem; 
    color: #000; 
    transition: color 0.3s ease;
    text-decoration: none; 
}





/* about me */


/* Título de la sección */
.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* Contenedor principal de la sección */
.aboutme-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
}

/* Estilo para el grid */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    width: 50%;
}

/* Cada tarjeta del grid */
.grid-card {
    border: 2px solid black;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.grid-card:hover {
    transform: scale(1.02);
    background-color: black;
    color: white;
}

/* Estilo para la tarjeta grande */
.grid-card.large {
    grid-column: span 2;
}

/* Iconos dentro de las tarjetas */
.grid-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Texto dentro de las tarjetas */
.grid-card span {
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    background-clip: text;
    color: transparent;
}

/* Imagen de perfil */
.perfil-img {
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f5eef986;
    margin-left: 1rem;
}

/* Ajuste de fondo */
section#aboutme {
    padding: 4rem 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background-color: rgb(219,219,219);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, rgb(0,157,255), rgb(255,0,255));
    border-radius: 25px;
}








/* Projectos */









.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Muestra 2 columnas */
    gap: 20px; /* Espacio entre las tarjetas */
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(1, 1fr); /* En pantallas pequeñas, muestra 1 columna */
    }
}

.project-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.project-card:hover {
    background-color: black;
    color: white;
    transform: translateY(-10px)scale(1.02);
}

.project-card img {
    width: 20vw;
    border-radius: 0.5rem;
}

.project-card:hover .btn {
    border: 2px solid white;
    color: white;
}

.project-card:hover .btn:hover {
    border: 2px solid white;
    background-color: white;
    color: black;
}

.project-card h3 {
    font-size: 2rem;
    font-weight: 500;
}

/* Ajuste para alinear los iconos de tech stack horizontalmente */
.project-card .tech-stack {
    display: flex;
    gap: 1rem; /* Espacio entre los íconos */
    justify-content: center;
    align-items: center;
}

/* Estilo para los íconos individuales */
.project-card .slide {
    font-size: 2rem;
    margin: 0.5rem 0;
    transition: transform 0.3s ease;
}

.project-card .slide:hover {
    transform: scale(1.2); /* Aumenta el tamaño del ícono al pasar el cursor */
}



/* Stacks */



.slider {
    display: flex;
    height: auto;
    margin: auto;
    overflow: hidden;
    align-items: center;
  }
  
  .slider:before {
    position: absolute;
    z-index: 1;
    left: 0;
    content: "";
    width: 23.958%;
    height: 110px;
    background: linear-gradient(-90deg, hsla(0, 0%, 96.9%, 0), #f7f7f7);
  }
  
  .slider:after {
    position: absolute;
    right: 0;
    content: "";
    width: 23.958%;
    height: 110px;
    background: linear-gradient(
      90deg,
      hsla(0, 0%, 96.9%, 0),
      hsla(0, 0%, 96.9%, 0.99) 99%
    );
  }
  
  .slider .slide-track {
    display: flex;
    animation: scroll 35s linear infinite;
    -webkit-animation: scroll 35s linear infinite;
    width: calc(240px * 10);
  }
  .slider .slide-infit {
    cursor: pointer;
    width: 180px;
    height: auto;
    padding: 10px;
    margin: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
      rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider .slide-infit img {
    height: auto;
    width: 160px;
    filter: brightness(0) saturate(100%);
    opacity: 0.25;
  }
  

  .slider:hover .slide-track{
    animation-play-state: paused;

  }


  
  @keyframes scroll {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }
  
    100% {
      -webkit-transform: translateX(calc(-240px * 5));
      transform: translateX(calc(-240px * 5));
    }
  }










  /* Contacto */




  #contact{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  


  .contact-form {
    padding: 50px 55px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    text-align: center;
    width: 700px;
  }

  .input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
  }


  .contact-form h2{
    font-size: 2rem;
  }

  label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
  }


  input, textarea {
    padding: 17px 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: linear-gradient(to right, rgba(0, 157, 255, 0.637), rgba(255, 0, 255, 0.568));
    border: 2px solid #f0faf1;
    outline: none;
  }


  /* Footer */

  footer{
    bottom: 0;
    left: 0;
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
  
  footer ul {
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  footer ul li a{
    color: black;
    font-weight: 600;
  }

  .coopyright{
    font-size: 300;
    margin-top: 2rem;
  }


  /* Responsivo */


  @media screen and (max-width: 1024px) {
    .about .about-container {
        flex-direction: column;
        text-align: center;
    }
    .aboutme img {
        width: 15rem;
    }
    .about img{
        width: 20rem;
    }

    header {
        gap: 2rem;
        width: 200px;
    }
    .visit-btn{
        display: none;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 1rem;
        text-align: center;
        transition: all 0.3s ease-in-out;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    header {
        padding: 0.5rem;
        gap: 1rem;
    }

    .visit-btn {
        display: none;
    }

    /* Mostrar ícono de hamburguesa en pantallas pequeñas */
    #menu-icon {
        display: block;
        margin-left: 60px;
    }
    .aboutme-info {
        flex-direction: column;
        gap: 1rem;
    }

    .grid {
        width: 100%;
        grid-template-columns: 1fr;
        height: auto;
    }
    .grid-card.large {
        grid-column: span 1; 
    }

    .perfil-img {
        width: 20rem;
        height: 20rem;
        margin: 0 auto; 
    }

    .section-title {
        font-size: 3rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        width: 45%;
    }
    .project-card {
        margin: 20px;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 5rem 2rem;
    }

    .visit-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .about img {
        width: 20rem;
    }

    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .perfil-img {
        width: 15rem;
        height: 15rem;
    }
    #menu-icon {
        display: block;
    }
    
    
    
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.5rem;
    }

    .about img {
        width: 20rem;
    }

    .info-box h1 {
        font-size: 2.5rem;
    }

    .info-box span {
        font-size: 1.5rem;
    }
}
