/* ─────────────────────────────────────────────────────────────────────────────
   Gabriel Schunck — Portfolio
   Design: Dark theme, glassmorphism, animated gradient mesh
───────────────────────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg:            #060609;
  --surface:       #0d0d16;
  --surface-2:     #111119;
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(255,255,255,0.12);
  --accent:        #6366f1;
  --cyan:          #06b6d4;
  --purple:        #a855f7;
  --green:         #22c55e;
  --text:          #e2e8f0;
  --text-muted:    #94a3b8;
  --text-dim:      #475569;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:     0 12px 48px rgba(0,0,0,.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-subtle {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Reveal animations ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-bar.scrolled {
  background: rgba(6,6,9,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent); }
.logo-name {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.35);
  padding: 7px 18px;
  border-radius: 7px;
  color: #818cf8 !important;
  transition: background 0.2s, border-color 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--border-hover); }

/* Mobile menu */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  right: 24px;
  gap: 4px;
  background: rgba(13,13,22,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 130px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Background fixed layer */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh-gradient::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 68%);
  top: -200px; left: -150px;
  animation: meshFloat1 11s ease-in-out infinite;
}
.mesh-gradient::after {
  content: '';
  position: absolute;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(168,85,247,0.11) 0%, transparent 68%);
  bottom: -80px; right: -60px;
  animation: meshFloat2 14s ease-in-out infinite;
}
@keyframes meshFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(80px, 60px) scale(1.08); }
}
@keyframes meshFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-60px, -80px) scale(1.12); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Hero content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.22);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--green);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.hero-bio {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 38px;
}
.hero-bio strong { color: var(--text); }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  padding: 12px 26px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
  color: #fff;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px 26px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid var(--border-hover);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.07);
  color: var(--text);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Code window ────────────────────────────────────────────────────────── */
.hero-code { display: flex; justify-content: center; }
.code-window {
  background: rgba(11,11,18,0.85);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.08);
  width: 100%;
  max-width: 390px;
}
.window-bar {
  background: var(--surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.window-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.code-content {
  padding: 22px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  overflow-x: auto;
  tab-size: 2;
}
.c-keyword { color: #a855f7; }
.c-var     { color: #22d3ee; }
.c-op      { color: var(--text-dim); }
.c-prop    { color: #818cf8; }
.c-str     { color: #4ade80; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section     { padding: 100px 0; }
.section-alt { background: var(--surface); }

.section-header { margin-bottom: 58px; }
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ── About ──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}
.about-text strong { color: var(--text); }
.about-motto {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.14);
  border-radius: 9px;
  padding: 14px 18px;
  font-size: 0.95rem !important;
  margin-top: 24px !important;
}
.about-links {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
  border-color: rgba(99,102,241,0.28);
  transform: translateY(-2px);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Skills ─────────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.skill-group {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-group:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
}
.skill-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.skill-group-title i { color: var(--accent); font-size: 0.95rem; }
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
}
.pill-primary { background: rgba(99,102,241,0.1);  border-color: rgba(99,102,241,0.25);  color: #818cf8; }
.pill-cyan    { background: rgba(6,182,212,0.1);   border-color: rgba(6,182,212,0.25);   color: #22d3ee; }
.pill-purple  { background: rgba(168,85,247,0.1);  border-color: rgba(168,85,247,0.25);  color: #c084fc; }
.pill-green   { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.25);   color: #4ade80; }

/* ── Projects ───────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.project-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.project-card-featured {
  border-color: rgba(99,102,241,0.18);
  background: linear-gradient(160deg, var(--surface), rgba(99,102,241,0.04));
}
.project-card-inner {
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.project-icon {
  width: 42px; height: 42px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}
.project-icon-alt {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.2);
  color: var(--cyan);
}
.project-badge {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,0.09);
  border: 1px solid rgba(99,102,241,0.2);
  color: #818cf8;
}
.project-badge-alt {
  background: rgba(6,182,212,0.09);
  border-color: rgba(6,182,212,0.2);
  color: #22d3ee;
}
.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.project-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 18px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-tech span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.project-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.project-link-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.project-link-primary:hover { gap: 10px; color: #818cf8; }
.project-link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: border-color 0.2s, color 0.2s;
}
.project-link-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-muted);
}

/* CTA card */
.project-card-cta {
  background: linear-gradient(160deg, var(--surface), rgba(168,85,247,0.04));
  border-color: rgba(168,85,247,0.14);
  text-align: center;
}
.project-card-cta .project-card-inner {
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cta-icon {
  width: 52px; height: 52px;
  border: 1px dashed rgba(168,85,247,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 4px;
}
.project-card-cta h3 { font-size: 1.1rem; font-weight: 700; }
.project-card-cta p  { font-size: 0.84rem; color: var(--text-muted); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.contact-text strong { color: var(--text); }
.contact-info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.contact-item i { color: var(--accent); font-size: 1.05rem; }
.contact-item:hover { color: var(--text); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.03);
}
.form-note {
  font-size: 0.73rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 14px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 1.05rem;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

/* ── Project page ───────────────────────────────────────────────────────── */
.project-hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}
.project-hero-content { max-width: 700px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.project-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.project-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.meta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
}
.project-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
}
.project-hero-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Project details grid */
.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.project-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.sidebar-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Features list */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.feature-item:hover { border-color: rgba(99,102,241,0.25); }
.feature-icon {
  width: 36px; height: 36px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section inner heading */
.section-inner-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.prose p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.prose strong { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-code { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-details-grid { grid-template-columns: 1fr; }
  .project-details-sidebar { position: static; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; }
  .nav-toggle { display: block; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
  .hero { padding-top: 100px; }
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}
.modal-icon {
  width: 56px; height: 56px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green);
  margin: 0 auto 20px;
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.modal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── WhatsApp Floating Button ───────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.whatsapp-fab:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 480px) {
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-fab::before {
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }
  .whatsapp-tooltip { display: none; }
}

/* ── PayHub Project Card ─────────────────────────────────────────────────── */
.project-card-payhub {
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.06) 0%,
    rgba(6, 182, 212, 0.04) 100%
  );
  position: relative;
  overflow: hidden;
}

.project-card-payhub::after {
  content: 'NOVO';
  position: absolute;
  top: 14px;
  right: -22px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 32px;
  transform: rotate(45deg);
  pointer-events: none;
}

.project-card-payhub:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), var(--shadow-lg);
}

.project-icon-payhub {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(6,182,212,0.15));
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.project-badge-payhub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-blink {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.project-wip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── CTA Card — serviços ─────────────────────────────────────────────────── */
.cta-services {
  list-style: none;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-services li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.cta-services li i {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Form note ───────────────────────────────────────────────────────────── */
.form-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
}
.form-note i { color: var(--accent); font-size: 0.82rem; }

/* ── Depoimentos ─────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
