:root {
  --bg-primary: #080808;
  --bg-secondary: #0f0f0f;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-subtle: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  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: 9999;
  opacity: 0.4;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-small {
  width: 13px;
  height: 13px;
}

.background-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-one {
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.018) 0%, transparent 70%);
}

.blob-two {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.012) 0%, transparent 70%);
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom-color: #1a1a1a;
  backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1100px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark .icon {
  width: 16px;
  height: 16px;
}

.logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 0;
}

.menu-button .icon {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 280px;
  max-width: 85vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 72px 32px 40px;
  background: #0f0f0f;
  border-left: 1px solid #1e1e1e;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Backdrop */
.mobile-menu::before {
  content: "";
  position: fixed;
  inset: 0;
  right: 280px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #222;
  border-radius: 8px;
  color: #aaa;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-close .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-link {
  background: none;
  border: 0;
  border-bottom: 1px solid #1a1a1a;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #888;
  letter-spacing: -0.01em;
  padding: 18px 0;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #fff;
}

.mobile-menu .btn-primary {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

.mobile-link:nth-of-type(1) { animation-delay: 0s; }
.mobile-link:nth-of-type(2) { animation-delay: 0.07s; }
.mobile-link:nth-of-type(3) { animation-delay: 0.14s; }
.mobile-link:nth-of-type(4) { animation-delay: 0.21s; }

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: #555;
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

/* Hero */
#hero {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  margin-bottom: 6px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 520px;
  margin-bottom: 40px;
  font-size: 17px;
  line-height: 1.7;
  color: #777;
}

.terminal-bio {
  max-width: 560px;
  margin-bottom: 40px;
  padding: 13px 16px;
  overflow-x: auto;
  white-space: nowrap;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
}

.terminal-user { color: #22c55e; }
.terminal-colon { color: #555; }
.terminal-path { color: #3b82f6; }
.terminal-command { color: #e8e8e8; }
.terminal-string { color: #f59e0b; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 14px;
  color: #aaa;
  font-weight: 500;
}

/* Hero photo */
.hero-photo {
  position: relative;
  flex-shrink: 0;
}

.photo-frame {
  position: relative;
  width: 280px;
  height: 340px;
  overflow: hidden;
  border: 1px solid #222;
  border-radius: 20px;
  background: linear-gradient(145deg, #141414 0%, #0a0a0a 100%);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #191919 0%, #0d0d0d 100%);
  color: #3f3f3f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.6), transparent);
}

.status-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.photo-border {
  position: absolute;
  inset: -8px;
  border: 1px solid #1a1a1a;
  border-radius: 28px;
  pointer-events: none;
}

.floating-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111;
  border: 1px solid #222;
  border-radius: 100px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.scroll-indicator {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #333, transparent);
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.divider-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.section-title {
  margin-bottom: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.section-text {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #777;
}

.section-text strong {
  color: #ccc;
  font-weight: 600;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading .section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 480px;
  font-size: 15px;
  color: #666;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.card:hover {
  border-color: #333;
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.about-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.card-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
}

.card-description {
  font-size: 13px;
  color: #555;
}

/* Skills terminal */
.terminal-window {
  padding: 0;
  overflow: hidden;
  background: #0c0c0c;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #141414;
  border-bottom: 1px solid #1e1e1e;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin: 0 auto;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 12px;
  color: #555;
}

.terminal-body {
  padding: 24px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
}

.terminal-command-line {
  margin-bottom: 20px;
}

/* ── Skill Tree ── */
.skill-tree {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.85;
  margin: 10px 0 6px;
  user-select: none;
}

.tree-root {
  color: #e8e8e8;
  margin-bottom: 2px;
}

.tree-branch {
  color: #444;
}

.tree-pipe {
  color: #333;
}

.tree-category {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.tree-cat-label {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cat-backend  { color: #f59e0b; }
.cat-frontend { color: #3b82f6; }
.cat-tools    { color: #a78bfa; }

.tree-item {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: pre;
}

.tree-file {
  color: #ccc;
  min-width: 120px;
  display: inline-block;
}

.tree-pct {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.tree-pct.mid  { color: #f59e0b; }
.tree-pct.high { color: #22c55e; }
.tree-pct.full { color: #34d399; }

.tree-summary {
  margin-top: 8px;
  color: #444;
  font-size: 12px;
}

/* ── Terminal hint ── */
.terminal-hint {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 12px;
  color: #3a3a3a;
  margin: 10px 0 6px;
  border-top: 1px solid #1a1a1a;
  padding-top: 10px;
}

.hint-cmd {
  color: #22c55e;
  cursor: pointer;
  transition: color 0.15s;
}

.hint-cmd:hover {
  color: #4ade80;
}

/* ── Interactive input ── */
.terminal-input-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 4px;
}

.terminal-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  color: #e8e8e8;
  caret-color: #22c55e;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* ── Terminal output blocks ── */
.terminal-output-block {
  margin: 4px 0 8px;
}

.terminal-output-echo {
  display: flex;
  align-items: center;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2px;
}

.terminal-output-text {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre;
  color: #aaa;
}

.terminal-output-text .out-skill   { color: #ccc; min-width: 120px; display: inline-block; }
.terminal-output-text .out-pct     { color: #22c55e; }
.terminal-output-text .out-bar-mid { color: #f59e0b; }
.terminal-output-text .out-bar-hi  { color: #22c55e; }
.terminal-output-text .out-bar-full{ color: #34d399; }
.terminal-output-text .out-error   { color: #ef4444; }
.terminal-output-text .out-info    { color: #3b82f6; }
.terminal-output-text .out-muted   { color: #444; }

.terminal-cursor {
  color: #22c55e;
  animation: blink 1.1s step-end infinite;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

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

.project-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.19);
  border-radius: 10px;
}

.project-type {
  padding: 3px 8px;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
}

.project-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #e8e8e8;
}

.project-description {
  flex: 1;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1e1e1e;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: #555;
}

.project-footer {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #1a1a1a;
}

.project-footer a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-footer a:hover {
  color: #aaa;
}

.project-footer .icon {
  width: 13px;
  height: 13px;
}

.github-cta {
  margin-top: 48px;
  text-align: center;
}

/* Contact */
.contact-section {
  padding-bottom: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-title {
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-description {
  max-width: 380px;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-link:hover {
  border-color: #444;
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #222;
  border-radius: 10px;
}

.contact-icon .icon {
  width: 17px;
  height: 17px;
}

.whatsapp-icon {
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.2);
}

.contact-name {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
}

.contact-value {
  font-size: 13px;
  color: #555;
}

.contact-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #333;
}

.quick-info-card {
  padding: 32px;
}

.quick-info-title {
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #444;
}

.quick-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
}

.quick-info-row:last-child {
  border-bottom: 0;
}

.quick-info-row span {
  font-size: 13px;
  color: #555;
}

.quick-info-row strong {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  text-align: right;
}

.quick-info-action {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
}

/* Footer */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid #111;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
}

.footer-mark .icon {
  width: 13px;
  height: 13px;
}

.footer-brand span {
  font-size: 13px;
  color: #444;
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-socials a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #888;
}

.footer-note {
  font-size: 12px;
  color: #2a2a2a;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.is-visible {
  animation: fadeUp 0.7s ease forwards;
}

/* ═══════════════════════════════════════
   RESPONSIVE — tablet (≤ 900px)
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — mobile (≤ 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .hidden-mobile { display: none !important; }
  .show-mobile   { display: flex !important; }

  /* Hero */
  #hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr !important;
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Photo — shown on mobile, centered above content, compact */
  .hero-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
    order: -1;          /* appears above the text */
  }

  .photo-frame {
    width: 140px;
    height: 170px;
    border-radius: 14px;
  }

  .profile-avatar {
    font-size: 40px;
  }

  .photo-border {
    border-radius: 20px;
    inset: -6px;
  }

  .floating-label {
    font-size: 11px;
    padding: 4px 12px;
    bottom: -16px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-description {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .terminal-bio {
    font-size: 12px;
    padding: 11px 14px;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-meta {
    gap: 20px;
    margin-top: 36px;
    flex-wrap: wrap;
  }

  /* Sections */
  .section {
    padding: 56px 20px;
  }

  .divider-wrap {
    padding: 0 20px;
  }

  .section-label-row {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 16px;
  }

  /* About */
  .two-column-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .about-card-list {
    gap: 12px;
  }

  .about-card {
    padding: 16px;
  }

  /* Skills terminal */
  .terminal-window {
    border-radius: 10px;
  }

  .terminal-body {
    padding: 16px 14px;
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-command-line {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .skill-tree {
    font-size: 12px;
    line-height: 1.8;
    overflow-x: auto;
  }

  .tree-file { min-width: 100px; }

  .terminal-hint {
    font-size: 11px;
    white-space: normal;
    line-height: 1.8;
  }

  .terminal-input-line { font-size: 12px; }
  .terminal-input-field { font-size: 12px; }

  .terminal-output-echo { font-size: 12px; }
  .terminal-output-text {
    font-size: 12px;
    overflow-x: auto;
    display: block;
  }
  .terminal-output-text .out-skill { min-width: 100px; }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card {
    padding: 20px;
  }

  .github-cta {
    margin-top: 32px;
  }

  /* Contact */
  .contact-section {
    padding-bottom: 80px;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .contact-description {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: 14px;
  }

  .quick-info-card {
    padding: 20px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — small mobile (≤ 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  /* Nav */
  .nav-inner {
    padding: 0 16px;
  }

  /* Hero */
  #hero {
    padding: 88px 16px 48px;
  }

  .photo-frame {
    width: 120px;
    height: 146px;
    border-radius: 12px;
  }

  .profile-avatar {
    font-size: 34px;
  }

  .hero-photo {
    margin-bottom: 28px;
  }

  .hero-kicker {
    font-size: 11px;
  }

  .hero-title {
    font-size: clamp(32px, 12vw, 48px);
    letter-spacing: -0.03em;
  }

  .hero-description {
    font-size: 14px;
  }

  .terminal-bio {
    font-size: 11px;
    padding: 10px 12px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    gap: 14px;
    margin-top: 28px;
  }

  .meta-value {
    font-size: 13px;
  }

  /* Sections */
  .section {
    padding: 44px 16px;
  }

  .divider-wrap {
    padding: 0 16px;
  }

  .section-title {
    font-size: clamp(22px, 8vw, 32px);
  }

  .section-text {
    font-size: 14px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* About cards */
  .card-title {
    font-size: 13px;
  }

  .card-description {
    font-size: 12px;
  }

  /* Skills terminal */
  .terminal-body {
    padding: 12px 10px;
    font-size: 11px;
  }

  .terminal-command-line {
    font-size: 11px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow-x: auto;
  }

  .skill-tree {
    font-size: 10.5px;
    line-height: 1.75;
  }

  .tree-file  { min-width: 82px; }
  .tree-pct   { font-size: 10px; }
  .tree-summary { font-size: 10px; }

  .terminal-hint {
    font-size: 10px;
  }

  .terminal-input-line,
  .terminal-input-field {
    font-size: 11px;
  }

  .terminal-output-echo,
  .terminal-output-text {
    font-size: 11px;
  }

  .terminal-output-text .out-skill { min-width: 82px; }

  /* Project cards */
  .project-card {
    padding: 16px;
  }

  .project-title {
    font-size: 14px;
  }

  .project-description {
    font-size: 13px;
  }

  /* Contact */
  .contact-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .contact-link {
    padding: 14px 16px;
    gap: 10px;
  }

  .contact-name,
  .contact-value {
    font-size: 12px;
  }

  .quick-info-card {
    padding: 16px;
  }

  .quick-info-row {
    padding: 11px 0;
    gap: 12px;
  }

  .quick-info-row span,
  .quick-info-row strong {
    font-size: 12px;
  }

  /* Footer */
  footer {
    padding: 24px 16px;
  }

  .footer-brand span {
    font-size: 12px;
  }

  .footer-note {
    display: none;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 11px 20px;
    font-size: 13px;
  }
}