/* ===================================================
   MFARKOS.COM.BR — Portfólio Profissional
   Design: Dark Mode Premium + Glassmorphism
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ──────────────────────────────────── */
:root {
  --bg-primary:    #080812;
  --bg-secondary:  #0d0d1f;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --glass:         rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.1);

  --accent-1: #6c63ff;
  --accent-2: #00d2ff;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6c63ff, #00d2ff);
  --gradient-alt: linear-gradient(135deg, #a855f7, #6c63ff);

  --text-primary:   #f0f0ff;
  --text-secondary: #8a8aaa;
  --text-muted:     #555577;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 40px rgba(108,99,255,0.25);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

/* ── Custom Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

/* ── Selection ──────────────────────────────────── */
::selection { background: rgba(108,99,255,0.4); color: white; }

/* ── Cursor ─────────────────────────────────────── */
.cursor {
  width: 12px; height: 12px;
  background: var(--accent-1);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease, opacity 0.3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(108,99,255,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
}

/* ── Noise Overlay ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── Utilities ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.5px;
}

/* ── Navigation ─────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 24px;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(8,8,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  text-decoration: none;
  color: white;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  display: block; padding: 8px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover { color: white; background: var(--glass); }
.nav-cta {
  background: var(--gradient) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108,99,255,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(0,210,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(168,85,247,0.1) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
}
.hero-text { animation: hero-in 0.8s ease both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge { margin-bottom: 24px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(108,99,255,0.4);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.hero-visual {
  position: relative;
  animation: hero-in 0.8s 0.2s ease both;
}
.hero-card-main {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero-card-main::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.code-block {
  background: rgba(0,0,0,0.4);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
}
.code-line { display: block; }
.code-kw  { color: #c678dd; }
.code-fn  { color: #61afef; }
.code-str { color: #98c379; }
.code-cn  { color: #e5c07b; }
.code-cm  { color: var(--text-muted); }
.floating-badge {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.badge-1 { top: -20px; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: -20px; left: -20px; animation-delay: 1.5s; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.badge-dot.green  { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.badge-dot.blue   { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl {
  font-size: 13px; color: var(--text-secondary);
  font-weight: 500;
}

/* ── Section Base ───────────────────────────────── */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-1); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before, .section-label::after {
  content: ''; flex: 1;
  height: 1px; background: rgba(108,99,255,0.4);
  width: 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 17px; max-width: 560px; margin: 0 auto;
}

/* ── Sobre ──────────────────────────────────────── */
#sobre { background: var(--bg-secondary); }
.sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 80px;
}
.sobre-avatar-wrap { position: relative; }
.sobre-avatar {
  width: 320px; height: 320px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 120px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.sobre-avatar-ring {
  position: absolute; inset: -16px;
  border: 2px solid transparent;
  border-radius: calc(var(--radius-xl) + 16px);
  background: linear-gradient(#080812, #080812) padding-box,
              var(--gradient) border-box;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sobre-skills {
  position: absolute; right: -48px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}
.skill-chip {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: var(--transition);
}
.skill-chip:hover { background: var(--bg-card-hover); transform: translateX(-4px); }
.sobre-content .badge { margin-bottom: 24px; }
.sobre-lead {
  font-size: 18px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 24px;
}
.sobre-highlights {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.sobre-highlights li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text-secondary);
}
.sobre-highlights li::before {
  content: '';
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(108,99,255,0.2);
  border: 1px solid rgba(108,99,255,0.4);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236c63ff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ── Serviços ───────────────────────────────────── */
#servicos {}
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.servico-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.servico-card:hover::before { opacity: 0.05; }
.servico-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: var(--shadow-glow);
}
.servico-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.servico-card:hover .servico-icon {
  background: rgba(108,99,255,0.25);
  transform: scale(1.1) rotate(-5deg);
}
.servico-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px; color: white;
}
.servico-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.servico-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.servico-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 999px;
  color: var(--accent-1);
}

/* ── Portfolio ──────────────────────────────────── */
#portfolio { background: var(--bg-secondary); }
.portfolio-filters {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
}
.portfolio-card[data-hidden="true"] { display: none; }
.portfolio-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(108,99,255,0.1);
}
.portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(8,8,18,0.9) 100%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-link-btn {
  width: 40px; height: 40px;
  background: white;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--bg-primary);
  font-size: 16px;
  transition: var(--transition);
}
.portfolio-link-btn:hover { transform: scale(1.1); background: var(--accent-2); color: white; }
.portfolio-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,210,255,0.05));
}
.placeholder-icon { font-size: 48px; }
.placeholder-label {
  font-size: 12px; color: var(--text-muted);
  text-align: center; padding: 0 16px;
}
.portfolio-info { padding: 20px 24px; }
.portfolio-cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-1); margin-bottom: 8px;
}
.portfolio-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  margin-bottom: 6px; color: white;
}
.portfolio-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── Tecnologias ────────────────────────────────── */
#tecnologias { overflow: hidden; padding: 80px 0; }
.tech-track-wrap { overflow: hidden; }
.tech-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 25s linear infinite;
}
.tech-track:hover { animation-play-state: paused; }
.tech-track-2 { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tech-chip:hover { color: white; border-color: rgba(108,99,255,0.4); }
.tech-chip-icon { font-size: 20px; }

/* ── Contato ────────────────────────────────────── */
#contato { background: var(--bg-secondary); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contato-info h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  margin-bottom: 16px;
}
.contato-info p { color: var(--text-secondary); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}
.contact-method:hover {
  border-color: rgba(108,99,255,0.4);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.contact-method-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(108,99,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-method-info .label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.contact-method-info .value { font-size: 15px; font-weight: 600; }
.contato-form-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative; overflow: hidden;
}
.contato-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: white;
  font-size: 15px; font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(108,99,255,0.5);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Footer ─────────────────────────────────────── */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: white;
}
.footer-copy { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted); font-size: 14px;
  text-decoration: none; transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-1); }

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-avatar-wrap { display: none; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contato-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(8,8,18,0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
  }
  .servicos-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cursor, .cursor-ring { display: none; }
}

/* ── Loading Screen ─────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-bar-wrap {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0;
  background: var(--gradient);
  border-radius: 2px;
  animation: load 1.2s ease-out forwards;
}
@keyframes load { to { width: 100%; } }

/* ── Whatsapp Float ─────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 800;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 8px 40px rgba(37,211,102,0.7); }
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
