@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}



body {
    background:
      radial-gradient(circle at 60% 20%, rgba(0, 0, 0, 0.04) 20%, transparent 70%),
      radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.03) 20%, transparent 65%),
      radial-gradient(circle at center, #111 0%, #070707 60%, #020202 100%);
    color: #fff;
  }
  
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}
  
  
  

.section-title {
    font-size: 2.4rem;
    margin-bottom: 6px;
}

.navbar {
    width: 100%;
    padding: 28px 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    background: transparent;
    backdrop-filter: none;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.86);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #222;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---------- NAVBAR: underline animado (hover + active) ---------- */

/* garante que o link seja referência para o ::after */
.menu a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: .9rem;
    letter-spacing: .8px;
    padding-bottom: 6px;
}

/* linha inicial (oculta) */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: #fff;
    transition: width 300ms cubic-bezier(.2,.9,.2,1);
    will-change: width;
}

/* hover: expande a linha */
.menu a:hover::after {
    width: 100%;
}

/* active (scrollspy): garante o mesmo efeito do hover + leve ênfase no texto */
.menu a.active::after {
    width: 100%;
}

.menu a.active {
    font-weight: 600;
    color: #ffffff;
}

/* animação extra: quando a classe 'active' é adicionada, dá um pequeno 'pop' */
.menu a.active {
    transform: translateY(-1px);
    transition: transform 220ms ease;
}


/* LOGO */
.logo img {
    height: 45px;
}

/* MENU */
.menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-size: .9rem;
    letter-spacing: .8px;
    position: relative;
    padding-bottom: 4px;
}

/* Underline animado */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    /* Substituído o #fff pelo degradê linear */
    background: linear-gradient(90deg, #FCE57E, #FF9A3D);
    transition: width 300ms cubic-bezier(.2, .9, .2, 1);
    will-change: width;
    /* Adicionado um leve brilho para combinar com a estética dos cards */
    box-shadow: 0 0 8px rgba(255, 154, 61, 0.4);
}

.menu a:hover::after {
    width: 100%;
}

/* SEÇÕES */
.section {
    min-height: 100vh;
    padding: 70px 10% 20px;
        display: flex;
    align-items: center;
}

.section h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #0af;
    width: fit-content;
}

/* --- SEÇÃO QUEM EU SOU - TECH MINIMALISTA --- */
.quem-sou {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  position: relative;
}

/* CONTEÚDO */
.quem-sou .content {
  max-width: 550px;
}

.quem-sou .title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s ease forwards;
}

.quem-sou .title span {
  font-weight: 700;
  white-space: nowrap;
}

.quem-sou .subtitle {
  font-size: 1.1rem;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp .8s ease .15s forwards;
  color: #aaa;
}

.quem-sou .description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
  color: #ddd;
}

/* BOTÃO */
.btn-outline {
  text-decoration: none;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 28px;
  display: inline-block;
  transition: .3s;
  opacity: 0;
  animation: fadeUp .8s ease .45s forwards;
}
.btn-outline:hover {
  background: #fff;
  color: #000;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181818, #222);
}

/* LINHA TECH */
.quem-sou::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 20%;
  width: 2px;
  height: 60%;
  background: #333;
}

/* ANIMAÇÃO */
@keyframes fadeUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* GARANTIR QUE NUNCA SUMA (MESMO SE A ANIMAÇÃO QUEBRAR) */
.quem-sou .title,
.quem-sou .subtitle,
.quem-sou .description,
.btn-outline {
  animation-fill-mode: forwards;
}

/* ====== RESUMO PROFISSIONAL — MODERNO & PREMIUM ====== */
.resumo-modern { display:flex; flex-direction:column; align-items:center; gap:15px; padding-top:200px; }
.resumo-modern .section-title { font-size:2.2rem; margin-bottom:6px; position:relative; }

.resumo-grid{
  width:100%;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
  margin-top:28px;
}

.resumo-subtitle {
    color: #cfcfcf;
    font-size: 1rem;
    opacity: 0.85;
    max-width: 680px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* card */
.resumo-card{
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding:22px;
  border-radius:12px;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease, border-color .25s ease;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:210px;
  position:relative;
  overflow:hidden;
  outline: none;
}

/* subtle glass shift on hover/focus */
.resumo-card::before{
  content:"";
  position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); opacity:0;
  transition: opacity .35s ease;
}
.resumo-card:hover::before, .resumo-card:focus::before { opacity:1; }

.resumo-card:hover, .resumo-card:focus {
  transform: translateY(-8px) scale(1.02);
  border-color:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

/* icon */
.card-icon{
  width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,0.03); color:#fff;
  border:1px solid rgba(255,255,255,0.04);
  flex:0 0 auto;
}

/* title + desc */
.card-title{ font-size:1.05rem; font-weight:700; letter-spacing:.6px; margin-top:6px; }
.card-desc{ font-size:.95rem; color:#d6d6d6; line-height:1.45; margin-top:0; }

/* meta badges */
.card-meta{ display:flex; gap:12px; margin-top:auto; }
.meta-item{ display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.meta-item strong{ font-size:1rem; color:#fff; }
.meta-item span{ font-size:.78rem; color:#bdbdbd; }

/* small animated underline on titles inside cards */
.resumo-card .card-title::after{
  content:""; display:block; height:2px; width:0; background: linear-gradient(90deg,#fff,#8a8a8a); margin-top:8px; border-radius:2px; transition: width .45s cubic-bezier(.2,.9,.2,1);
}
.resumo-card:hover .card-title::after, .resumo-card:focus .card-title::after{ width:40%; }

/* accessibility: visible focus ring */
.resumo-card:focus{ box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 18px 40px rgba(0,0,0,0.6); }


/*Formação academica */
/* ========================================= */
/* 🎓 FORMAÇÃO ACADÊMICA — HORIZONTAL PREMIUM */
/* ========================================= */

/* ========================= */
/* FORMAÇÃO — STACKED DIPLOMAS */
/* ========================= */

/* ========================= */
/* FORMAÇÃO — STACKED DIPLOMAS V2 */
/* ========================= */
.formacao-stacked-v2 { display:flex; flex-direction:column; align-items:center; gap:22px; padding-top:40px; }
.formacao-stacked-v2 .section-title { font-size:2.2rem; margin-bottom:6px; }

/* wrapper: controla overflow e alinhamento central */
.stack-wrapper {
  width:100%;
  max-width:1200px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap: 12px;
  padding: 18px;
  position:relative;
  box-sizing:border-box;
}

/* base do card */
.diploma-card{
  width: 320px;
  min-height: 200px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.6);
  transform-origin: center;
  position: relative;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease, border-color .2s ease;
  cursor: pointer;
  overflow: visible;
  display:flex;
  flex-direction:column;
  gap:10px;
  will-change: transform;
}

/* light stacked offsets for depth (subtle) */
.diploma-card:nth-child(1){ transform: translateY(0) rotate(-2deg); z-index:10; }
.diploma-card:nth-child(2){ transform: translateY(6px) rotate(-1deg); z-index:9; margin-left:-60px; }
.diploma-card:nth-child(3){ transform: translateY(12px) rotate(0deg); z-index:8; margin-left:-60px; }
.diploma-card:nth-child(4){ transform: translateY(18px) rotate(1deg); z-index:7; margin-left:-60px; }

/* top area */
.card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.logo-wrap{ position:relative; width:88px; height:48px; display:flex; align-items:center; justify-content:center; }
.logo-wrap img{ max-width:100%; max-height:48px; opacity:0.12; object-fit:contain; display:block; }
.logo-fallback{ display:none; width:88px; height:48px; background:rgba(255,255,255,0.02); color:#fff; border-radius:6px; align-items:center; justify-content:center; display:flex; font-weight:700; opacity:0.12; }

/* if image failed, JS/CSS shows fallback (see rule below) */
.logo-wrap img[style*="display: none"] + .logo-fallback { display:flex; }

/* ribbon year */
.ribbon{
  background:transparent;
  border:1px solid rgba(255,255,255,0.08);
  color:#fff;
  padding:6px 8px;
  font-size:.82rem;
  border-radius:8px;
  align-self:flex-start;
  opacity:0.95;
}

/* main text */
.course { font-size:1.05rem; font-weight:700; margin-top:6px; color:#fff; }
.inst { font-size:.9rem; color:#cfcfcf; margin-top:4px; }

/* decorative */
.card-decor { display:none; } /* kept minimal in v2 */

/* hidden expanded area */
.card-more{ margin-top:12px; max-height:0; opacity:0; overflow:hidden; transition: max-height .42s ease, opacity .3s ease; color:#ddd; font-size:.95rem; }

/* expanded state */
.diploma-card.active{
  transform: translateY(-10px) scale(1.04) rotate(0deg) !important;
  z-index: 60 !important;
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 34px 80px rgba(0,0,0,0.75);
}
.diploma-card.active .card-more{ max-height: 280px; opacity:1; }

/* hover focus */
.diploma-card:hover{ transform: translateY(-6px) scale(1.02); z-index:30; border-color: rgba(255,255,255,0.18); }
.diploma-card:focus{ outline:0; box-shadow: 0 0 0 4px rgba(255,255,255,0.04), 0 18px 40px rgba(0,0,0,0.6); }

/* cert link */
.cert-link{ display:inline-block; margin-top:10px; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,0.08); padding:8px 12px; border-radius:6px; transition: background .2s ease; }
.cert-link:hover{ background:#fff;color:#000; }



/* ========== HISTÓRICO PROFISSIONAL — timeline horizontal interativa ========== */
/* ========== HISTÓRICO PROFISSIONAL — REFINAMENTO VISUAL ========== */
.historico { display:flex; flex-direction:column; gap:22px; align-items:center; padding-top:160px; }
.hist-wrapper { position:relative; width:100%; display:flex; align-items:center; gap:12px; }

/* track: rolagem suave, snap e padding menor */
.hist-track {
  display:flex;
  gap:20px;
  width: calc(100% - 120px);
  overflow-x:auto;
  padding: 18px 36px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items:flex-start;
  box-sizing:border-box;
}

.hist-subtitle {
color: #cfcfcf;
    font-size: 1rem;
    opacity: 0.85;
    max-width: 680px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* barra de rolagem discreta */
.hist-track::-webkit-scrollbar{ height:10px; }
.hist-track::-webkit-scrollbar-thumb{
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius:8px;
  border: 1px solid rgba(255,255,255,0.02);
}

/* Card: largura consistente, padding e layout de leitura */
.hist-card {
  scroll-snap-align: center;
  min-width: 320px;
  max-width: 360px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform .34s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease, border-color .22s ease;
  position:relative;
  cursor:pointer;
  overflow:visible;
  flex-shrink:0;
}

/* cabeçalho do card */
.card-head { display:flex; flex-direction:column; gap:6px; }
.card-head h3 { font-size:1.02rem; margin:0; font-weight:700; color:#fff; }
.card-head .period { font-size:.82rem; color:#bdbdbd; }

/* logo: grande mas com baixa opacidade, deslocada para topo direito */
.company-logo{
  width:56px;
  height:auto;
  opacity:100;
  position:absolute;
  right:10px;
  top:10px;
  pointer-events:none;
  filter:grayscale(100%) brightness(190%);
}

/* corpo: bullets colapsados com transição suave */
.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .46s ease, opacity .32s ease, transform .32s ease;
  opacity:0;
  transform: translateY(-6px);
  color:#e9e9e9;
  font-size:.95rem;
  line-height:1.5;
}

/* tags */
.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tags span{ font-size:.78rem; padding:6px 8px; border-radius:6px; background:rgba(255,255,255,0.025); border:1px solid rgba(255,255,255,0.02); color:#eaeaea; }

/* estado ativo/expandido */
.hist-card.active {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255,255,255,0.9);
  z-index: 30;
}
.hist-card.active .card-body {
  opacity:1;
  transform: translateY(0);
  max-height: 420px;
}

/* quando card não ativo: aparência compacta */
.hist-card:not(.active):hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.08); }

/* botões nav leves */
.hist-nav{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.04); padding:10px 12px; border-radius:8px; cursor:pointer; }
.hist-nav:hover{ background:rgba(255,255,255,0.02); border-color:rgba(255,255,255,0.12); }


/* ================= SKILL STRIPES — NEON BLACK & WHITE ================= */
/* ====== Skills — Modern Cards with Radials & Animated Bars ====== */
.skills-modern { display:flex; flex-direction:column; align-items:center; gap:10px; padding-top:70px; }
.skills-modern .section-title { font-size:2.4rem; margin-bottom:6px; text-align:center; }
.skills-modern .skills-intro { color:#cfcfcf; margin-bottom:10px; max-width:900px; text-align:center; }

/* GRID — Centralizar 2 Cards */
.skills-grid-modern {
  width: 100%;
  max-width: 900px;              /* 🔥 Limite perfeito para 2 colunas */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  justify-items: center;         /* 🔥 Centraliza os cards dentro das colunas */
  padding: 12px 4%;
  margin: 0 auto;                /* 🔥 Centraliza o próprio grid */
  box-sizing: border-box;
}


/* single card */
.skill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  transition: transform .34s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease, border-color .2s ease;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:visible;
}

/* hover/focus */
.skill-card:hover, .skill-card:focus-within { transform: translateY(-8px); border-color: rgba(255,255,255,0.12); box-shadow: 0 30px 70px rgba(0,0,0,0.7); outline:none; }

/* head */
.card-head { display:flex; flex-direction:column; gap:6px; }
.card-title { font-weight:700; font-size:1.05rem; color:#fff; letter-spacing:.6px; text-transform:uppercase; }
.card-sub { color:#bdbdbd; font-size:.9rem; }

/* top radial */
.card-top { display:flex; align-items:center; gap:12px; }
.group-radial { width:64px; height:64px; transform: rotate(-90deg); }
.g-bg { fill:none; stroke:#111; stroke-width:3.4; }
.g-bar { fill:none; stroke-width:4; stroke-linecap:round; stroke: url(#groupGrad); transition: stroke-dasharray .9s cubic-bezier(.2,.9,.2,1); }
.g-text { font-size:10px; fill:#fff; text-anchor:middle; transform: rotate(90deg); }

/* group meta text */
.group-meta { color:#cfcfcf; font-size:.85rem; }

/* skill list */
.skill-list { display:flex; flex-direction:column; gap:12px; padding-top:4px; }

/* row */
.skill-row { display:flex; flex-direction:column; gap:8px; }
.skill-label { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#eaeaea; font-weight:600; }
.skill-pct { color:#d0d0d0; font-weight:700; font-size:.95rem; }

/* bar */
.skill-bar { width:100%; height:12px; background: rgba(255,255,255,0.035); border-radius:999px; overflow:hidden; position:relative; border:1px solid rgba(255,255,255,0.02); }
.skill-fill {
  width:0%;
  height:100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.12));
  border-radius:999px;
  position:relative;
  transition: width 900ms cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 0 18px rgba(255,255,255,0.03), inset 0 0 10px rgba(255,255,255,0.02);
}

/* light sweep inside */
.skill-fill .sweep {
  position:absolute;
  right:-40%;
  top:-40%;
  width:60%;
  height:200%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.18), rgba(255,255,255,0));
  transform: skewX(-20deg);
  animation: sweep 2.6s linear infinite;
  pointer-events:none;
}

/* sweep keyframes */
@keyframes sweep {
  0%{ right:-60%; opacity:0; }
  20%{ opacity:1; }
  100%{ right:160%; opacity:0; }
}


/* focus-visible */
.skill-card:focus { outline:none; box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }



/* ======= TÍTULOS DE GRUPO (corrigido) ======= */
.group-title {
    position: relative;
    display: inline-block;
    font-size: 1.05rem;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding-right: 28px;      /* espaço para o badge (se manter) */
    color: #fff;
    text-transform: uppercase;
    vertical-align: middle;
  }
  
  /* subtítulo pequeno explicativo (mantém) */
  .group-subtitle {
    margin: 0 0 14px 0;
    font-size: .86rem;
    color: #bdbdbd;
    opacity: .95;
    max-width: 320px;
    line-height: 1.3;
  }
  
  /* linha animada centralizada e que não "vaza" */
  .group-title::after {
    content: "";
    position: absolute;
    left: 30%;
    bottom: -1px;
    height: 2px;
    width: 60%;                     /* base: 60% da largura do título */
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.35));
    transform: translateX(-50%) scaleX(0);  /* começa invisível (scaleX) */
    transform-origin: center;
    transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .45s ease;
    opacity: 0;
    border-radius: 4px;
    will-change: transform, opacity;
  }
  
  /* pequeno "badge" / ícone geométrico à direita do título (mantém) */
  .group-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    box-shadow: 0 0 18px rgba(255,255,255,0.02) inset;
    border: 1px solid rgba(255,255,255,0.04);
  }
  
  /* quando o grupo entra na viewport, revela a linha com scaleX(1) */
  .skill-group.revealed .group-title::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
  
  /* hover / foco para feedback: estica levemente */
  .group-title:hover::after {
    transform: translateX(-50%) scaleX(1.05);
    opacity: 1;
  }
  
  /* entrada suave do título/subtítulo (mantém animação) */
  .group-title, .group-subtitle {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .skill-group.revealed .group-title,
  .skill-group.revealed .group-subtitle {
    opacity: 1;
    transform: translateY(0);
  }
  

  
/* ================================================ */
/*        CERTIFICAÇÕES — PREMIUM MODERN STYLE      */
/* ================================================ */

.cert-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  gap: 24px;
}

.cert-modern .section-title {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.cert-subtitle {
  color: #cfcfcf;
  font-size: 1rem;
  opacity: 0.85;
  max-width: 680px;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 16px;
}

.cert-wrapper {
  width: 100%;
  max-width: 900px;         /* 🔥 Limite que permite 2 colunas sempre */
  margin: 10px auto 0 auto;
  
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;           /* vertical / horizontal */
  place-items: center;
}

/* CARD BASE */
.cert-card-m {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 22px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .4s cubic-bezier(.2,.9,.2,1),
              border-color .3s ease,
              box-shadow .4s ease;
  width: 100%;
  max-width: 380px;
}

/* Hover neon halo */
.cert-card-m:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

/* ICON */
.cert-icon-m {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  margin: 0 auto 18px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .35s ease;
}

.cert-card-m:hover .cert-icon-m {
  transform: scale(1.12) rotate(4deg);
}

.cert-icon-m img {
  width: 42px;
  opacity: 0.9;
}

.cert-org {
  color: #bdbdbd;
  font-size: .9rem;
}

/* Decorative bottom line */
.cert-line {
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0));
  border-radius: 4px;
  margin: 18px auto 0 auto;
  opacity: 0.22;
  transition: opacity .4s ease;
}

.cert-card-m:hover .cert-line {
  opacity: 0.55;
}


/* ========== IDIOMAS — RADIAL CARDS (AJUSTADO) ========== */

/* ================= FOOTER ================= */
.site-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #eaeaea;
  padding: 44px 10%;
  margin-top: 48px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto 18px;
  width: 100%;
}

.footer-brand img {
  height: 84px;
  opacity: 0.95;
  display: block;
  margin-bottom: 12px;
}

.brand-desc {
  color: #cfcfcf;
  margin-bottom: 12px;
  max-width: 320px;
  line-height: 1.4;
}

.socials {
  display:flex;
  gap:10px;
  margin-top:8px;
}

.social-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
  color: #fff;
  text-decoration:none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.social-link:hover, .social-link:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.12);
  outline: none;
}

.footer-contacts h3,
.footer-sitemap h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: .6px;
}

.footer-contacts ul,
.footer-sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.contact-item, .footer-sitemap a {
  color: #dcdcdc;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.contact-item:hover, .footer-sitemap a:hover,
.contact-item:focus, .footer-sitemap a:focus {
  background: rgba(255,255,255,0.02);
  color: #fff;
  outline: none;
}

/* footer bottom */
.footer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1400px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-bottom .copyright small { color:#bfbfbf; }
.footer-actions { display:flex; align-items:center; gap:12px; }

/* ghost button */
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius:10px;
  cursor:pointer;
  transition: transform .2s ease, background .18s ease, border-color .18s ease;
  font-size: .95rem;
}
.btn-ghost:hover, .btn-ghost:focus { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.02); outline: none; }

/* back to top visible state */
#toTopBtn { opacity: 0; transform: translateY(6px); pointer-events:none; }
#toTopBtn.visible { opacity: 1; transform: translateY(0); pointer-events:auto; }

/* made by text */
.made-by { color:#bdbdbd; font-size:.82rem; }

/* accessibility: visible focus ring for keyboard users only */
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(255,255,255,0.08); outline-offset: 2px; border-radius: 6px; }


/* skip link styling (if you kept the skip in header) */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 60;
  transform: translateY(-120%);
  transition: transform .22s ease;
  text-decoration:none;
}
.skip-link:focus { transform: translateY(0); }

/* small polish for footer links icons (svg inherits color) */
.site-footer svg { display:block; }

/* ===== Vertical timeline zig-zag (formação) - versão invertida (começa à direita) ===== */
.formacao-timeline { display:flex; flex-direction:column; align-items:center; gap:18px; padding-top:40px; }
.formacao-timeline .section-title { font-size:2.2rem; margin-bottom:6px; }

/* wrapper central */
.timeline-wrapper {
  width:100%;
  max-width:1100px;
  padding: 28px 18px;
  position:relative;
  box-sizing:border-box;
  display: block;
}

.timeline-subtitle {
    color: #cfcfcf;
    font-size: 1rem;
    opacity: 0.85;
    max-width: 680px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* linha vertical central */
.timeline-line {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:12px;
  bottom:12px;
  width:6px;
  background:#fff;
  opacity:0.08;
  border-radius:4px;
  z-index:1;
}

/* cada item (linha) */
.timeline-item {
  position:relative;
  width:50%;
  padding: 18px 24px;
  box-sizing:border-box;
  display:flex;
  gap:12px;
  align-items:flex-start;
  z-index:2;
  outline:none;
  margin-bottom:-15px;
}

/* ---------- INVERTIDO: odd => RIGHT, even => LEFT ---------- */
/* odd (1,3,5...) agora ficam do lado direito */
.timeline-item:nth-child(odd) {
  margin-left:50%;
  justify-content:flex-start;
  transform-origin: left center;
}

/* even (2,4,6...) agora ficam do lado esquerdo */
.timeline-item:nth-child(even) {
  left:0;
  margin-left:0;
  justify-content:flex-end;
  transform-origin: right center;
}

/* the card itself */
.timeline-card {
  width: calc(100% - 48px);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.6);
  position:relative;
  transition: transform .34s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease, border-color .22s ease;
}

/* make card appear connected to the center line via small triangle */
.timeline-item:nth-child(odd) .timeline-card::after,

/* triangles pointing toward center — ajustados ao novo lado */
.timeline-item:nth-child(odd) .timeline-card::after {
  left: -7px; /* aponta para esquerda (para encontrar a linha central) */
}
.timeline-item:nth-child(even) .timeline-card::after {
  right: -7px;
}

/* small dot on the center line for each item */
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:#fff;
  opacity:0.95;
  position:absolute;
  top:28px;
  left:50%;
  transform:translateX(-50%) scale(1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  z-index:3;
  border: 2px solid rgba(0,0,0,0.35);
}

/* card collapsed/expanded content */
.timeline-card .card-more {
  margin-top:12px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition: max-height .42s ease, opacity .28s ease;
}

/* active state (clicked/focused) */
.timeline-item.active .timeline-card {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 34px 80px rgba(0,0,0,0.75);
  z-index:6;
}
.timeline-item.active .timeline-card .card-more {
  max-height: 260px;
  opacity:1;
}

/* ---------- Logo fixes: tornam ícones mais visíveis no fundo escuro ---------- */
/* aumenta a opacidade das logos (eram muito discretas) e remove filtros que poderiam apagá-las */
.timeline-card .logo-wrap img {
  max-width:100%;
  max-height:48px;
  opacity:0.68;          /* maior visibilidade */
  object-fit:contain;
  display:block;
  filter: none !important;
}

/* fallback visível se a <img> foi escondida por onerror */
.timeline-card .logo-wrap img[style*="display: none"] + .logo-fallback,
.logo-wrap img[aria-hidden="true"] + .logo-fallback {
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0.95;
}

/* garante que o fallback esteja escondido por padrão apenas quando imagem existe */
.timeline-card .logo-wrap .logo-fallback { display:none; width:88px; height:48px; background:rgba(255,255,255,0.02); color:#fff; border-radius:6px; align-items:center; justify-content:center; display:flex; font-weight:700; opacity:0.12; }

/* top inside area kept consistent */
.timeline-card .card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }

/* aesthetic niceties */
.course { font-size:1.05rem; font-weight:700; color:#fff; margin-top:6px; }
.inst { font-size:.9rem; color:#cfcfcf; margin-top:4px; }
.ribbon { background:transparent; border:1px solid rgba(255,255,255,0.08); color:#fff; padding:6px 8px; font-size:.82rem; border-radius:8px; }


/* accessibility focus */
.timeline-item:focus { outline: none; }
.timeline-item:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,0.06); transform: translateY(-4px); }

/* gentle appear animation */
.timeline-item { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .4s cubic-bezier(.2,.9,.2,1); }
.timeline-item.is-visible { opacity:1; transform:none; }

/* ===== Hist: Glass Cards Premium ===== */
.hist-track {
    display:flex;
    gap:24px;
    width: calc(100% - 120px);
    overflow-x:auto;
    padding: 26px 36px;
    scroll-behavior: smooth;
    align-items:flex-start;
  }
  
  .hist-card {
    scroll-snap-align: center;
    min-width: 360px;
    max-width: 380px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    padding:18px;
    border-radius: 14px;
    display:flex;
    flex-direction:column;
    gap:12px;
    transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease, border-color .24s ease;
    position:relative;
    cursor:pointer;
    flex-shrink:0;
    overflow:visible;
  }
  
  /* subtle glass shimmer */
  .hist-card::before{
    content:"";
    position:absolute; inset:0; border-radius:14px;
    background: linear-gradient(120deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
    pointer-events:none; mix-blend-mode:overlay; opacity:0;
    transition: opacity .4s ease;
  }
  .hist-card:hover::before { opacity:1; }
  
  /* logo: prominent top-left */
  .company-logo{ width:72px; height:auto; position:relative; filter:none; transform:none; margin-left:10px; margin-bottom: 10px; }
  
  /* head layout: title + year pill */
  .card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
  .card-head h3{ font-size:1.02rem; margin:0; font-weight:700; color:#fff; }
  .card-head .period { font-size:.82rem; color:#e6e6e6; background: rgba(255,255,255,0.03); padding:6px 10px; border-radius:10px; border:1px solid rgba(255,255,255,0.02); }
  
  /* body: bullet list visible; tags as chips */
  .card-body { color:#eaeaea; font-size:.95rem; line-height:1.45; max-height:180px; overflow:auto; padding-right:6px; }
  .tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
  .tags span { font-size:.78rem; padding:6px 10px; border-radius:999px; background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border:1px solid rgba(255,255,255,0.02); color:#fff; }
  
  /* focus/hover elevate */
  .hist-card:focus, .hist-card:hover { transform: translateY(-10px) scale(1.01); border-color: rgba(255,255,255,0.14); outline:none; }
  
  /* expanded state showing more details */
  .hist-card.active { transform: translateY(-12px) scale(1.02); z-index:30; border-color: rgba(255,255,255,0.98); }
  .hist-card.active .card-body { max-height: 420px; }
  

  
  /* Idiomas — Orbit Radials */
.idiomas-orbit { display:flex; flex-direction:column; align-items:center; gap:10px; padding-top:70px; }
.idiomas-orbit-sub { color:#cfcfcf; margin-bottom:6px; text-align:center; max-width:880px; }

/* grid */
.orbit-grid { width:100%; max-width:1100px; display:grid; grid-template-columns: repeat(3,1fr); gap:22px; padding: 12px 4%; box-sizing:border-box; }

/* card */
.orbit-card {
  display:flex; flex-direction:column; gap:10px; padding:16px; border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.008));
  border:1px solid rgba(255,255,255,0.04); box-shadow: 0 18px 48px rgba(0,0,0,0.6);
  transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease, border-color .22s ease;
  overflow:visible;
}
.orbit-card:hover, .orbit-card:focus-within { transform: translateY(-8px); border-color: rgba(255,255,255,0.12); box-shadow: 0 36px 90px rgba(0,0,0,0.7); }

/* visual */
.orbit-visual { position:relative; width:80px; height:80px; margin:6px 0 0 6px; }
.orbit-layer.layer-back { position:absolute; inset:0; border-radius:999px; box-shadow: 0 6px 30px rgba(100,100,255,0.06) inset; opacity:0.5; pointer-events:none; }
.orbit-svg { width:80px; height:80px; display:block; }
.orb-bg { fill: rgba(255,255,255,0.02); }
.ring { fill:none; stroke-width:1.6; opacity:0.85; stroke-linecap:round; transform-origin:center; }

/* badge */
.orbit-badge { position:absolute; right:-150px; bottom:20px; background:rgba(255,255,255,0.04); color:#fff; font-size:.78rem; padding:6px 8px; border-radius:10px; border:1px solid rgba(255,255,255,0.03); }

/* radial text */
.orb-text { font-size:11px; fill:#fff; text-anchor:middle; transform: rotate(0deg); }

/* meta */
.orbit-meta { padding:6px 2px 8px 2px; }
.orbit-name { font-weight:700; color:#fff; font-size:1.05rem; }
.orbit-desc { color:#cfcfcf; font-size:.9rem; margin-top:6px; }

/* sample button */
.orbit-sample { margin-top:8px; background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.04); padding:8px 10px; border-radius:8px; cursor:pointer; }
.orbit-sample:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }

/* sample panel */
.orbit-sample-panel { margin-top:10px; color:#d6d6d6; font-size:.92rem; }

/* animations (rings rotate slowly) */
.orbit-card.is-visible .ring-1 { animation: orbit-rotate-1 12s linear infinite; }
.orbit-card.is-visible .ring-2 { animation: orbit-rotate-2 18s linear infinite; }
@keyframes orbit-rotate-1 { to { transform: rotate(360deg); } }
@keyframes orbit-rotate-2 { to { transform: rotate(-360deg); } }

/* pulse on reveal */
.orbit-card.is-visible { animation: orbit-pulse .48s cubic-bezier(.2,.9,.2,1); }
@keyframes orbit-pulse { 0%{ transform: translateY(6px) scale(.995); opacity:0 } 100%{ transform: none; opacity:1 } }

  
  /* ===== Responsive Navbar with Mobile Toggle ===== */

/* base nav adjustments (keeps your theme) */
.nav-inner {
    max-width: var(--max-width, 1400px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 0 4%;
    box-sizing: border-box;
  }
  
  /* hamburger button */
  .nav-toggle {
    display: none; /* shown only on mobile */
    width:48px;
    height:48px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color:#fff;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
  }
  .nav-toggle:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }
  
  /* hamburger lines */
  .hamburger { display:inline-block; width:20px; height:18px; position:relative; }
  .hamburger span { position:absolute; left:0; right:0; height:2px; background:#fff; display:block; transition: transform .22s ease, opacity .18s ease; }
  .hamburger span:nth-child(1) { top:0; }
  .hamburger span:nth-child(2) { top:8px; }
  .hamburger span:nth-child(3) { bottom:0; }
  
  /* when menu open - animate into X */
  .nav-open .hamburger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-open .hamburger span:nth-child(2){ opacity:0; transform: scaleX(.3); }
  .nav-open .hamburger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
  
  /* desktop menu: inline list (keep original look) */
  .menu { display:flex; gap:25px; list-style:none; align-items:center; margin-left:auto; }
  .menu a { color:#fff; text-decoration:none; font-size:.95rem; padding:6px 4px; position:relative; }
  

  
  /* ensure the header keeps high z-index so menu sits above content */
  .navbar { z-index:140; position:fixed; left:0; right:0; top:0; }
  
  /* small polish: ensure menu scrollbars are subtle */
  .menu::-webkit-scrollbar { width:10px; height:10px; }
  .menu::-webkit-scrollbar-thumb { background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius:8px; border:1px solid rgba(255,255,255,0.02); }
  
  /* Focus visible */
  .menu a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid rgba(255,255,255,0.08); outline-offset:4px; border-radius:8px; }


  /* 🎯 GRID EXATO */
.cert-wrapper {
  width: 100%;
  max-width: 1400px;        /* garante espaço para 4 colunas */
  margin: 10px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 💻 4 COLUNAS */
  gap: 26px 28px;
  place-items: center;
}

/* 💻 Alturas iguais */
.cert-card-m {
  width: 100%;
  height: 190px;            /* 🔥 fixa altura padronizada */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centraliza conteúdo */
  align-items: center;
}

/* 📎 Melhor alinhamento do texto */
.cert-title-m, .cert-org {
  margin: 4px 0;
}


/* 🔲 Fundo branco atrás das logos */
.timeline-card .logo-wrap {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* 🔳 Ajuste no tamanho para manter o padrão */
.timeline-card .logo-wrap img,
.timeline-card .logo-wrap .logo-fallback {
  opacity: 1 !important;
  filter: none !important;
  max-height: 34px;
}

/* 🏷️ Fundo branco atrás das datas */
.timeline-card .ribbon {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  font-weight: 600;
}

/* 🧱 Fundo branco padronizado nas logos do Histórico */
.hist-card img,
.hist-card .history-logo,
.hist-card .company-logo,
.hist-card .logo {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.25) !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.20) !important;
  max-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  object-fit: contain !important;
}

.hist-card img {
  width: auto !important;
  height: auto !important;
}

/* GRID novo para o histórico */
.hist-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  justify-content: center;
}
.hist-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Remove scroll horizontal no histórico */
.hist-track {
  overflow-x: hidden !important;
}

/* Esconde qualquer scrollbar horizontal (cross-browser) */
.hist-track::-webkit-scrollbar {
  display: none !important;
}

.hist-wrapper {
  overflow: hidden !important;
}

/* 🎨 COLORS BASED ON SKILL GROUP */
.skill-card[data-group="hard"] .skill-fill {
  background: linear-gradient(90deg, #fff, #9aa0ff);
  box-shadow: 0 0 18px rgba(154,160,255,0.25), inset 0 0 10px rgba(154,160,255,0.18);
}

.skill-card[data-group="soft"] .skill-fill {
  background: linear-gradient(90deg, #fff, #66e0ff);
  box-shadow: 0 0 18px rgba(102,224,255,0.25), inset 0 0 10px rgba(102,224,255,0.18);
}

.skill-card[data-group="tools"] .skill-fill {
  background: linear-gradient(90deg, #fff, #ffb86b);
  box-shadow: 0 0 18px rgba(255,184,107,0.25), inset 0 0 10px rgba(255,184,107,0.18);
}

/* 💡 Optional: ajusta o brilho do sweep para combinar com cada cor */
.skill-card[data-group] .skill-fill .sweep {
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
}

.menu-whatsapp {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.menu-whatsapp:hover,
.menu-whatsapp:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* Container da foto precisa ser relativo para posicionar o glow */
.photo-area {
    width: 320px;         /* Reduzido de 360px */
    height: 420px;        /* Reduzido de 460px */
    position: relative;
    overflow: visible;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5%;     /* Afasta um pouco da borda direita */
}

/* O Glow Dourado */
.golden-glow-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350%;          /* Proporção levemente menor */
    height: 350%;
    background: radial-gradient(
        circle, 
        #fffcf888 0%, 
        rgba(255, 181, 90, 0.1) 50%, 
        transparent 70%
    );
    filter: blur(50px);   /* Blur levemente menor para não dissipar demais */
    z-index: 1;
    pointer-events: none;
}

/* Garante que a imagem fique sobre o glow */
.photo-area img {
    position: relative;
    z-index: 2;
    max-width: 160%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); /* Destaca o recorte da foto */
}

.inst-periodo {
  font-size: .82rem;
  color: #bdbdbd;
  display: block;
  margin-top: 2px;
  opacity: .85;
  font-weight: 500;
}

/* === CERTIFICAÇÕES — GRID LIMPO (SEM CARD) === */
.clean-cert {
  width: 100%;
  max-width: 1200px;
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 🔥 agora 5 colunas */
  gap: 40px 24px;
  text-align: center;
  justify-items: center;
}

.clean-cert .cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.clean-cert img {
  width: 90px;
  height: auto;
  object-fit: contain;
  opacity: .92;
  transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

.clean-cert img:hover {
  transform: translateY(-4px) scale(1.06);
  opacity: 1;
  filter: drop-shadow(0px 0px 6px rgba(255,255,255,0.2));
}

.clean-cert .cert-title-m {
  font-weight: 600;
  margin-top: 6px;
  font-size: .9rem;
}

.clean-cert .cert-org {
  color: #bdbdbd;
  font-size: .78rem;
}

/* ======== CERTIFICAÇÕES CLEAN ======== */
.cert-wrapper.clean-cert {
  width: 100%;
  max-width: 1300px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  justify-items: center;
  align-items: start;
}

.cert-item {
  text-align: center;
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.cert-item img {
  width: 95px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35));
  border-radius: 8px;
  transition: transform .25s ease, filter .25s ease;
}

.cert-item:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0px 20px rgba(192, 160, 15, 0.35));
}

.cert-title-m {
  margin-top: 10px;
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
}

.cert-org {
  font-size: .8rem;
  color: #cfcfcf;
  opacity: .85;
}

/* ======== MODAL POPUP ======== */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
}

.cert-modal-content {
  max-width: 420px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  animation: certZoom .3s ease;
}

@keyframes certZoom {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.cert-close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease;
}

.cert-close:hover { transform: scale(1.2); }

.cert-modal-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 1rem;
  color: #fff;
  opacity: .9;
}

/* 🌈 BORDA PREMIUM GRADIENT — PARA TODOS OS CARDS (SÓ NO HOVER) */
.resumo-card:hover,
.diploma-card:hover,
.hist-card:hover,
.skill-card:hover,
.orbit-card:hover {
  position: relative;
  border-color: transparent !important;
}

.resumo-card:hover::after,
.diploma-card:hover::after,
.hist-card:hover::after,
.skill-card:hover::after,
.orbit-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #FCE57E, #FF9A3D);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
  z-index: 5;
}

/* =========================================
   FORMAÇÃO — GRID 2x2 + IMAGEM (FINAL)
========================================= */

#formacao.formacao-timeline {
  padding-top: 140px;
}

/* títulos centralizados */
#formacao .section-title,
#formacao .timeline-subtitle {
  text-align: center;
}

/* remove visual da timeline */
#formacao .timeline-line,
#formacao .timeline-dot {
  display: none !important;
}

/* =========================
   GRID PRINCIPAL
   (cards | imagem)
========================= */
#formacao .timeline-wrapper {
  max-width: 1300px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

/* =========================
   COLUNA ESQUERDA — GRID 2x2
========================= */
#formacao .timeline-wrapper {
  grid-auto-flow: row;
}

/* transforma os items em grid */
#formacao .timeline-wrapper {
  --card-gap: 26px;
}

#formacao .timeline-wrapper > .timeline-item {
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

/* GRID REAL DOS CARDS */
#formacao .timeline-wrapper {
  display: grid;
}

#formacao .timeline-wrapper {
  grid-template-columns: repeat(2, 1fr) 420px;
  column-gap: 26px;
  row-gap: 26px;
}

/* força todos os cards a ficarem nas 2 primeiras colunas */
#formacao .timeline-item {
  grid-column: auto;
}

/* =========================
   CARD VISUAL
========================= */
#formacao .timeline-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}

/* logos */
#formacao .logo-wrap {
  background: #fff;
  border-radius: 6px;
  padding: 6px;
}

#formacao .logo-wrap img {
  max-height: 34px;
  opacity: 1;
}

/* =========================
   IMAGEM À DIREITA
========================= */
#formacao .timeline-wrapper::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 4;
  width: 100%;
  height: 520px;
  background: url("assets/form-bruno.png") center bottom no-repeat;
  background-size: contain;
}

/* =========================================
   FORMAÇÃO — BORDA GRADIENTE SOMENTE NO ATIVO
========================================= */

/* base: nenhum card tem borda dourada */
#formacao .timeline-card::before,
#formacao .timeline-card::after {
  opacity: 0;
}

/* card ativo (clicado) */
#formacao .timeline-item.active .timeline-card {
  position: relative;
  z-index: 2;
}

/* borda em degradê */
#formacao .timeline-item.active .timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px; /* espessura da borda */
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    #FCE57E,
    #FF9A3D
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1;
}

/* glow externo suave */
#formacao .timeline-item.active .timeline-card::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    rgba(252,229,126,0.6),
    rgba(255,154,61,0.6)
  );
  filter: blur(22px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}


/* =========================================
   FORMAÇÃO — AJUSTE FINO DA IMAGEM
   (sem mexer no layout)
========================================= */

#formacao::after {
  width: 460px;     /* ↑ aumenta largura */
  height: 640px;    /* ↑ aumenta altura */
  right: 2%;        /* puxa levemente pra fora */
  background-size: contain;
}

/* =========================================
   FORMAÇÃO — AUMENTAR IMAGEM (FORÇADO)
========================================= */

#formacao.formacao-timeline::after {
  width: 520px !important;
  height: 720px !important;
  background-size: contain !important;
  right: 2% !important;
}

/* =======================================================
   FORMAÇÃO ACADÊMICA - DESIGN FINAL (Bento Grid + Glow)
   ======================================================= */

.formacao-layout {
    padding-top: 100px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
    overflow: hidden; /* Importante para o glow não vazar da tela */
}

.container-limit {
    width: 100%;
    max-width: 1280px;
    /* Removido align-items: center global */
}

/* LAYOUT GERAL: Esquerda (Texto+Grid) + Direita (Foto) */
.formacao-wrapper {
    display: grid;
    /* Ajustado para dar mais espaço para a foto crescer */
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    width: 100%;
    align-items: center;
}

/* --- COLUNA ESQUERDA (Texto e Cards) --- */
.formacao-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Espaço entre o título e os cards */
}

/* Cabeçalho alinhado à esquerda */
.section-header-left {
    text-align: center;
}

.section-header-left .section-title {
    font-size: 2.4rem; /* Um pouco maior */
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header-left .section-subtitle {
    color: #ccc;
    font-size: 1rem;
}


/* --- GRID DOS CARDS (2x2) --- */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Card Design (Mantido igual) */
.edu-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 20px rgba(53, 50, 31, 0.637);
}

.edu-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
}

.edu-card:hover {
    position: relative;
    border-color: transparent !important;
}

.edu-card:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* Espessura da borda */
    border-radius: inherit;
    background: linear-gradient(45deg, #FCE57E, #FF9A3D);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
}

.logo-container {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: inline-block;
}

.logo-container img { height: 30px; width: auto; display: block; }
.edu-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.edu-inst { font-size: 0.95rem; color: #ccc; margin-bottom: 4px; }
.edu-year { font-size: 0.85rem; color: #888; margin-top: auto; }


/* --- ÁREA DA FOTO COM GLOW (DIREITA) --- */
.edu-photo-container {
    position: relative; /* Necessário para posicionar o glow */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    /* Permite que a imagem vaze um pouco para cima se necessário */
    margin-top: 100px;
    margin-left: 100px;
}

/* O GLOW DOURADO */
.golden-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; /* Mais largo que o container */
    height: 140%;
    /* Gradiente radial dourado/alaranjado */
    background: radial-gradient(circle, rgba(247, 185, 70, 0.651) 0%, rgba(255, 206, 147, 0.1) 40%, transparent 70%);
    /* O desfoque que cria o efeito de luz */
    filter: blur(80px);
    z-index: -1; /* Fica atrás da imagem */
    pointer-events: none;
    opacity: 0.8;
}

/* A IMAGEM */
.bruno-img {
    max-width: 150%;
    height: auto;
    /* AUMENTADA significativamente */
    max-height: 850px; 
    object-fit: contain;
    /* Drop shadow mais forte para destacar do glow */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   📱 MOBILE & RESPONSIVE MEDIAS (Adicione ao final do CSS)
   ========================================================================== */

@media (max-width: 900px) {

    /* --- 1. Ajustes Globais --- */
    .section {
        padding: 60px 5% 40px; /* Reduz padding lateral */
        min-height: auto; /* Remove altura mínima forçada */
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem; /* Fontes menores */
        text-align: center;
        line-height: 1.2;
    }
    
    .section-header-left {
        text-align: center;
    }

    /* --- 2. Navbar & Menu Mobile --- */
    .nav-toggle {
        display: flex; /* Mostra o botão hambúrguer */
        z-index: 200;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido à direita */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #111;
        border-left: 1px solid #333;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 150;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }

    /* Classe adicionada pelo JS quando abre */
    html.nav-open .menu {
        right: 0;
    }

    html.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }

    /* --- 3. Quem Sou (Hero) --- */
    .quem-sou {
        flex-direction: column-reverse; /* Foto em cima, texto em baixo? Ou o inverso. Vamos de Texto em cima para mobile */
        gap: 40px;
        text-align: center;
        padding-top: 100px;
    }

    .quem-sou::after { display: none; } /* Remove linha vertical */

    .photo-area {
        margin: 0 auto;
        width: 260px;
        height: 340px;
        display: none;
    }

    .photo-area img {
        max-width: 140%; /* Ajuste fino para mobile */
    }

    /* --- 4. Resumo (Cards) --- */
    .resumo-modern { padding-top: 60px; }
    
    .resumo-grid {
        grid-template-columns: 1fr; /* 1 Coluna */
        gap: 20px;
    }

    /* --- 5. Formação (Bento Grid) --- */
    .formacao-layout { padding-top: 60px; }

    .formacao-wrapper {
        grid-template-columns: 1fr; /* Remove as 2 colunas */
        gap: 40px;
    }

    .edu-grid {
        grid-template-columns: 1fr; /* Cards um embaixo do outro */
    }

    /* Ajuste da Imagem da Formação no Mobile */
    .edu-photo-container {
        order: -1; /* Joga a foto para o topo */
        margin: 0 auto;
        height: 300px; /* Limita altura */
        width: 100%;
        overflow: visible;
        align-items: center;
        display: none;
    }

    .bruno-img {
        max-height: 350px; /* Reduz drasticamente a imagem gigante */
        max-width: 100%;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    }
    
    .golden-glow {
        width: 100%; height: 100%; /* Controla o glow */
    }

    /* --- 6. Histórico (Timeline Horizontal) --- */
    .historico { padding-top: 60px; }
    
    .hist-track {
        display: flex; /* Volta a ser flex para scroll horizontal */
        flex-wrap: nowrap;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        width: 100%;
        padding: 20px 5%; /* Espaço lateral */
        max-width: 100vw;
    }

    .hist-card {
        min-width: 85vw; /* Ocupa quase a tela toda */
        max-width: 85vw;
        scroll-snap-align: center;
        margin-right: 15px;
    }

    /* --- 7. Certificações --- */
    .cert-modern { padding-top: 60px; }

    .cert-wrapper.clean-cert {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em tablets/mobile grande */
        gap: 20px;
    }
    
    /* Celulares menores */
    @media (max-width: 500px) {
        .cert-wrapper.clean-cert {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* --- 8. Skills & Idiomas --- */
    .skills-modern, .idiomas-orbit { padding-top: 60px; }

    .skills-grid-modern {
        grid-template-columns: 1fr; /* 1 Coluna */
    }

    .orbit-grid {
        grid-template-columns: 1fr; /* 1 Coluna */
    }

    .orbit-card {
        flex-direction: row; /* Ícone ao lado do texto */
        align-items: center;
    }
    .orbit-visual { margin: 0; transform: scale(0.8); }

    .orbit-badge {
      right: -250px;
    }

    /* --- 9. Footer --- */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    .socials { justify-content: center; }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
  }