/* ========= THEME / TOKENS ========= */
:root{
  --bg: #0e121b;
  --bg-alt: #111522;
  --card: #161b27;
  --surface: #1a1f2b;

  --text: #eef2ff;
  --muted: #a7b0c0;

  --accent: #22d3ee;   /* ciano */
  --accent-2: #7c3aed; /* roxo */

  --border: rgba(255,255,255,.08);
  --ring: rgba(124,58,237,.45);

  /* molduras dos cards */
  --frame-a: #37a6ff;
  --frame-b: #7c3aed;
  --frame-c: #7ee787;
  --frame-d: #ffd166;
}

/* ========= RESET BÁSICO ========= */
*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: "Maven Pro", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -100px, rgba(124,58,237,.12), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,.10), transparent 60%),
              var(--bg);
  line-height: 1.5;
}

img{ max-width: 100%; display: block; }
h1,h2,h3{ margin: 0 0 .4rem; line-height: 1.2; }
p{ margin: 0 0 1rem; }
.nowrap{ white-space: nowrap; }
.eyebrow{
  letter-spacing: .4px;
  text-transform: none;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .25rem;
}
.muted{ color: var(--muted); }


/* ========= LAYOUT ========= */
.container{
  width: min(1120px, 92vw);
  margin-inline: auto;
}
.section{
  padding-block: clamp(3rem, 6vw, 6rem);
}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.section__head{
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.section__title{
  font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  font-weight: 800;
}

.grid{
  display: grid;
  gap: 1.25rem;
}

/* ========= INTRO (HERO) ========= */
.intro__wrap{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .6rem;
}
.intro__media{
  position: relative;
  display: grid; place-items: center;
}
.intro__media img{
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  background: var(--bg-alt);
}
.intro__media::before{
  content:""; position:absolute; width: 112px; height: 112px;
  border-radius: 999px;
  border: 2px dashed var(--ring);
  transform: rotate(2deg);
}
.hl{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro__title{
  font-size: clamp(1.8rem, 1.2rem + 4vw, 3rem);
  font-weight: 900;
  letter-spacing: .2px;
}
.intro__desc{
  max-width: 750px;
  color: var(--muted);
}
.tags{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .7rem; margin-top: .2rem;
}
.tag{
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.tag img{ width: 18px; height: 18px; }
.tag:hover{
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.35);
  background: linear-gradient(180deg, rgba(34,211,238,.08), rgba(124,58,237,.06));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.intro__chevron{
  margin-top: .6rem;
  font-size: 24px;
  color: var(--muted);
  opacity: .8;
}

/* ========= PROJETOS ========= */
.projects__grid{
  grid-template-columns: repeat(3, 1fr);
}

.project-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0,0,0,.55);
  border-color: rgba(124,58,237,.32);
}
.project-card__thumb{
  height: 190px;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
  position: relative;
  z-index: 1;
}
.project-card__body{
  position: relative;
  z-index: 1;
  padding: .9rem .95rem 1.05rem;
}
.project-card__title{
  font-weight: 800;
  margin-bottom: .25rem;
}
.project-card__desc{
  color: var(--muted);
  font-size: .95rem;
}

.project-card__link{
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;     /* para o focus e z-index funcionarem bem */
  z-index: 1;             /* fica acima da moldura ::before do article */
  border-radius: 14px;    /* casa com o radius do card */
}

/* Foco visível para teclado */
.project-card__link:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}

/* Molduras coloridas grossas (conforme screenshots) */
.projects__grid .project-card:nth-child(1){ --frame: var(--frame-a); }
.projects__grid .project-card:nth-child(2){ --frame: var(--frame-b); }
.projects__grid .project-card:nth-child(3){ --frame: var(--frame-d); }
.projects__grid .project-card:nth-child(4){ --frame: #ffbd5a; }
.projects__grid .project-card:nth-child(5){ --frame: var(--frame-c); }
.projects__grid .project-card:nth-child(6){ --frame: #ff7373; }

.project-card::before{
  content:"";
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px; /* igual ao card */
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
}



/* ========= SERVIÇOS ========= */
.services__grid{
  grid-template-columns: repeat(3, 1fr);
}
.service-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform: translateY(-3px);
  border-color: rgba(34,211,238,.32);
  box-shadow: 0 16px 44px rgba(0,0,0,.5);
}
.service-card i{
  font-size: 28px;
  margin-bottom: .5rem;
  color: var(--accent);
}
.service-card h3{ font-weight: 800; margin-bottom: .25rem; }
.service-card p{ color: var(--muted); }

/* ========= CONTATO ========= */
.contact__links{
  display: grid;
  gap: .8rem;
  width: min(560px, 100%);
  margin: 0 auto;
}
.link{
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.link:hover{
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.35);
  background: linear-gradient(180deg, rgba(124,58,237,.06), rgba(34,211,238,.05));
}
.link:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.link__label{ display: inline-flex; align-items: center; gap: .6rem; }
.link__label i{ font-size: 18px; color: var(--accent); }

/* ========= RESPONSIVIDADE ========= */
@media (max-width: 1100px){
  .projects__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px){
  .project-card::before{
    inset:8px 8px auto 8px; height: 200px; border-width: 8px;
  }
  .project-card__thumb{ height: 180px; }
}
@media (max-width: 600px){
  .projects__grid{ grid-template-columns: 1fr; }
  .services__grid{ grid-template-columns: 1fr; }
  .intro__media::before{ width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}


/* ========= DARK MODE ========= */
/* ===== Tema claro (apenas overrides de variáveis) ===== */
.light{
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --card: #ffffff;
  --surface: #f4f6fb;

  --text: #0e121b;
  --muted: #556179;

  --accent: #0ea5e9;     /* mantém vibe tech */
  --accent-2: #7c3aed;

  --border: rgba(10,20,30,.12);
  --ring: rgba(14,165,233,.35);
}

/* ===== Botão de alternância de tema ===== */
.theme-toggle{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(34,211,238,.16));
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 50;
}
.theme-toggle i{ font-size: 18px; }
.theme-toggle:hover{ border-color: rgba(34,211,238,.35); }
.theme-toggle:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

