body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);

  z-index: 999;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover {
  color: #38bdf8;
}

/* HERO */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10%;

  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  z-index: 2;
}

.tag {
  color: #38bdf8;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.title {
  font-size: 5rem;
  line-height: 1.1;
  margin: 0;

  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #f8fafc 30%,
    #60a5fa 65%,
    #8b5cf6 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-weight: 800;
  letter-spacing: -2px;

  text-shadow:
    0 0 30px rgba(96,165,250,0.08);
}

.subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-top: 20px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.hero-buttons a {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: #38bdf8;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.hero-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(56,189,248,0.5);
}

.outline {
  background: transparent !important;
  border: 1px solid #334155 !important;
}

/* GLOW */

.hero-glow {
  width: 500px;
  height: 500px;
  background: #2563eb;

  position: absolute;
  right: -100px;
  top: 100px;

  filter: blur(160px);
  opacity: 0.4;
}



/* STATS */

.hero-stats {
  display: flex;
  gap: 40px;

  margin-top: 60px;

  flex-wrap: wrap;
}

.stat {
  position: relative;
}

.stat h3 {
  font-size: 1.4rem;

  margin-bottom: 8px;

  background: linear-gradient(
    90deg,
    #60a5fa,
    #8b5cf6
  );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  font-weight: 700;
}

.stat p {
  color: #94a3b8;

  font-size: 0.95rem;

  line-height: 1.5;

  max-width: 220px;
}


/* PROJETOS */

.projects {
  padding: 120px 10%;
}

.projects h2 {
  font-size: 3rem;
  margin-bottom: 50px;
}

#projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(30,41,59,0.5);

  border: 1px solid rgba(255,255,255,0.05);

  backdrop-filter: blur(10px);

  padding: 30px;
  border-radius: 24px;

  transition: 0.4s;

  opacity: 0;
  transform: translateY(50px);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 0 40px rgba(56,189,248,0.15);
}

.card h3 {
  font-size: 1.5rem;
}

.card p {
  color: #94a3b8;
  line-height: 1.6;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}


/* =========================
   PROJETOS
========================= */

.projects {
  min-height: 100vh;

  padding:
    120px 10%;

  position: relative;
}

.projects-title {
  font-size: 4rem;

  margin-bottom: 60px;

  text-align: center;
}

/* GRID */

.projects-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 28px;

  align-items: stretch;
}
/* CARD */

.project-card {

  position: relative;

  background:
    rgba(15,23,42,0.65);

  border:
    1px solid rgba(255,255,255,0.05);

  border-radius: 28px;

  padding: 35px;

  overflow: hidden;

  backdrop-filter: blur(14px);

  transition: 0.4s;

  opacity: 0;

  transform:
    translateY(80px);


    display: flex;
flex-direction: column;
justify-content: space-between;
}


.project-features{

  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:12px;

  margin-bottom:28px;

  position:relative;
  z-index:2;
}

.project-features span{

  font-size:.92rem;

  color:#cbd5e1;

  background:
    rgba(255,255,255,0.03);

  border:
    1px solid rgba(255,255,255,0.04);

  border-radius:12px;

  padding:10px 12px;

  line-height:1.4;
}


/* HOVER */

.project-card:hover {

  transform:
    translateY(-12px);

  border-color:
    rgba(56,189,248,0.4);

  box-shadow:
    0 0 40px rgba(56,189,248,0.15);
}

/* GLOW */

.card-glow {

  position: absolute;

  width: 250px;
  height: 250px;

  background:
    rgba(56,189,248,0.15);

  filter: blur(100px);

  top: -100px;
  right: -100px;

  z-index: 0;
}

/* TAG */

.project-tag {

  display: inline-block;

  padding:
    8px 14px;

  border-radius: 999px;

  background:
    rgba(56,189,248,0.1);

  border:
    1px solid rgba(56,189,248,0.2);

  color:
    #38bdf8;

  font-size: 0.8rem;

  margin-bottom: 25px;

  position: relative;
  z-index: 2;
}

/* TITULO */

.project-card h3 {

  font-size: 1.7rem;

  margin-bottom: 20px;

  position: relative;
  z-index: 2;
}

/* DESCRIÇÃO */

.project-card p {

  color:
    #94a3b8;

  line-height: 1.8;

  margin-bottom: 30px;

  position: relative;
  z-index: 2;
}

/* TECNOLOGIAS */

.project-tech {

  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 30px;

  position: relative;
  z-index: 2;
}

.project-tech span {

  background:
    rgba(255,255,255,0.05);

  padding:
    8px 14px;

  border-radius: 12px;

  font-size: 0.9rem;
}

/* BOTÃO */

.project-button {

 width: fit-content;

 align-self:flex-start;

padding:
  16px 28px;

  padding:
    16px;

  border: none;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #0ea5e9,
      #2563eb
    );

  color: white;

  font-size: 1rem;

  cursor: pointer;

  transition: 0.3s;

  position: relative;
  z-index: 2;
}

.project-button:hover {

  transform:
    translateY(-3px);

  box-shadow:
    0 0 25px rgba(56,189,248,0.35);
}


@media(max-width:1200px){

  .projects-grid{

    grid-template-columns:
      repeat(2,1fr);
  }

}

@media(max-width:768px){

  .projects-grid{

    grid-template-columns:
      1fr;
  }

  .project-features{

    grid-template-columns:
      1fr;
  }

}


/* FOTO HERO */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-image {

  position: relative;

  width: 420px;
  height: 420px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.hero-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  border:
    4px solid rgba(56,189,248,0.35);

  box-shadow:
    0 0 60px rgba(56,189,248,0.25);

  position: relative;
  z-index: 2;
}

/* GLOW ATRÁS DA FOTO */

.image-glow {

  position: absolute;

  width: 320px;
  height: 320px;

  background:
    rgba(37,99,235,0.45);

  filter: blur(120px);

  border-radius: 50%;

  z-index: 1;
}

/* RESPONSIVO */

@media(max-width: 1100px){

  .hero {

    flex-direction: column;
    text-align: center;

    padding-top: 140px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {

    width: 280px;
    height: 280px;
  }

  .title {
    font-size: 4rem;
  }

}



/* =====================================================
                          Skill
   ===================================================== */



:root {
  --accent:       #38bdf8;
  --accent-dim:   rgba(56, 189, 248, 0.12);
  --accent-glow:  rgba(56, 189, 248, 0.22);
  --blue:         #2563eb;
  --blue-dim:     rgba(37, 99, 235, 0.15);
  --surface:      rgba(15, 23, 42, 0.72);
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(56, 189, 248, 0.30);
  --text-muted:   #64748b;
  --text-body:    #94a3b8;
  --text-bright:  #cbd5e1;
  --radius-card:  24px;
  --transition:   0.38s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ─────────────────────────────────────────────────────
   LAYOUT BASE — sections compartilhadas
───────────────────────────────────────────────────── */

.section {
  padding: 130px 10%;
  position: relative;
}

/* Linha decorativa sutil no topo de cada section */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.18) 40%,
    rgba(37, 99, 235, 0.12) 60%,
    transparent
  );
}


/* ─────────────────────────────────────────────────────
   SOBRE MIM
───────────────────────────────────────────────────── */

.section-header {
  margin-bottom: 70px;
}

/* Ponto decorativo antes da tag */
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;

  color: #f1f5f9;
  margin: 0;

  /* Gradiente texto sutil */
  background: linear-gradient(135deg, #f1f5f9 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  
}








/* ═════════════════════════════════════════════════════
   ABOUT
═════════════════════════════════════════════════════ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* O header ocupa a coluna esquerda */
.about .section-header {
  margin-bottom: 0;
  position: sticky;
  top: 120px; /* ancora enquanto o conteúdo rola */
}

/* Conteúdo textual — coluna direita */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 0;

  position: relative;
  padding-left: 36px;
}

/* Linha vertical elegante à esquerda do conteúdo */
.about-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 20%,
    var(--blue)   70%,
    transparent
  );
  opacity: 0.6;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.85;
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);

  transition: color var(--transition);
}

.about-content p:last-child {
  border-bottom: none;
}

.about-content p:hover {
  color: var(--text-bright);
}

/* Palavra de destaque automática no primeiro parágrafo */
.about-content p:first-child {
  font-size: 1.12rem;
  color: var(--text-bright);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about .section-header {
    position: static;
  }
}

@media (max-width: 768px) {
  .about-content {
    padding-left: 24px;
  }

  .about-content p {
    font-size: 1rem;
  }
}


/* ─────────────────────────────────────────────────────
   ABOUT EDUCATION
───────────────────────────────────────────────────── */

.about-education {
  padding: 34px 0 10px 0;

  border-top: 1px solid var(--border);

  opacity: 0;
  transform: translateY(40px);

  max-width: 600px;
  margin: 200px;
}

.education-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--accent);

  margin-bottom: 18px;
}

.education-tag::before {
  content: '';

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow: 0 0 8px var(--accent);
}

.about-education h3 {
  font-size: 1.35rem;
  font-weight: 600;

  line-height: 1.4;

  margin: 0 0 12px;

  color: var(--text-bright);
}

.about-education p {
  padding: 0;
  margin: 0;

  border: none;

  color: var(--text-body);

  font-size: 1rem;

  line-height: 1.7;
}




/* ═════════════════════════════════════════════════════
   SOFT SKILLS
═════════════════════════════════════════════════════ */

.soft-skills {
  /* Fundo com gradiente direcional discreto */
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(37, 99, 235, 0.06) 0%,
    transparent 70%
  );
}

/* Grid de 2×2 com gap elegante */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CARD ─────────────── */
.soft-card {
  position: relative;
  overflow: hidden;

  padding: 36px 38px;
  border-radius: var(--radius-card);

  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    border-color var(--transition),
    box-shadow   var(--transition),
    transform    var(--transition);

  /* Estado inicial (entrada via JS existente do projeto) */
  cursor: default;
}

/* Glow ambiente no canto superior direito */
.soft-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--blue-dim);
  filter: blur(80px);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

/* Linha de acento no topo do card */
.soft-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-glow),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition);
}

/* Hover state */
.soft-card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(37, 99, 235, 0.10);
  transform: translateY(-6px);
}

.soft-card:hover::before,
.soft-card:hover::after {
  opacity: 1;
}

/* Ícone numerado no topo — reutiliza o pattern dos workflow cards */
.soft-card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;

  /* Underline accent ao hover */
  display: inline-block;
}

.soft-card:hover h3 {
  color: #f8fafc;
}

.soft-card p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Responsivo */
@media (max-width: 900px) {
  .soft-grid {
    grid-template-columns: 1fr;
  }
}


/* ═════════════════════════════════════════════════════
   WORKFLOW
═════════════════════════════════════════════════════ */

.workflow {
  background: radial-gradient(
    ellipse 70% 50% at 50% 100%,
    rgba(56, 189, 248, 0.05) 0%,
    transparent 70%
  );
}

/* Grid de 4 colunas no desktop */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

/* Linha conectora horizontal entre cards */
.workflow-grid::before {
  content: '';
  position: absolute;
  top: 52px; /* alinha com o centro do número */
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--accent-glow),
    rgba(37, 99, 235, 0.3),
    var(--accent-glow)
  );
  z-index: 0;
  pointer-events: none;
}

/* CARD ─────────────── */
.workflow-card {
  position: relative;
  z-index: 1;

  padding: 38px 28px 32px;
  border-radius: var(--radius-card);

  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    border-color var(--transition),
    box-shadow   var(--transition),
    transform    var(--transition),
    background   var(--transition);

  text-align: center;
  overflow: hidden;
}

/* Glow ambiente */
.workflow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.04) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.workflow-card:hover {
  border-color: var(--border-hover);
  background: rgba(15, 23, 42, 0.9);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(37, 99, 235, 0.10);
  transform: translateY(-8px);
}

.workflow-card:hover::before {
  opacity: 1;
}

/* Número do step */
.workflow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.15),
    rgba(37, 99, 235, 0.15)
  );
  border: 1px solid rgba(56, 189, 248, 0.20);

  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);

  margin: 0 auto 24px;

  position: relative;
  z-index: 2;

  transition:
    background   var(--transition),
    border-color var(--transition),
    box-shadow   var(--transition);
}

.workflow-card:hover .workflow-number {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.25),
    rgba(37, 99, 235, 0.25)
  );
  border-color: rgba(56, 189, 248, 0.40);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.20);
}

/* Título do step */
.workflow-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  margin: 0 0 14px;
  position: relative;
  z-index: 2;
  transition: color var(--transition);
}

.workflow-card:hover h3 {
  color: #f8fafc;
}

/* Descrição */
.workflow-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: color var(--transition);
}

.workflow-card:hover p {
  color: var(--text-body);
}

/* Responsivo */
@media (max-width: 1100px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Remove a linha conectora em grids quebrados */
  .workflow-grid::before {
    display: none;
  }
}

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

  .workflow-card {
    text-align: left;
    padding: 28px 24px;
  }

  .workflow-number {
    margin: 0 0 18px;
  }

  .section {
    padding: 90px 6%;
  }
}


/* =====================================================
                 SCROLL  SKILLS 
===================================================== */

.about-content p,
.soft-card,
.workflow-card {

  opacity: 0;

  transform: translateY(80px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}



/* ═══════════════════════════════════════════════════════════════
   RESPONSIVIDADE — Mobile First
   Organização: 1440 → 1200 → 992 → 768 → 576 → 480
   Regra: NUNCA altera identidade visual do Desktop (> 1440px)
═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   UTILITÁRIOS GLOBAIS RESPONSIVOS
───────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: 1440px — Large desktops / wide monitors
───────────────────────────────────────────────────────────── */

@media (max-width: 1440px) {

  .title {
    font-size: clamp(3rem, 5.5vw, 5rem);
  }

  .projects-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }

  .hero-image {
    width: 380px;
    height: 380px;
  }
}


/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: 1200px — Small desktops / large laptops
───────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {

  /* Navbar */
  .navbar {
    padding: 18px 6%;
  }

  .navbar nav {
    gap: 22px;
  }

  /* Hero */
  .hero {
    padding: 0 6%;
    gap: 40px;
  }

  .hero-image {
    width: 340px;
    height: 340px;
  }

  .title {
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    letter-spacing: -1px;
  }

  /* Sections */
  .section {
    padding: 110px 6%;
  }

  /* Projects */
  .projects {
    padding: 100px 6%;
  }

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

  /* About */
  .about {
    gap: 60px;
  }
}


/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: 992px — Tablets landscape / small laptops
───────────────────────────────────────────────────────────── */

@media (max-width: 992px) {

  /* ── Navbar ── */
  .navbar {
    padding: 16px 5%;
  }

  .navbar nav {
    gap: 18px;
  }

  .navbar a {
    font-size: 0.92rem;
  }

  /* ── Hero ── */
  .hero {
  height: auto;           /* ← ADICIONAR */
  overflow: visible;      /* ← ADICIONAR */
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  gap: 48px;
  min-height: 100svh;
}

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-image {
    order: 1;
    width: 280px;
    height: 280px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
  }

  .hero-stats {
    order: 3;
    justify-content: center;
    gap: 28px;
    margin-top: 44px;
  }

  .stat p {
    max-width: 180px;
  }

  .title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.5px;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .hero-glow {
    width: 350px;
    height: 350px;
    opacity: 0.25;
  }

  /* ── Sections ── */
  .section {
    padding: 90px 5%;
  }

  .section::before {
    left: 5%;
    right: 5%;
  }

  /* ── Projects ── */
  .projects {
    padding: 90px 5%;
  }

  .projects-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 44px;
  }

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

  /* ── About ── */
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about .section-header {
    position: static;
  }

  /* ── Workflow ── */
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .workflow-grid::before {
    display: none;
  }

  /* ── Soft Skills ── */
  .soft-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}


/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: 768px — Tablets portrait / phablets
───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* ── Navbar mobile: hamburger-ready ── */
  .navbar {
    padding: 14px 5%;
    flex-wrap: wrap;
  }

  .navbar nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .navbar a {
    font-size: 0.88rem;
  }

  /* ── Hero ── */
  .hero {
    padding: 110px 5% 70px;
    gap: 36px;
  }

  .hero-image {
    width: 230px;
    height: 230px;
  }

  .image-glow {
    width: 220px;
    height: 220px;
  }

  .title {
    font-size: clamp(2rem, 7vw, 3.2rem);
    letter-spacing: 0;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 15px 24px;
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .stat p {
    max-width: 100%;
  }

  /* ── Sections ── */
  .section {
    padding: 80px 5%;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  /* ── Projects ── */
  .projects {
    padding: 80px 5%;
  }

  .projects-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 36px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .project-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-button {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }

  /* ── Cards genéricos ── */
  .card {
    padding: 24px;
    border-radius: 18px;
  }

  #projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ── About ── */
  .about {
    gap: 28px;
  }

  .about-content {
    padding-left: 20px;
  }

  .about-content p {
    font-size: 1rem;
    padding: 22px 0;
  }

  .about-education {
    margin: 40px 0 0 0;
    max-width: 100%;
  }

  /* ── Soft Skills ── */
  .soft-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .soft-card {
    padding: 28px 26px;
  }

  /* ── Workflow ── */
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-card {
    text-align: left;
    padding: 28px 24px;
  }

  .workflow-number {
    margin: 0 0 18px;
  }
}


/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: 576px — Mobile landscape / large phones
───────────────────────────────────────────────────────────── */

@media (max-width: 576px) {

  /* ── Navbar ── */
  .navbar {
    padding: 14px 4%;
  }

  .navbar nav {
    display: none; /* oculta nav padrão — ative com JS hamburger se necessário */
  }

  /* Hero */
  .hero {
    padding: 100px 4% 60px;
    gap: 32px;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .tag {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .subtitle {
    font-size: 0.97rem;
    margin-top: 16px;
  }

  .hero-glow {
    width: 250px;
    height: 250px;
    right: -60px;
    opacity: 0.18;
  }

  /* ── Sections ── */
  .section {
    padding: 70px 4%;
  }

  .section::before {
    left: 4%;
    right: 4%;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* ── Projects ── */
  .projects {
    padding: 70px 4%;
  }

  .projects-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    text-align: left;
    margin-bottom: 28px;
  }

  .project-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .project-card h3 {
    font-size: 1.25rem;
  }

  .project-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .project-tech span {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .project-button {
    font-size: 0.95rem;
    padding: 14px 18px;
    border-radius: 14px;
  }

  /* ── About ── */
  .about-content {
    padding-left: 16px;
  }

  .about-education {
    margin: 30px 0 0 0;
  }

  .about-education h3 {
    font-size: 1.15rem;
  }

  /* ── Soft Skills ── */
  .soft-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .soft-card h3 {
    font-size: 1.05rem;
  }

  .soft-card p {
    font-size: 0.93rem;
  }

  /* ── Workflow ── */
  .workflow-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .workflow-card h3 {
    font-size: 1rem;
  }

  .workflow-card p {
    font-size: 0.88rem;
  }
}


/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: 480px — Small phones (iPhone SE, Galaxy A-series)
───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {

  /* ── Navbar ── */
  .navbar {
    padding: 12px 4%;
  }

  /* ── Hero ── */
  .hero {
    padding: 90px 4% 50px;
    gap: 28px;
  }

  .hero-image {
    width: 180px;
    height: 180px;
  }

  .image-glow {
    width: 160px;
    height: 160px;
  }

  .title {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
    letter-spacing: -0.5px;
  }

  .subtitle {
    font-size: 0.93rem;
    line-height: 1.65;
  }

  .hero-buttons a {
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: 10px;
  }

  .hero-stats {
    gap: 16px;
    margin-top: 32px;
  }

  .stat h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
  }

  .stat p {
    font-size: 0.87rem;
  }

  /* ── Sections ── */
  .section {
    padding: 60px 4%;
  }

  .section-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* ── Projects ── */
  .projects {
    padding: 60px 4%;
  }

  .projects-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
  }

  .project-card {
    padding: 20px 18px;
    border-radius: 16px;
    gap: 0;
  }

  .project-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }

  .project-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  .project-features span {
    font-size: 0.84rem;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .project-tech {
    gap: 8px;
    margin-bottom: 22px;
  }

  .project-tech span {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 10px;
  }

  .card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card img {
    height: 180px;
  }

  /* ── About ── */
  .about-content {
    padding-left: 14px;
  }

  .about-content p {
    font-size: 0.93rem;
    padding: 18px 0;
    line-height: 1.75;
  }

  .about-content p:first-child {
    font-size: 1rem;
  }

  .about-education {
    margin: 24px 0 0 0;
    padding-top: 24px;
  }

  .about-education h3 {
    font-size: 1.1rem;
  }

  .about-education p {
    font-size: 0.92rem;
  }

  /* ── Soft Skills ── */
  .soft-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  /* ── Workflow ── */
  .workflow-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .workflow-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.78rem;
    margin: 0 0 16px;
  }
}


/* ─────────────────────────────────────────────────────────────
   ANTI-OVERFLOW GLOBAL — previne scroll horizontal em todos
   os breakpoints
───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Bloqueia qualquer elemento que extravase */
  section,
  .section,
  .hero,
  .projects,
  .navbar {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Garante que glows não causem scroll */
  .hero-glow,
  .image-glow,
  .card-glow {
    pointer-events: none;
    overflow: hidden;
  }
}


/* ─────────────────────────────────────────────────────────────
   TOUCH TARGETS — conforto mínimo de 44px para toque
───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  .hero-buttons a,
  .project-button,
  .navbar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


/* ─────────────────────────────────────────────────────────────
   ACESSIBILIDADE — reduz motion para usuários que preferem
───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FIM DAS MEDIA QUERIES RESPONSIVAS
═══════════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════════
   MODAIS PROJECT
═══════════════════════════════════════════════════════════════ */

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
  padding: 20px;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

/* CONTEÚDO DO MODAL */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0f172a;
  border-radius: 24px;
  padding: 40px;
  overflow: hidden;
}

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

/* FECHAR (×) */
.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}

.close-modal:hover {
  opacity: 0.7;
}

/* TAG */
.modal-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  font-size: 12px;
  letter-spacing: 1px;
}

/* TEXTOS */
.modal-content h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  margin-top: 24px;
}

.modal-content p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* FEATURES */
.modal-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 35px;
}

.modal-features span {
  color: rgba(255, 255, 255, 0.85);
}

/* INFO */
.modal-info {
  margin-bottom: 32px;
}

/* BOTÕES */
.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* Botão Fechar — secundário, glass discreto */
.modal-buttons .modal-close-btn {
  flex: 1;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.modal-buttons .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.8);
}

/* Botão Principal — reseta o width:fit-content do .project-button global */
.modal-buttons .project-button {
  flex: 1;
  width: auto;
  align-self: auto;
  height: 52px;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
  border-radius: 14px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  .project-modal {
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
  }

  .modal-content {
    max-height: none;
    overflow: visible;
    padding: 28px 20px;
    border-radius: 16px;
    margin: auto;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .modal-buttons {
    flex-direction: column;
    margin-top: 24px;
  }

  .modal-buttons .modal-close-btn,
  .modal-buttons .project-button {
    flex: unset;
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MODAL — CORREÇÃO OVERFLOW MOBILE
   Adicione este bloco ao final do seu CSS existente
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Permite que o overlay absorva o scroll interno */
  .project-modal {
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
  }

  /* Modal ocupa a tela toda e rola quando necessário */
  .modal-content {
    max-height: none;        /* Remove qualquer limite herdado        */
    overflow: visible;       /* Conteúdo flui normalmente             */
    padding: 28px 20px;      /* Respira um pouco menos nas laterais   */
    border-radius: 16px;
    margin: auto;            /* Mantém centralizado quando couber     */
  }

  /* Título menor para não empurrar tanto conteúdo */
  .modal-content h2 {
    font-size: 22px;
  }

  /* Botões empilhados verticalmente */
  .modal-buttons {
    flex-direction: column;
  }

  .modal-close-btn,
  .project-button {
    width: 100%;
  }
}