/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #1a0a10;
  --bg-alt:     #0d0520;
  --primary:    #E11D48;
  --pink:       #FF71CE;
  --cyan:       #01CDFE;
  --purple:     #B967FF;
  --soft:       #FDA4AF;
  --deep:       #881337;
  --text:       #FFF1F2;
  --text-muted: rgba(255, 241, 242, 0.55);
  --border:     rgba(255, 113, 206, 0.2);
  --border-h:   rgba(255, 113, 206, 0.6);
  --radius:     8px;
  --radius-lg:  14px;
  --transition: .25s ease;
}

html {
  height: 100%;
  /* overflow: hidden aplicado pelo snap-container */
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

em {
  font-style: normal;
}

/* ════════════════════════════════════════
   VHS SCAN LINES OVERLAY
════════════════════════════════════════ */
.vhs-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0px,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ════════════════════════════════════════
   GLOW ORBS
════════════════════════════════════════ */
.glow-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}

.orb--pink {
  background: radial-gradient(circle, #FF71CE 0%, transparent 70%);
  top: 10%;
  left: -5%;
}

.orb--cyan {
  background: radial-gradient(circle, #01CDFE 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
}

.orb--purple {
  background: radial-gradient(circle, #B967FF 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ════════════════════════════════════════
   DOT NAVIGATION
════════════════════════════════════════ */
.dot-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dot-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 113, 206, 0.3);
  border: 1px solid rgba(255, 113, 206, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot-nav__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.dot-nav__dot:hover,
.dot-nav__dot.active {
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink), 0 0 20px rgba(255, 113, 206, 0.4);
}

.dot-nav__dot.active::after {
  border-color: rgba(255, 113, 206, 0.4);
}

/* ════════════════════════════════════════
   SNAP CONTAINER & SECTIONS
════════════════════════════════════════ */
.snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  /* garante que o container ocupe toda a altura da body */
  position: fixed;
  inset: 0;
}

.snap-container::-webkit-scrollbar {
  display: none;
}

.snap-section {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.snap-section--alt {
  background: var(--bg-alt);
}

/* ════════════════════════════════════════
   SECTION NUM
════════════════════════════════════════ */
.section-num {
  position: absolute;
  bottom: 24px;
  right: 52px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  opacity: 0.5;
  font-weight: 500;
}

/* ════════════════════════════════════════
   SECTION SHARED
════════════════════════════════════════ */
.section__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 0 48px;
}

.section__header {
  margin-bottom: 36px;
}

.section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(1, 205, 254, 0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(255, 113, 206, 0.3);
}

.accent-punct {
  color: var(--pink);
  text-shadow: 0 0 16px var(--pink);
}

/* ════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════ */
.hero__grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42%;
  background-image:
    linear-gradient(rgba(255, 113, 206, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 113, 206, 0.25) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(400px) rotateX(55deg);
  transform-origin: bottom center;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  padding: 0 48px;
}

.jp-float {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: rgba(255, 113, 206, 0.35);
  margin-bottom: 20px;
  font-weight: 400;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 113, 206, 0.08);
  color: var(--soft);
  border: 1px solid rgba(255, 113, 206, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80, 0 0 16px rgba(74, 222, 128, 0.4);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ─── GLITCH TITLE ─── */
.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.glitch {
  position: relative;
  color: var(--text);
  text-shadow: 0 0 30px rgba(255, 241, 242, 0.2);
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch::before {
  color: var(--pink);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  transform: translate(-3px, 0);
  animation: glitch-top 3.5s ease-in-out infinite;
  text-shadow: none;
}

.glitch::after {
  color: var(--cyan);
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translate(3px, 0);
  animation: glitch-bot 3.5s ease-in-out infinite;
  text-shadow: none;
}

@keyframes glitch-top {
  0%, 80%, 100% { transform: translate(-3px, 0); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
  82%            { transform: translate(-6px, -2px); clip-path: polygon(0 5%, 100% 5%, 100% 35%, 0 35%); }
  84%            { transform: translate(4px, 1px);  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
  86%            { transform: translate(-3px, 0); }
}

@keyframes glitch-bot {
  0%, 80%, 100% { transform: translate(3px, 0);  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }
  82%            { transform: translate(6px, 2px);  clip-path: polygon(0 65%, 100% 65%, 100% 95%, 0 95%); }
  84%            { transform: translate(-4px, -1px); clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
  86%            { transform: translate(3px, 0); }
}

.hero__name-sub {
  color: var(--pink);
  text-shadow: 0 0 40px rgba(255, 113, 206, 0.5), 0 0 80px rgba(255, 113, 206, 0.2);
  display: inline-block;
}

.hero__role {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(1, 205, 254, 0.5);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero__desc {
  max-width: 500px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.text-pink { color: var(--pink); }
.text-cyan  { color: var(--cyan); }

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Holographic CTA */
.btn--holo {
  background: linear-gradient(
    135deg,
    #FF6B6B, #FFD93D, #6BCB77,
    #4D96FF, #B967FF, #FF71CE, #FF6B6B
  );
  background-size: 400% 400%;
  animation: holographic 3s ease infinite;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 0 20px rgba(255, 113, 206, 0.3);
}

.btn--holo:hover {
  box-shadow: 0 0 30px rgba(255, 113, 206, 0.6), 0 0 60px rgba(255, 113, 206, 0.2);
  transform: translateY(-2px) scale(1.02);
}

@keyframes holographic {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}

.btn--outline:hover {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 113, 206, 0.2);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 7px 16px;
  font-size: 0.72rem;
}

.btn--ghost {
  background: rgba(255, 113, 206, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 113, 206, 0.4);
  background: rgba(255, 113, 206, 0.1);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   ABOUT SECTION
════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.jp-inline {
  display: block;
  margin-top: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: rgba(255, 113, 206, 0.3);
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 113, 206, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  border-color: rgba(255, 113, 206, 0.5);
  box-shadow: 0 0 20px rgba(255, 113, 206, 0.1);
}

.highlight-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 113, 206, 0.5);
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.1em;
}

.highlight-card strong {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  color: var(--text);
}

.highlight-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ════════════════════════════════════════
   SKILLS SECTION
════════════════════════════════════════ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 113, 206, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    #FF6B6B, #FFD93D, #6BCB77,
    #4D96FF, #B967FF, #FF71CE, #FF6B6B
  );
  background-size: 400% 400%;
  opacity: 0;
  transition: opacity var(--transition);
  animation: holographic 3s ease infinite;
  z-index: -1;
}

.skill-card:hover::before {
  opacity: 0.6;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 113, 206, 0.15);
  background: rgba(255, 113, 206, 0.08);
}

.skill-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.skill-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
}

/* ════════════════════════════════════════
   PROJECTS SECTION
════════════════════════════════════════ */

/* Seção projetos: coluna, largura total */
#projetos {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 32px;
}

/* Header dentro do container de largura normal */
.proj-content-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.proj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.proj-header .section__header {
  margin-bottom: 0;
}

.proj-counter {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  padding-bottom: 6px;
}

/* Slider: largura total do viewport, altura fixa */
.proj-slider {
  width: 100%;
  height: clamp(360px, 62vh, 520px);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.proj-track {
  display: flex;
  height: 100%;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── variável de peek (usada no slide e no botão) ── */
:root { --proj-peek: 180px; }

/* Cada slide deixa --proj-peek visível em cada lado */
.proj-slide {
  flex: 0 0 calc(100% - 2 * var(--proj-peek));
  height: 100%;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0.35;
  transform: scale(0.97);
}

.proj-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Botão cobre exatamente a zona de peek, do topo ao fundo */
.proj-arr {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--proj-peek);
  z-index: 4;
  border: none;
  cursor: pointer;
  display: none; /* JS controla visibilidade */
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 113, 206, 0.7);
  text-shadow: 0 0 16px rgba(255, 113, 206, 0.5);
  transition: color var(--transition);
}

.proj-arr.visible {
  display: flex;
}

.proj-arr--prev {
  left: 0;
  background: linear-gradient(to right, rgba(13, 5, 32, 0.75) 0%, transparent 100%);
}

.proj-arr--next {
  right: 0;
  background: linear-gradient(to left, rgba(13, 5, 32, 0.75) 0%, transparent 100%);
}

.proj-arr:hover {
  color: var(--pink);
  text-shadow: 0 0 24px var(--pink), 0 0 48px rgba(255, 113, 206, 0.3);
}

/* Card ocupa toda a altura do slide */
.project-card {
  background: rgba(255, 113, 206, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 58% 1fr;
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(255, 113, 206, 0.4);
}

.project-card__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  background: rgba(255, 113, 206, 0.12);
  color: var(--pink);
  border: 1px solid rgba(255, 113, 206, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.tag--private {
  background: rgba(185, 103, 255, 0.12);
  color: var(--purple);
  border-color: rgba(185, 103, 255, 0.3);
}

.project-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-card__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  text-shadow: 0 0 20px rgba(255, 241, 242, 0.15);
  line-height: 1.3;
}

/* Info button */
.info-btn {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: none;
  border: 1.5px solid rgba(1, 205, 254, 0.45);
  border-radius: 50%;
  color: var(--cyan);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  animation: info-pulse 3s ease-in-out infinite;
}

.info-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.info-btn:hover,
.info-btn[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(1, 205, 254, 0.5);
  animation: none;
}

@keyframes info-pulse {
  0%, 70%, 100% { box-shadow: none; border-color: rgba(1, 205, 254, 0.45); }
  80%           { box-shadow: 0 0 0 4px rgba(1, 205, 254, 0.2), 0 0 12px rgba(1, 205, 254, 0.4); border-color: var(--cyan); }
}

/* Info popup — fixed so it escapes overflow:hidden parents */
.info-popup {
  display: none;
  position: fixed;
  width: 280px;
  background: rgba(13, 5, 32, 0.96);
  border: 1px solid rgba(1, 205, 254, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: left;
  letter-spacing: 0.02em;
  font-weight: 400;
  box-shadow: 0 4px 24px rgba(1, 205, 254, 0.12), 0 0 0 1px rgba(1, 205, 254, 0.08);
  backdrop-filter: blur(8px);
  z-index: 200;
  pointer-events: none;
}

.info-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(1, 205, 254, 0.3);
}

.info-popup.is-open {
  display: block;
  animation: popup-in 0.18s ease;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════ */
.carousel {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 200px;
  background: #0a0010;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(transparent, rgba(10, 0, 16, 0.85));
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
}

/* Prev / Next arrows */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 0, 16, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  z-index: 2;
  opacity: 0;
}

.carousel:hover .carousel__btn {
  opacity: 1;
}

.carousel__btn:hover {
  background: rgba(255, 113, 206, 0.2);
  border-color: var(--pink);
  color: var(--pink);
}

.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }

/* carousel__tags hidden — badges are always in the card body */
.carousel__tags { display: none; }

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 241, 242, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel__dot.active {
  background: var(--pink);
  box-shadow: 0 0 6px var(--pink);
  width: 18px;
  border-radius: 3px;
}

/* ════════════════════════════════════════
   CONTACT SECTION
════════════════════════════════════════ */
.contact__intro {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.75;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 700px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 113, 206, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(1, 205, 254, 0.5);
  box-shadow: 0 0 20px rgba(1, 205, 254, 0.1);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(1, 205, 254, 0.1);
  border: 1px solid rgba(1, 205, 254, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.contact-card__icon svg {
  width: 18px;
  height: 18px;
}

.contact-card strong {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 2px;
  color: var(--text);
}

.contact-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: rgba(255, 241, 242, 0.2);
}

/* ════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════ */

/* Indicador de clique no slide */
.carousel__slide {
  cursor: zoom-in;
}

.carousel__slide::after {
  content: 'AMPLIAR';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 0, 16, 0.7);
  border: 1px solid rgba(1, 205, 254, 0.4);
  color: var(--cyan);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.carousel__slide:hover::after {
  opacity: 1;
}

/* Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 0, 14, 0.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Header */
.lightbox__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 113, 206, 0.12);
  flex-shrink: 0;
}

.lightbox__counter {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  font-weight: 600;
  flex-shrink: 0;
}

.lightbox__caption {
  flex: 1;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 113, 206, 0.08);
  border: 1px solid rgba(255, 113, 206, 0.25);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.lightbox__close:hover {
  background: rgba(255, 113, 206, 0.2);
  border-color: var(--pink);
  color: var(--pink);
}

/* Viewport (área da imagem) */
.lightbox__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  min-height: 0;
}

.lightbox__viewport.is-zoomed {
  cursor: grab;
}

.lightbox__viewport.is-dragging {
  cursor: grabbing;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transform: scale(1) translate(0px, 0px);
  transition: transform 0.2s ease;
}

.lightbox__img.no-anim {
  transition: none !important;
}

/* Prev / Next navigation */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 0, 16, 0.6);
  border: 1px solid rgba(255, 113, 206, 0.25);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
  backdrop-filter: blur(6px);
}

.lightbox__nav:hover {
  background: rgba(255, 113, 206, 0.15);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 113, 206, 0.2);
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* Footer de controles */
.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 113, 206, 0.12);
  flex-shrink: 0;
}

.lightbox__ctrl {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(255, 113, 206, 0.06);
  border: 1px solid rgba(255, 113, 206, 0.2);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.lightbox__ctrl:hover {
  background: rgba(255, 113, 206, 0.15);
  border-color: var(--pink);
  color: var(--pink);
}

.lightbox__ctrl--fit svg {
  display: block;
}

.lightbox__zoom-level {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
  font-weight: 600;
}

/* ════════════════════════════════════════
   REVEAL ANIMATION
════════════════════════════════════════ */
.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   RESPONSIVE — tablet (≤ 900px)
════════════════════════════════════════ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .carousel {
    height: 260px;
  }

  .skills__grid {
    max-width: 100%;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — mobile (≤ 640px)
════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Seções com muito conteúdo começam pelo topo */
  #sobre,
  #skills,
  #contato {
    align-items: flex-start;
    padding-top: 44px;
    overflow: hidden;
  }

  /* Projetos no mobile: ajusta padding do header */
  .proj-content-header {
    padding: 0 20px;
    margin-bottom: 12px;
  }


  /* Padding lateral reduzido */
  .section__content,
  .hero__content {
    padding: 0 20px;
  }

  /* Dot nav menor */
  .dot-nav {
    right: 10px;
    gap: 10px;
  }

  .dot-nav__dot {
    width: 8px;
    height: 8px;
  }

  .section-num {
    right: 28px;
    font-size: 0.58rem;
  }

  /* ── Cabeçalho de seção ── */
  .section__header {
    margin-bottom: 18px;
  }

  .section__label {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .section__title {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
    letter-spacing: 0.05em;
  }

  /* ── Hero ── */
  .jp-float {
    display: none;
  }

  .status-badge {
    margin-bottom: 10px;
    font-size: 0.62rem;
    padding: 4px 12px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
    margin-bottom: 8px;
  }

  .hero__role {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .hero__desc {
    font-size: 0.8rem;
    margin-bottom: 22px;
    line-height: 1.65;
  }

  /* Botões em grade 2×2 em vez de coluna */
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn {
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  /* ── Sobre: scroll interno para o conteúdo não ser cortado ── */
  #sobre .section__content {
    overflow-y: auto;
    max-height: calc(100dvh - 88px);
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #sobre .section__content::-webkit-scrollbar {
    display: none;
  }

  /* ── Sobre ── */
  .about__grid {
    gap: 14px;
  }

  .about__text p {
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 8px;
  }

  .jp-inline {
    display: none;
  }

  .about__highlights {
    gap: 8px;
  }

  .highlight-card {
    padding: 11px 13px;
    gap: 10px;
  }

  .highlight-card strong {
    font-size: 0.72rem;
    margin-bottom: 2px;
    letter-spacing: 0.1em;
  }

  .highlight-card p {
    font-size: 0.71rem;
    line-height: 1.45;
  }

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

  .skill-card {
    padding: 18px 10px;
    gap: 8px;
  }

  .skill-card__icon,
  .skill-card__icon img {
    width: 34px;
    height: 34px;
  }

  .skill-card span {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  /* ── Projetos ── */
  .section__content--projetos {
    height: calc(100dvh - 88px);
  }

  /* Peek menor no mobile */
  :root { --proj-peek: 52px; }

  .proj-arr {
    font-size: 1.3rem;
  }

  .proj-arr--prev { left: 8px; }
  .proj-arr--next { right: 24px; }

  .project-card {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
    height: 100%;
  }

  .carousel {
    height: 100%;
    min-height: unset;
  }

  .carousel__btn {
    opacity: 1;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .project-card__body {
    padding: 16px 18px;
  }

  .project-card__title {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }

  .project-card__desc {
    font-size: 0.74rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Contato ── */
  .contact__intro {
    font-size: 0.76rem;
    margin-bottom: 14px;
    line-height: 1.55;
  }

  /* Cada card ocupa linha inteira */
  .contact__cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .contact-card {
    padding: 11px 12px;
    gap: 10px;
  }

  .contact-card__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .contact-card__icon svg {
    width: 15px;
    height: 15px;
  }

  .contact-card strong {
    font-size: 0.63rem;
    letter-spacing: 0.12em;
  }

  .contact-card span {
    font-size: 0.63rem;
  }

  .footer-copy {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  /* Esconde orbs grandes no mobile para evitar overflow lateral */
  .glow-orb {
    width: 280px;
    height: 280px;
    filter: blur(80px);
    opacity: 0.25;
  }
}
