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

:root {
  --bg:         #080d1a;
  --bg-card:    rgba(255,255,255,0.04);
  --bg-card-h:  rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.08);
  --border-h:   rgba(0,198,255,0.35);

  --cyan:       #00c6ff;
  --purple:     #7c3aed;
  --amber:      #f59e0b;
  --white:      #f0f4ff;
  --muted:      rgba(240,244,255,0.55);

  --gradient:   linear-gradient(135deg, var(--cyan), var(--purple));
  --glow-cyan:  0 0 40px rgba(0,198,255,0.25);
  --glow-card:  0 0 60px rgba(124,58,237,0.12);

  --radius:     18px;
  --radius-sm:  10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body:  'Inter', sans-serif;
  --font-head:  'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ── CANVAS PARTÍCULAS ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ── UTILITÁRIOS ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent { color: var(--cyan); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}
.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(8,13,26,0.97);
  backdrop-filter: blur(18px);
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--white); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 60px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-visual   { flex: 0 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,198,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,198,255,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0,198,255,0.07);
  transform: translateY(-2px);
}

/* Tech tags */
.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tag {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Phone mockup */
.phone-mockup {
  width: 220px;
  height: 420px;
  background: linear-gradient(160deg, #13192e, #0e1525);
  border-radius: 38px;
  border: 2px solid var(--border);
  box-shadow: var(--glow-cyan), 0 40px 80px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 5s ease-in-out infinite;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  width: 60px; height: 6px;
  background: var(--border);
  border-radius: 10px;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
.phone-screen {
  width: 82%; height: 80%;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(0,198,255,0.06), rgba(124,58,237,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px;
  place-items: center;
}
.phone-app-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: transform var(--transition);
}
.phone-app-icon:hover { transform: scale(1.08); }
/* 4 ícones: grade 2×2 natural — sem regra especial */

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.section-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────
   SOBRE
───────────────────────────────────────── */
.sobre {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.sobre-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.75;
}
.sobre-text p strong { color: var(--white); }

.stats-row {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
}
.skill-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--glow-card);
}
.skill-icon { font-size: 1.8rem; margin-bottom: 12px; }
.skill-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.skill-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ─────────────────────────────────────────
   APPS
───────────────────────────────────────── */
.apps {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04), transparent);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  transition-delay: var(--delay, 0ms);
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--glow-card); }

.app-card-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.app-card:hover .app-card-glow { opacity: 0.06; }

.app-card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}
.app-card:hover .app-card-inner { border-color: var(--border-h); }

.app-logo-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
.app-logo {
  width: 96px; height: 96px;
  border-radius: 22px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: transform var(--transition);
}
.app-card:hover .app-logo { transform: scale(1.06) rotate(-2deg); }

.app-info { display: flex; flex-direction: column; flex: 1; }
.app-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.app-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.app-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0,198,255,0.08);
  border: 1px solid rgba(0,198,255,0.18);
  color: var(--cyan);
}

.play-btn {
  display: inline-block;
  transition: transform var(--transition), filter var(--transition);
}
.play-btn:hover { transform: scale(1.04); filter: brightness(1.1); }
.play-badge {
  height: 44px;
  width: auto;
  display: block;
}

/* ── Em breve / WIP ── */
.app-card--wip .app-card-inner {
  border-color: rgba(245,158,11,0.18);
}
.app-card--wip:hover .app-card-inner {
  border-color: rgba(245,158,11,0.4);
}
.app-card--wip .app-card-glow {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(124,58,237,0.08));
}

.coming-soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(245,158,11,0.4);
}

.tag--wip {
  background: rgba(245,158,11,0.1) !important;
  border-color: rgba(245,158,11,0.25) !important;
  color: #f59e0b !important;
}

/* ── Web project card (span full grid, centrado) ── */
.app-card--web {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* ── Web badge ── */
.web-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,198,255,0.35);
}

/* ── Visitar Site button ── */
.site-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,198,255,0.25);
  width: fit-content;
}
.site-visit-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,198,255,0.45);
  filter: brightness(1.1);
}

.wip-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-top: auto;
}
.wip-bar-fill {
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 100px;
  position: relative;
  animation: wip-pulse 2.5s ease-in-out infinite;
}
@keyframes wip-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ─────────────────────────────────────────
   CONTATO
───────────────────────────────────────── */
.contato {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.contato-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,198,255,0.07), rgba(124,58,237,0.07));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 80px 60px;
  display: flex;
  align-items: center;
}
.contato-content { position: relative; z-index: 2; max-width: 540px; }
.contato-content .section-label { display: block; margin-bottom: 12px; }
.contato-content h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.contato-content p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-btn:hover {
  border-color: var(--cyan);
  background: rgba(0,198,255,0.1);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* Deco circles */
.contato-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin-slow linear infinite;
}
.deco-1 { width: 300px; height: 300px; right: -80px; top: -80px; animation-duration: 30s; border-color: rgba(0,198,255,0.12); }
.deco-2 { width: 200px; height: 200px; right: 60px; top: -20px; animation-duration: 20s; animation-direction: reverse; border-color: rgba(124,58,237,0.12); }
.deco-3 { width: 120px; height: 120px; right: 120px; top: 40px; animation-duration: 15s; border-color: rgba(0,198,255,0.08); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}
.footer-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: contain;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}
.heart { color: #ef4444; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-tech { justify-content: center; }
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-row { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .apps-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .contato-box { padding: 48px 28px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
  .phone-mockup { width: 180px; height: 340px; }
  .phone-app-icon { width: 52px; height: 52px; }
}
