/* =============================================
   VARIÁVEIS E RESET
   ============================================= */
:root {
  --navbar-scrolled: rgba(11, 11, 11, 0.93);
  --bg:           #0b0b0b;
  --bg-alt:       #111111;
  --surface:      #181818;
  --surface-up:   #202020;
  --border:       #252525;
  --border-mid:   #333333;

  --accent:       #c8622e;
  --accent-light: #e07848;
  --accent-dim:   rgba(200, 98, 46, 0.10);

  --text:         #e6dfd5;
  --text-dim:     #7e7870;
  --text-muted:   #3d3a37;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius:    10px;
  --radius-sm: 6px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --navbar-scrolled: rgba(245, 242, 238, 0.93);
  --bg:           #f5f2ee;
  --bg-alt:       #ede9e3;
  --surface:      #e4dfd8;
  --surface-up:   #d9d3cb;
  --border:       #d0c9c0;
  --border-mid:   #b8b0a6;

  --accent:       #c8622e;
  --accent-light: #a84e22;
  --accent-dim:   rgba(200, 98, 46, 0.10);

  --text:         #1a1714;
  --text-dim:     #5c564f;
  --text-muted:   #9e968d;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--navbar-scrolled);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }

[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dim);
  transition: 0.25s var(--ease);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

#hero-canvas {
  width: 100%;
  height: 420px;
  opacity: 0.85;
  border-radius: var(--radius);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  border: 1px solid var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}


.hero-footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* typed title hidden — functionality kept in JS but no longer displayed */
.hero-title { display: none; }
.cursor-blink { display: none; }

/* =============================================
   BOTÕES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-mid);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

/* =============================================
   SEÇÕES
   ============================================= */
section {
  padding: 7rem 2.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header h2 em {
  font-style: normal;
  color: var(--accent);
}

/* =============================================
   SOBRE MIM
   ============================================= */
#about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-avatar {
  position: relative;
}

.avatar-frame {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.avatar-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}

.avatar-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.avatar-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.avatar-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.avatar-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1rem;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   SKILLS
   ============================================= */
#skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-category {
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.skill-category:hover {
  background: var(--surface);
}

.skill-category:last-child,
.skill-category:nth-child(4n) {
  border-right: none;
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.skill-item {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.skill-category:hover .skill-item {
  color: var(--text);
}

.skill-category:hover .skill-item::before {
  opacity: 1;
}

/* =============================================
   EXPERIÊNCIA & FORMAÇÃO
   ============================================= */
#experience { background: var(--bg-alt); }
#education  { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--border-mid);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.87rem;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.timeline-card:hover {
  border-color: var(--border-mid);
  transform: translateX(3px);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.timeline-card .company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.timeline-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  background: var(--surface-up);
  color: var(--text-dim);
  border: 1px solid var(--border-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================
   PROJETOS
   ============================================= */
#projects { background: var(--bg-alt); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.project-card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}

.project-card:hover {
  background: var(--surface);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  border: 1px solid var(--border-mid);
  transition: all 0.2s;
}

.project-link:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
  flex: 1;
}

/* =============================================
   CHAT
   ============================================= */
#chat { background: var(--bg); }

.chat-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.chat-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.chat-intro p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.chat-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-agent-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-container {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header-dots {
  display: flex;
  gap: 5px;
}

.chat-header-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chat-header-dots span:nth-child(1) { background: #ff5f57; }
.chat-header-dots span:nth-child(2) { background: #febc2e; }
.chat-header-dots span:nth-child(3) { background: #28c840; }

.chat-header-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
  letter-spacing: 0.05em;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border-mid);
  background: var(--surface);
}

.message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
}

.message.user .message-bubble {
  background: var(--accent-dim);
  border-color: rgba(200, 98, 46, 0.25);
}

.message.assistant .message-bubble {
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
}

.message.user .message-bubble {
  border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.25rem 1rem;
}

.suggestion-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.suggestion-btn:hover {
  background: var(--surface-up);
  color: var(--text);
  border-color: var(--text-dim);
}

.chat-api-warning {
  padding: 0.7rem 1.25rem;
  background: rgba(200, 98, 46, 0.05);
  border-top: 1px solid rgba(200, 98, 46, 0.15);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-align: center;
}

.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  transition: border-color 0.2s;
  outline: none;
}

#chat-input:focus {
  border-color: var(--accent);
}

#chat-input::placeholder {
  color: var(--text-muted);
}

#chat-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

#chat-send:hover {
  background: var(--accent-light);
}

#chat-send:disabled {
  background: var(--border-mid);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* =============================================
   CONTATO
   ============================================= */
#contact { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-text p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.975rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-link:hover {
  color: var(--text);
  border-color: var(--border-mid);
  transform: translateX(3px);
}

.contact-link .link-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--surface-up);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--border-mid);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
}

.contact-card .code-comment { color: var(--text-muted); }
.contact-card .code-key { color: #a08060; }
.contact-card .code-string { color: #7aab80; }
.contact-card .code-brace { color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 2rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--accent);
}

/* =============================================
   REVEAL ON SCROLL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .hero-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill-category:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 11, 0.98);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  section { padding: 5rem 1.5rem; }
  #hero { padding: 6rem 1.5rem 3rem; }
  .hero-name { white-space: normal; font-size: clamp(2rem, 8vw, 3rem); }
  .hero-inner { grid-template-columns: 1fr; }
  #hero-canvas { display: none; }

  .avatar-frame { max-width: 150px; }
  .chat-messages { height: 300px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-category { border-right: none !important; }
}

@media (max-width: 480px) {
  .hero-footer {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
