/* ==== BASE ==== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: 
    radial-gradient(circle at 20% 25%, rgba(124, 252, 0, 0.12), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(124, 252, 0, 0.10), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.22) 100%),
    #0c0f13;
  color: #eaeaea;
  min-height: 100vh;
}
  
  
  /* ==== NAVBAR ==== */
  .navbar {
    position: fixed;
    top: 40px;   
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 20px 0 30px 80px;
    background: transparent;
    z-index: 1000;
  }
  
  /* Lista sin puntos */
  .nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /* ==== NAV LINKS ENCUADRADOS ==== */
  .nav-links a {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7CFC00;
    background: #0c0f13;
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #7CFC00;
    transition: all 0.3s ease;
  }
  
  /* Hover → se llena de verde */
  .nav-links a:hover {
    background: #7CFC00;
    color: #0c0f13;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 252, 0, 0.4);
  }
  
  /* Activo */
  .nav-links a.active {
    background: #7CFC00;
    color: #0c0f13;
    box-shadow: 0 0 14px rgba(124, 252, 0, 0.6);
  }
  
  /* ==== BOTÓN HOME FLOTANTE ==== */
  #home-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    background: #0c0f13;
    color: #7CFC00;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #7CFC00;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2000;
  }
  #home-btn.show {
    opacity: 1;
    pointer-events: auto;
  }
  #home-btn:hover {
    background: #7CFC00;
    color: #0c0f13;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(124, 252, 0, 0.4);
  }
  
  /* ==== SOCIAL ICONS ==== */
  .social-icons {
    display: flex;
    gap: 25px;
  }
  
  .social-icons img {
    width: 38px;
    height: 38px;
    filter: brightness(0) saturate(100%) invert(84%) sepia(97%) saturate(415%) hue-rotate(61deg) brightness(103%) contrast(103%);
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .social-icons img:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 12px #7CFC00);
  }
  
/* ==== HERO ==== */
.hero {
    display: grid;
    grid-template-columns: 58% 42%;   
    align-items: start;
    column-gap: 70px;
    padding: 160px 10% 120px;
  }
  
  /* Bloque de texto */
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .hero-content h1 {
    font-size: 6.2rem;   
    font-weight: 860;
    color: #7CFC00;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 36px -8px;
    letter-spacing: -0.5px;
  }
  
  .hero-content p {
    font-size: 1.45rem;
    line-height: 1.8;
    color: #cfcfcf;
    max-width: 580px;
    margin: 0 0 45px 0;
    font-style: italic;
  }
  
  /* Bloque de imagen */
  .hero-photo {
    display: flex;
    flex-direction: column;
    align-items: center;      
  }
  
  .hero-photo img {
    width: clamp(280px, 32vw, 380px);
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 0 18px rgba(124, 252, 0, 0.2); 
    margin-bottom: 24px;
  }
  
  
  /* Botón Let's Connect */
  .hero-photo .btn-secondary {
    border: 2px solid #7CFC00;
    color: #7CFC00;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
  }
  
  .hero-photo .btn-secondary:hover {
    background: #7CFC00;
    color: #0c0f13;
    transform: translateY(-3px);
  }
  
  
/* ===== SECTIONS ===== */
section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #9d7cff; /* lila suave */
    border-left: 5px solid #7CFC00;
    padding-left: 12px;
  }
  
/* ===== PROJECTS ===== */

.projects-section h2 {
    font-size: 4.2rem;         
    font-weight: 800;
    color: #7CFC00;           
    text-transform: uppercase; 
    letter-spacing: -0.5px;
    text-align: center;
    margin: 0 0 70px 0;
    line-height: 1.2;
  }
  
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
    margin-left: 50px; 
  }
  
  /* Tarjetas */

  .project-card {
    margin: 15px;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.08), transparent 70%),
    #0c0f13;
    border: 4px solid currentColor; 
    border-radius: 12px; 
    padding: 40px 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Inter', 'Roboto Mono', monospace;
    font-weight: 500;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px; 
    width: 100%;
    position: relative;
  
    /* sombras principales (efecto 3D) */
    box-shadow:
    0 20px 26px rgba(0, 0, 0, 0.95),
    0 -12px 18px rgba(0, 0, 0, 0.7);
}
  
  /* borde exterior recto + desplazado */
  .project-card::after {
    content: "";
    position: absolute;
    top: 14px;   
    left: 14px;  
    right: -20px;
    border: 4px solid currentColor; 
    border-radius: 18px; 
    z-index: -1;
  }
  
  /* halo exterior suave (glow difuso) */
  .project-card::before {
    content: "";
    position: absolute;
    top: -16px; left: -16px;   
    right: -16px; bottom: -16px;
    border-radius: 18px;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.25; 
    filter: blur(14px); 
    z-index: -2;
  }
  
  
  .project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
      0 20px 24px rgba(0, 0, 0, 1),
      0 -12px 18px rgba(0, 0, 0, 0.8);
  }
  
  
  /* Imagen */
  .project-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  /* Título con color más vivo */
  .project-card h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 12px;
    color: currentColor; 
  }
  
  /* Subtítulo */
  .project-card .project-type {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.8); 
  }
  
  /* Texto */
  .project-card p {
    font-size: 1rem;
    color: #cfcfcf; 
    margin-bottom: 22px;
  }
  
  /* Tags */
  .project-card .tags {
    margin-bottom: 24px;
  }
  .project-card .tags span {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 5px;
    margin: 0 4px;
    border: 1px solid currentColor;
    font-weight: 600;
  }
  
  /* Botón centrado */

  .btn-view {
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: currentColor;
    text-decoration: none;
    display: inline-block;
    position: relative;
    margin: 0 auto;
    transition: all 0.3s ease;
  }
  
  .btn-view::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 6px;
    z-index: -1;
  }
  
  .btn-view:hover {
    background: transparent;          
    color: currentColor;              
    box-shadow: 0 0 18px currentColor, 0 0 28px currentColor; 
    transform: translateY(-3px) scale(1.06); 
  }
  
  
    /* Colores por tarjeta */
    .card-green {
        color: #38c389;
        background: radial-gradient(circle at 25% 20%, rgba(101, 255, 191, 0.18), transparent 70%),
                    radial-gradient(circle at 75% 80%, rgba(219, 255, 240, 0.18), transparent 70%),
                    #0c0f13;
      }
      
      .card-cyan {
        color: #abf5ff;
        background: radial-gradient(circle at 25% 20%, rgba(93, 233, 251, 0.18), transparent 70%),
                    radial-gradient(circle at 75% 80%, rgba(40, 114, 123, 0.18), transparent 70%),
                    #0c0f13;
      }
      
      .card-purple {
        color: #e8c4ff;
        background: radial-gradient(circle at 25% 20%, rgba(128, 80, 160, 0.18), transparent 70%),
                    radial-gradient(circle at 75% 80%, rgba(101, 57, 130, 0.12), transparent 70%),
                    #0c0f13;
      }
      
      .card-pink {
        color: #ffc5e2;
        background: radial-gradient(circle at 25% 20%, rgba(183, 97, 140, 0.18), transparent 70%),
                    radial-gradient(circle at 75% 80%, rgba(144, 67, 105, 0.12), transparent 70%),
                    #0c0f13;
      }
  

      .about-section {
        padding: 100px 10%;
        text-align: center;
      }
      
      .about-section h2 {
        font-size: 2.2rem;
        margin-bottom: 50px;
        color: #fff;
      }
      
      .about-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
        justify-items: center;
      }
      
      .about-card {
        background: #0c0f13;
        border: 4px solid;
        border-radius: 14px;
        padding: 28px 24px;
        text-align: left;
        font-family: 'Inter', sans-serif;
        color: #eee;
        line-height: 1.6;
        max-width: 420px;
        width: 100%;
        box-shadow: 0 10px 18px rgba(0,0,0,0.8);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      
      .about-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 24px rgba(0,0,0,0.9);
      }
      
      /* Colores de cada card */
      .card-green { border-color: #a3f3d2; }
      .card-cyan  { border-color: #00e0ff; }
      .card-purple{ border-color: #b84dff; }
      .card-pink  { border-color: #ff4da6; }
      

      

/* ABOUT */

/* ===== ABOUT SECTION ===== */

.about-section {
  padding: 140px 10%;
  max-width: 1300px;
  margin: auto;
}

.about-section h2 {
  font-size: 4rem;
  font-weight: 800;
  color: #7CFC00;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.5px;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 17 0px;
}

/* FOTO */
.about-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo {
  margin-top: 25px;
  width: clamp(200px, 26vw, 280px); 
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;               
  object-position: center center;     
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(124, 252, 0, 0.25);
  transition: transform 0.3s ease;
  transform: scale(1.24);         
}

.about-photo:hover {
  transform: scale(1.05);
}

/* TECH STACK */
.about-right {
  text-align: left;
}

/* Título TECH STACK */

.tech-title {
  display: inline-block;
  font-size: 2rem;              
  font-weight: 700;
  color: #7CFC00;
  padding: 10px 20px;          
  margin-bottom: 35px;
  border: 2px solid #7CFC00;   
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.35s ease;
  box-shadow: 0 0 14px rgba(124, 252, 0, 0.25);
}

/* efecto extra: doble borde detrás */
.tech-title::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid #7CFC00;  
  border-radius: 10px;
  opacity: 0.35;
  z-index: -1;
  transition: all 0.35s ease;
}

/* Hover → se ilumina más y se “eleva” */
.tech-title:hover {
  background: #7CFC00;
  color: #0c0f13;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 22px rgba(124, 252, 0, 0.7);
}

.tech-title:hover::after {
  opacity: 1;
  transform: translate(3px, 3px);
}



.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
}

.tech-icons img {
  height: 55px;  
  transition: transform 0.3s ease, filter 0.3s ease;
}


.tech-icons img[alt="Power BI"],
.tech-icons img[alt="MATLAB"]
{
  height: 70px;   
}
.tech-icons img[alt="AWS"] {
  height: 100px;  
}

.tech-icons img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #7CFC00);
}

/* Responsive */
@media (max-width: 950px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .tech-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }
  .tech-icons {
    justify-content: center;
  }
}

/* ==== FOOTER ==== */

.footer p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e6e6d9; 
  margin-bottom: 12px;
  margin-top: 1px;
  text-align: center; 
  text-shadow: 0 0 6px rgba(124, 252, 0, 0.25); 
}

.footer-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;   
  align-items: center;       
  margin-bottom: 75px
}

.footer-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* GitHub en crema claro */
.footer-icons img[alt="GitHub"] {
  filter: invert(90%) sepia(5%) saturate(200%) hue-rotate(20deg) brightness(95%);
}

/* LinkedIn un poco más grande y sin filtro */
.footer-icons img[alt="LinkedIn"] {
  filter: none;
  width: 32px;
  height: 32px;
}

/* Hover común */
.footer-icons img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #7CFC00);
}

/* ==== SOCIAL ICONS (HEADER) ==== */
.social-icons {
  position: absolute;
  top: 15px;
  right: 120px;
  display: flex;
  align-items: center;   
  gap: 28px;
}

.social-icons img {
  width: 42px;
  height: 42px;
  filter: invert(65%) sepia(92%) saturate(400%) hue-rotate(80deg) brightness(95%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img[alt="LinkedIn"] {
  width: 56px;
  height: 56px;
  vertical-align: middle;  
}

.social-icons img:hover {
  transform: scale(1.25);
  filter: invert(80%) sepia(100%) saturate(500%) hue-rotate(90deg) brightness(110%);
}

/* ===== SOLO MÓVIL ===== */
@media (max-width: 576px) {
  /* --- Navbar --- */
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 130px 0 70px 0; 
    position: relative;     
  }
  
  .social-icons {
    position: absolute;
    top: 20px;              
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 25px;
  }
  
  .social-icons img {
    width: 34px;
    height: 34px;
  }

  /* --- Hero: columna --- */
  .hero {
    display: flex;
    flex-direction: column;
    padding: 90px 20px 60px;
    text-align: center;
    align-items: center;  
    text-align: center; 
  }

  .hero-content {
    order: 0;
  }

  .hero-photo {
    order: 1;
    margin-top: 25px;
  }

  .hero-photo img {
    max-width: 85%;
    margin: 0 auto;
    display: block;
  }

  /* --- About / Tech Stack --- */
  .about-top {
    grid-template-columns: 1fr;
  }

  .tech-title {
    display: block;
    margin: 0 auto 35px auto;
    text-align: center;
  }
}

/* ===== SM (móviles grandes / phablets) ===== */
@media (max-width: 768px) {

  body {
    text-align: center; /* centra títulos y párrafos */
  }

  .projects-grid {
    display: flex;              /* usamos flex para centrar */
    flex-direction: column;
    align-items: center;        /* centra las cards */
    padding-right: 20%;
    gap: 15px;
  }

  .project-card {
    width: 88%;                 /* mismo ancho para todas */
    max-width: 400px;           /* no más grandes que esto */
    margin: 0 auto;             /* seguridad extra */
    padding: 15px;
    font-size: 0.9rem;
    padding-right: 20%; 
    text-align: center;         /* centra textos internos */
  }

  .project-card img {
    max-height: 160px;
    object-fit: cover;
    margin: 0 auto;             /* centra la imagen dentro */
    display: block;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }
  
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 130px 0 70px 0;
  }

  .social-icons {
    position: absolute;
    top: 20px;              
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 25px;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 20px 50px;
  }

  .hero-content {
    max-width: 90%;
    margin: 0 auto;          /* centra el bloque */
    display: flex;
    flex-direction: column;
    align-items: center;     /* centra contenido interno */
    text-align: center;      /* centra el texto */
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    text-align: center;      /* asegura que el título quede centrado */
    margin-bottom: 15px;
  }

  .hero-photo {
    margin-top: 20px;
  }

  .hero-photo img {
    max-width: 70%;
  }
