/* ============================================================
   ADRIANO ABREU — PORTFOLIO
   Dark dev aesthetic | Inter + JetBrains Mono
   ============================================================ */

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

:root {
  --bg:         #0d1117;
  --bg-2:       #161b22;
  --bg-3:       #1c2128;
  --border:     rgba(48, 54, 61, 0.8);
  --border-glow:rgba(16, 185, 129, 0.25);

  --text:       #e6edf3;
  --text-muted: #7d8590;
  --text-dim:   #484f58;

  --accent:     #10b981;   /* emerald */
  --accent-2:   #34d399;
  --blue:       #58a6ff;
  --purple:     #a371f7;
  --yellow:     #e3b341;
  --red:        #ff7b72;

  --grad: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.6);
}

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

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

/* Grain texture */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── UTILITIES ───────────────────────────────────────────── */
.mono        { font-family: var(--font-mono); }
.accent      { color: var(--accent); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -.02em;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,.35);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── NAVBAR ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
#navbar.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color .2s;
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #000 !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

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

/* Dot-grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(48,54,61,.6) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(16,185,129,.06) 0%, transparent 70%),
              radial-gradient(ellipse at 10% 80%, rgba(88,166,255,.05) 0%, transparent 60%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-greeting {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.hero-role {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 1.6em;
}
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 100;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-socials {
  display: flex;
  gap: 1rem;
}
.hero-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: all .2s;
}
.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-socials .fa-whatsapp {
  font-size: 1.1rem;
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}
.photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--blue), var(--purple), var(--accent));
  animation: spin 8s linear infinite;
  z-index: 0;
}
.photo-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}
.photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 70%);
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 4px solid var(--bg);
}
.photo-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
  color: var(--accent);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-dim);
  font-size: .75rem;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* ── ABOUT ───────────────────────────────────────────────── */
#about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1rem;
}
.about-text p strong { color: var(--text); }
.about-quick {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.5rem;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
}
.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── SKILLS ──────────────────────────────────────────────── */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-group {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.skill-group:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}
.skill-group-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .3rem .65rem;
  font-size: .8rem;
  color: var(--text-muted);
  transition: all .2s;
  font-family: var(--font-mono);
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16,185,129,.07);
}
.skill-icon-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── PROCESS ─────────────────────────────────────────────── */
#process { background: var(--bg-2); }
.process-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
  margin-top: -.5rem;
  margin-bottom: 2.5rem;
}
.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stepper-track {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--blue) 50%,
    var(--purple) 100%
  );
  opacity: .35;
  z-index: 0;
}
.stepper-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.stepper-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  transition: border-color .25s, box-shadow .25s;
}
.stepper-step:hover .stepper-node {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, .25);
}
.stepper-num {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: .62rem;
  background: var(--accent);
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
}
.stepper-icon {
  font-size: 1.15rem;
  color: var(--accent);
}
.stepper-content {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  width: 100%;
  flex: 1;
  transition: border-color .25s, transform .25s;
}
.stepper-step:hover .stepper-content {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}
.stepper-title {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: .55rem;
  line-height: 1.35;
}
.stepper-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── EXPERIENCE ──────────────────────────────────────────── */
#experience { background: var(--bg); }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color .2s, background .2s;
}
.timeline-item {
  position: relative;
}
.timeline-item.active .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(16,185,129,.5);
}
.timeline-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s;
}
.timeline-item:hover .timeline-card { border-color: var(--border-glow); }
.tcard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.tcard-role {
  font-size: 1.15rem;
  font-weight: 700;
}
.tcard-extra {
  font-weight: 400;
  font-size: .9rem;
  color: var(--accent);
}
.tcard-company {
  color: var(--accent);
  font-size: .9rem;
  font-family: var(--font-mono);
  margin-top: .2rem;
}
.tcard-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}
.tcard-period {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.active-badge {
  background: rgba(16,185,129,.15);
  color: var(--accent);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tcard-bullets {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.tcard-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.tcard-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.tcard-bullets li strong { color: var(--text); }
.tcard-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tcard-stack span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── PROJECTS ────────────────────────────────────────────── */
#projects { background: var(--bg); }

/* Featured project */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}
.project-featured-info,
.project-featured-visual {
  min-width: 0;
  max-width: 100%;
}
.project-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.project-featured:hover { border-color: var(--border-glow); }
.proj-label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.proj-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.proj-desc-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.proj-desc-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: .5rem;
  overflow-wrap: break-word;
}
.proj-desc-card p:last-child { margin-bottom: 0; }
.proj-desc-card strong { color: var(--text); }
.proj-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}
.pf-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  height: 100%;
  transition: border-color .2s;
}
.pf-item:hover {
  border-color: var(--border-glow);
}
.pf-item i {
  font-size: .9rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.pf-item div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.pf-item strong {
  font-size: .875rem;
}
.pf-item span {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.proj-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.proj-tech-row span {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  color: var(--accent);
  border-radius: 4px;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-family: var(--font-mono);
}

/* Code window */
.code-window {
  background: #010409;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
  max-width: 100%;
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.code-window-title {
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: .25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.code-block {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.75;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: #c9d1d9;
  max-width: 100%;
}
.code-block code {
  display: block;
  white-space: pre;
  min-width: min-content;
}
.code-comment { color: #6e7681; font-style: italic; }
.code-kw      { color: var(--purple); }
.code-fn      { color: var(--blue); }
.code-str     { color: #a5d6ff; }

.proj-arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.arch-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.arch-arrow { color: var(--accent); font-size: .9rem; }

/* Project cards grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, transform .2s;
}
.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pc-icon { font-size: 1.5rem; }
.pc-links a {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color .2s;
}
.pc-links a:hover { color: var(--accent); }
.pc-title {
  font-size: 1rem;
  font-weight: 700;
}
.pc-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.pc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pc-stack span {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── EDUCATION ───────────────────────────────────────────── */
#education { background: var(--bg-2); }
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.edu-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color .2s;
}
.edu-card.main-edu { border-color: rgba(16,185,129,.2); }
.edu-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.edu-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.edu-institution {
  font-size: .85rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: .4rem;
}
.edu-period {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.edu-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cert-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: .75rem;
  transition: border-color .2s, transform .2s;
}
.cert-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.cert-card.special { border-color: rgba(88,166,255,.2); }
.cert-icon {
  font-size: 1.1rem;
  margin-top: .1rem;
}
.cert-info h4 {
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: .1rem;
}
.cert-provider {
  font-size: .75rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: .2rem;
}
.cert-detail {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: .4rem;
}
.cert-year {
  font-size: .7rem;
  color: var(--text-dim);
}

/* ── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--bg); }
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  margin-top: -.5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all .2s;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16,185,129,.1);
}
.contact-card > i {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.contact-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.contact-value {
  font-size: .875rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.footer-code {
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: .75rem;
  color: var(--text-dim);
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid       { grid-template-columns: repeat(2, 1fr); }
  .stepper           { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stepper-track     { display: none; }
  .project-featured  {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    gap: 2rem;
  }
  .proj-features     { grid-template-columns: repeat(2, 1fr); }
  .projects-grid     { grid-template-columns: repeat(2, 1fr); }
  .edu-grid          { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 1.25rem; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: auto;
    max-height: 600px;
    background: linear-gradient(
      180deg,
      rgba(13, 17, 23, 0.98) 0%,
      rgba(13, 17, 23, 0.92) 65%,
      rgba(13, 17, 23, 0.0) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2rem 3rem;
    z-index: 99;
  }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem 4rem;
  }
  .hero-photo-wrap {
    order: -1;
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }

  .about-grid  { grid-template-columns: 1fr; }
  .about-stats { order: -1; grid-template-columns: repeat(4, 1fr); }
  .stat-card   { padding: .85rem .5rem; }
  .stat-num    { font-size: 1.5rem; }

  .skills-grid     { grid-template-columns: 1fr; }
  .stepper {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 1.5rem;
  }
  .stepper-track {
    display: block;
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--accent) 0%,
      var(--blue) 50%,
      var(--purple) 100%
    );
  }
  .stepper-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    padding-bottom: 2rem;
  }
  .stepper-step:last-child { padding-bottom: 0; }

  .project-featured {
    overflow: visible;
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }
  .project-featured-info,
  .project-featured-visual {
    width: 100%;
  }
  .proj-title {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    line-height: 1.35;
  }
  .proj-desc-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .proj-desc-card p {
    font-size: .85rem;
  }
  .proj-tech-row span {
    font-size: .7rem;
  }
  .code-block {
    font-size: .68rem;
    padding: .85rem;
  }
  .proj-arch {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
    padding: .65rem .75rem;
  }
  .arch-item span {
    font-size: .75rem;
  }
  .proj-features   { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }
  .certs-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }

  .section-inner { padding: 4rem 1.25rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .tcard-header { flex-direction: column; align-items: flex-start; }
  .tcard-meta { align-items: flex-start; }
  .project-featured {
    padding: 1rem .75rem;
    border-radius: var(--radius-sm);
  }
  .proj-label {
    font-size: .68rem;
  }
  .pf-item {
    padding: .85rem;
  }
}
