/* ============================================================
   ISAEL NUNES PORTFOLIO — style.css
   ============================================================ */

:root {
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --accent-glow2: rgba(0, 255, 136, 0.08);
  --bg: #050508;
  --bg-card: #0d0d14;
  --bg-card-hover: #111120;
  --bg-surface: #0a0a12;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 255, 136, 0.3);
  --text: #f0f0f8;
  --text-muted: #7a7a9a;
  --text-dim: #4a4a6a;
  --font-display: "Syne", sans-serif;
  --font-mono: "Space Mono", monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --section-pad: 100px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* THE FIX: both html AND body need overflow-x hidden.
   max-width: 100% on body prevents any child from stretching it. */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) var(--bg);
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 3px;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  /* Explicit max-width so no child can stretch beyond viewport */
  max-width: 100vw;
  cursor: none;
}
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== CURSOR =====
   Start at -100px so they don't flash at top-left on page load */
.cursor,
.cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  /* Start off-screen — JS moves them on first mousemove */
  top: -100px;
  left: -100px;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transition: width 0.2s, height 0.2s;
}
.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 255, 136, 0.5);
  transition: width 0.2s, height 0.2s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 14px;
  height: 14px;
}
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 46px;
  height: 46px;
}
@media (pointer: coarse) {
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-text {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.loader-text .accent {
  color: var(--accent);
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-progress {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 2px;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--accent);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  padding: var(--section-pad) 0;
}
.section-header {
  margin-bottom: 60px;
}
.text-center {
  text-align: center;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 640px;
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.accent {
  color: var(--accent);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, border-bottom 0.3s;
  /* Prevent header from ever causing h-scroll */
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.header.scrolled {
  background: rgba(5, 5, 8, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo:hover {
  color: var(--accent);
}
.logo-bracket {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--border-accent);
  padding: 8px 20px;
  border-radius: 6px;
  transition: background var(--transition) !important;
}
.nav-cta:hover {
  background: var(--accent-glow);
}
.nav-cta::after {
  display: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before {
  opacity: 1;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.3);
}
.btn-primary:hover {
  background: #00ff9d;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
}
.tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}
.tag-sm {
  padding: 4px 10px;
  font-size: 0.72rem;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.12s;
}
.delay-2 {
  transition-delay: 0.24s;
}
.delay-3 {
  transition-delay: 0.36s;
}
.delay-4 {
  transition-delay: 0.48s;
}
.delay-5 {
  transition-delay: 0.6s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  /* clip children that overflow (glows, badges) without affecting scroll */
  overflow: clip;
}

/* Background decorations — isolated so they never touch layout */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 255, 136, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(0, 255, 136, 0.12),
    transparent 70%
  );
  top: -100px;
  right: -100px;
  filter: blur(60px);
  animation: floatGlow 6s ease-in-out infinite;
}
.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(100, 100, 255, 0.08),
    transparent 70%
  );
  bottom: 0;
  left: -100px;
  top: auto;
  right: auto;
  animation-delay: -3s;
}
@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ─── Hero grid: 2 columns ─── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 60px 24px;
  width: 100%;
}

.hero-content {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 8px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--accent);
  }
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero-title-accent {
  color: var(--accent);
}
.hero-subtitle {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.hero-subtitle strong {
  color: var(--text);
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}
.hero-keywords span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.hero-keywords .sep {
  color: var(--accent);
  opacity: 0.4;
  font-size: 0.65rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix {
  color: var(--accent);
  font-size: 1.1rem;
  display: inline;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── Hero photo (right column) ─── */
.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-accent);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.18), 0 32px 64px rgba(0, 0, 0, 0.6);
  display: block;
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-accent);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}
.hero-photo-placeholder svg {
  opacity: 0.3;
}
.hero-photo-frame-glow {
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 12px);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 136, 0.1),
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
}

/* Floating badges — clipped by .hero's overflow:clip */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(13, 13, 20, 0.95);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
  /* Never participate in layout width calculation */
  pointer-events: none;
}
.floating-badge--1 {
  bottom: 20px;
  left: -30px;
  animation-delay: 0s;
}
.floating-badge--2 {
  top: 20px;
  right: -20px;
  animation-delay: -2s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% {
    height: 0;
    opacity: 1;
  }
  100% {
    height: 40px;
    opacity: 0;
  }
}

/* ===== SOBRE ===== */
.sobre {
  background: var(--bg-surface);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.sobre-visual {
  position: relative;
}
.sobre-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sobre-img-wrap img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.sobre-img-placeholder {
  display: none;
  width: 100%;
  height: 580px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
}
.sobre-img-badge {
  position: absolute;
  bottom: -5px;
  right: -10px;
  background: var(--accent);
  color: #000;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}
.sobre-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.deco-box {
  position: absolute;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
}
.deco-box--1 {
  width: 80px;
  height: 80px;
  top: -20px;
  left: -20px;
}
.deco-box--2 {
  width: 50px;
  height: 50px;
  bottom: -10px;
  right: -10px;
  opacity: 0.5;
}
.sobre-text {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 0.96rem;
}
.sobre-text strong {
  color: var(--text);
}
.sobre-destaques {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.destaque-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.destaque-item svg {
  flex-shrink: 0;
}
.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0 2rem;
}

/* ===== TECNOLOGIAS ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.tech-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-accent);
}
.tech-card:hover::before {
  opacity: 1;
}
.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.tech-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.tech-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.tech-level {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.tech-level-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #00ccff);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tech-card.visible .tech-level-bar {
  width: var(--w);
}
.tech-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* ===== PROJETOS ===== */
.projetos {
  background: var(--bg-surface);
}
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projeto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.projeto-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.projeto-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
}
.projeto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.projeto-card:hover .projeto-img img {
  transform: scale(1.05);
}
.projeto-img-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d0d18, #141428);
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.projeto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.projeto-card:hover .projeto-overlay {
  opacity: 1;
}
.projeto-info {
  padding: 20px 24px 24px;
}
.projeto-tipo {
  margin-bottom: 10px;
}
.tipo-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tipo-sistema {
  background: rgba(0, 170, 255, 0.15);
  color: #00aaff;
  border: 1px solid rgba(0, 170, 255, 0.3);
}
.tipo-automacao {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.tipo-integracao {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.tipo-webapp {
  background: rgba(211, 7, 7, 0.747);
  color: #f0e9e9;
  border: 1px solid rgba(251, 146, 60, 0.3);
}
.tipo-ecommerce {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.tipo-landing {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.projeto-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.projeto-problema {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 6px;
}
.projeto-problema strong {
  color: var(--text-muted);
}
.projeto-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.projeto-desc strong {
  color: var(--text);
}

/* ===== SERVIÇOS ===== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.servico-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.servico-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
}
.servico-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.servico-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.servico-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.servico-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.servico-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-left: 16px;
  position: relative;
}
.servico-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.servico-card--cta {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.08),
    rgba(0, 100, 60, 0.1)
  );
  border-color: var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.servico-cta-content .cta-icon {
  margin-bottom: 1rem;
}
.servico-cta-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}
.servico-cta-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ===== DIFERENCIAIS ===== */
.diferenciais {
  background: var(--bg-surface);
}
.diferenciais-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.diferenciais-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.diferencial {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.diferencial:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.diferencial-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diferencial-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.diferencial-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CONTATO ===== */
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contato-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1rem 0 1.2rem;
}
.contato-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.contato-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contato-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contato-link:hover {
  border-color: var(--border-accent);
  background: var(--accent-glow2);
  transform: translateX(4px);
}
.contato-link-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contato-link-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.contato-link-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.contato-link-arrow {
  margin-left: auto;
  color: var(--text-dim);
  transition: var(--transition);
}
.contato-link:hover .contato-link-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ===== FORM ===== */
.contato-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 13px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder {
  color: var(--text-dim);
}
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a9a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-select option {
  background: var(--bg-card);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ===== WA FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1024px — narrower photo column */
@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr 320px;
    gap: 40px;
    min-height: auto;
    padding: 40px 24px 60px;
  }
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projetos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diferenciais-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contato-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-social {
    grid-column: span 2;
    justify-content: flex-start;
  }
}

/* 768px — stack vertically */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 28px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-link {
    font-size: 1.1rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  /* Hero: content on top, photo below */
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    padding: 40px 16px 60px;
    gap: 40px;
  }
  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
  }
  .hero-content {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-photo-frame {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .hero-subtitle {
    max-width: none;
  }
  .hero-keywords {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 16px;
  }
  /* Hide badges on mobile — they cause overflow issues */
  .floating-badge {
    display: none;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
  .projetos-grid {
    grid-template-columns: 1fr;
  }
  .servicos-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .footer-social {
    justify-content: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .sobre-img-badge {
    bottom: 12px;
    right: 12px;
    font-size: 0.75rem;
  }
}

/* 480px — very small screens */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
  .contato-form-wrap {
    padding: 20px;
  }
  .hero-keywords {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .hero-keywords .sep {
    display: none;
  }
  .hero-photo-frame {
    max-width: 200px;
  }
}
