/* RESET CSS*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}
a{
  text-decoration: none;
}
/*TITULOS*/
.titulo-secciones{
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: #ffffff;
}
/*TITULOS*/
/*EFECTO BACKGROUND*/
#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index:0;
  top: 0;
  left: 0;
}
/*EFECTO BACKGROUND*/
/*BOTONES*/
    /*Primario*/
    .btn-primario {
    position: relative;
    background-color: #227D2C;
    color: #fff;
    border: 1px solid #227D2C;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 1.0s ease-in-out, color 1.0s ease-in-out;
    overflow: hidden;
    z-index: 0;
    height: 50px;
    width: 200px;
    }

    .btn-primario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(8, 255, 103, 0.068);
    transition: width 0.6s ease-in-out;
    z-index: -1;
    }
    .btn-primario:hover::before {
    width: 100%;
    }
    .btn-primario:hover {
    background-color: rgba(0, 255, 94, 0.2);
    color: #ffffff;

    }
    /*Secundario*/
    .btn-secundario {
    position: relative;
    background-color: transparent;
    color: #17BC25;
    border: 1px solid #17BC25;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 1.0s ease-in-out, color 0.3s ease-in-out;
    z-index: 0;
    overflow: hidden;
    height: 50px;
    width: 200px;
    }

    .btn-secundario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #17BC25;
    transition: width 0.6s ease-in-out;
    z-index: -1;
    }

    .btn-secundario:hover::before {
    width: 100%;
    }

    .btn-secundario:hover {
    color: #000;
    border-color: #17BC25;
    }
/*BOTONES*/

/*HEADER*/
.logo-header {
  max-width: 150px;
  height: auto;
}
header,
.navbar {
  position: relative;
  z-index: 10;
}
.nav-link {
  position: relative;
  color: #fff;
  font-weight: 600;
  transition: color 0.5s ease;
  cursor: pointer;
  font-size: 15px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #17BC25;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #17BC25;
}
.nav-link:hover::after {
  width: 60%;
}
/*HEADER*/
/*SECCION-1-hero*/
._section1 {
  background-color: transparent;
  position: relative;
  z-index: 1;
}
.subt_hero{
    font-size: 20px;
    font-weight:100;
    margin:0 ;   
}
.titulo_hero{
    font-size: 50px;
    font-weight:900;
    margin: 0;
}
.hero-img-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.hero-img-wrapper::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 440px;
  background: radial-gradient(circle, rgba(0, 255, 94, 0.45) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(45px);
  animation: pulseGlowHero 2.8s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(0, 255, 94, 0.15));
  transition: transform 0.3s ease;
}
@media (max-width: 576px) {
  .hero-img {
    max-width: 280px;
  }
  .hero-img-wrapper::before {
    width: 160px;
    height: 260px;
    filter: blur(30px);
  }
}
@keyframes pulseGlowHero {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
  }
}
.hero-img-wrapper {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
}
/*SECCION-1-hero*/
/*SECCION-2-Acerca-de-mi*/
._section2 {
  background-color: transparent;
  position: relative;
  z-index: 1;
}

    /*LEFT NUEVO*/
    .about_logo {
      z-index: 1;
      background: radial-gradient(circle at center, rgba(3, 226, 21, 0.333), transparent);
      padding: 1rem;
      border-radius: 16px;
      box-shadow: 0 0 40px rgba(3, 158, 0, 0.488);
      max-width: 300px;
      animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite;
      transition: transform 0.3s ease;
    }
    
    .about_logo img {
      width: 100%;
      max-width: 500px;
      height: auto;
      z-index: 2;
    }
    
    .about_logo:hover {
      transform: scale(1.05);
    }
    
    @media (max-width: 768px) {
      .about_logo {
        max-width: 100%;
        padding: 0.5rem;
        box-shadow: 0 0 25px rgba(3, 158, 0, 0.4);
      }
    
      .about_logo img {
        max-width: 200px;
      }
    }
    
    /* Animaciones */
    @keyframes pulse {
      0%, 100% {
        box-shadow: 0 0 40px rgba(3, 158, 0, 0.4);
      }
      50% {
        box-shadow: 0 0 70px  rgba(0, 255, 94, 0.45);
      }
    }
    
    @keyframes float {
      0%, 100% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-20px);
      }
    }

    /*LEFT NUEVO*/
    
    /*RIGHT*/
    .about-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: 30px;
      color: #227D2C;
    }
    .about-description {
      font-size: 16px;
      color: #ccc;
      
      font-weight: lighter;
    }
    .tech-icon {
      width: 50px;
      height: 50px;
      padding: 8px;
      border-radius: 8px;
      background-color: #000;
      border: 2px solid transparent;
      box-shadow: 0 0 10px rgba(0, 255, 94, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      object-fit: contain;
    }

    .tech-icon:hover {
      transform: scale(1.1);
      box-shadow: 0 0 16px rgba(0, 255, 94, 0.6);
      border-color: #ffffff; 
      filter: brightness(1.3);
    }
    .tech-icon.html        { box-shadow: 0 0 10px rgba(255, 87, 34, 0.5); border-color: rgba(255, 87, 34, 0.4); }
    .tech-icon.css         { box-shadow: 0 0 10px rgba(33, 150, 243, 0.5); border-color: rgba(33, 150, 243, 0.4); }
    .tech-icon.javascript  { box-shadow: 0 0 10px rgba(255, 235, 59, 0.5); border-color: rgba(255, 235, 59, 0.4); }
    .tech-icon.bootstrap   { box-shadow: 0 0 10px rgba(111, 66, 193, 0.5); border-color: rgba(111, 66, 193, 0.4); }
    .tech-icon.php         { box-shadow: 0 0 10px rgba(124, 121, 255, 0.5); border-color: rgba(124, 121, 255, 0.4); }
    .tech-icon.wordpress   { box-shadow: 0 0 10px rgba(70, 130, 180, 0.5); border-color: rgba(70, 130, 180, 0.4); }

    .tech-icon.jquery      { box-shadow: 0 0 10px rgba(0, 150, 200, 0.5); border-color: rgba(0, 150, 200, 0.4); }
    .tech-icon.tailwind    { box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); border-color: rgba(56, 189, 248, 0.4); }
    .tech-icon.figma       { box-shadow: 0 0 10px rgba(255, 64, 129, 0.5); border-color: rgba(255, 64, 129, 0.4); }
    .tech-icon.xd          { box-shadow: 0 0 10px rgba(219, 39, 119, 0.5); border-color: rgba(219, 39, 119, 0.4); }
    .tech-icon.photoshop   { box-shadow: 0 0 10px rgba(0, 191, 255, 0.5); border-color: rgba(0, 191, 255, 0.4); }
    .tech-icon.premiere    { box-shadow: 0 0 10px rgba(142, 68, 173, 0.5); border-color: rgba(142, 68, 173, 0.4); }
    
    .subt_section2{
    font-size: 20px;
    font-weight:100;
    margin:0 ;   
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
}
/*SECCION-2-Acerca-de-mi*/
/*SECCION-3-Proyectos*/
._section3 {
  background-color: transparent;
  position: relative;
  z-index: 1;
}
.card-proyectos {
  background: linear-gradient(to bottom, #000 0%, #000 10%, #2b2828be 100%);
  background-size: 100% 200%;
  background-position: top;
  color: #fff;
  border-radius: 10px;
  padding: 50px;
  border: 1px solid transparent; 
  opacity: 0;
  transform: translateY(20px);
  transition: 
    opacity 0.6s ease,
    transform 0.6s ease,
    border 0.4s ease,
    box-shadow 0.4s ease,
    background-position 0.8s ease;
}

.card-proyectos.reveal {
  opacity: 1;
  transform: translateY(0);
}

.card-proyectos:hover {
  background-position: bottom;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
  transform: translateY(-4px); 
}

@media (max-width: 768px) {
  .card-proyectos {
    padding: 25px;
  }
}
.tech-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-proyect {
  border: 1px solid #17BC25;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 500;
  color: #fff;
  background-color: transparent;
  text-transform: uppercase;
  display: inline-block;
} 
.thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    border-radius: 5px;
    margin: 5px 5px;
  }

  .thumbnail:hover,
  .thumbnail.active {
    border: 2px solid #bababa4e ; 
  }

  .thumb-container {
    overflow-x: auto;
    gap: 10px;
  }

  @media (min-width: 992px) {
    .thumb-container {
      flex-direction: column !important;
      overflow-x: unset;
    }
    .thumb-container img {
      margin: 0 0 10px 0;
      width: 60px;
    }
  }

  @media (max-width: 991.98px) {
    .thumb-container img {
      width: 70px;
    }
  }
/*SECCION-3-Proyectos*/
/*SECCION-4-Servicios*/
._section4 {
  background-color: transparent;
  position: relative;
  z-index: 1;
}
.servicio-box {
  background-color:transparent;
  border: 2px solid rgba(255, 255, 255, 0.168);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 10px;
}

.servicio-box:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}
/*SECCION-4-Servicios*/
.subt_section5{
    font-size: 20px;
    font-weight:100;
    margin:0 ;   
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: #17BC25;
}
.servicio-box {
  position: relative;
  background-color: #1e1e1e82;
  border-radius: 10px;
  padding: 40px 30px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.104);
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
  transition: transform 0.4s ease;
}
.servicio-box::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at center, rgba(0, 255, 0, 0.182), transparent 60%);
  animation: pulseGlowServicios 4s ease-in-out infinite;
  z-index: -2;
}
.servicio-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, #17BC25, #17BC25, transparent 180deg);
  background-size: 200% 200%;
  animation: energyBorder 6s linear infinite;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 2px;
  z-index: -1;
}

.servicio-box img {
  transition: transform 0.6s ease;
}

.servicio-box:hover img {
  transform: translateY(-6px) scale(1.05);
}

.servicio-box:hover {
  transform: scale(1.02);
}
@keyframes pulseGlowServicios {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
@keyframes energyBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/*SECCION-5-Contacto*/
._section5 {
  background-color: transparent;
  position: relative;
  z-index: 1;
}
.contact-form {
  position: relative;
  background-color: #ffffff20;
  border: 2px solid #ffffff17;
  box-shadow: 0 0 30px rgba(23, 188, 37, 0.05);
  border-radius: 5px;
  overflow: visible;
  z-index: 0;
}

/*Punto verde*/
.contact-form::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #17BC25;
  border-radius: 100%;
  box-shadow: 0 0 12px #17BC25, 0 0 20px #17BC25;
  animation: 
    recorridoBordeFuera 5s linear infinite;
  z-index: 2;
}
@keyframes recorridoBordeFuera {
  0% {
    top: -5px;
    left: -5px;
  }
  25% {
    top: -5px;
    left: 100%;
    transform: translateX(-100%);
  }
  50% {
    top: 100%;
    left: 100%;
    transform: translate(-100%, 0);
  }
  75% {
    top: 100%;
    left: -5px;
    transform: translateY(0);
  }
  100% {
    top: -5px;
    left: -5px;
  }
}

.input-contacto {
  background-color: #000;
  border: 1px solid #ffffff17;
  color: #fff;
  font-size: 12px;
}

.input-contacto::placeholder {
  color: #aaa;
  font-weight: 300;
}

.input-contacto:focus {
  border-color: #17BC25;
  box-shadow: 0 0 8px rgba(23, 188, 37, 0.2);
  outline: none;
}
.ilustracion-contacto {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
  animation: levitar 3s ease-in-out infinite, auraCambiante 6s linear infinite, pulseBrillo 4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #17BC25);
}

@keyframes levitar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes auraCambiante {
  0%   { filter: drop-shadow(0 0 6px #00b80f); } 
  33%  { filter: drop-shadow(0 0 8px #00e5ff); }  
  66%  { filter: drop-shadow(0 0 8px #001aff); }   
  100% { filter: drop-shadow(0 0 6px #17BC25); } 
}
@keyframes pulseBrillo {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.015);
    opacity: 0.95;
  }
}
/*SECCION-5-Contacto*/
/*Footer*/
.footer {
  background-color: transparent;
  position: relative;
  z-index: 1;
  border-top: 3px solid rgba(21, 255, 0, 0.19);
  color: #ccc;
}
.nav-link2 {
  position: relative;
  color: #fff;
  font-weight: 300;
  transition: color 0.5s ease;
  cursor: pointer;
  font-size: 14px;
}
.nav-link2:hover {
  color: #17BC25;
}
.footer-link {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 30px;
  padding: 5px;
}
.footer-link:hover {
  color: #17BC25;
  text-decoration: underline;
}
.ecg-bar {
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent 0%, #17BC25 10%, transparent 20%, #17BC25 22%, transparent 25%, #17BC25 26%, transparent 28%, #17BC25 31%, transparent 100%);
  background-size: 200% 100%;
  animation: ecg-pulse 1.8s linear infinite;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px #17BC25) drop-shadow(0 0 12px #17BC25);
}
@keyframes ecg-pulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

/* Glitch effect */
.glitch {
  position: relative;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 5px;
  z-index: 1;
  animation: shift 1s ease-in-out infinite alternate;
}

.glitch:before,
.glitch:after {
  display: block;
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
}

.glitch:before {
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #00b80f;
  z-index: -1;
}

.glitch:after {
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  color: #227D2C;
  z-index: -2;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes shift {
  0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% {
    transform: skewX(0deg);
  }
  41% { transform: skewX(10deg); }
  42% { transform: skewX(-10deg); }
  59% { transform: skewX(40deg) skewY(10deg); }
  60% { transform: skewX(-40deg) skewY(-10deg); }
  63% { transform: skewX(10deg) skewY(-5deg); }
  70% { transform: skewX(-50deg) skewY(-20deg); }
  71% { transform: skewX(10deg) skewY(-10deg); }
}








