/*Portfólio de Victor Hugo Nunes Correa - Engenheiro de Dados */
/* Estilos principais para o portfólio */
    :root {
      --bg: #050810;
      --bg2: #090d1a;
      --surface: #111827;
      --border: #1e2d4a;
      --neon: #38bdf8; 
      --neon2: #7b2fff;
      --text: #e8eaf6;
      --muted: #b9c3d6;
      --card: #0c1120;
      --mono: 'Space Mono', monospace;
      --display: 'Syne', sans-serif;
    }

/* RESET E BASE */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
    img, svg { max-width: 100%; height: auto; }
    a { overflow-wrap: anywhere; }

/* GRID OVERLAY */
    body::before {
      content: ''; position: fixed; inset: 0;
      background-image: linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
      background-size: 40px 40px; pointer-events: none; z-index: 0;
    }

/* NAV */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.2rem clamp(1rem, 4vw, 4rem); background: rgba(5,8,16,0.85); backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }
    .nav-logo { font-family: var(--display); font-weight: 800; color: var(--neon); text-decoration: none; letter-spacing: 1px; }
    .nav-links { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
    .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.75rem; text-transform: uppercase; transition: 0.3s; }
    .nav-links a:hover { color: var(--neon); }

/* HERO (Botões e Stats removidos conforme solicitado) */
    #hero { min-height: 70vh; display: flex; align-items: center; padding: 0 clamp(1.25rem, 4vw, 4rem); position: relative; }
    .hero-content { position: relative; z-index: 1; max-width: 900px; padding-top: 80px; }
    .hero-tag { display: inline-block; font-size: 0.7rem; color: var(--neon); border: 1px solid rgba(56,189,248,0.3); padding: 0.3rem 0.9rem; margin-bottom: 1.5rem; }
    .hero-title { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
    .hero-title span { color: var(--neon); text-shadow: 0 0 30px rgba(56,189,248,0.3); }
    .hero-subtitle { font-size: 1.1rem; color: var(--muted); max-width: 600px; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
    .hero-action {
      align-items: center;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--text);
      display: inline-flex;
      font-size: 0.75rem;
      font-weight: 700;
      justify-content: center;
      letter-spacing: 1px;
      min-height: 46px;
      padding: 0.75rem 1.15rem;
      text-decoration: none;
      text-transform: uppercase;
      transition: 0.3s;
    }
    .hero-action:hover,
    .hero-action:focus-visible {
      border-color: var(--neon);
      color: var(--neon);
      outline: none;
      transform: translateY(-2px);
    }
    .hero-action-primary {
      background: var(--neon);
      border-color: var(--neon);
      color: #03111f;
    }
    .hero-action-primary:hover,
    .hero-action-primary:focus-visible {
      background: transparent;
      color: var(--neon);
    }

/* SECTIONS */
    section { padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem); position: relative; }
    .section-label { color: var(--neon); font-size: 0.7rem; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
    .section-title { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 3rem; line-height: 1.15; }

/* PROJECTS */
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
    .projects-grid-compact { margin-top: 1rem; }
    .portfolio-group { max-width: 760px; margin: 0 0 1.6rem; }
    .portfolio-group-secondary { margin-top: 3rem; }
    .portfolio-group-label {
        color: var(--text);
        display: block;
        font-family: var(--display);
        font-size: clamp(1.25rem, 2.5vw, 1.55rem);
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    .portfolio-group-description {
        color: var(--muted);
        font-size: 0.92rem;
        line-height: 1.7;
        max-width: 680px;
    }
    .project-card { 
        background: var(--card); 
        border: 1px solid var(--border); 
        padding: 2rem; 
        border-radius: 8px; 
        transition: 0.4s; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between;
        text-decoration: none;
        color: inherit;
        min-height: 280px;
    }
    .project-card:hover { border-color: var(--neon); transform: translateY(-8px); background: #0e1629; }
    .project-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }
    .project-card > div:first-child { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .project-card-featured { border-color: rgba(56,189,248,0.5); background: linear-gradient(145deg, rgba(56,189,248,0.08), var(--card) 42%); }
    .project-tag { font-size: 0.6rem; background: rgba(56,189,248,0.1); color: var(--neon); padding: 0.2rem 0.6rem; border-radius: 2px; font-family: var(--mono); }
    .project-card h3 { font-family: var(--display); margin: 1.2rem 0 0.8rem; font-size: 1.2rem; line-height: 1.3; }
    .project-card p { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; flex-grow: 1; }
    .project-link-text { color: var(--neon); font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* STACK */
    .stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.2rem; }
    .stack-cat { background: var(--card); border: 1px solid var(--border); padding: 1.5rem; border-radius: 4px; }
    .stack-cat h4 { color: var(--neon); font-size: 0.7rem; text-transform: uppercase; margin-bottom: 1rem; }
    .stack-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .stack-item { background: rgba(255,255,255,0.05); padding: 0.2rem 0.6rem; font-size: 0.75rem; border-radius: 2px; border: 1px solid transparent; transition: 0.3s; }
    .stack-item:hover { border-color: var(--neon); }

/* REVEAL ANIMATION */
    .reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 1024px) {
      .nav-links { gap: 1rem; }
      .nav-links a { font-size: 0.68rem; }
      #hero { min-height: 62vh; }
    }

  @media (max-width: 768px) {
      nav { padding: 0.85rem 1.25rem; align-items: flex-start; flex-direction: column; gap: 0.65rem; }
      .nav-links {
        display: flex;
        width: 100%;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        flex-wrap: nowrap;
        scrollbar-width: none;
      }
      .nav-links::-webkit-scrollbar { display: none; }
      .nav-links li { flex: 0 0 auto; }
      section { padding: 4rem 1.25rem; }
      #hero { min-height: 64vh; padding: 0 1.25rem; }
      .hero-content { padding-top: 132px; }
      .hero-subtitle { max-width: 100%; }
      .hero-actions { gap: 0.65rem; }
      .hero-action { flex: 1 1 145px; }
      .projects-grid { grid-template-columns: 1fr; }
      .project-card { min-height: auto; padding: 1.5rem; }
      .portfolio-group-secondary { margin-top: 2.4rem; }
    }

    @media (max-width: 420px) {
      body { font-size: 15px; }
      .hero-title { font-size: clamp(2.2rem, 15vw, 3rem); }
      .hero-subtitle { font-size: 0.98rem; line-height: 1.65; }
      .hero-action { flex-basis: 100%; }
      .section-label { font-size: 0.62rem; }
      .project-card,
      .experience-card,
      .certification-card,
      .stack-cat {
        padding: 1.15rem;
      }
      .project-card h3,
      .experience-role,
      .certification-title {
        font-size: 1.05rem;
      }
      .project-tag,
      .experience-tag,
      .stack-item {
        max-width: 100%;
        overflow-wrap: anywhere;
      }
    }
  

/* EXPERIÊNCIA E CERTIFICAÇÕES */
.section-title { 
    font-family: var(--display); 
    font-size: clamp(1.9rem, 4vw, 2.5rem); 
    line-height: 1.15;
    margin-bottom: 1rem; /* Estava 3rem, mude para 1rem ou 1.5rem */
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
  }

  .experience-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
  }

  .experience-card:hover {
    border-color: var(--neon);
    transform: translateY(-6px);
    background: #0e1629;
  }

  .experience-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .experience-role {
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
  }

  .experience-company {
    color: var(--neon);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .experience-period {
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
  }

  .experience-description {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }

  .experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .experience-tag {
    font-size: 0.68rem;
    background: rgba(56,189,248,0.1);
    color: var(--neon);
    padding: 0.28rem 0.7rem;
    border-radius: 3px;
    border: 1px solid rgba(56,189,248,0.12);
  }

  /* Responsividade para experiência e certificações */
  @media (max-width: 768px) {
    .experience-card {
      padding: 1.5rem;
    }

    .experience-role {
      font-size: 1.1rem;
    }
  }

  .certifications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
}

.certification-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: 0.4s;
}

.certification-card:hover {
  border-color: var(--neon);
  transform: translateY(-6px);
  background: #0e1629;
}

.certification-title {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.certification-org {
  color: var(--neon);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.certification-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.certification-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .experience-description,
  .certification-description,
  .project-card p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
