/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================================
   THEME TOKENS
========================================================= */
:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: #121829;
  --surface-2: #161d31;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f8;
  --text-dim: #9aa3b8;
  --text-faint: #626c85;

  --accent: #00e0c7;
  --accent-2: #7c5cff;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 12px;

  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --nav-h: 76px;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --border: rgba(15, 23, 42, 0.08);
  --text: #10131c;
  --text-dim: #4b5468;
  --text-faint: #8891a5;
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.18);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.02em; }

/* =========================================================
   PROGRESS BAR
========================================================= */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-grad);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s ease;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-grad);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-small { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.btn-primary {
  background: var(--accent-grad);
  color: #051013;
  box-shadow: 0 10px 30px -8px rgba(0, 224, 199, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(124, 92, 255, 0.5); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-3px); }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(600px 500px at 85% 80%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero-role {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.hero-focus {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.hero-focus .typed {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-focus .cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 1rem;
}

.hero-location {
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.hero-social {
  display: flex;
  gap: 0.9rem;
}

.social-link {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s ease;
}
.social-link svg { width: 19px; height: 19px; }
.social-link:hover {
  color: var(--bg);
  background: var(--accent-grad);
  border-color: transparent;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border-radius: 20px;
  border: 2px solid var(--border);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDown 1.6s ease infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* =========================================================
   SECTIONS (shared)
========================================================= */
.section { padding: 7.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 3rem;
  font-size: 1.02rem;
}

/* =========================================================
   ABOUT
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.avatar-ring {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-grad);
  padding: 5px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.highlight-card {
  display: flex;
  gap: 0.9rem;
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.highlight-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.highlight-icon { font-size: 1.6rem; line-height: 1; }
.highlight-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.highlight-card p { font-size: 0.88rem; color: var(--text-dim); }

/* =========================================================
   TIMELINE (EXPERIÊNCIA)
========================================================= */
.timeline {
  position: relative;
  max-width: 780px;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.6rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline-content h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.timeline-company { color: var(--text-dim); font-size: 0.92rem; font-style: italic; margin-bottom: 0.9rem; }

.timeline-content ul { display: flex; flex-direction: column; gap: 0.55rem; }
.timeline-content li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   SKILLS
========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.skill-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.skill-icon { font-size: 1.4rem; }
.skill-name { font-weight: 600; font-size: 1rem; }

.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.skill-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent-grad);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}
.tech-chip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tech-chip:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }

/* =========================================================
   CERTIFICAÇÕES
========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.cert-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.cert-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.cert-card h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.cert-issuer { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; }
.cert-card > div > p:last-child { color: var(--text-dim); font-size: 0.9rem; }

.cert-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.cert-status-active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.cert-status-progress {
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
}

/* =========================================================
   PROJECTS
========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.project-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid var(--border);
}

.project-thumb {
  height: 160px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}

.project-chart {
  width: 70%;
  height: 70%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project-chart circle { fill: var(--accent); stroke: none; }
.project-chart-alt rect { fill: var(--accent-2); stroke: none; }
.project-chart-alt2 circle { fill: none; stroke: var(--border); stroke-width: 2; }
.project-chart-alt2 path { fill: var(--accent-2); stroke: none; }
.project-chart-alt3 { stroke: var(--accent-2); }

.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.project-body > p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.1rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.project-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}

/* =========================================================
   CONTACT
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  max-width: 720px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-card p { color: var(--text-dim); font-size: 0.9rem; word-break: break-word; }

/* =========================================================
   WHATSAPP FLOATING BUTTON
========================================================= */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 34px -6px rgba(37, 211, 102, 0.65);
}

@media (max-width: 720px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab svg { width: 25px; height: 25px; }
}

/* =========================================================
   CHATBOT
========================================================= */
.chatbot { position: fixed; left: 24px; bottom: 24px; z-index: 850; }

.chatbot-toggle {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #051013;
  box-shadow: 0 12px 28px -8px rgba(124, 92, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chatbot-toggle:hover { transform: translateY(-4px) scale(1.05); }
.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-toggle .chat-icon-close { display: none; }
.chatbot-toggle.open .chat-icon-open { display: none; }
.chatbot-toggle.open .chat-icon-close { display: block; }

.chatbot-panel {
  position: absolute;
  left: 0;
  bottom: 74px;
  width: 460px;
  max-width: calc(100vw - 32px);
  height: 720px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.chatbot-avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  object-fit: cover;
}
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-text h3 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.chatbot-header-text p { font-size: 0.78rem; color: var(--text-dim); }
.chatbot-close {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.chatbot-close:hover { background: var(--surface); color: var(--text); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chatbot-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.chatbot-msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
  align-self: flex-end;
  background: var(--accent-grad);
  color: #051013;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chatbot-quickreplies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.1rem 0.9rem;
}
.chatbot-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chatbot-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.chatbot-chip-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.chatbot-input-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--border);
}
.chatbot-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}
.chatbot-input-row input:focus { outline: none; border-color: var(--accent); }

.chatbot-send {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #051013;
  transition: transform 0.2s ease;
}
.chatbot-send:hover { transform: scale(1.08); }
.chatbot-send svg { width: 17px; height: 17px; }

.chatbot-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--border);
}
.chatbot-lead-form input,
.chatbot-lead-form textarea {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  resize: none;
}
.chatbot-lead-form input:focus,
.chatbot-lead-form textarea:focus { outline: none; border-color: var(--accent); }

.chatbot-lead-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.btn-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.btn-link:hover { color: var(--text); }

.is-hidden { display: none !important; }

@media (max-width: 480px) {
  .chatbot { left: 16px; bottom: 16px; }
  .chatbot-panel {
    width: calc(100vw - 32px);
    height: min(80vh, 680px);
    bottom: 70px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { color: var(--text-faint); font-size: 0.85rem; }

.back-to-top {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.back-to-top:hover { border-color: var(--accent); transform: translateY(-3px); }

/* =========================================================
   SCROLL REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .avatar-ring { margin-bottom: 1rem; }
}

@media (max-width: 720px) {
  .desktop-only { display: none; }
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-link {
    padding: 1.1rem 24px;
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .section { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-canvas { display: none; }
}
