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

:root {
  --black:         #080a0c;
  --surface:       #0d1014;
  --surface2:      #131820;
  --surface3:      #1a2030;
  --border:        rgba(180, 160, 100, 0.12);
  --border-hover:  rgba(180, 160, 100, 0.3);
  --gold:          #c9a84c;
  --gold-dim:      #7a6030;
  --gold-glow:     rgba(201, 168, 76, 0.15);
  --green-terminal:#2aff8f;
  --text:          #e8e2d0;
  --text-muted:    #6b6655;
  --text-dim:      #4a4538;
  --serif:         'DM Serif Display', Georgia, serif;
  --mono:          'JetBrains Mono', 'Courier New', monospace;
  --nav-height:    64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

/* SCANLINE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* NOISE */
body::after {
  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: 9998;
  opacity: 0.4;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: rgba(8, 10, 12, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo em { color: var(--gold); }
.nav-logo span { color: var(--green-terminal); font-family: var(--mono); font-size: 1rem; }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::before {
  content: '> ';
  color: var(--green-terminal);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before { opacity: 1; }

  /* ============================================================
   DOWNLOAD CV BUTTON (nav)
   ============================================================ */
	.btn-download-cv {
	  display: inline-flex;
	  align-items: center;
	  gap: 0.4rem;
	  padding: 0.35rem 0.85rem;
	  border: 1px solid var(--gold-dim);
	  color: var(--gold);
	  font-family: var(--mono);
	  font-size: 0.68rem;
	  font-weight: 500;
	  letter-spacing: 0.1em;
	  text-transform: uppercase;
	  text-decoration: none;
	  transition: all 0.2s;
	  flex-shrink: 0;
	  white-space: nowrap;
	}
	
	.btn-download-cv:hover {
	  background: var(--gold);
	  color: var(--black);
	  border-color: var(--gold);
	}
	
	.btn-download-cv__icon {
	  font-size: 0.85rem;
	  line-height: 1;
	  transition: transform 0.2s;
	}
	
	.btn-download-cv:hover .btn-download-cv__icon {
	  transform: translateY(2px);
	}
	
	/* Esconde o botão da nav em mobile (já tem na hero) */
	@media (max-width: 768px) {
	  .btn-download-cv { display: none; }
	}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Hamburger (hidden on desktop) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.nav-hamburger:hover { border-color: var(--border-hover); }

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text-muted);
  transition: all 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }

/* ============================================================
   STATUS DOT
   ============================================================ */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-terminal);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-dim);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-name em { color: var(--gold); font-style: italic; }

.hero-title-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-role      { font-size: 0.78rem; color: var(--green-terminal); letter-spacing: 0.08em; }
.hero-separator { color: var(--text-dim); }

.hero-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

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

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover   { background: #e8c060; transform: translateY(-1px); }
.btn-primary:disabled{ opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

/* HERO RIGHT — terminal */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
}

.terminal-window {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.terminal-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), transparent 50%, rgba(61,220,132,0.1));
  z-index: -1;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.t-dot          { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red      { background: #ff5f57; }
.t-dot.yellow   { background: #febc2e; }
.t-dot.green    { background: #28c840; }

.t-title {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.9;
  min-height: 320px;
}

.t-prompt { color: var(--green-terminal); }
.t-cmd    { color: var(--text); }
.t-output { color: var(--text-muted); display: block; }
.t-string { color: #f4a261; }
.t-key    { color: var(--gold); }
.t-num    { color: #a8d8a8; }
.t-bool   { color: #c678dd; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green-terminal);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: background 0.3s;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.stat-item:hover { background: var(--gold-glow); }

.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section { padding: 6rem 4rem; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.section-tag {
  font-size: 0.65rem;
  color: var(--green-terminal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text);
  line-height: 1.1;
}

.section-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 20px;
}

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

.about-bio { font-size: 0.9rem; line-height: 2; color: var(--text-muted); }
.about-bio p { margin-bottom: 1.5rem; }
.about-bio strong { color: var(--text); font-weight: 500; }

.about-highlight {
  color: var(--gold);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1em;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: default;
}

.skill-item:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface2); }
.skill-icon { color: var(--green-terminal); font-size: 0.7rem; }

/* ============================================================
   EDUCATION
   ============================================================ */
.education-section { background: var(--surface); }

.edu-list { display: flex; flex-direction: column; }

.edu-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.edu-item:first-child { border-top: 1px solid var(--border); }

.edu-period {
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.edu-institution {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.edu-badge {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edu-badge.cert {
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

.edu-degree {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.edu-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 620px;
}

.edu-desc strong { color: var(--text); font-weight: 500; }

.edu-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-section { background: var(--black); }

.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-period  { font-size: 0.7rem; color: var(--gold-dim); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.exp-company { font-size: 0.8rem; color: var(--text-muted); }

.exp-role {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.exp-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* shared tag pill */
.tag {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: default;
}

.tag:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--black);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  text-decoration: none;
  display: block;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.project-card:hover { background: var(--surface); }
.project-card:hover::before { transform: scaleX(1); }

.project-num  { font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.2em; margin-bottom: 1rem; }

.project-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-desc  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.project-stack { font-size: 0.65rem; color: var(--green-terminal); letter-spacing: 0.1em; }

.project-arrow {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  color: var(--text-dim);
  font-size: 1rem;
  transition: all 0.2s;
}

.project-card:hover .project-arrow { color: var(--gold); transform: translate(2px, -2px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-heading em { color: var(--gold); }

.contact-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.contact-link:hover { color: var(--gold); }
.contact-link:hover .cl-icon { color: var(--green-terminal); }

.cl-icon  { color: var(--text-dim); font-size: 0.75rem; width: 16px; flex-shrink: 0; }
.cl-label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-left: auto; }

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row     { display: flex; flex-direction: column; gap: 0.3rem; }

.form-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: none;
}

.form-input:focus, .form-textarea:focus { border-color: var(--gold-dim); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 120px; }

.form-feedback {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  border: 1px solid;
}

.form-feedback.success {
  color: var(--green-terminal);
  border-color: rgba(42, 255, 143, 0.3);
  background: rgba(42, 255, 143, 0.05);
}

.form-feedback.error {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left { font-size: 0.7rem; color: var(--text-dim); }
.footer-left span { color: var(--gold); }

.footer-right {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 300;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover   { background: #e8c060; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  nav     { padding: 0 2rem; }
  section { padding: 5rem 2rem; }
  footer  { padding: 2rem; }

  .hero                  { grid-template-columns: 1fr; }
  .hero-right            { display: none; }
  .hero-left             { padding: 7rem 2rem 3rem; }

  .about-grid            { gap: 2.5rem; }
  .contact-grid          { gap: 3rem; }
  .edu-item              { grid-template-columns: 180px 1fr; gap: 2rem; }
  .exp-item              { grid-template-columns: 160px 1fr; gap: 2rem; }
  .projects-grid         { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; height: var(--nav-height); }

  /* hide desktop items */
  .nav-status { display: none; }

  /* show hamburger */
  .nav-hamburger { display: flex; }

  /* Mobile menu */
  .nav-links {
    display: none;
    position: fixed;
    /*top: var(--nav-height); */
    top: 50px;
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8, 10, 12, 0.98);
    backdrop-filter: blur(20px);
    z-index: 180;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    padding: 2rem 0;
  }

  .nav-links.open { 
    display: flex !important; 
    height: 100vh;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
  }

  .nav-links li:first-child a { border-top: 1px solid var(--border); }
  .nav-links a::before { display: none; }
  .nav-links a:hover { color: var(--gold); background: rgba(201,168,76,0.05); }


  /* sections */
  section { padding: 4rem 1.25rem; }
  footer  { padding: 1.5rem 1.25rem; flex-direction: column; text-align: center; }

  .hero-left   { padding: 6rem 1.25rem 3rem; }
  .hero-name   { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero-desc   { max-width: 100%; }
  .hero-actions{ flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  /* stats */
  .stats-bar { flex-direction: column; }
  .stat-item { min-width: 100%; }
  .stat-item::after { display: none !important; }
  .stat-item:not(:last-child) { border-bottom: 1px solid var(--border); }

  /* about */
  .about-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }

  /* education */
  .edu-item    { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }

  /* experience */
  .exp-item    { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }

  /* projects */
  .projects-grid { grid-template-columns: 1fr; }

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

  .scroll-top-btn { bottom: 1.25rem; right: 1.25rem; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 420px)
   ============================================================ */
@media (max-width: 420px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-name   { font-size: clamp(2.4rem, 10vw, 3rem); }
  .stat-num    { font-size: 2.2rem; }
  .nav-links a { font-size: 0.82rem; padding: 0.9rem 1.5rem; }
}

