/* ============================================================
   M. Saiful Rizal — Portfolio Stylesheet
   Light mode default + dark mode toggle
   ============================================================ */

:root {
  /* Light mode tokens */
  --bg: #ffffff;
  --bg-2: #f7f9fc;
  --bg-3: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --border: #e5e9f0;
  --border-strong: #d6dee9;

  --text: #0c1430;
  --text-2: #3b4565;
  --text-3: #6b7693;
  --text-muted: #97a1bc;

  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-soft: #e0e9ff;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --success: #10b981;
  --warning: #f59e0b;

  --grid-line: rgba(37, 99, 235, 0.08);
  --grid-line-strong: rgba(37, 99, 235, 0.18);
  --node-color: rgba(37, 99, 235, 0.9);

  --shadow-sm: 0 1px 2px rgba(12, 20, 48, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(12, 20, 48, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(12, 20, 48, 0.18);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 20px 50px -20px rgba(37, 99, 235, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #060912;
  --bg-2: #0a1020;
  --bg-3: #0d1426;
  --surface: #0f1729;
  --surface-2: #131c33;
  --border: #1f2a44;
  --border-strong: #2a385a;

  --text: #eaf0ff;
  --text-2: #b6c0d8;
  --text-3: #8390ad;
  --text-muted: #5d6783;

  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.5);

  --grid-line: rgba(99, 162, 255, 0.06);
  --grid-line-strong: rgba(99, 162, 255, 0.18);
  --node-color: rgba(120, 180, 255, 1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 20px 50px -20px rgba(59, 130, 246, 0.45);
}

/* -------- Skip nav (accessibility) -------- */
.skip-nav {
  position: absolute;
  top: -9999px;
  left: 8px;
  z-index: 9999;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-nav:focus { top: 0; }

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: white; }

/* -------- Layout helpers -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section {
  position: relative;
  padding: 120px 0;
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 18px;
  color: var(--text);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}
.section-head { margin-bottom: 64px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  padding: 12px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* desktop: hide nav-links on mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============================================================
   MOBILE NAV MENU
   ============================================================ */

/* hamburger — hidden on desktop, shown on mobile via media query below */
.nav-mobile-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.nav-mobile-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.2s ease;
  transform-origin: center;
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu panel — hidden by default, expands when .open */
.nav-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-mobile-menu.open {
  max-height: 460px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-mobile-inner {
  padding-top: 4px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile-links {
  list-style: none;
  padding: 4px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-mobile-links li:last-child a { border-bottom: none; }
.nav-mobile-links li a:hover { color: var(--accent); padding-left: 6px; }
.nav-mobile-links li a::after {
  content: "→";
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-mobile-links li a:hover::after { color: var(--accent); transform: translateX(4px); }

.nav-mobile-cta {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

/* show hamburger on mobile — MUST come after .nav-mobile-toggle { display: none } */
@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px var(--accent-glow);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 40%);
  pointer-events: none;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
}
.hero-3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent, var(--bg) 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero { padding-top: 120px; padding-bottom: 60px; }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 28px;
  white-space: nowrap;
}
.status-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.status-dot::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.35;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--text);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 0 36px;
}
@media (max-width: 960px) { .hero-sub { margin-inline: auto; } }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
@media (max-width: 960px) { .hero-actions { justify-content: center; } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 540px;
}
@media (max-width: 960px) { .hero-stats { margin-inline: auto; } }
.stat-num {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.4;
}

/* Hero portrait */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 560px;
}
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--bg-2), var(--surface));
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(160deg, var(--accent), transparent 50%, var(--accent-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: blur(20px) saturate(0.6);
  opacity: 0;
  transform: scale(1.05);
  transition: filter 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portrait-img.loaded {
  filter: blur(0) saturate(1);
  opacity: 1;
  transform: scale(1);
}
.portrait-frame:hover .portrait-img {
  transform: scale(1.03);
  filter: brightness(1.04) saturate(1.1);
}

.portrait-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 60%, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
}

/* Floating badges around portrait */
.portrait-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  z-index: 4;
  animation: float 6s ease-in-out infinite;
}
.portrait-badge svg { width: 18px; height: 18px; color: var(--accent); }
.badge-1 { top: 20%; left: -8%; animation-delay: 0s; }
.badge-2 { bottom: 28%; right: -10%; animation-delay: 1.5s; }
.badge-3 { bottom: 8%; left: 5%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 480px) {
  .portrait-badge { padding: 8px 12px; font-size: 12px; }
  .badge-1 { left: 0; }
  .badge-2 { right: 0; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-bio p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 18px;
}
.about-bio p:first-of-type {
  font-size: 1.18rem;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

/* About profile card with photo */
.about-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}
.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.about-photo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(160deg, var(--bg-2), var(--surface-2));
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
  pointer-events: none;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-card:hover .about-photo img { transform: scale(1.08); }
.about-card-meta { flex: 1; min-width: 0; }
.about-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.about-role {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 10px;
  font-family: var(--font-mono);
}
.about-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.about-card-tags .tech-tag {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.about-card-tags .tech-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.highlight {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.highlight:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.highlight-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.highlight-icon svg { width: 22px; height: 22px; }
.highlight h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.highlight p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section { background: var(--bg-2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}
.skill-card:hover::before { transform: scaleX(1); }

.skill-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.skill-icon svg { width: 28px; height: 28px; }
.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.skill-card > p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 24px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   TERMINAL
   ============================================================ */
.terminal-section {
  padding-top: 0;
}
.terminal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .terminal-wrap { grid-template-columns: 1fr; gap: 40px; }
}
.terminal-intro h2 { margin-top: 16px; }
.terminal-tips {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.terminal-tips strong {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.terminal-cmd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cmd-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.18s;
}
.cmd-chip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.terminal {
  background: #0a0e1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.2);
  font-family: var(--font-mono);
  position: relative;
}
[data-theme="dark"] .terminal {
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.3);
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #111726;
  border-bottom: 1px solid #1c2336;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c941; }
.terminal-title {
  font-size: 12px;
  color: #7a86a3;
  letter-spacing: 0.02em;
}
.terminal-body {
  padding: 20px 22px;
  height: 380px;
  overflow-y: auto;
  color: #c8d4e8;
  font-size: 13.5px;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: #1f2a44 transparent;
}
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: #1f2a44; border-radius: 3px; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt {
  color: #5eead4;
  user-select: none;
}
.term-host { color: #93c5fd; }
.term-path { color: #c084fc; }
.term-cmd { color: #f8fafc; }
.term-comment { color: #64748b; }
.term-key { color: #fbbf24; }
.term-ok { color: #4ade80; }
.term-err { color: #f87171; }
.term-cyan { color: #67e8f9; }
.term-dim { color: #94a3b8; }

.term-input-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* Terminal easter eggs */
.term-photo {
  margin: 12px 0 16px;
  padding: 14px;
  background: rgba(94, 234, 212, 0.04);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 10px;
  max-width: 320px;
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.term-photo-img {
  width: 110px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #0a0e1a;
}
.term-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: contrast(1.08) saturate(1.1);
}
.term-photo-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(94, 234, 212, 0.06) 50%, transparent 100%);
  background-size: 100% 4px;
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: scanlines 6s linear infinite;
}
@keyframes scanlines {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.term-photo-info {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c8d4e8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.term-photo-info .label { color: #5eead4; }
.term-photo-info .value { color: #f8fafc; word-break: break-word; }

/* Neofetch styled output */
.term-neofetch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin: 10px 0 14px;
  padding: 4px 0;
}
.term-neofetch-art {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.1;
  color: #3b82f6;
  white-space: pre;
  letter-spacing: 0;
}
.term-neofetch-info { font-size: 12.5px; line-height: 1.65; }
.term-neofetch-info .label { color: #5eead4; font-weight: 600; }
.term-neofetch-info .name {
  color: #f8fafc;
  font-weight: 700;
  font-size: 13.5px;
}
.term-neofetch-info .sep {
  color: #1f2a44;
  font-size: 13px;
  letter-spacing: -1px;
}
.term-neofetch-info .colors {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}
.term-neofetch-info .colors span {
  width: 14px; height: 14px;
  display: inline-block;
}

/* Matrix rain canvas overlay */
.term-matrix-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: 16px;
  overflow: hidden;
}

/* Hire card response */
.term-hire {
  margin: 12px 0 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(94, 234, 212, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.term-hire::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(59, 130, 246, 0.18), transparent);
  animation: hireSweep 2.4s ease-out 1;
}
@keyframes hireSweep {
  to { left: 100%; }
}
.term-hire-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.term-hire-title::before {
  content: "✦";
  color: #5eead4;
  font-size: 18px;
}
.term-hire p { margin: 0 0 14px; color: #c8d4e8; font-size: 13px; line-height: 1.6; }
.term-hire-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.term-hire-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #3b82f6;
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.term-hire-actions a:hover { background: #5eead4; color: #0a0e1a; }
.term-hire-actions a.secondary { background: transparent; border: 1px solid #1f2a44; color: #c8d4e8; }
.term-hire-actions a.secondary:hover { border-color: #5eead4; color: #5eead4; background: transparent; }

/* Coffee meter */
.term-coffee {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}
.term-coffee-bar {
  display: inline-block;
  width: 200px;
  height: 14px;
  background: #1f2a44;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin: 0 8px;
  position: relative;
}
.term-coffee-fill {
  height: 100%;
  background: linear-gradient(90deg, #92400e, #d97706, #5eead4);
  border-radius: 3px;
  width: 0;
  animation: coffeeFill 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes coffeeFill {
  to { width: var(--coffee-pct, 80%); }
}
.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 0;
  caret-color: #5eead4;
}
.term-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #5eead4;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-3), var(--surface-2));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-thumb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}
.project-thumb-svg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.project-thumb-svg svg { width: 96px; height: 96px; opacity: 0.85; }
.project-thumb-label {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-body h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.project-body p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.project-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.18s;
  cursor: pointer;
}
.project-action:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.project-action.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.project-action.primary:hover { background: var(--accent-2); }
.project-action svg { width: 14px; height: 14px; }

/* ============================================================
   CUSTOM CURSOR FOLLOWER (desktop only — premium dev portfolio touch)
   ============================================================ */
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.25s, border-color 0.25s, opacity 0.25s;
  mix-blend-mode: normal;
  opacity: 0;
  will-change: transform;
}
.cursor-follower.visible { opacity: 1; }
.cursor-follower.hover {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.cursor-follower.hover-view {
  width: 88px;
  height: 88px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor-follower.hover-view::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-follower { display: none; }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  background: #25d366;
  color: white;
  padding: 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              padding 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float .wa-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wa-float .wa-icon svg { width: 26px; height: 26px; }
.wa-float .wa-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.3s ease,
              margin-left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-left: 0;
}
.wa-float:hover {
  padding: 14px 20px 14px 16px;
  box-shadow: 0 20px 50px -12px rgba(37, 211, 102, 0.7);
  animation: none;
}
.wa-float:hover .wa-label {
  max-width: 200px;
  opacity: 1;
  margin-left: 10px;
}
.wa-float:hover .wa-icon {
  transform: rotate(-12deg) scale(1.1);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.55), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-float { bottom: 20px; right: 20px; padding: 12px; }
  .wa-float .wa-icon { width: 28px; height: 28px; }
  .wa-float .wa-icon svg { width: 22px; height: 22px; }
}

/* ============================================================
   MAGNETIC BUTTON BASE (subtle pull effect)
   ============================================================ */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
  will-change: transform;
}

/* Refined primary button — gradient sweep on hover */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary > * { position: relative; z-index: 2; }

/* Arrow nudge on primary CTA */
.btn-primary svg {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}

/* Ghost button — fill from left */
.btn-ghost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn-ghost:hover {
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost:hover::before { transform: translateX(0); }

/* ============================================================
   NAV LINK UNDERLINE REVEAL
   ============================================================ */
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover {
  background: transparent;
  color: var(--accent);
}
.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ============================================================
   PROJECT CARD — PRO HOVER (overlay reveal + scale)
   ============================================================ */
.project-card {
  isolation: isolate;
  will-change: transform;
}
.project-card .project-thumb {
  position: relative;
  overflow: hidden;
}
.project-card .project-thumb-svg,
.project-card .thumb-blueprint {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.4s ease;
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.project-card:hover .project-thumb-svg,
.project-card:hover .thumb-blueprint {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 20, 48, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}
[data-theme="dark"] .project-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
}
.project-overlay-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s,
              opacity 0.4s ease 0.05s;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.project-overlay-label svg { width: 16px; height: 16px; }
.project-overlay[data-private] .project-overlay-label {
  background: var(--surface);
  color: var(--text);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-overlay-label {
  transform: translateY(0);
  opacity: 1;
}

/* Project meta tags — slide in stagger on hover */
.project-card .project-meta .tech-tag {
  transition: all 0.3s ease;
}
.project-card:hover .project-meta .tech-tag {
  background: var(--accent);
  color: white;
}

/* Project body title slide effect on hover */
.project-body h3 {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.project-card:hover .project-body h3 { color: var(--accent); }

/* ============================================================
   SKILL CARD — sheen sweep + icon micro-anim
   ============================================================ */
.skill-card {
  isolation: isolate;
  overflow: hidden;
}
.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              transparent 30%,
              color-mix(in srgb, var(--accent) 8%, transparent) 50%,
              transparent 70%);
  transform: translateX(-100%);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
.skill-card:hover::after { transform: translateX(100%); }
.skill-card > * { position: relative; z-index: 2; }

.skill-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              color 0.3s ease;
}
.skill-card:hover .skill-icon {
  background: var(--accent);
  color: white;
  transform: rotate(-6deg) scale(1.08);
}

.skill-card .tech-tag {
  transition: all 0.25s ease;
}
.skill-card:hover .tech-tag {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ============================================================
   CERT ROW + TIMELINE polish
   ============================================================ */
.cert-row, .timeline-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cert-row::before, .timeline-item::before {
  z-index: 2;
}
.cert-row::after, .timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
  pointer-events: none;
}
.cert-row:hover::after, .timeline-item:hover::after { opacity: 0.6; }
.cert-row > *, .timeline-item > * { position: relative; z-index: 1; }
.cert-row .cert-badge {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s;
}
.cert-row:hover .cert-badge {
  transform: rotate(-8deg) scale(1.08);
  background: var(--accent);
  color: white;
}

/* ============================================================
   CONTACT CHANNEL polish
   ============================================================ */
.contact-channel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-channel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.contact-channel:hover::before { transform: translateY(0); }
.contact-channel:hover {
  border-color: var(--accent);
  color: white;
}
.contact-channel:hover svg { color: white; }
.contact-channel:hover .contact-channel-label { color: rgba(255,255,255,0.7); }
.contact-channel:hover .contact-channel-val { color: white; }
.contact-channel svg, .contact-channel-label, .contact-channel-val {
  transition: color 0.3s ease;
}

/* Highlight cards — subtle accent line slides in */
.highlight {
  position: relative;
  overflow: hidden;
}
.highlight::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.highlight:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.highlight-icon {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.highlight:hover .highlight-icon {
  transform: rotate(-8deg) scale(1.08);
}

/* NEW badge on project */
.project-new {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  vertical-align: middle;
  position: relative;
  top: -2px;
  box-shadow: 0 4px 12px -4px var(--accent-glow);
}

/* Architecture project thumb gets blueprint style */
.project-thumb-architecture {
  background: linear-gradient(135deg, var(--bg-3), var(--surface-2));
  position: relative;
  overflow: hidden;
}
.thumb-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.9;
}

/* ============================================================
   WORKSHOP + CERTS combined block
   ============================================================ */
.tworow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .tworow { grid-template-columns: 1fr; gap: 64px; } }

.timeline { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.timeline-item {
  position: relative;
  padding: 20px 22px 20px 56px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.22s;
}
.timeline-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}
.timeline-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}
.timeline-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.55;
}

.certs-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cert-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.22s;
}
.cert-row:hover { border-color: var(--accent); transform: translateX(4px); }
.cert-badge {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.cert-badge svg { width: 22px; height: 22px; }
.cert-meta { flex: 1; min-width: 0; }
.cert-name { font-size: 14.5px; font-weight: 600; color: var(--text); margin: 0; }
.cert-issuer { font-size: 12.5px; color: var(--text-3); margin: 2px 0 0; font-family: var(--font-mono); }
.cert-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg-2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  transition: all 0.25s ease;
}
.testimonial:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-quote-mark {
  position: absolute;
  top: 20px; right: 24px;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  font-weight: 700;
}
.testimonial-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.author-name { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }
.author-role { font-size: 12.5px; color: var(--text-3); margin: 0; }

.testimonial-placeholder-note {
  margin-top: 32px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-mono);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
}
.contact-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.contact-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 16px 0 22px;
}
.contact-section p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin: 0 0 36px;
  max-width: 540px;
  margin-inline: auto;
}
.contact-channels {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
}
.contact-channel:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-channel svg { width: 20px; height: 20px; color: var(--accent); }
.contact-channel-label { color: var(--text-3); font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-channel-val { color: var(--text); font-weight: 600; }
.contact-channel-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-meta { font-family: var(--font-mono); }
.footer-meta a { color: var(--accent); }

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MOBILE RESPONSIVE — comprehensive improvements
   ============================================================ */

/* === HERO mobile (<= 768px) === */
@media (max-width: 768px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    letter-spacing: -0.025em;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-status {
    font-size: 12px;
    padding: 5px 12px 5px 8px;
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 36px;
  }

  .hero-actions .btn {
    font-size: 14px;
    padding: 11px 18px;
  }

  .hero-stats {
    gap: 16px;
    padding-top: 20px;
  }

  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 12px; }

  /* Portrait — smaller on mobile */
  .hero-portrait {
    min-height: 340px;
  }

  .portrait-frame {
    max-width: 260px;
  }

  .portrait-badge {
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 10px;
    gap: 6px;
  }

  .portrait-badge svg { width: 14px; height: 14px; }

  .badge-1 { left: 0; top: 12%; }
  .badge-2 { right: 0; bottom: 30%; }
  .badge-3 { left: 4px; bottom: 4%; font-size: 10px; }
}

/* === HERO very small (<= 480px) === */
@media (max-width: 480px) {
  .hero {
    padding-top: 88px;
  }

  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 11px; }

  .hero-portrait { min-height: 280px; }
  .portrait-frame { max-width: 220px; }
  .badge-3 { display: none; }
}

/* === MOBILE NAV menu full-height-safe === */
@media (max-width: 768px) {
  .nav-mobile-menu.open {
    max-height: 520px;
  }

  .nav-mobile-inner {
    padding-bottom: 24px;
  }

  .nav-mobile-links li a {
    padding: 16px 0;
    font-size: 16px;
  }

  .nav-mobile-cta {
    padding: 14px 20px;
    font-size: 15px;
    margin-top: 18px;
    border-radius: 12px;
  }
}

/* === SKILLS mobile === */
@media (max-width: 768px) {
  .skill-card {
    padding: 24px 20px;
  }
}

/* === TERMINAL mobile === */
@media (max-width: 768px) {
  .terminal-section { padding-top: 20px; }

  .terminal-body {
    height: 300px;
    font-size: 12.5px;
  }

  .terminal-tips {
    padding: 14px;
  }

  .cmd-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  .term-neofetch {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .term-neofetch-art {
    font-size: 9px;
  }

  .term-hire-actions {
    flex-direction: column;
  }

  .term-hire-actions a {
    justify-content: center;
  }

  .term-photo {
    flex-direction: column;
    max-width: 100%;
  }

  .term-photo-img {
    width: 100%;
    height: 120px;
  }
}

/* === ABOUT mobile === */
@media (max-width: 768px) {
  .about-card {
    padding: 14px;
    gap: 14px;
  }

  .about-photo {
    width: 72px;
    height: 72px;
  }
}

/* === PROJECTS mobile === */
@media (max-width: 768px) {
  .project-body {
    padding: 18px 18px 20px;
  }

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

  .project-action { flex: none; width: 100%; }
}

/* === JOURNEY mobile === */
@media (max-width: 768px) {
  .timeline-item {
    padding: 16px 16px 16px 46px;
  }

  .cert-row {
    padding: 12px 14px;
    gap: 12px;
  }

  .cert-name { font-size: 13.5px; }
}

/* === TESTIMONIALS mobile === */
@media (max-width: 768px) {
  .testimonial { padding: 22px 20px; }
}

/* === CONTACT mobile === */
@media (max-width: 768px) {
  .contact-section {
    padding: 80px 0;
  }

  .contact-channels {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .contact-channel {
    padding: 14px 18px;
    justify-content: flex-start;
  }

  .contact-channel svg { width: 18px; height: 18px; }
}

/* === FOOTER mobile === */
@media (max-width: 600px) {
  footer { padding: 28px 0; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* === SECTION HEAD mobile === */
@media (max-width: 768px) {
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  .section-lead { font-size: 0.95rem; }
}

/* === WA float mobile — always visible label on touch === */
@media (max-width: 768px) {
  .wa-float {
    bottom: 18px;
    right: 16px;
  }
}
