/* ===========================
   RESET & VARIABLES
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:         #0a0e1a;
  --bg2:        #0d1220;
  --bg3:        #111827;
  --accent:     #3edcb0;
  --accent-rgb: 62,220,176;
  --blue:       #1e90ff;
  --blue-rgb:   30,144,255;
  --white:      #ffffff;
  --gray:       #8892a4;
  --gray2:      #4a5568;
  --border:     rgba(var(--accent-rgb),0.18);
  --border2:    rgba(255,255,255,0.07);
  --mono:       'Fira Code', monospace;
  --sans:       'Inter', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: auto; }

/* Smooth accent color transitions across the whole site */
*, *::before, *::after {
  transition-property: color, background-color, border-color, box-shadow, fill, stroke;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}
/* But don't slow down transforms/opacity for animations */
.rv, .h-particle, .h-cursor, .btn-cta, .h-social, .proj-card, .skill-card,
.nav-pill, .ap-mode-btn, .ap-color-swatch {
  transition-property: color, background-color, border-color, box-shadow, fill, stroke,
                       opacity, transform;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
::selection { background: rgba(var(--accent-rgb),0.2); }

/* ===========================
   NAVBAR
=========================== */
nav {
  position: fixed; top:0; left:0; right:0; z-index:999;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 13vw;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(var(--accent-rgb),0.07);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nl { color: var(--accent); }
.na { color: var(--white);  font-weight: 700; }
.ns { color: var(--accent); }

.nav-links {
  display: flex; gap: 0.2rem; list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.83rem; font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 0.6rem; 
  position: fixed;
  right: 330px;
  top: 19px;
  z-index: 1000;
}
.nav-flag { font-size: 1.2rem; cursor: pointer; opacity:0.7; transition:opacity 0.2s; }
.nav-flag:hover { opacity:1; }
.nav-moon {
  width:32px; height:32px; border-radius:50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  display:flex; align-items:center; justify-content:center;
  font-size:0.95rem; cursor:pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-moon:hover { background: rgba(var(--accent-rgb),0.1); border-color:var(--border); }

/* ===========================
   HERO
=========================== */
#home {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: 70px;
  isolation: isolate; /* stacking context próprio — evita repaints em cascade */
}

/* ── Hero canvas (interactive particles) ── */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  will-change: contents;
}

/* Dot grid — subtler, fades at edges */
.h-dots {
  position:absolute; inset:0; pointer-events:none; z-index:2;
  background-image: radial-gradient(rgba(var(--accent-rgb),0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
  animation: dotPulse 8s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:0.3} 50%{opacity:0.65} }

/* Nebula blobs */
.h-sweep {
  position:absolute; inset:0; pointer-events:none; z-index:2;
}
.h-sweep::before, .h-sweep::after, .h-sweep span {
  content:''; display:block;
  position:absolute; border-radius:50%;
  filter: blur(90px);
  animation: nebulaDrift 14s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
.h-sweep::before {
  width:55vw; height:55vw; max-width:750px; max-height:750px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.13) 0%, transparent 65%);
  top:-15%; left:-10%;
  animation-delay: 0s;
}
.h-sweep::after {
  width:45vw; height:45vw; max-width:620px; max-height:620px;
  background: radial-gradient(circle, rgba(var(--blue-rgb),0.11) 0%, transparent 65%);
  bottom:-10%; right:-8%;
  animation-delay:-7s;
}
@keyframes nebulaDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-35px) scale(1.07); }
  66%      { transform: translate(-25px,30px) scale(0.95); }
}

/* Third nebula as a real element */
.h-nebula3 {
  position:absolute; z-index:2; pointer-events:none;
  width:40vw; height:40vw; max-width:540px; max-height:540px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(168,85,247,0.07) 0%, transparent 65%);
  filter: blur(80px);
  top:20%; left:45%;
  animation: nebulaDrift 11s ease-in-out infinite -4s;
  will-change: transform;
  transform: translateZ(0);
}

/* Light rays */
.h-rays {
  position:absolute; inset:0; z-index:2; pointer-events:none;
  overflow:hidden;
}
.h-ray {
  position:absolute;
  top:50%; left:50%;
  width:2px;
  height:120vh;
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(var(--accent-rgb),0.06) 0%, transparent 70%);
  animation: rayRotate linear infinite;
  will-change: transform;
}
.h-ray:nth-child(1) { transform: rotate(15deg);  animation-duration: 22s; }
.h-ray:nth-child(2) { transform: rotate(55deg);  animation-duration: 28s; animation-delay:-5s; opacity:0.6;}
.h-ray:nth-child(3) { transform: rotate(105deg); animation-duration: 19s; animation-delay:-9s; opacity:0.4;}
.h-ray:nth-child(4) { transform: rotate(160deg); animation-duration: 34s; animation-delay:-14s;}
.h-ray:nth-child(5) { transform: rotate(210deg); animation-duration: 25s; animation-delay:-3s; opacity:0.5;}
.h-ray:nth-child(6) { transform: rotate(260deg); animation-duration: 31s; animation-delay:-18s; opacity:0.35;}
@keyframes rayRotate {
  from { transform: rotate(var(--r,0deg)) scaleY(1); opacity:inherit; }
  50%  { opacity: 0.12; scaleY:1.15; }
  to   { transform: rotate(calc(var(--r,0deg) + 360deg)) scaleY(1); }
}

/* Floating legacy particles (keep for density) */
.h-particles { position:absolute; inset:0; pointer-events:none; z-index:3; }
.h-particle {
  position:absolute; border-radius:50%;
  background:var(--accent); opacity:0;
  animation: pFloat linear infinite;
  will-change: transform, opacity;
}
@keyframes pFloat {
  0%   { opacity:0; transform:translateY(0) scale(0.5); }
  12%  { opacity:0.85; }
  80%  { opacity:0.2; }
  100% { opacity:0; transform:translateY(-240px) scale(0.1); }
}

/* Vignette */
.h-left {
  position:absolute; inset:0; z-index:4;
  background: radial-gradient(ellipse 85% 65% at 50% 50%, transparent 35%, rgba(10,14,26,0.55) 100%);
  pointer-events:none;
}

/* Wave glow at bottom */
.h-wave {
  position:absolute; bottom:0; left:0; right:0; z-index:3;
  height:260px; pointer-events:none;
  background: linear-gradient(to top,
    rgba(var(--blue-rgb),0.07) 0%,
    rgba(var(--accent-rgb),0.04) 45%,
    transparent 100%);
}

/* Content centered */
.h-content {
  position:relative; z-index:5;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.h-name {
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 800; line-height: 1.06; letter-spacing:-1.5px;
  margin-bottom:1.1rem; color:var(--white);
  opacity:0; animation: up 0.65s 0.2s ease forwards;
}

.h-tag {
  display:inline-flex; align-items:center; gap:14px;
  font-family:var(--mono); font-size:0.78rem;
  color:var(--accent); letter-spacing:0.18em; text-transform:uppercase;
  margin-bottom:1.6rem;
  opacity:0; animation: up 0.65s 0.38s ease forwards;
}
.h-tag-line {
  display:inline-block; width:32px; height:1px;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink:0;
}

.h-desc {
  font-size:0.96rem; color:var(--gray); line-height:1.8;
  max-width:400px; margin-bottom:2.2rem;
  opacity:0; animation: up 0.65s 0.65s ease forwards;
}

.h-cta {
  margin-bottom:2.6rem;
  opacity:0; animation: up 0.65s 0.8s ease forwards;
}
.btn-cta {
  display:inline-flex; align-items:center; gap:8px;
  padding:0.8rem 1.9rem;
  background:var(--accent); color:#0a0e1a;
  font-size:0.84rem; font-weight:700;
  letter-spacing:0.07em; text-transform:uppercase;
  text-decoration:none; border:2px solid var(--accent);
  border-radius:2px;
  transition: all 0.25s; cursor:pointer;
}
.btn-cta:hover {
  background:transparent; color:var(--accent);
  box-shadow:0 0 22px rgba(var(--accent-rgb),0.22);
  transform:translateY(-2px);
}

.h-socials {
  display:flex; gap:0.65rem;
  opacity:0; animation: up 0.65s 0.95s ease forwards;
}
.h-social {
  width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.03);
  display:flex; align-items:center; justify-content:center;
  color:var(--gray); text-decoration:none;
  transition:all 0.25s;
}
.h-social:hover {
  border-color:var(--accent); color:var(--accent);
  background:rgba(var(--accent-rgb),0.08);
  transform:translateY(-3px);
  box-shadow:0 4px 16px rgba(var(--accent-rgb),0.18);
}

/* Scroll indicator */
.h-scroll {
  position:absolute; bottom:1.8rem; left:50%;
  transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  z-index:5; opacity:0; animation:fadeI 1s 1.6s forwards;
}
.h-scroll span { font-family:var(--mono); font-size:0.6rem; color:var(--gray2); letter-spacing:0.12em; text-transform:uppercase; }
.h-line { width:1px; height:38px; background:linear-gradient(var(--accent),transparent); animation:lineAnim 1.6s ease-in-out infinite; }
@keyframes lineAnim { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.4;transform:scaleY(0.5)} }
@keyframes fadeI { to{opacity:1} }
@keyframes up { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:translateY(0)} }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 7rem 5vw; position:relative; }
.section-alt { background: var(--bg2); }

.s-eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:0.7rem;
  letter-spacing:0.22em; text-transform:uppercase;
  color:var(--accent); margin-bottom:0.5rem;
}
.s-eyebrow::before { content:''; width:4px; height:20px; background:var(--accent); border-radius:2px; }

.s-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight:800; letter-spacing:-1px; color:var(--white); line-height:1.1;
}
.s-title .mono { font-family:var(--mono); color:var(--accent); font-weight:400; font-size:0.68em; }

/* Reveal */
.rv { opacity:0; transform:translateY(30px); transition:opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity:1; transform:translateY(0); }
.rv-d1 { transition-delay:0.1s; }
.rv-d2 { transition-delay:0.2s; }
.rv-d3 { transition-delay:0.3s; }

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:5rem; align-items:center; max-width:1080px;
  margin: 0 auto;
}

.about-label {
  font-family:var(--mono); font-size:1.3rem; font-weight:700;
  color:var(--white); margin-bottom:1.6rem;
  display:flex; align-items:center; gap:6px;
}
.about-label .bl { color:var(--gray2); }
.about-label .ac { color:var(--accent); }

.about-text p {
  font-size:0.96rem; color:rgba(200,215,235,0.82);
  line-height:1.88; margin-bottom:1.1rem;
}
.about-text p strong { color:var(--white); font-weight:600; }

/* Coffee visual */
.about-visual {
  display:flex; align-items:center; justify-content:center;
  position:relative; min-height:320px;
}
.coffee-wrap {
  position:relative; width:290px; height:290px;
  display:flex; align-items:center; justify-content:center;
}
.hex {
  width:205px; height:205px;
  background:linear-gradient(145deg, rgba(13,18,32,0.95), rgba(18,28,58,0.7));
  border:1.5px solid rgba(var(--blue-rgb),0.3);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2;
  box-shadow:0 0 50px rgba(var(--blue-rgb),0.14), inset 0 0 25px rgba(var(--blue-rgb),0.05);
}
.coffee-em {
  font-size:3.4rem;
  filter:drop-shadow(0 0 18px rgba(var(--accent-rgb),0.6));
  animation:cFloat 3.5s ease-in-out infinite;
}
@keyframes cFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.coffee-tip {
  position:absolute; top:14px; right:-28px;
  background:rgba(13,18,32,0.96);
  border:1px solid var(--accent); border-radius:6px;
  padding:0.42rem 0.88rem;
  font-family:var(--mono); font-size:0.71rem; color:var(--accent);
  white-space:nowrap; z-index:10;
  display:flex; align-items:center; gap:6px;
  box-shadow:0 4px 18px rgba(0,0,0,0.5);
  animation:tipPulse 2.5s ease-in-out infinite;
}
.coffee-tip::before { content:'☕'; font-size:0.82rem; }
@keyframes tipPulse { 0%,100%{opacity:0.85;transform:translateY(0)} 50%{opacity:1;transform:translateY(-3px)} }

.person-dot {
  position:absolute; right:4px; top:50%;
  transform:translateY(-50%);
  width:28px; height:28px; border-radius:50%;
  background:rgba(var(--accent-rgb),0.08);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:0.85rem;
}
.nav-arr {
  position:absolute;
  font-size:0.85rem; color:rgba(var(--accent-rgb),0.4);
}
.na-t { top:6px;  left:50%; transform:translateX(-50%); }
.na-b { bottom:6px; left:50%; transform:translateX(-50%) rotate(180deg); }
.na-r { right:4px; top:50%; transform:translateY(-50%) rotate(90deg); }

.oring {
  position:absolute; border-radius:50%; border:1px solid;
  top:50%; left:50%; transform:translate(-50%,-50%);
  animation:oringSpin linear infinite;
}
.oring-1 { width:255px;height:255px; border-color:rgba(var(--accent-rgb),0.1); animation-duration:18s; }
.oring-2 { width:310px;height:310px; border-color:rgba(var(--blue-rgb),0.07); animation-duration:28s; animation-direction:reverse; }
.oring-dot { position:absolute; width:7px;height:7px; background:var(--accent); border-radius:50%; top:-3.5px; left:50%; margin-left:-3.5px; box-shadow:0 0 10px var(--accent); }
@keyframes oringSpin { from{transform:translate(-50%,-50%) rotate(0)} to{transform:translate(-50%,-50%) rotate(360deg)} }

/* ===========================
   SKILLS
=========================== */
.skills-title-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── SKILLS: layout tabela elegante ── */
.skills-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.018);
  backdrop-filter: blur(4px);
}

.skill-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 80px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  background: transparent;
  position: relative;
  transition: background 0.25s;
  overflow: hidden;
}
.skill-card:last-child { border-bottom: none; }
.skill-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:hover { background: rgba(var(--accent-rgb),0.03); }
.skill-card:hover::before { opacity: 1; }

/* Coluna esquerda */
.sc-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 1.4rem 1.6rem;
  border-right: 1px solid rgba(255,255,255,0.055);
  margin-bottom: 0;
}
.sc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb),0.08);
  border: 1px solid rgba(var(--accent-rgb),0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
  transition: all 0.25s;
}
.skill-card:hover .sc-icon {
  background: rgba(var(--accent-rgb),0.15);
  box-shadow: 0 0 14px rgba(var(--accent-rgb),0.2);
}
.sc-icon svg { width: 15px; height: 15px; }
.sc-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s;
  line-height: 1.4;
}
.skill-card:hover .sc-title { color: var(--accent); }

/* Coluna direita — tags */
.spills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 1.8rem;
}

.spill {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(195,215,240,0.75);
  letter-spacing: 0.03em;
  cursor: default;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.spill::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.spill:hover {
  border-color: rgba(var(--accent-rgb),0.4);
  color: rgba(220,255,245,0.95);
  background: rgba(var(--accent-rgb),0.07);
  transform: translateY(-1px);
}
.spill:hover::after { transform: scaleX(1); }

@media (max-width: 620px) {
  .skill-card { grid-template-columns: 1fr; }
  .sc-head { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.055); padding: 1rem 1.4rem; }
  .spills { padding: 1rem 1.4rem; }
}

/* ===========================
   PROJECTS
=========================== */
.proj-header {
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:2.8rem; flex-wrap:wrap; gap:1rem;
  max-width:1100px; margin-left:auto; margin-right:auto;
}
.proj-all {
  font-family:var(--mono); font-size:0.78rem; color:var(--accent);
  text-decoration:none; letter-spacing:0.07em;
  display:flex; align-items:center; gap:6px;
  transition:gap 0.2s; padding-bottom:4px;
}
.proj-all:hover { gap:12px; }

.proj-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(315px,1fr));
  gap:1.4rem; max-width:1100px;
  margin: 0 auto;
}

.proj-card {
  background:rgba(255,255,255,0.025); border:1px solid var(--border2);
  border-radius:10px; padding:2rem; position:relative; overflow:hidden;
  display:flex; flex-direction:column;
  transition:border-color 0.3s, transform 0.3s;
}
.proj-card::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(var(--accent-rgb),0.04),transparent 55%);
  opacity:0; transition:opacity 0.3s;
  pointer-events: none;
}
.proj-card:hover { border-color:rgba(var(--accent-rgb),0.3); transform:translateY(-5px); }
.proj-card:hover::after { opacity:1; }

.proj-num { font-family:var(--mono); font-size:0.68rem; color:var(--gray2); letter-spacing:0.1em; margin-bottom:0.85rem; }
.proj-title { font-size:1.08rem; font-weight:700; margin-bottom:0.6rem; color:var(--white); }
.proj-desc { font-size:0.84rem; color:var(--gray); line-height:1.72; margin-bottom:1.3rem; flex:1; }
.proj-tags { display:flex; flex-wrap:wrap; gap:0.38rem; margin-bottom:1.4rem; }
.proj-tag {
  font-family:var(--mono); font-size:0.67rem; padding:0.2rem 0.58rem;
  background:rgba(var(--accent-rgb),0.08); border:1px solid rgba(var(--accent-rgb),0.2);
  border-radius:4px; color:var(--accent); letter-spacing:0.03em;
}
.proj-links {
  display:flex; gap:1rem;
  border-top:1px solid var(--border2); padding-top:1.15rem;
}
.proj-link {
  font-family:var(--mono); font-size:0.76rem; color:var(--gray);
  text-decoration:none; font-weight:500;
  letter-spacing:0.05em; text-transform:uppercase;
  display:flex; align-items:center; gap:5px; transition:color 0.2s;
}
.proj-link:hover { color:var(--accent); }

/* ===========================
   CONTACT
=========================== */
.contact-grid {
  display:grid; grid-template-columns:1fr 1.1fr;
  gap:4rem; align-items:start; max-width:980px;
  margin: 0 auto;
}
.contact-left p {
  font-size:0.95rem; color:var(--gray); line-height:1.76;
  margin-bottom:2rem; max-width:360px;
}

/* Centered contact layout */
.contact-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-tagline {
  font-size: 0.97rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 1rem auto 2.8rem;
  max-width: 480px;
}
.cinfo-grid-centered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}
.cinfo-big {
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
}
.cinfo-big .cinfo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
}

.cinfo-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.cinfo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.cinfo:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.1);
}
.cinfo:hover .cinfo-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── Per-platform icon box (always visible) ── */
.cinfo--whatsapp .cinfo-icon {
  background: #25d366;
  color: #ffffff;
}
.cinfo--email .cinfo-icon {
  background: #ffffff;
  color: #ffffff;
}
.cinfo--linkedin .cinfo-icon {
  background: #0a66c2;
  color: #ffffff;
}
.cinfo--github .cinfo-icon {
  background: #0d1117;
  color: #ffffff;
  border: 1px solid #0d1117 !important;
  outline: none;
}

/* ── Per-platform hover colours ── */
.cinfo--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.55);
  background:   rgba(37, 211, 102, 0.06);
  box-shadow:   0 0 20px rgba(37, 211, 102, 0.18);
}
.cinfo--whatsapp:hover .cinfo-icon { color: #ffffff; }
.cinfo--whatsapp:hover .cinfo-arrow { color: #25d366; }

.cinfo--email:hover {
  border-color: rgba(239, 68, 68, 0.55);
  background:   rgba(239, 68, 68, 0.06);
  box-shadow:   0 0 20px rgba(239, 68, 68, 0.18);
}
.cinfo--email:hover .cinfo-icon { background: #ffffff; color: #ffffff; }
.cinfo--email:hover .cinfo-arrow { color: #ef4444; }

.cinfo--linkedin:hover {
  border-color: rgba(10, 102, 194, 0.6);
  background:   rgba(10, 102, 194, 0.07);
  box-shadow:   0 0 20px rgba(10, 102, 194, 0.22);
}
.cinfo--linkedin:hover .cinfo-icon { color: #ffffff; }
.cinfo--linkedin:hover .cinfo-arrow { color: #0a66c2; }

.cinfo--github:hover {
  border-color: rgba(139, 92, 246, 0.55);
  background:   rgba(139, 92, 246, 0.06);
  box-shadow:   0 0 20px rgba(139, 92, 246, 0.18);
}
.cinfo--github:hover .cinfo-icon { background: #0d1117; color: #ffffff; border-color: #0d1117 !important; }
.cinfo--github:hover .cinfo-arrow { color: #8b5cf6; }

.cinfo-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.cinfo-icon svg {
  width: 26px;
  height: 26px;
}

.cinfo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cinfo-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.cinfo-sub {
  font-size: 0.72rem;
  color: var(--gray);
  display: block;
}

.cinfo-arrow {
  color: var(--gray2);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cform { display:flex; flex-direction:column; gap:1rem; }
.cform-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.cf-label { display:block; font-family:var(--mono); font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--gray); margin-bottom:0.45rem; }
.cf-input, .cf-textarea {
  width:100%; background:rgba(255,255,255,0.04);
  border:1px solid var(--border2); border-radius:6px;
  padding:0.78rem 0.95rem;
  font-family:var(--sans); font-size:0.88rem; color:var(--white);
  outline:none; transition:border-color 0.2s, background 0.2s;
}
.cf-input::placeholder, .cf-textarea::placeholder { color:var(--gray2); }
.cf-input:focus, .cf-textarea:focus { border-color:rgba(var(--accent-rgb),0.42); background:rgba(var(--accent-rgb),0.04); }
.cf-textarea { height: 220px; resize:none; }

.btn-send {
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:0.9rem;
  background:var(--accent); color:#0a0e1a;
  font-weight:700; font-size:0.88rem; letter-spacing:0.07em; text-transform:uppercase;
  border:2px solid var(--accent); border-radius:6px; cursor:pointer;
  position:relative; overflow:hidden;
  transition:background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-send::before { content:''; position:absolute; inset:0; background:rgba(255,255,255,0.12); transform:translateX(-100%); transition:transform 0.3s; }
.btn-send:hover::before { transform:translateX(0); }
.btn-send:hover { transform:translateY(-2px); box-shadow:0 6px 22px rgba(var(--accent-rgb),0.28); }

/* ===========================
   FOOTER
=========================== */
footer {
  background:var(--bg2);
  border-top:1px solid rgba(255,255,255,0.05);
  padding:2rem 5vw;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem;
}
.f-logo { font-family:var(--mono); font-size:0.95rem; color:var(--white); }
.f-logo .ac { color:var(--accent); }
footer p { font-family:var(--mono); font-size:0.7rem; color:var(--gray2); }
footer p .ac { color:var(--accent); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width:960px) {
  .h-content { margin: 0 auto; max-width:100%; padding:0 5vw; }
  .about-grid { grid-template-columns:1fr; }
  .about-visual { display:none; }
  .contact-grid { grid-template-columns:1fr; }
  .cform-row { grid-template-columns:1fr; }
  .nav-links { display:none; }
  .proj-grid { grid-template-columns:1fr; }
  nav { padding: 0 5vw; }
  .nav-actions {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    z-index: auto;
  }
}

@media (max-width:600px) {
  .h-name { font-size:2.2rem; }
  .section { padding:5rem 5vw; }
}

/* ===========================
   PROJECTS — NOVO LAYOUT
=========================== */

/* Grid assimétrico: featured (esquerda) + coluna direita */
.proj-grid--asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

/* Coluna direita empilha dois cards */
.proj-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ── FLIP CARD base ── */
.proj-card {
  position: relative;
  border-radius: 10px;
  cursor: pointer;
  perspective: 1200px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border2);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  min-height: 220px;
}
.proj-card:hover {
  border-color: rgba(var(--accent-rgb),0.35);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb),0.1);
}

/* Card frente e verso */
.proj-card-front,
.proj-card-back {
  position: absolute;
  inset: 0;
  padding: 1.8rem;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4,0.2,0.2,1), opacity 0.6s;
  display: flex;
  flex-direction: column;
}
.proj-card-back {
  transform: rotateY(180deg);
  background: rgba(13,18,32,0.98);
  border-radius: 10px;
  opacity: 0;
  overflow-y: auto;
}

/* Estado aberto */
.proj-card.is-open .proj-card-front {
  transform: rotateY(-180deg);
  opacity: 0;
  pointer-events: none;
}
.proj-card.is-open .proj-card-back {
  transform: rotateY(0deg);
  opacity: 1;
  pointer-events: all;
}

/* ── CARD FEATURED (projeto real) ── */
.proj-card--featured {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.proj-card--featured .proj-card-front {
  padding: 0;
  flex-direction: column;
}

.proj-preview {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.proj-card--featured:hover .proj-img {
  transform: scale(1.04);
}

.proj-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-card--featured:hover .proj-overlay-hint {
  opacity: 1;
}

.proj-front-info {
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
}

/* ── CARD "EM BREVE" ── */
.proj-card--soon {
  flex: 1;
  min-height: 180px;
}
.proj-card--soon .proj-card-front {
  align-items: flex-start;
  justify-content: flex-end;
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--accent-rgb),0.015) 0px,
    rgba(var(--accent-rgb),0.015) 2px,
    transparent 2px,
    transparent 18px
  );
}

.proj-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.1);
  border: 1px solid rgba(var(--accent-rgb),0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.proj-soon-badge--back {
  position: static;
  display: inline-flex;
  margin-bottom: 0.7rem;
  align-self: flex-start;
}

.proj-soon-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  color: rgba(var(--accent-rgb),0.18);
}

.proj-soon-hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gray2);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ── BOTÃO FECHAR (verso) ── */
.proj-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--gray);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.proj-close:hover {
  background: rgba(var(--accent-rgb),0.15);
  color: var(--accent);
}

/* ── VERSO: estilos comuns ── */
.proj-card-back .proj-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gray2);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.proj-card-back .proj-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.proj-card-back .proj-desc {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1rem;
}

/* Responsivo */
@media (max-width: 760px) {
  .proj-grid--asymmetric {
    grid-template-columns: 1fr;
  }
  .proj-card--featured {
    min-height: 380px;
  }
}

/* ===========================
   NAV PILLS (React)
=========================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-pill:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-pill--active,
.nav-pill--active:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-pill--gear.nav-pill--active {
  background: rgba(var(--accent-rgb),0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-pill-globe { opacity: 0.85; flex-shrink: 0; }
.nav-pill--lang:hover .nav-pill-globe { opacity: 1; }
.nav-pill-text { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; }


/* ===========================
   HERO LANG SWITCHER
=========================== */
.h-lang-switcher {
  margin-top: 0.5rem;
}
.hero-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.hero-lang-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  transform: translateY(-1px);
}
.hero-lang-globe {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: color 0.2s;
}
.hero-lang-code {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* ===========================
   NAV CONTACT BUTTON
=========================== */
.nav-contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-contact-btn::after { display: none; }
.nav-contact-btn:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.22);
  transform: translateY(-2px);
}
.nav-contact-btn:active {
  transform: translateY(0);
}


/* ===========================
   APPEARANCE PANEL
=========================== */
.appearance-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: #111827;
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  animation: slideInRight 0.28s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.ap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.ap-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.ap-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ap-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.ap-section { margin-bottom: 2rem; }
.ap-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray2);
  margin-bottom: 0.9rem;
}

/* Mode buttons */
.ap-mode-row {
  display: flex;
  gap: 0.65rem;
}
.ap-mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.07);
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ap-mode-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.ap-mode-btn--active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),0.1);
  color: var(--accent);
}
.ap-mode-icon { display: flex; align-items: center; justify-content: center; }
.ap-mode-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Color swatches */
.ap-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}
.ap-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.ap-color-swatch:hover {
  transform: scale(1.14);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.ap-color-swatch--active {
  border-color: white;
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* Light theme overrides */
body[data-theme="light"] nav {
  background: rgba(240,244,248,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
}
body[data-theme="light"] .nav-links a {
  color: #475569;
}
body[data-theme="light"] .nav-links a:hover,
body[data-theme="light"] .nav-links a.active {
  color: #0f172a;
  background: rgba(0,0,0,0.05);
}
body[data-theme="light"] .nav-pill {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #475569;
}
body[data-theme="light"] .nav-pill:hover {
  background: rgba(0,0,0,0.08);
  color: #0f172a;
}
body[data-theme="light"] .section-alt {
  background: var(--bg2);
}
body[data-theme="light"] .appearance-panel {
  background: #f8fafc;
  border-left-color: rgba(0,0,0,0.1);
}
body[data-theme="light"] .ap-title { color: #0f172a; }
body[data-theme="light"] .ap-mode-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #475569;
}
body[data-theme="light"] .ap-mode-btn:hover { background: rgba(0,0,0,0.08); color: #0f172a; }
body[data-theme="light"] footer {
  background: var(--bg2);
}

/* ===========================
   SERVICES SECTION
=========================== */
/* ===========================
   SERVICES SECTION
=========================== */
.srv-section {
  position: relative;
  padding: 6rem 0 7rem;
}

.srv-header {
  text-align: center;
  margin-bottom: 4.5rem;
  padding: 0 2rem;
}

/* ── Grid 2×2 ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Card base ── */
.srv-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.6rem 2.4rem 2.4rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.4s,
              box-shadow 0.4s;
  will-change: transform;
}

.srv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}

/* Gradiente interno por card — cada um com cor própria */
.srv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
}
.srv-card:hover::after { opacity: 1; }

.srv-card:nth-child(1) { border-color: rgba(62,220,176,0.12); }
.srv-card:nth-child(1)::after {
  background: radial-gradient(ellipse 90% 70% at 0% 100%, rgba(62,220,176,0.09) 0%, transparent 70%);
}
.srv-card:nth-child(1):hover { border-color: rgba(62,220,176,0.28); box-shadow: 0 28px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(62,220,176,0.1); }

.srv-card:nth-child(2) { border-color: rgba(30,144,255,0.12); }
.srv-card:nth-child(2)::after {
  background: radial-gradient(ellipse 90% 70% at 0% 100%, rgba(30,144,255,0.09) 0%, transparent 70%);
}
.srv-card:nth-child(2):hover { border-color: rgba(30,144,255,0.28); box-shadow: 0 28px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(30,144,255,0.1); }

.srv-card:nth-child(3) { border-color: rgba(168,85,247,0.12); }
.srv-card:nth-child(3)::after {
  background: radial-gradient(ellipse 90% 70% at 0% 100%, rgba(168,85,247,0.09) 0%, transparent 70%);
}
.srv-card:nth-child(3):hover { border-color: rgba(168,85,247,0.28); box-shadow: 0 28px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(168,85,247,0.1); }

.srv-card:nth-child(4) { border-color: rgba(251,146,60,0.12); }
.srv-card:nth-child(4)::after {
  background: radial-gradient(ellipse 90% 70% at 0% 100%, rgba(251,146,60,0.09) 0%, transparent 70%);
}
.srv-card:nth-child(4):hover { border-color: rgba(251,146,60,0.28); box-shadow: 0 28px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(251,146,60,0.1); }

/* Palavra fantasma de fundo */
.srv-bg-word {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
  opacity: 0.55;
  transform: translateY(4px);
}

.srv-card:nth-child(1) .srv-bg-word { -webkit-text-stroke: 1px rgba(62,220,176,0.13); }
.srv-card:nth-child(2) .srv-bg-word { -webkit-text-stroke: 1px rgba(30,144,255,0.13); }
.srv-card:nth-child(3) .srv-bg-word { -webkit-text-stroke: 1px rgba(168,85,247,0.13); }
.srv-card:nth-child(4) .srv-bg-word { -webkit-text-stroke: 1px rgba(251,146,60,0.13); }

.srv-card:hover .srv-bg-word {
  opacity: 1;
  transform: translateY(0);
}

.srv-card:nth-child(1):hover .srv-bg-word { -webkit-text-stroke-color: rgba(62,220,176,0.22); }
.srv-card:nth-child(2):hover .srv-bg-word { -webkit-text-stroke-color: rgba(30,144,255,0.22); }
.srv-card:nth-child(3):hover .srv-bg-word { -webkit-text-stroke-color: rgba(168,85,247,0.22); }
.srv-card:nth-child(4):hover .srv-bg-word { -webkit-text-stroke-color: rgba(251,146,60,0.22); }

/* Pílula de categoria no topo */
.srv-pill {
  position: absolute;
  top: 1.8rem;
  left: 2.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid;
  transition: background 0.3s, border-color 0.3s;
}

.srv-card:nth-child(1) .srv-pill { color: #3edcb0; border-color: rgba(62,220,176,0.25); background: rgba(62,220,176,0.07); }
.srv-card:nth-child(2) .srv-pill { color: #5aabff; border-color: rgba(30,144,255,0.25); background: rgba(30,144,255,0.07); }
.srv-card:nth-child(3) .srv-pill { color: #c084fc; border-color: rgba(168,85,247,0.25); background: rgba(168,85,247,0.07); }
.srv-card:nth-child(4) .srv-pill { color: #fb923c; border-color: rgba(251,146,60,0.25); background: rgba(251,146,60,0.07); }

.srv-card:nth-child(1):hover .srv-pill { background: rgba(62,220,176,0.14); border-color: rgba(62,220,176,0.45); }
.srv-card:nth-child(2):hover .srv-pill { background: rgba(30,144,255,0.14); border-color: rgba(30,144,255,0.45); }
.srv-card:nth-child(3):hover .srv-pill { background: rgba(168,85,247,0.14); border-color: rgba(168,85,247,0.45); }
.srv-card:nth-child(4):hover .srv-pill { background: rgba(251,146,60,0.14); border-color: rgba(251,146,60,0.45); }

/* Conteúdo */
.srv-body { position: relative; z-index: 1; }

.srv-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}

.srv-card:nth-child(1):hover .srv-title { color: #3edcb0; }
.srv-card:nth-child(2):hover .srv-title { color: #5aabff; }
.srv-card:nth-child(3):hover .srv-title { color: #c084fc; }
.srv-card:nth-child(4):hover .srv-title { color: #fb923c; }

.srv-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ── Responsivo — Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .srv-card {
    min-height: 220px;
    padding: 2rem 1.8rem 1.8rem;
  }

  .srv-bg-word {
    font-size: clamp(3.5rem, 9vw, 5.5rem);
  }

  .srv-title { font-size: 1.2rem; }
  .srv-desc  { font-size: 0.82rem; }

  .srv-pill {
    top: 1.4rem;
    left: 1.8rem;
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ── Responsivo — Mobile (≤ 500px) ── */
@media (max-width: 500px) {
  .srv-section { padding: 4rem 0 5rem; }

  .srv-header { margin-bottom: 2.8rem; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0 1.1rem;
  }

  /* Card vira horizontal no mobile */
  .srv-card {
    min-height: unset;
    padding: 1.5rem 1.4rem 1.4rem;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-content: unset;
  }

  /* Palavra fantasma menor e mais discreta */
  .srv-bg-word {
    font-size: 3.8rem;
    bottom: -0.1em;
    right: -0.02em;
    opacity: 0.4;
    transform: none !important;
  }

  .srv-pill {
    position: relative;
    top: unset; left: unset;
    display: inline-flex;
    align-self: start;
    margin-bottom: 0.9rem;
    font-size: 0.6rem;
    padding: 0.22rem 0.6rem;
  }

  .srv-body { display: flex; flex-direction: column; gap: 0.4rem; }

  .srv-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .srv-desc {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* No mobile, mostra o gradiente de fundo permanentemente (sem hover) */
  .srv-card:nth-child(1)::after { background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(62,220,176,0.06) 0%, transparent 70%); opacity: 1; }
  .srv-card:nth-child(2)::after { background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(30,144,255,0.06) 0%, transparent 70%); opacity: 1; }
  .srv-card:nth-child(3)::after { background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(168,85,247,0.06) 0%, transparent 70%); opacity: 1; }
  .srv-card:nth-child(4)::after { background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(251,146,60,0.06) 0%, transparent 70%); opacity: 1; }

  /* Desabilita transform no mobile */
  .srv-card:hover { transform: none; }
}
/* ===========================
   SECTION DIVIDER
=========================== */
.section-divider {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

/* ===========================
   WHATSAPP CTA BUTTON
=========================== */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 1.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.4);
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.cta-whatsapp:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.06);
}

/* ===========================
   HERO PLANTS
=========================== */
.hero-plant {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}
.hero-plant--left {
  left: 0;
  transform-origin: center bottom;
  animation: plantSway 7s ease-in-out infinite;
}
.hero-plant--right {
  right: 0;
  transform-origin: center bottom;
  animation: plantSway 8.5s ease-in-out infinite reverse;
}

@keyframes plantSway {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(1.5deg); }
  70%  { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}

.pl-l1 { animation: leafBreath 5s ease-in-out infinite; }
.pl-l2 { animation: leafBreath 6.5s ease-in-out infinite 1s; }
.pl-l3 { animation: leafBreath 5.8s ease-in-out infinite 0.5s; }
.pl-l4 { animation: leafBreath 7s ease-in-out infinite 1.5s; }
.pl-l5 { animation: leafBreath 4.8s ease-in-out infinite 0.8s; }
.pl-l6 { animation: leafBreath 6s ease-in-out infinite 0.3s; }

@keyframes leafBreath {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

@media (max-width: 900px) {
  .hero-plant { display: none; }
}

/* ===========================
   BLUR OVERLAY EFFECT
=========================== */
body > *:not(nav):not(#appearance-panel-root) {
  filter: blur(0px);
  transition: filter 0.45s ease;
}

body.panel-blur-active > *:not(nav):not(#appearance-panel-root) {
  filter: blur(4px);
  pointer-events: none;
}

nav {
  transition: filter 0.45s ease;
}

body.panel-blur-active nav {
  filter: blur(0px);
}

#appearance-panel-root {
  position: relative;
  z-index: 9999;
}

.proj-link--github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.proj-link--github:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============ CINEMA CARD (no-flip, professional) ============ */
.proj-card--cinema,
.proj-card--movimento {
  cursor: default;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 10px !important;
}
.proj-card--cinema .proj-card-front,
.proj-card--movimento .proj-card-front {
  position: relative;
  inset: unset;
  padding: 0;
  backface-visibility: unset;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: all !important;
  display: flex;
  flex-direction: column;
  height: auto;
}
.proj-card--cinema:hover,
.proj-card--movimento:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(var(--accent-rgb), 0.12);
}

/* ── CHIP CONCLUÍDO — colado no canto inferior direito da imagem ── */
.proj-chip--done {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 8px 0 0 0;
  color: #ffffff;
  background: rgba(10, 14, 26, 0.6);
  border-top: 1px solid rgba(34, 197, 94, 0.5);
  border-left: 1px solid rgba(34, 197, 94, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: -2px -2px 14px rgba(34, 197, 94, 0.15);
  pointer-events: none;
}
.proj-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
  position: relative;
}
.proj-chip-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: chipPulse 2s ease-out infinite;
}
@keyframes chipPulse {
  0%   { transform: scale(0.8); opacity: 1; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.proj-chip--wip {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 8px 0 0 0;
  color: #ffffff;
  background: rgba(10, 14, 26, 0.6);
  border-top: 1px solid rgba(251, 191, 36, 0.5);
  border-left: 1px solid rgba(251, 191, 36, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: -2px -2px 14px rgba(251, 191, 36, 0.15);
  pointer-events: none;
}
.proj-chip-dot--wip {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}
.proj-chip-dot--wip::after {
  background: rgba(251, 191, 36, 0.3);
}

.proj-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,14,26,0.6) 100%);
  pointer-events: none;
}
.proj-card--cinema .proj-preview {
  border-radius: 10px 10px 0 0;
  height: 200px;
  flex-shrink: 0;
}
.proj-card--cinema .proj-preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,197,94,0.35) 8%, rgba(34,197,94,0.85) 35%, rgba(34,197,94,1) 50%, rgba(34,197,94,0.85) 65%, rgba(34,197,94,0.35) 92%, transparent 100%);
  box-shadow: 0 0 6px rgba(34,197,94,0.55), 0 0 18px rgba(34,197,94,0.2);
  pointer-events: none;
  z-index: 5;
}

.proj-card--movimento .proj-preview {
  border-radius: 10px 10px 0 0;
  height: 200px;
  flex-shrink: 0;
}
.proj-card--movimento .proj-preview .proj-img {
  object-position: center 59%;
}
.proj-card--movimento .proj-img-gradient {
  background: linear-gradient(to bottom, transparent 20%, rgba(10, 14, 26, 0.788) 100%);
  z-index: 2;
  pointer-events: none;
}
.proj-card--movimento .proj-preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(251,191,36,0.35) 8%, rgba(251,191,36,0.85) 35%, rgba(251,191,36,1) 50%, rgba(251,191,36,0.85) 65%, rgba(251,191,36,0.35) 92%, transparent 100%);
  box-shadow: 0 0 6px rgba(251,191,36,0.55), 0 0 18px rgba(251,191,36,0.2);
  pointer-events: none;
  z-index: 5;
}

.proj-cinema-body {
  padding: 1.5rem 1.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%);
}

.proj-cinema-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.proj-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 0.06em;
}
.proj-meta-item svg { color: var(--accent); opacity: 0.7; }

.proj-cinema-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.7rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.proj-cinema-desc {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  flex: 1;
}

.proj-tags--cinema { margin-bottom: 1.4rem; }

.proj-cinema-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.proj-btn--github {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: var(--white);
}
.proj-btn--github:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.proj-btn--linkedin {
  background: rgba(10,102,194,0.15);
  border-color: rgba(10,102,194,0.35);
  color: #ffffff;
}
.proj-btn--linkedin:hover {
  background: rgba(10,102,194,0.25);
  border-color: rgba(10,102,194,0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(10,102,194,0.2);
}

/* ============ REACT LOGO ANIMATION ============ */
.react-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  overflow: visible;
}

.react-svg {
  width: 220px;
  height: 220px;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(97, 219, 251, 0.5));
}

/* Orbits */
.react-orbit {
  stroke: #61dbfb;
  opacity: 0.75;
}
.react-orbit-1 {
  transform: rotate(0deg);
  transform-origin: 0 0;
  animation: orbit-spin-1 8s linear infinite;
}
.react-orbit-2 {
  transform: rotate(60deg);
  transform-origin: 0 0;
  animation: orbit-spin-2 8s linear infinite;
}
.react-orbit-3 {
  transform: rotate(120deg);
  transform-origin: 0 0;
  animation: orbit-spin-3 8s linear infinite;
}

@keyframes orbit-spin-1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbit-spin-2 {
  from { transform: rotate(60deg); }
  to   { transform: rotate(420deg); }
}
@keyframes orbit-spin-3 {
  from { transform: rotate(120deg); }
  to   { transform: rotate(480deg); }
}

/* Nucleus */
.react-nucleus {
  fill: #61dbfb;
  filter: drop-shadow(0 0 6px #61dbfb);
  animation: nucleus-pulse 2.5s ease-in-out infinite;
}
@keyframes nucleus-pulse {
  0%, 100% { opacity: 1; r: 2.05; }
  50%       { opacity: 0.7; r: 2.4; }
}

/* Glow background */
.react-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97,219,251,0.12) 0%, transparent 70%);
  animation: glow-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.6; }
}

/* Label */
.react-particles-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
}



/* ===========================
   SCROLL PROGRESS BAR
=========================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent);
}

/* ===========================
   AURORA HERO BACKGROUND
=========================== */
.h-aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.h-aurora::before,
.h-aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraFloat 12s ease-in-out infinite;
}
.h-aurora::before {
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb),0.13) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.h-aurora::after {
  width: 500px; height: 350px;
  background: radial-gradient(ellipse, rgba(var(--blue-rgb),0.1) 0%, transparent 70%);
  bottom: 0; right: -5%;
  animation-delay: -6s;
}
@keyframes auroraFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-20px,20px) scale(0.96); }
}

/* Aurora orb 3 */
.h-aurora-orb {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.07) 0%, transparent 70%);
  filter: blur(60px);
  top: 30%; left: 60%;
  pointer-events: none;
  animation: auroraFloat 9s ease-in-out infinite 3s;
}





/* ===========================
   SECTION GLOW DIVIDERS
=========================== */
.section-divider {
  position: relative;
  overflow: visible;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: var(--accent);
  filter: blur(4px);
  opacity: 0.6;
}

/* ===========================
   SKILL BAR SHIMMER
=========================== */
.sbar-fill {
  position: relative;
  overflow: hidden;
}
.sbar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; bottom: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 140%; }
}



/* ===========================
   TYPING CURSOR BLINK
=========================== */
#typingText::after {
  content: '|';
  color: var(--accent);
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }



/* ===========================
   SOCIAL ICON GLOW RINGS
=========================== */
.h-social {
  position: relative;
}
.h-social::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb),0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.h-social:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ===========================
   FLOATING ORBS (background)
=========================== */
.h-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0;
  animation: orbAppear 2s ease forwards, orbDrift linear infinite;
}
@keyframes orbAppear { to { opacity: 1; } }
@keyframes orbDrift {
  0%,100% { transform: translate(0,0); }
  33%      { transform: translate(30px,-20px); }
  66%      { transform: translate(-15px,25px); }
}



/* =====================================================
   NAV MOBILE RIGHT (contato + hamburger)
===================================================== */
.nav-mobile-right {
  display: none;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* =====================================================
   HAMBURGER
===================================================== */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  align-items: center;
}
.nav-hamburger:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(var(--accent-rgb),0.3);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav-hamburger span:nth-child(2) { width: 14px; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 18px; }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 18px; }

/* =====================================================
   MOBILE MENU
===================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(10,14,26,0.97);
  backdrop-filter: blur(24px);
  z-index: 997;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
body.menu-open { overflow: hidden; }

/* Links de navegação */
.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  width: 100%;
  max-width: 320px;
  padding: 0 1.5rem;
}
.mobile-links a {
  display: block;
  text-align: left;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, padding-left 0.2s;
  position: relative;
}
.mobile-links a::before {
  content: '›';
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  transform: translateX(-6px);
}
.mobile-links a:hover {
  color: var(--white);
  border-color: rgba(var(--accent-rgb),0.2);
  background: rgba(var(--accent-rgb),0.05);
  padding-left: 1.4rem;
}
.mobile-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Separador + action pills no menu */
.mobile-menu-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem 1.8rem;
  width: 100%;
  max-width: 320px;
}
/* Linha divisória acima dos links */
.mobile-menu-actions + .mobile-links {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  margin-top: 0;
}

/* =====================================================
   TABLET — 960px
===================================================== */
@media (max-width: 960px) {
  /* Mostra wrapper mobile (contato + hamburger) */
  .nav-mobile-right { display: flex; }
  /* Esconde botões desktop */
  .nav-actions { display: none; }
  /* Hamburger visível */
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero partículas não estouram */
  #hero-canvas { width: 100% !important; }

  /* Projetos */
  .proj-grid--asymmetric { grid-template-columns: 1fr; }
  .proj-card--featured { min-height: auto; }

  /* Contact — coluna única */
  .cinfo-grid-centered { grid-template-columns: 1fr; max-width: 480px; }
}

/* =====================================================
   MOBILE — 640px
===================================================== */
@media (max-width: 640px) {
  nav { height: 60px; }
  .mobile-menu { top: 60px; }

  .section { padding: 4rem 5vw; }

  /* Hero */
  .h-name { font-size: clamp(1.9rem, 7vw, 2.6rem) !important; letter-spacing: -0.5px; }
  .h-desc { font-size: 0.88rem; }
  .h-cta { flex-direction: column; align-items: center; }
  .btn-cta { width: 100%; max-width: 280px; justify-content: center; }
  .h-scroll { display: none; }

  /* Titles */
  .s-title { font-size: 1.75rem; }

  /* About */
  .about-grid { gap: 2rem; }
  .about-text p { font-size: 0.9rem; }
  .spill { font-size: 0.7rem; padding: 0.28rem 0.65rem; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Projects */
  .proj-cinema-title { font-size: 1rem; }
  .proj-cinema-desc { font-size: 0.82rem; }
  .proj-cinema-actions { flex-direction: column; gap: 0.6rem; }
  .proj-btn { justify-content: center; }
  .proj-cinema-meta { flex-wrap: wrap; gap: 0.5rem; }
  .proj-tags { flex-wrap: wrap; gap: 0.4rem; }
  .proj-tag { font-size: 0.67rem; }

  /* Contact */
  .cinfo-grid-centered { grid-template-columns: 1fr; max-width: 100%; }
  .cinfo-big { padding: 1rem; }
  .contact-tagline { font-size: 0.88rem; }
  .cinfo-label { font-size: 0.88rem; }
  .cinfo-sub { font-size: 0.72rem; }

  /* Nav pills — esconde somente as da barra desktop; as do menu mobile ficam visíveis */
  .nav-actions .nav-pill--lang { display: none; }
  .nav-actions .nav-pill--gear { display: none; }

  /* Footer */
  footer { padding: 1.8rem 5vw; font-size: 0.78rem; text-align: center; }
}

/* =====================================================
   MOBILE PEQUENO — 400px
===================================================== */
@media (max-width: 400px) {
  .nav-contact-btn { font-size: 0.62rem; padding: 0.38rem 0.8rem; }
  .proj-cinema-meta { font-size: 0.6rem; }
  .proj-header { flex-direction: column; align-items: flex-start; }
  .cinfo-big { gap: 0.75rem; }
}
