:root {
  --color-de-fondo: #030637;
  --color-text-color: #d30f96;
  --color-section-bg: #3c0753;
  --color-hover-accent: #e110a0;
  --border-before-color: rgba(221, 221, 221, 0.39);
  --border-after-color: #5891ff;
  --border-card: rgba(211, 15, 150, 0.35);
  --text-light: #f1f5f9;
  --text-muted: #cbd5e1;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-de-fondo);
  background: radial-gradient(circle at 50% 15%, #180949 0%, var(--color-de-fondo) 80%);
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-light);
  scroll-behavior: smooth;
  min-height: 100vh;
}

ol,
ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* Contenedor central compacto y centrado */
.tudo {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem 1.25rem;
}

/* Sección Menú */
section.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 2.5rem;

  nav {
    width: 100%;

    .menu__list {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.25rem;
      align-items: center;

      .menu__list__item a {
        color: var(--color-text-color);
        font-weight: 600;
        font-size: 0.95rem;

        &:hover {
          color: #ffffff;
          text-shadow: 0 0 10px var(--color-text-color);
        }
      }

      .menu__email-link {
        color: var(--color-text-color);
        font-weight: 600;
        padding: 5px 14px;
        border: 1px solid var(--color-text-color);
        border-radius: 20px;
        transition: all 0.25s ease;

        &:hover {
          background-color: var(--color-text-color);
          color: #ffffff;
          box-shadow: 0 0 10px rgba(211, 15, 150, 0.4);
        }
      }

      .lang-toggle-btn {
        background-color: var(--color-section-bg);
        border: 1px solid var(--border-card);
        color: var(--text-light);
        padding: 5px 12px;
        border-radius: 20px;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: all 0.25s ease;

        &:hover {
          border-color: var(--color-text-color);
          box-shadow: 0 0 10px rgba(211, 15, 150, 0.35);
        }

        .lang-opt {
          color: rgba(255, 255, 255, 0.45);
          transition: all 0.2s ease;

          &.active {
            color: #ffffff;
            font-weight: 800;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
          }
        }

        .lang-sep {
          color: rgba(255, 255, 255, 0.25);
          font-weight: 400;
        }
      }
    }
  }
}

/* Sección Hero / Presentación Centrada */
section.title {
  margin-bottom: 3rem;
  text-align: center;

  .title__div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .title__profile {
    width: 11.5rem;
    height: 11.5rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-text-color);
    box-shadow: 0 0 25px rgba(211, 15, 150, 0.45);
    margin: 0 auto;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards, profilePulse 4s ease-in-out infinite alternate;
  }

  .title__container {
    max-width: 36rem;

    .title__bio {
      font-size: 1.65rem;
      line-height: 1.35;
      font-weight: 700;
      color: #ffffff;
      margin: 0 0 0.5rem 0;
      animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
    }

    .title__tagline {
      font-size: 0.98rem;
      color: var(--text-light);
      margin: 0 0 1.5rem 0;
      line-height: 1.55;
      animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
    }
  }

  .title__network {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards;

    .title__network__item a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      background-color: var(--color-section-bg);
      border: 1px solid var(--border-card);
      border-radius: 25px;
      color: var(--color-text-color);
      font-weight: 600;
      font-size: 0.9rem;

      img {
        width: 12px;
        height: 12px;
        transition: transform 0.2s ease;
      }

      &:hover {
        border-color: var(--color-text-color);
        background-color: var(--color-text-color);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(211, 15, 150, 0.4);

        img {
          filter: brightness(0) invert(1);
          transform: translate(2px, -2px);
        }
      }
    }
  }
}

/* Sección About Me */
section.about {
  background-color: var(--color-section-bg);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

  .about__title {
    color: var(--color-text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
  }

  .about__paragraph {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: center;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

/* Sección Skills - Chips/Píldoras centradas */
section.skills {
  margin-bottom: 3rem;
  text-align: center;

  .skills__title {
    color: var(--color-text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .skills__line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .skills__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background-color: var(--color-section-bg);
    border: 1px solid var(--border-card);
    border-radius: 25px;
    transition: all 0.25s ease;

    .skills__name {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-light);
    }

    &:hover {
      border-color: var(--color-text-color);
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(211, 15, 150, 0.35);
    }
  }
}

/* Sección Proyectos (1 por fila, centrados) */
section.experience {
  margin-bottom: 3rem;
  text-align: center;

  .experience__section__title {
    color: var(--color-text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .experience__container {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .experience__box {
    background-color: var(--color-section-bg);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;

    &:hover {
      transform: translateY(-5px);
      border-color: var(--color-text-color);
      box-shadow: 0 10px 28px rgba(211, 15, 150, 0.35);

      .experience__img {
        transform: scale(1.035);
      }
    }

    .experience__img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      object-position: top;
      border-bottom: 1px solid var(--border-card);
      transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .experience__info {
      padding: 1.5rem 1.25rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0.85rem;

      .experience__title {
        font-size: 1.15rem;
        font-weight: 600;
        color: #ffffff;
        margin: 0;
        line-height: 1.4;
      }

      .experience__text {
        font-size: 0.85rem;
        color: var(--color-text-color);
        font-weight: 600;
        margin: 0;
      }

      .experience__desc {
        font-size: 0.92rem;
        color: var(--text-light);
        margin: 0.25rem 0;
        line-height: 1.55;
        max-width: 34rem;
      }

      .experience__description {
        display: flex;
        justify-content: center;
        gap: 0.85rem;
        margin-top: 0.5rem;
      }
    }

    .experience__botao--repo,
    .experience__botao--demo {
      display: inline-block;
      padding: 8px 20px;
      background-color: rgba(3, 6, 55, 0.6);
      color: var(--color-text-color);
      border: 1px solid var(--color-text-color);
      border-radius: 20px;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.3s ease;

      &:hover {
        cursor: pointer;
        background-color: var(--color-text-color);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(211, 15, 150, 0.4);
        transform: translateY(-2px);
      }
    }

    .experience__botao--demo {
      background-color: var(--color-text-color);
      color: #ffffff;

      &:hover {
        background-color: var(--color-hover-accent);
        border-color: var(--color-hover-accent);
      }
    }
  }
}

/* Sección Certificaciones (Centrada) */
section.academic {
  margin-bottom: 3rem;
  text-align: center;

  .academic__title {
    color: var(--color-text-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .academic__courses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;

    @media (max-width: 540px) {
      grid-template-columns: 1fr;
    }
  }

  .academic__courses__box {
    background-color: var(--color-section-bg);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, border-color 0.25s ease;

    &:hover {
      transform: translateY(-3px);
      border-color: var(--color-text-color);
    }

    .academic__courses__list {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .academic__courses__item__img {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 48px;
      margin-bottom: 0.6rem;
    }

    .academic__courses__logo {
      max-height: 44px;
      max-width: 100px;
      object-fit: contain;
    }

    .academic__courses__item__title h4 {
      font-size: 0.95rem;
      font-weight: 600;
      color: #ffffff;
      margin: 0.25rem 0;
      line-height: 1.35;
    }

    .academic__courses__item__subtitle p {
      font-size: 0.85rem;
      color: var(--color-text-color);
      font-weight: 500;
      margin: 0;
    }
  }
}

/* Footer Centrado */
section.footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
  text-align: center;

  .footer__rodape {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    color: var(--color-text-color);
    font-size: 0.9rem;
    font-weight: 600;

    p {
      margin: 0;
    }
  }
}

/* =========================================================
   ANIMACIONES Y SCROLL REVEAL
   ========================================================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profilePulse {
  0% {
    box-shadow: 0 0 20px rgba(211, 15, 150, 0.4);
  }
  100% {
    box-shadow: 0 0 35px rgba(211, 15, 150, 0.7);
  }
}

/* Clases de Scroll Reveal de Alta Prioridad (Dinámico con Rebote Elástico y Zoom-In) */
.reveal {
  opacity: 0 !important;
  transform: translateY(70px) scale(0.92) !important;
  transition: opacity 0.75s ease-out, transform 0.85s cubic-bezier(0.22, 1.15, 0.36, 1) !important;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Permitir que el efecto hover funcione fluidamente una vez revelada la tarjeta */
.experience__box.active:hover {
  transform: translateY(-6px) scale(1.01) !important;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* Permitir hover fluido en cursos académicos una vez revelados */
.academic__courses__box.active:hover {
  transform: translateY(-4px) scale(1.01) !important;
  transition: transform 0.25s ease, border-color 0.25s ease !important;
}

/* Retardos escalonados para listas y tarjetas contiguas */
.stagger-1 { transition-delay: 0.12s !important; }
.stagger-2 { transition-delay: 0.24s !important; }
.stagger-3 { transition-delay: 0.36s !important; }
.stagger-4 { transition-delay: 0.48s !important; }

