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

:root {
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, 92%);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --text: #1d2433;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #f4a24c;
  --accent-2: #141414;
  --pill-bg: rgba(244, 162, 76, 0.14);
  --gradient-1: #f4a24c;
  --gradient-2: #ffd58a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 162, 76, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 213, 138, 0.18), transparent 26%),
    var(--bg-soft);
  line-height: 1.6;
}

body.home-theme,
body.blog-theme {
  --text: #f3ebe0;
  --muted: #9b9286;
  --bg: #18141a;
  --bg-soft: #18141a;
  --surface: #221c2a;
  --surface-2: #1c1722;
  --border: rgba(255, 235, 200, 0.10);
  --accent: #ff9a45;
  --accent-2: #ffd9a8;
  --pill-bg: rgba(255, 154, 69, 0.16);
  --gradient-1: #ff9a45;
  --gradient-2: #ffcd80;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(900px 600px at -10% -10%, rgba(255, 154, 69, 0.16), transparent 55%),
    radial-gradient(800px 600px at 110% 0%, rgba(255, 110, 60, 0.10), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(120, 70, 200, 0.10), transparent 55%),
    #18141a;
}

body.cyber-theme {
  --text: #081226;
  --muted: #5f708b;
  --bg-soft: #f4fbff;
  --surface: #ffffff;
  --surface-2: #eef7ff;
  --border: rgba(8, 18, 38, 0.08);
  --accent: #19c6ff;
  --accent-2: #071223;
  --pill-bg: rgba(25, 198, 255, 0.16);
  --gradient-1: #17c5ff;
  --gradient-2: #60f4c8;
}

body.design-theme {
  --text: #221331;
  --muted: #746783;
  --bg-soft: #fff8fd;
  --surface: #ffffff;
  --surface-2: #f8efff;
  --border: rgba(34, 19, 49, 0.08);
  --accent: #d946ef;
  --accent-2: #5b21b6;
  --pill-bg: rgba(217, 70, 239, 0.14);
  --gradient-1: #ff5fd1;
  --gradient-2: #8b5cf6;
}

body.dev-theme {
  --text: #0f172a;
  --muted: #64748b;
  --bg-soft: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #3b82f6;
  --accent-2: #0f172a;
  --pill-bg: rgba(59, 130, 246, 0.14);
  --gradient-1: #3b82f6;
  --gradient-2: #22c55e;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.navbar {
  width: var(--container);
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.3px;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  transition: 0.25s ease;
  padding: 6px 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
}

/* Generic */
.hero,
.section {
  width: var(--container);
  margin: auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.section {
  padding: 88px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--accent-2);
  max-width: 780px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 21px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: 0.25s ease;
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #0a0f18;
  border: 0;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent-2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  color: var(--accent-2);
  letter-spacing: -1.8px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.home-grid,
.stats-grid,
.card-grid,
.project-grid,
.timeline-grid,
.skill-grid {
  display: grid;
  gap: 22px;
}

.home-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.card-grid.three-col,
.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.timeline-grid {
  grid-template-columns: repeat(4, 1fr);
}

.skill-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-panel,
.soft-card,
.project-card,
.stat-box,
.timeline-card,
.skill-card,
.notice-banner,
.hero-side-card,
.blog-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-panel,
.soft-card,
.stat-box,
.timeline-card,
.skill-card,
.notice-banner,
.blog-hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: 0.25s ease;
}

.project-card:hover,
.soft-card:hover,
.feature-panel:hover,
.timeline-card:hover,
.skill-card:hover {
  transform: translateY(-6px);
}

.feature-panel h3,
.soft-card h3,
.project-body h3,
.timeline-card h3,
.blog-hero-card h3 {
  font-size: 26px;
  line-height: 1.15;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.feature-panel p,
.soft-card p,
.project-body p,
.timeline-card p,
.notice-banner p,
.blog-hero-card li {
  color: var(--muted);
}

.feature-panel a,
.project-body a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
}

.large-panel {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}

.panel-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.panel-content {
  padding: 28px;
}

.accent-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, white), color-mix(in srgb, var(--gradient-2) 14%, white));
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.visual-card-main {
  width: min(420px, 100%);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
  transform: rotate(2deg);
}

.visual-card-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  background: color-mix(in srgb, var(--surface) 84%, white 16%);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.floating-note span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.floating-note strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--accent-2);
}

.note-top {
  top: 56px;
  left: 8px;
}

.note-bottom {
  right: 0;
  bottom: 70px;
}

.stat-box {
  text-align: center;
}

.stat-box h3 {
  font-size: 46px;
  line-height: 1;
  color: var(--accent-2);
}

.stat-box p {
  color: var(--muted);
  font-weight: 800;
  margin-top: 10px;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chips-wrap span {
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  font-weight: 900;
  color: var(--accent-2);
}

.timeline-card span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #0a0f18;
  font-weight: 900;
  margin-bottom: 18px;
}

.project-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.project-body {
  padding: 24px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.project-meta span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.featured-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, white), white 78%);
}

.soft-card ul.list-style,
.list-style {
  margin-left: 18px;
  color: var(--muted);
}

.notice-banner h3 {
  margin-bottom: 8px;
  font-size: 28px;
  color: var(--accent-2);
}

/* Cyber page */
.cyber-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 38px;
  overflow: hidden;
}

.cyber-cover img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.cyber-profile-body {
  padding: 26px;
}

.cyber-profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
}

.cyber-avatar {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 24px;
  border: 5px solid var(--surface);
  margin-top: -56px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.cyber-profile-top h3 {
  font-size: 34px;
  color: var(--accent-2);
  line-height: 1.05;
}

.cyber-profile-top p {
  color: var(--accent);
  font-weight: 900;
  margin-top: 6px;
}

.profile-meta-boxes {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.meta-box {
  background: var(--surface-2);
  border-radius: 20px;
  padding: 16px 18px;
}

.meta-box span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta-box strong {
  font-size: 17px;
  color: var(--accent-2);
}

/* Design page */
.design-showcase {
  position: relative;
  min-height: 520px;
}

.design-board-main {
  background: linear-gradient(180deg, #ffffff, #fbf5ff);
  border: 1px solid var(--border);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

.mockup-header {
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217,70,239,.18), rgba(139,92,246,.18));
  margin-bottom: 18px;
}

.mockup-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 18px;
  min-height: 360px;
}

.mockup-left,
.mockup-right {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
}

.mockup-right {
  background: linear-gradient(135deg, rgba(255,95,209,.12), rgba(139,92,246,.12));
}

.mockup-line {
  height: 20px;
  border-radius: 999px;
  background: #ece3ff;
  margin-bottom: 14px;
}

.mockup-line.big { width: 86%; height: 30px; }
.mockup-line.mid { width: 62%; }
.mockup-line.small { width: 44%; }
.mockup-button {
  width: 160px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  margin-top: 26px;
}

.design-floating {
  position: absolute;
  border-radius: 30px;
  filter: blur(0.3px);
}

.design-floating.one {
  width: 120px;
  height: 120px;
  background: rgba(255,95,209,.18);
  top: -12px;
  right: 50px;
}

.design-floating.two {
  width: 86px;
  height: 86px;
  background: rgba(139,92,246,.18);
  bottom: 28px;
  left: -8px;
}

.design-floating.three {
  width: 64px;
  height: 64px;
  background: rgba(255,176,75,.18);
  top: 140px;
  left: -22px;
}

.project-thumb {
  height: 235px;
  background-size: cover;
  background-position: center;
}

.thumb-design-a {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(135deg, #ff7fd8, #ffb7ec);
}

.thumb-design-b {
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.72)),
    linear-gradient(135deg, #7c3aed, #ec4899);
}

.thumb-design-c {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(135deg, #f472b6, #c084fc);
}

/* Dev page */
.dev-code-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-head {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-head span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fb7185;
}
.code-head span:nth-child(2) { background: #facc15; }
.code-head span:nth-child(3) { background: #4ade80; }

.code-window {
  padding: 28px;
  font-size: 17px;
  line-height: 1.8;
  overflow: auto;
}

.code-key { color: #60a5fa; }
.code-var { color: #e879f9; }
.code-str { color: #4ade80; }

.skill-card {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-2);
}

.thumb-dev-a {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(135deg, #3b82f6, #93c5fd);
}

.thumb-dev-b {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(135deg, #22c55e, #3b82f6);
}

.thumb-dev-c {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(135deg, #8b5cf6, #60a5fa);
}

/* Blog */
.blog-hero-card h3 {
  margin-bottom: 14px;
}

.blog-hero-card ul {
  margin-left: 18px;
}

/* Project pages */
.project-hero {
  min-height: 76vh;
}

.hero-side-card {
  border-radius: 34px;
  overflow: hidden;
  padding: 14px;
}

.hero-side-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
}

/* ProFTPD slider */
.slide-showcase {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 18px;
  align-items: center;
}

.slide-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #0b0f18;
  font-size: 32px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.slide-viewport {
  overflow: hidden;
}

.slide-track {
  position: relative;
  min-height: 420px;
}

.slide {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.slide-caption {
  padding: 20px 22px 24px;
}

.slide-caption h3 {
  font-size: 26px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.slide-caption p {
  color: var(--muted);
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--accent) 30%, #d1d5db);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.footer-note {
  width: var(--container);
  margin: auto;
  padding: 34px 0 46px;
  text-align: center;
  color: var(--muted);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

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

/* Responsive */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .card-grid.three-col,
  .project-grid,
  .timeline-grid,
  .skill-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .large-panel {
    grid-column: span 2;
    grid-row: auto;
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 4%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.show {
    display: flex;
  }

  .hero,
  .section {
    width: min(94%, 1180px);
  }

  .hero {
    padding: 50px 0;
    gap: 32px;
  }

  .section {
    padding: 58px 0;
  }

  .hero-copy h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .home-grid,
  .card-grid.three-col,
  .card-grid.two-col,
  .project-grid,
  .stats-grid,
  .timeline-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .large-panel {
    grid-column: auto;
  }

  .visual-card-main img,
  .hero-side-card img,
  .cyber-cover img,
  .project-card img,
  .project-thumb,
  .slide img {
    height: 260px;
  }

  .cyber-profile-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cyber-avatar {
    margin-top: -72px;
  }

  .slide-showcase {
    grid-template-columns: 1fr;
  }

  .slide-btn {
    display: none;
  }

  .mockup-layout {
    grid-template-columns: 1fr;
  }
}
/* =====================================================================
   CYBERSECURITY :: HACKER / TERMINAL THEME
   Scoped to body.cyber-hacker so other cyber-theme pages keep the
   original light styling.
===================================================================== */

body.cyber-hacker {
  --text: #c8f8e0;
  --muted: #6f8aa3;
  --bg: #050b15;
  --bg-soft: #050b15;
  --surface: #0a1422;
  --surface-2: #0d1a2b;
  --border: rgba(57, 255, 178, 0.18);
  --accent: #39ffb2;
  --accent-2: #b8ffe0;
  --pill-bg: rgba(57, 255, 178, 0.12);
  --gradient-1: #39ffb2;
  --gradient-2: #19c6ff;

  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(57, 255, 178, 0.10), transparent 55%),
    radial-gradient(900px 600px at 110% 0%, rgba(25, 198, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #050b15 0%, #060e1c 100%);
  color: var(--text);
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

body.cyber-hacker .site-header {
  background: rgba(5, 11, 21, 0.75);
  border-bottom: 1px solid rgba(57, 255, 178, 0.18);
}

body.cyber-hacker .logo { color: #d6ffe9; }
body.cyber-hacker .nav-links a { color: #6f8aa3; }
body.cyber-hacker .nav-links a:hover,
body.cyber-hacker .nav-links a.active { color: var(--accent); text-shadow: 0 0 12px rgba(57, 255, 178, 0.6); }

body.cyber-hacker .hero-copy h1 {
  color: #e6fff5;
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

body.cyber-hacker .hero-copy h1 .cyber-accent {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(57, 255, 178, 0.45);
}

body.cyber-hacker .hero-copy h1 span { display: block; }

body.cyber-hacker .hero-copy p { color: #94a8be; }

body.cyber-hacker .pill.cyber-pill {
  background: rgba(57, 255, 178, 0.08);
  color: #39ffb2;
  border: 1px solid rgba(57, 255, 178, 0.35);
  text-transform: uppercase;
}

.dot-blink {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39ffb2;
  display: inline-block;
  margin-right: 10px;
  box-shadow: 0 0 12px #39ffb2;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

/* Glitch headline */
.glitch {
  position: relative;
  color: #e6fff5;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glitch::before {
  color: #ff3068;
  transform: translate(2px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitchTop 3.5s infinite linear alternate-reverse;
}
.glitch::after {
  color: #19c6ff;
  transform: translate(-2px, 0);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitchBot 4s infinite linear alternate-reverse;
}
.glitch.alt::before { color: #39ffb2; }
.glitch.alt::after  { color: #ff7a18; }

@keyframes glitchTop {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3px, -1px); }
  50% { transform: translate(-2px, 1px); }
  100% { transform: translate(2px, 0); }
}
@keyframes glitchBot {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(3px, -1px); }
  100% { transform: translate(-3px, 1px); }
}

/* Hacker buttons */
body.cyber-hacker .btn.cyber-btn {
  background: linear-gradient(135deg, #39ffb2, #19c6ff);
  color: #051018;
  font-family: ui-monospace, monospace;
  border: 0;
  letter-spacing: 0.4px;
  box-shadow: 0 12px 30px rgba(57, 255, 178, 0.28);
}
body.cyber-hacker .btn.cyber-btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 178, 0.45);
  font-family: ui-monospace, monospace;
}
body.cyber-hacker .btn.cyber-btn-ghost:hover { background: rgba(57, 255, 178, 0.08); }

/* Team badges */
.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.team-badge {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.6px;
  border: 1px solid transparent;
}
.team-badge span { letter-spacing: 1.2px; margin-right: 8px; opacity: 0.9; }
.team-badge.red {
  background: rgba(255, 56, 96, 0.08);
  color: #ff5c7a;
  border-color: rgba(255, 56, 96, 0.35);
}
.team-badge.blue {
  background: rgba(25, 198, 255, 0.08);
  color: #66d8ff;
  border-color: rgba(25, 198, 255, 0.35);
}

/* Matrix background */
.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
body.cyber-hacker .matrix-bg { display: block; }
body.cyber-hacker main, body.cyber-hacker header, body.cyber-hacker footer { position: relative; z-index: 1; }

.matrix-col {
  position: absolute;
  top: -120%;
  width: 1.5ch;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(57, 255, 178, 0.32);
  text-shadow: 0 0 8px rgba(57, 255, 178, 0.5);
  white-space: nowrap;
  letter-spacing: 1px;
  animation: matrixFall linear infinite;
  animation-duration: calc(14s + var(--i, 0) * 1.4s);
  animation-delay: calc(var(--i, 0) * -1.7s);
  opacity: 0.55;
  left: calc(var(--i, 0) * 12.5%);
}
@keyframes matrixFall {
  0%   { transform: translateY(0); }
  100% { transform: translateY(260vh); }
}

/* Terminal card */
.terminal-card {
  background: #050d18;
  border: 1px solid rgba(57, 255, 178, 0.25);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(57, 255, 178, 0.08) inset,
    0 0 70px rgba(25, 198, 255, 0.10);
  overflow: hidden;
  width: 100%;
  position: relative;
}
.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(57, 255, 178, 0.025) 0 2px,
    transparent 2px 4px
  );
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0a1422;
  border-bottom: 1px solid rgba(57, 255, 178, 0.16);
  font-family: ui-monospace, monospace;
}
.t-dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.t-dot.red { background: #ff5c7a; }
.t-dot.yellow { background: #ffd34c; }
.t-dot.green { background: #39ffb2; }
.terminal-title {
  margin-left: 12px;
  font-size: 13px;
  color: #6f8aa3;
  letter-spacing: 0.5px;
}
.terminal-body {
  padding: 24px 26px 28px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14.5px;
  line-height: 1.7;
  color: #c8f8e0;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-muted { color: #5f7388; }
.t-cmd   { color: #e6fff5; font-weight: 700; }
.t-out   { color: #c8f8e0; }
.t-key   { color: #66d8ff; }
.t-prop  { color: #ff9ad1; }
.t-str   { color: #ffd34c; }
.t-arr   { color: #66d8ff; }
.t-ok    { color: #39ffb2; }
.t-pass  { color: #39ffb2; font-weight: 800; }

.typing::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: #39ffb2;
  margin-left: 2px;
  transform: translateY(2px);
  animation: caret 1s steps(1) infinite;
  box-shadow: 0 0 10px rgba(57, 255, 178, 0.7);
}
@keyframes caret { 50% { opacity: 0; } }

/* Hex stat cards */
body.cyber-hacker .stat-box.hex-stat {
  background: linear-gradient(180deg, #0c1726, #081020);
  border: 1px solid rgba(57, 255, 178, 0.22);
  box-shadow: 0 0 0 1px rgba(25, 198, 255, 0.04) inset, 0 18px 40px rgba(0, 0, 0, 0.5);
}
body.cyber-hacker .stat-box.hex-stat h3 {
  color: #39ffb2;
  text-shadow: 0 0 16px rgba(57, 255, 178, 0.45);
  font-family: ui-monospace, monospace;
}
body.cyber-hacker .stat-box.hex-stat p { color: #94a8be; }

body.cyber-hacker .section-heading span { color: #39ffb2; font-family: ui-monospace, monospace; }
body.cyber-hacker .section-heading h2 { color: #e6fff5; }
body.cyber-hacker .section-heading p { color: #94a8be; }

/* Cyber cards */
body.cyber-hacker .soft-card.cyber-card {
  background: linear-gradient(180deg, #0c1726, #081020);
  border: 1px solid rgba(57, 255, 178, 0.18);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
body.cyber-hacker .soft-card.cyber-card:hover {
  border-color: rgba(57, 255, 178, 0.5);
  box-shadow: 0 0 0 1px rgba(57, 255, 178, 0.25), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cyber-card-tag {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #39ffb2;
  margin-bottom: 10px;
}
body.cyber-hacker .soft-card.cyber-card h3 { color: #e6fff5; font-family: ui-monospace, monospace; }
body.cyber-hacker .soft-card.cyber-card p { color: #94a8be; }
.cyber-card-foot {
  margin-top: 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #5f7388;
  border-top: 1px dashed rgba(57, 255, 178, 0.18);
  padding-top: 10px;
}

/* Toolkit chips */
.cyber-toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cyber-chip {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(57, 255, 178, 0.07);
  color: #c8f8e0;
  border: 1px solid rgba(57, 255, 178, 0.22);
  letter-spacing: 0.4px;
}
.cyber-chip::before {
  content: "$ ";
  color: #5f7388;
  margin-right: 2px;
}

/* Kill chain */
.kill-chain {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}
.chain-node {
  flex: 1 1 200px;
  background: linear-gradient(180deg, #0c1726, #081020);
  border: 1px solid rgba(57, 255, 178, 0.22);
  border-radius: 18px;
  padding: 22px;
  position: relative;
}
.chain-node h3 { color: #e6fff5; font-family: ui-monospace, monospace; margin: 12px 0 8px; }
.chain-node p { color: #94a8be; }
.hex-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #39ffb2, #19c6ff);
  color: #051018;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  border-radius: 12px;
  transform: rotate(45deg);
  position: relative;
}
.hex-num::after {
  content: attr(data-n);
}
.hex-num { font-size: 0; }
.hex-num::before {
  content: attr(data-text);
}
.chain-node .hex-num { transform: rotate(0); border-radius: 8px; font-size: 16px; }
.chain-arrow {
  color: #39ffb2;
  align-self: center;
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(57, 255, 178, 0.5);
}

/* Cyber project cards */
body.cyber-hacker .project-card.cyber-project {
  background: #0a1422;
  border: 1px solid rgba(57, 255, 178, 0.2);
  position: relative;
}
body.cyber-hacker .project-card.cyber-project:hover {
  box-shadow: 0 0 0 1px rgba(57, 255, 178, 0.4), 0 28px 60px rgba(0, 0, 0, 0.55);
}
body.cyber-hacker .project-card.cyber-project h3 { color: #e6fff5; font-family: ui-monospace, monospace; }
body.cyber-hacker .project-card.cyber-project p { color: #94a8be; }
body.cyber-hacker .project-card.cyber-project a {
  color: #39ffb2;
  font-family: ui-monospace, monospace;
}
body.cyber-hacker .project-card.cyber-project .project-meta span { color: #39ffb2; }
body.cyber-hacker .project-card.cyber-project .mini-tags span {
  background: rgba(57, 255, 178, 0.08);
  color: #c8f8e0;
  border: 1px solid rgba(57, 255, 178, 0.18);
  font-family: ui-monospace, monospace;
}
.cyber-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  background: rgba(57, 255, 178, 0.16);
  color: #39ffb2;
  border: 1px solid rgba(57, 255, 178, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.6px;
}
.cyber-status.pending {
  background: rgba(255, 211, 76, 0.14);
  color: #ffd34c;
  border-color: rgba(255, 211, 76, 0.35);
}
body.cyber-hacker .featured-cyber {
  background: linear-gradient(180deg, #0e1f2a, #0a1422);
  border-color: rgba(25, 198, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(25, 198, 255, 0.18), 0 22px 50px rgba(0, 0, 0, 0.55);
}

/* Cyber warning banner */
body.cyber-hacker .notice-banner.cyber-banner {
  background: linear-gradient(180deg, #1a0e10, #170a0c);
  border: 1px solid rgba(255, 92, 122, 0.35);
  border-radius: 18px;
  position: relative;
}
body.cyber-hacker .notice-banner.cyber-banner h3 { color: #ffd6de; font-family: ui-monospace, monospace; }
body.cyber-hacker .notice-banner.cyber-banner p { color: #c8a3aa; }
.banner-tag {
  display: inline-block;
  background: #ff3060;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

body.cyber-hacker .footer-note { color: #6f8aa3; }
body.cyber-hacker .footer-note .t-pass { color: #39ffb2; }


/* =====================================================================
   BLOG :: EXPANDED LAYOUT
===================================================================== */

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-pill {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  background: white;
  color: var(--accent-2);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.cat-pill.cat-all     { background: linear-gradient(135deg, #1c0e2e, #4c1d95); color: white; }
.cat-pill.cat-cyber   { background: rgba(25, 198, 255, 0.14); color: #0c5d80; border-color: rgba(25, 198, 255, 0.30); }
.cat-pill.cat-design  { background: rgba(217, 70, 239, 0.14); color: #6d28d9; border-color: rgba(217, 70, 239, 0.28); }
.cat-pill.cat-dev     { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; border-color: rgba(59, 130, 246, 0.28); }
.cat-pill.cat-travel  { background: rgba(20, 184, 166, 0.14); color: #0f766e; border-color: rgba(20, 184, 166, 0.30); }
.cat-pill.cat-train   { background: rgba(245, 158, 11, 0.18); color: #92400e; border-color: rgba(245, 158, 11, 0.30); }
.cat-pill.cat-learn   { background: rgba(34, 197, 94, 0.16); color: #166534; border-color: rgba(34, 197, 94, 0.30); }
.cat-pill.cat-life    { background: rgba(244, 63, 94, 0.14); color: #9f1239; border-color: rgba(244, 63, 94, 0.28); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.25s ease;
}
.blog-post-card:hover { transform: translateY(-6px); }
.blog-post-body { padding: 24px; }
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.blog-cat {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.blog-cat.cat-cyber  { background: rgba(25, 198, 255, 0.16); color: #0c5d80; }
.blog-cat.cat-design { background: rgba(217, 70, 239, 0.14); color: #6d28d9; }
.blog-cat.cat-dev    { background: rgba(59, 130, 246, 0.16); color: #1d4ed8; }
.blog-cat.cat-travel { background: rgba(20, 184, 166, 0.16); color: #0f766e; }
.blog-cat.cat-train  { background: rgba(245, 158, 11, 0.20); color: #92400e; }
.blog-cat.cat-learn  { background: rgba(34, 197, 94, 0.18); color: #166534; }
.blog-cat.cat-life   { background: rgba(244, 63, 94, 0.16); color: #9f1239; }

.blog-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.blog-post-card h3 {
  font-size: 22px;
  line-height: 1.2;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.blog-post-card p { color: var(--muted); margin-bottom: 8px; }
.blog-post-card a { color: var(--accent); font-weight: 900; }

.blog-thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.20), transparent 60%);
}
.thumb-cyber {
  background:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,.0) 60%, rgba(0,0,0,.18)),
    linear-gradient(135deg, #0c1f33, #0a4e6b 60%, #0a8c8c);
}
.thumb-cyber::before {
  content: "</> _";
  position: absolute;
  top: 16px; left: 16px;
  color: #39ffb2;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: 1px;
}
.thumb-design {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.4), transparent 60%),
    linear-gradient(135deg, #ff5fd1, #8b5cf6 60%, #22d3ee);
}
.thumb-design-2 {
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #f59e0b, #ff5fd1 60%, #8b5cf6);
}
.thumb-dev {
  background:
    linear-gradient(135deg, #3b82f6 0%, #1d4ed8 60%, #0f172a 100%);
}
.thumb-dev::before {
  content: "{ }";
  position: absolute;
  top: 18px; left: 18px;
  color: #93c5fd;
  font-family: ui-monospace, monospace;
  font-size: 22px;
  font-weight: 900;
}
.thumb-travel {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #0ea5e9, #22d3ee 50%, #f59e0b);
}
.thumb-travel-2 {
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,.30), transparent 60%),
    linear-gradient(135deg, #f97316, #ef4444 50%, #7c3aed);
}
.thumb-train {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.30), transparent 60%),
    linear-gradient(135deg, #f59e0b, #ef4444 60%, #7c3aed);
}
.thumb-train-2 {
  background:
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.30), transparent 60%),
    linear-gradient(135deg, #f59e0b, #f43f5e 60%, #1f2937);
}
.thumb-learn {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #10b981, #14b8a6 50%, #06b6d4);
}
.thumb-learn-2 {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #22c55e, #84cc16 50%, #facc15);
}
.thumb-learn-3 {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #06b6d4, #8b5cf6 50%, #ec4899);
}
.thumb-life {
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,.30), transparent 60%),
    linear-gradient(135deg, #f43f5e, #fb923c 60%, #fbbf24);
}


/* =====================================================================
   RESPONSIVE FIXES FOR NEW SECTIONS
===================================================================== */

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .kill-chain { flex-direction: column; }
  .chain-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 14px; }
}

@media (max-width: 780px) {
  .blog-grid { grid-template-columns: 1fr; }
  .terminal-body { font-size: 12px; padding: 18px 16px; }
}


/* =====================================================================
   PAGE LOAD ANIMATIONS (shared across home, blog, design, dev)
===================================================================== */

body.page-anim .anim-fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
body.page-anim.loaded .anim-fade-up,
body.page-anim .anim-fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

body.page-anim .site-header {
  animation: headerSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes headerSlide {
  0%   { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-anim .anim-fade-up { opacity: 1; transform: none; transition: none; }
  body.page-anim .site-header { animation: none; }
}


/* =====================================================================
   HOME ADDITIONS :: animated profile border, CV button, Now widget
===================================================================== */

/* Calm framed profile photo — full image visible, subtle warm glow */
.profile-frame {
  position: relative;
  width: clamp(260px, 36vw, 380px);
  margin: 0 auto;
  border-radius: 24px;
  isolation: isolate;
  animation: profileFloat 6s ease-in-out infinite;
}
.profile-frame-ring {
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  z-index: 1;
  pointer-events: none;
}
.profile-frame-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  animation: ringDrift 24s linear infinite;
}
@keyframes ringDrift {
  to { transform: rotate(360deg); }
}
.profile-frame::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 44px;
  background: radial-gradient(closest-side, rgba(255, 154, 69, 0.32), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  animation: profileGlow 5s ease-in-out infinite alternate;
}
.profile-frame-inner {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 30px 60px rgba(15, 10, 5, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.profile-frame-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}
@keyframes profileFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes profileGlow {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 0.85; transform: scale(1.05); }
}

/* CV button */
.btn.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1f1633, #3a2455);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(31, 22, 51, 0.28);
}
.btn.btn-cv:hover {
  background: linear-gradient(135deg, #2a1d44, #4a2e6c);
  transform: translateY(-2px);
}
.btn.btn-cv .cv-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* Now widget */
.now-widget {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 245, 0.85));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  max-width: 560px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.now-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.now-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: nowPulse 2.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.04); }
}
.now-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--accent-2);
  text-transform: uppercase;
}
.now-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.now-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: nowScroll 30s linear infinite;
}
.now-track span {
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-2);
}
@keyframes nowScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =====================================================================
   UI/UX :: 3D / GLASS / ANIMATED DESIGNER THEME
   Scoped to body.design-3d
===================================================================== */

body.design-3d {
  --text: #0f0a1f;
  --muted: #5b5275;
  --bg: #f4f1ff;
  --bg-soft: #f4f1ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: #ffffff;
  --border: rgba(120, 80, 200, 0.12);
  --accent: #6d28d9;
  --accent-2: #1c0e2e;
  --gradient-1: #ff6fa0;
  --gradient-2: #6d28d9;
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(255, 111, 160, 0.20), transparent 55%),
    radial-gradient(900px 700px at 110% 0%,   rgba(109, 40, 217, 0.18),  transparent 55%),
    radial-gradient(800px 700px at 50% 110%,  rgba(34, 211, 238, 0.16), transparent 55%),
    #f4f1ff;
  color: var(--text);
  font-family: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
}

/* 3D background scene */
.d3-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
body.design-3d .d3-bg { display: block; }
body.design-3d main, body.design-3d header, body.design-3d footer { position: relative; z-index: 1; }

.d3-grid {
  position: absolute;
  inset: -10% -10% 30% -10%;
  background-image:
    linear-gradient(rgba(120, 80, 200, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 80, 200, 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(1200px) rotateX(60deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}

.d3-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; background: #ff6fa0; top: -80px; left: -120px; }
.orb-b { width: 520px; height: 520px; background: #6d28d9; top: 30%; right: -160px; animation-delay: -5s; }
.orb-c { width: 360px; height: 360px; background: #22d3ee; bottom: -100px; left: 30%; animation-delay: -10s; }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(40px, -30px, 0) scale(1.08); }
}

/* Design pill */
body.design-3d .pill.d3-pill {
  background: rgba(255, 255, 255, 0.55);
  color: #4c1d95;
  border: 1px solid rgba(120, 80, 200, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.d3-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6fa0, #6d28d9);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.5);
  animation: nowPulse 2.4s ease-in-out infinite;
}

/* Headline */
.d3-headline {
  font-family: "Playfair Display", "DM Serif Display", ui-serif, Georgia, serif;
  font-size: clamp(48px, 7vw, 96px) !important;
  line-height: 1.0 !important;
  letter-spacing: -2.5px !important;
  font-weight: 700;
}
.d3-line { display: block; }
.d3-word { display: inline-block; margin-right: 0.18em; }
.d3-word.italic { font-style: italic; }
.grad-text-1 {
  background: linear-gradient(135deg, #ff6fa0, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-2 {
  background: linear-gradient(135deg, #22d3ee, #6d28d9 60%, #ff6fa0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
  background-size: 200% 200%;
}
@keyframes gradShift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* CTAs */
body.design-3d .btn.d3-cta {
  background: linear-gradient(135deg, #ff6fa0, #6d28d9);
  color: white;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(109, 40, 217, 0.35);
  position: relative;
  overflow: hidden;
}
body.design-3d .btn.d3-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
body.design-3d .btn.d3-cta:hover::before { transform: translateX(100%); }
body.design-3d .btn.d3-cta-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #4c1d95;
  border: 1px solid rgba(120, 80, 200, 0.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 22px;
}

/* Meta row */
.d3-meta {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.d3-meta-item strong {
  display: block;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 36px;
  background: linear-gradient(135deg, #ff6fa0, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.d3-meta-item span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* 3D Stage */
.d3-stage {
  perspective: 1400px;
  min-height: 520px;
  position: relative;
}
.d3-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phone mockup */
.d3-phone {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 230px;
  height: 460px;
  background: linear-gradient(180deg, #1a0e2e, #0f0820);
  border-radius: 36px;
  padding: 14px;
  box-shadow:
    0 50px 80px rgba(30, 12, 60, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate3d(0, 1, 0, -16deg) rotateX(6deg);
  transform-style: preserve-3d;
  animation: floatY 6s ease-in-out infinite;
}
.d3-phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.d3-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a0e2e, #2d1b5c);
  border-radius: 26px;
  padding: 38px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.d3-phone-bar { height: 6px; width: 50px; border-radius: 999px; background: rgba(255,255,255,0.18); margin: 0 auto; }
.d3-phone-card {
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6fa0, #6d28d9);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.4);
}
.d3-phone-stat span { display: block; font-weight: 900; color: #fff; font-size: 20px; letter-spacing: -0.5px; }
.d3-phone-stat i { color: rgba(255,255,255,0.7); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.d3-phone-chip { width: 36px; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.4); }
.d3-phone-row { display: flex; gap: 8px; margin-top: 4px; }
.d3-phone-pill { flex: 1; height: 28px; border-radius: 10px; background: rgba(255,255,255,0.10); }
.d3-phone-pill:nth-child(2) { background: rgba(255,255,255,0.18); }
.d3-phone-pill:nth-child(3) { background: rgba(255,111,160,0.30); }
.d3-phone-line { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.d3-phone-line.short { width: 60%; }
.d3-phone-cta {
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22d3ee, #6d28d9);
  margin-top: auto;
}

/* Glass cards */
.d3-card {
  position: absolute;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 60px rgba(30, 12, 60, 0.15);
  padding: 16px;
  transform-style: preserve-3d;
}
.d3-card-back {
  top: 70px;
  left: -10px;
  width: 230px;
  transform: rotate3d(0, 1, 0, 14deg) rotateX(4deg) translateZ(-30px);
  animation: floatY 7s ease-in-out infinite;
  animation-delay: -2s;
}
.d3-card-back .d3-card-title {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1c0e2e, #6d28d9);
  margin-bottom: 12px;
  width: 70%;
}
.d3-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.d3-tile {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}
.d3-tile.g1 { background: linear-gradient(135deg, #ff6fa0, #fb7185); }
.d3-tile.g2 { background: linear-gradient(135deg, #6d28d9, #6366f1); }
.d3-tile.g3 { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.d3-tile.g4 { background: linear-gradient(135deg, #fbbf24, #f97316); }

.d3-card-mini {
  bottom: 30px;
  left: 50px;
  width: 160px;
  transform: rotate3d(1, 0.4, 0, -10deg) translateZ(40px);
  animation: floatY 8s ease-in-out infinite;
  animation-delay: -4s;
}
.d3-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #6d28d9);
  margin-bottom: 10px;
}
.d3-mini-line { height: 8px; border-radius: 4px; background: rgba(28,14,46,0.15); }
.d3-mini-line.short { width: 60%; margin-top: 6px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate3d(0, 1, 0, var(--ry, -16deg)) rotateX(var(--rx, 6deg)); }
  50%      { transform: translateY(-12px) rotate3d(0, 1, 0, var(--ry, -16deg)) rotateX(var(--rx, 6deg)); }
}

/* Floating 3D primitives */
.d3-float { position: absolute; transform-style: preserve-3d; }
.d3-float-cube {
  width: 60px; height: 60px;
  top: -10px; left: 20px;
  animation: cubeSpin 14s linear infinite;
}
.cube-face {
  position: absolute;
  width: 60px; height: 60px;
  border: 1px solid rgba(120, 80, 200, 0.6);
  background: rgba(255, 111, 160, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cube-front  { transform: translateZ(30px); background: rgba(255, 111, 160, 0.25); }
.cube-back   { transform: rotateY(180deg) translateZ(30px); background: rgba(109, 40, 217, 0.25); }
.cube-right  { transform: rotateY(90deg) translateZ(30px); background: rgba(34, 211, 238, 0.25); }
.cube-left   { transform: rotateY(-90deg) translateZ(30px); background: rgba(251, 191, 36, 0.25); }
.cube-top    { transform: rotateX(90deg) translateZ(30px); background: rgba(255, 255, 255, 0.30); }
.cube-bottom { transform: rotateX(-90deg) translateZ(30px); background: rgba(28, 14, 46, 0.18); }
@keyframes cubeSpin {
  0%   { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.d3-float-pyramid {
  width: 50px; height: 50px;
  top: 280px;
  right: -10px;
  animation: cubeSpin 18s linear infinite reverse;
}
.d3-float-pyramid span {
  position: absolute;
  width: 0; height: 0;
  left: 50%; top: 50%;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 40px solid;
}
.d3-float-pyramid span:nth-child(1) { border-bottom-color: rgba(255,111,160,0.55); transform: translate(-50%, -50%) rotateY(0deg) translateZ(20px); }
.d3-float-pyramid span:nth-child(2) { border-bottom-color: rgba(109,40,217,0.55); transform: translate(-50%, -50%) rotateY(120deg) translateZ(20px); }
.d3-float-pyramid span:nth-child(3) { border-bottom-color: rgba(34,211,238,0.55); transform: translate(-50%, -50%) rotateY(240deg) translateZ(20px); }
.d3-float-pyramid span:nth-child(4) { border-bottom-color: rgba(251,191,36,0.55); transform: translate(-50%, -50%) rotateX(180deg); border-bottom-width: 30px; }

.d3-float-ring {
  width: 80px; height: 80px;
  bottom: -10px; right: 80px;
  border-radius: 50%;
  border: 6px solid;
  border-image: conic-gradient(from 0deg, #ff6fa0, #6d28d9, #22d3ee, #fbbf24, #ff6fa0) 1;
  animation: ringSpin 10s linear infinite;
  background: transparent;
}
.d3-float-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #6d28d9);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}
.dot-a { top: 120px; left: -20px; animation: floatY 5s ease-in-out infinite; }
.dot-b { bottom: 140px; right: 0; animation: floatY 7s ease-in-out infinite; animation-delay: -3s; }

/* Section heading override */
body.design-3d .section-heading span {
  background: linear-gradient(135deg, #ff6fa0, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.d3-h2 {
  font-family: "Playfair Display", ui-serif, Georgia, serif !important;
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px) !important;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(30, 12, 60, 0.08);
  transition: 0.3s ease;
  isolation: isolate;
}
.bento-card:hover {
  transform: translateY(-6px) rotate(0.2deg);
  box-shadow: 0 36px 60px rgba(30, 12, 60, 0.18);
}
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-num {
  display: inline-block;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: #4c1d95;
  border: 1px solid rgba(120, 80, 200, 0.18);
  letter-spacing: 0.4px;
}
.bento-card h3 {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 22px;
  color: #1c0e2e;
  margin-bottom: 6px;
}
.bento-lg h3 { font-size: 32px; }
.bento-wide h3 { font-size: 26px; }
.bento-card p { color: #5b5275; font-size: 14px; line-height: 1.55; }
.bento-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(400px at var(--mx, 30%) var(--my, 30%), rgba(255,255,255,0.5), transparent 50%);
  z-index: -1;
}
.gradient-card-a { background: linear-gradient(135deg, rgba(255,111,160,0.18), rgba(251,113,133,0.18)); }
.gradient-card-b { background: linear-gradient(135deg, rgba(109,40,217,0.16), rgba(99,102,241,0.16)); }
.gradient-card-c { background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(6,182,212,0.16)); }
.gradient-card-d { background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(249,115,22,0.18)); }
.gradient-card-e { background: linear-gradient(135deg, rgba(20,184,166,0.16), rgba(34,211,238,0.16)); }
.gradient-card-f { background: linear-gradient(135deg, rgba(255,111,160,0.16), rgba(34,211,238,0.16)); }

/* Timeline */
.d3-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 50px;
}
.d3-timeline-track {
  position: absolute;
  top: 78px;
  left: 6%;
  right: 6%;
  height: 4px;
  background: linear-gradient(90deg, #ff6fa0, #6d28d9 33%, #22d3ee 66%, #fbbf24);
  border-radius: 999px;
  opacity: 0.7;
}
.d3-step { position: relative; text-align: center; padding-top: 24px; }
.d3-step-node {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 18px 36px rgba(30, 12, 60, 0.20), inset 0 0 0 4px rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}
.node-1 { background: linear-gradient(135deg, #ff6fa0, #fb7185); }
.node-2 { background: linear-gradient(135deg, #6d28d9, #6366f1); }
.node-3 { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.node-4 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.d3-step-body h3 { font-family: "Playfair Display", ui-serif, Georgia, serif; color: #1c0e2e; margin-bottom: 6px; font-size: 22px; }
.d3-step-body p { color: #5b5275; font-size: 14px; }

/* Project grid */
.d3-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.d3-project {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 50px rgba(30, 12, 60, 0.12);
  transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
.d3-project:hover { transform: translateY(-8px) rotateX(2deg) rotateY(-3deg); box-shadow: 0 50px 80px rgba(30, 12, 60, 0.22); }
.d3-project.featured-3d {
  border: 1px solid rgba(109, 40, 217, 0.30);
  box-shadow: 0 30px 60px rgba(109, 40, 217, 0.25);
}
.d3-project-screen {
  position: relative;
  aspect-ratio: 16 / 11;
  padding: 18px;
  overflow: hidden;
}
.d3-project-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #4c1d95;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.d3-project-mock {
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(30, 12, 60, 0.12);
}
.dpm-bar { height: 6px; width: 50%; border-radius: 999px; background: linear-gradient(135deg, #ff6fa0, #6d28d9); }
.dpm-balance { height: 38px; border-radius: 10px; background: linear-gradient(90deg, rgba(28,14,46,0.10), rgba(28,14,46,0.04)); }
.dpm-headline { height: 18px; width: 80%; border-radius: 6px; background: rgba(28,14,46,0.12); }
.dpm-sub { height: 10px; width: 50%; border-radius: 5px; background: rgba(28,14,46,0.08); }
.dpm-row { display: flex; gap: 8px; flex: 1; }
.dpm-cell { flex: 1; height: 100%; min-height: 40px; border-radius: 10px; background: rgba(28,14,46,0.06); }
.dpm-cell.tall { min-height: 60px; }
.dpm-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #6d28d9); width: 100%; }
.dpm-progress.short  { width: 70%; }
.dpm-progress.shorter { width: 40%; }
.dpm-chart {
  flex: 1;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,111,160,0.5), transparent 80%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,111,160,0.5) 18px 22px);
  min-height: 50px;
}
.grad-card-a { background: linear-gradient(135deg, #ff6fa0, #fbbf24); }
.grad-card-b { background: linear-gradient(135deg, #6d28d9, #ec4899); }
.grad-card-c { background: linear-gradient(135deg, #22d3ee, #6d28d9); }

.d3-project-body { padding: 22px; }
.d3-project-body h3 {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 24px;
  color: #1c0e2e;
  margin-bottom: 6px;
}
.d3-project-body p { color: #5b5275; font-size: 14px; margin-bottom: 14px; }
.d3-project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.d3-project-tags span {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  background: rgba(109, 40, 217, 0.08);
  color: #4c1d95;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.d3-project-link { color: #6d28d9; font-weight: 900; }

/* Marquee toolbar */
.d3-marquee {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 14px 0;
  margin-bottom: 24px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.d3-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeSlide 28s linear infinite;
}
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.d3-tool {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 24px rgba(30, 12, 60, 0.12);
  font-size: 15px;
  white-space: nowrap;
}
.d3-tool.t-figma  { background: linear-gradient(135deg, #f24e1e, #a259ff); }
.d3-tool.t-xd     { background: linear-gradient(135deg, #ff61f6, #470137); }
.d3-tool.t-ps     { background: linear-gradient(135deg, #31a8ff, #001e36); }
.d3-tool.t-ai     { background: linear-gradient(135deg, #ff9a00, #330000); }
.d3-tool.t-framer { background: linear-gradient(135deg, #0099ff, #0055ff); }
.d3-tool.t-notion { background: linear-gradient(135deg, #2f2f2f, #6b6b6b); }

.d3-skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.d3-skill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(120, 80, 200, 0.15);
  color: #4c1d95;
  font-weight: 800;
  font-size: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.design-3d .footer-note { color: #5b5275; }


/* =====================================================================
   DEVELOPMENT :: IDE / CODE EDITOR THEME
   Scoped to body.dev-ide
===================================================================== */

body.dev-ide {
  --text: #c8f8e0;
  --muted: #6f8aa3;
  --bg: #050b15;
  --bg-soft: #050b15;
  --surface: #0a1422;
  --surface-2: #0d1a2b;
  --border: rgba(122, 162, 255, 0.16);
  --accent: #39ffb2;
  --accent-2: #b8ffe0;
  --gradient-1: #39ffb2;
  --gradient-2: #19c6ff;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(57, 255, 178, 0.10), transparent 55%),
    radial-gradient(800px 600px at 100% 10%, rgba(25, 198, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #050b15 0%, #040810 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body.dev-ide .site-header {
  background: rgba(13, 17, 28, 0.85);
  border-bottom: 1px solid rgba(122, 162, 255, 0.14);
}
body.dev-ide .logo { color: #c8f8e0; }
body.dev-ide .nav-links a { color: #6f8aa3; }
body.dev-ide .nav-links a.active,
body.dev-ide .nav-links a:hover { color: #39ffb2; }

/* Dev pill */
body.dev-ide .pill.dev-pill {
  background: rgba(57, 255, 178, 0.10);
  color: #aaffd9;
  border: 1px solid rgba(57, 255, 178, 0.25);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  padding-left: 12px;
}
body.dev-ide .pill.dev-pill code {
  color: #39ffb2;
  background: transparent;
  font-family: inherit;
}
.dev-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39ffb2;
  box-shadow: 0 0 10px #39ffb2;
  display: inline-block;
  animation: nowPulse 2.2s ease-in-out infinite;
}

/* Headline */
.dev-headline {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #e6fff5;
}
body.dev-ide .hero-copy h1 { line-height: 1.05; }
.dev-grad {
  background: linear-gradient(135deg, #39ffb2, #19c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dev-grad-2 {
  background: linear-gradient(135deg, #39ffb2, #39ffb2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dev-ide .hero-copy p { color: #94a8be; }

/* Dev CTAs */
body.dev-ide .btn.dev-cta {
  background: #0d1a2b;
  color: #c8f8e0;
  border: 1px solid rgba(57, 255, 178, 0.35);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.30);
}
body.dev-ide .btn.dev-cta:hover { background: #142337; border-color: #39ffb2; }
body.dev-ide .btn.dev-cta-ghost {
  background: transparent;
  color: #94a8be;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}
body.dev-ide .btn.dev-cta-ghost:hover { background: rgba(255,255,255,0.04); color: #c8f8e0; }
.cli-prompt {
  color: #39ffb2;
  font-weight: 900;
  margin-right: 4px;
}

/* Dev stat row */
.dev-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 28px;
}
.dev-stat strong {
  display: block;
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 32px;
  color: #39ffb2;
  line-height: 1;
  text-shadow: 0 0 18px rgba(57, 255, 178, 0.35);
}
.dev-stat span {
  font-size: 13px;
  color: #6f8aa3;
  margin-top: 6px;
  display: block;
  font-weight: 600;
}

/* Editor mockup */
.dev-editor {
  background: #040810;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(57, 255, 178, 0.05);
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 13px;
}
.editor-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #0a1422;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.editor-traffic { display: flex; gap: 8px; }
.editor-traffic .t { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.editor-traffic .t.red { background: #ff5c5c; }
.editor-traffic .t.yellow { background: #ffbd2e; }
.editor-traffic .t.green { background: #27c93f; }
.editor-tabs { display: flex; gap: 4px; flex: 1; }
.editor-tab {
  padding: 6px 14px;
  font-size: 12px;
  color: #4a5b6a;
  background: transparent;
  border-radius: 8px 8px 0 0;
  border-top: 2px solid transparent;
}
.editor-tab.active {
  color: #c8f8e0;
  background: #040810;
  border-top: 2px solid #39ffb2;
}
.editor-meta { color: #6f8aa3; font-size: 12px; }
.branch { color: #19c6ff; font-weight: 700; }

.editor-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.editor-files {
  background: #050b15;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 8px;
  color: #6f8aa3;
}
.ef-row {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ef-row .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ef-row .dot.js   { background: #f7df1e; }
.ef-row .dot.css  { background: #2965f1; }
.ef-row .dot.html { background: #e34c26; }
.ef-row .dot.md   { background: #4a5b6a; }
.ef-row .dot.json { background: #19c6ff; }
.ef-folder { color: #b8ffe0; font-weight: 700; }
.indent  { padding-left: 16px; }
.indent2 { padding-left: 28px; }
.ef-row.active { background: rgba(57, 255, 178, 0.10); color: #c8f8e0; }

.editor-code {
  padding: 14px 18px;
  overflow-x: auto;
  background: #040810;
  line-height: 1.65;
  color: #c8f8e0;
}
.editor-code pre, .editor-code code {
  background: transparent;
  padding: 0;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
}
.editor-code .ln {
  display: inline-block;
  width: 24px;
  text-align: right;
  color: #3a4a5a;
  margin-right: 12px;
  user-select: none;
}
.tk-kw   { color: #19c6ff; }
.tk-var  { color: #39ffb2; }
.tk-prop { color: #aaffd9; }
.tk-str  { color: #fde68a; }
.tk-fn   { color: #79f2c8; }
.tk-com  { color: #4a5b6a; font-style: italic; }
.cursor  { display: inline-block; width: 9px; background: #39ffb2; color: transparent; animation: caret 1s steps(1) infinite; margin-left: 2px; }

.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 14px;
  background: #0a1422;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #6f8aa3;
}
.status-right { margin-left: auto; }

/* Section heading override (dark) */
body.dev-ide .section-heading span { color: #39ffb2; font-family: ui-monospace, monospace; }
body.dev-ide .section-heading h2 { color: #e6fff5; }
body.dev-ide .section-heading p { color: #94a8be; }

/* Stack grid */
.dev-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dev-lang {
  background: #0a1422;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
}
.dev-lang::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #39ffb2, #19c6ff);
}
.dev-lang.lang-js::before    { background: linear-gradient(90deg, #f7df1e, #f0db4f); }
.dev-lang.lang-html::before  { background: linear-gradient(90deg, #e34c26, #f06529); }
.dev-lang.lang-css::before   { background: linear-gradient(90deg, #2965f1, #39ffb2); }
.dev-lang.lang-py::before    { background: linear-gradient(90deg, #3776ab, #ffd43b); }
.dev-lang.lang-java::before  { background: linear-gradient(90deg, #f89820, #5382a1); }
.dev-lang.lang-cpp::before   { background: linear-gradient(90deg, #00599c, #f34b7d); }
.dev-lang.lang-git::before   { background: linear-gradient(90deg, #f05033, #f7df1e); }
.dev-lang.lang-linux::before { background: linear-gradient(90deg, #fcc624, #555); }
.dev-lang:hover { transform: translateY(-4px); border-color: rgba(57, 255, 178, 0.35); }
.dev-lang strong { display: block; color: #c8f8e0; font-family: ui-monospace, monospace; font-size: 16px; margin-bottom: 6px; }
.dev-lang span { color: #6f8aa3; font-size: 13px; }

/* Activity heatmap */
.dev-activity {
  background: #0a1422;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px;
}
.activity-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 16px);
  grid-auto-flow: column;
  grid-auto-columns: 16px;
  gap: 4px;
  overflow-x: auto;
}
.activity-heatmap .cell {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #0d1a2b;
}
.activity-heatmap .cell.l1 { background: #0d3b3b; }
.activity-heatmap .cell.l2 { background: #146868; }
.activity-heatmap .cell.l3 { background: #1ea8a8; }
.activity-heatmap .cell.l4 { background: #39ffb2; box-shadow: 0 0 8px rgba(57, 255, 178, 0.5); }
.activity-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #6f8aa3;
  font-size: 12px;
}
.activity-legend .lvl { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.activity-legend .lvl-0 { background: #0d1a2b; }
.activity-legend .lvl-1 { background: #0d3b3b; }
.activity-legend .lvl-2 { background: #146868; }
.activity-legend .lvl-3 { background: #1ea8a8; }
.activity-legend .lvl-4 { background: #39ffb2; }

/* Repo cards */
.dev-repo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dev-repo {
  background: #0a1422;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px;
  transition: 0.25s ease;
}
.dev-repo.featured-repo { border-color: rgba(57, 255, 178, 0.30); box-shadow: 0 0 0 1px rgba(57, 255, 178, 0.10), 0 22px 44px rgba(0,0,0,0.4); }
.dev-repo:hover { transform: translateY(-4px); border-color: rgba(57, 255, 178, 0.35); }
.dev-repo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dev-repo-name { color: #94a8be; font-size: 14px; font-family: ui-monospace, monospace; }
.dev-repo-name strong { color: #39ffb2; font-weight: 800; }
.repo-icon { color: #19c6ff; margin-right: 4px; }
.dev-repo-vis {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #94a8be;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.dev-repo p { color: #94a8be; font-size: 14px; margin: 8px 0 12px; line-height: 1.55; }
.dev-repo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #6f8aa3; font-size: 13px; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }
.js-d  { background: #f7df1e; }
.py-d  { background: #3776ab; }
.cpp-d { background: #00599c; }
.repo-stat.updated { margin-left: auto; color: #4a5b6a; font-style: italic; }

/* Git log */
.git-log-card {
  background: #0a1422;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 22px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}
.git-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
}
.git-row:last-child { border-bottom: 0; }
.git-sha { color: #39ffb2; font-weight: 800; }
.git-msg { color: #c8f8e0; }
.git-date { color: #4a5b6a; font-size: 12px; }

body.dev-ide .footer-note { color: #6f8aa3; }
body.dev-ide .footer-note code { color: #39ffb2; background: transparent; padding: 0; font-family: inherit; }


/* =====================================================================
   RESPONSIVE FIXES — new themes
===================================================================== */

@media (max-width: 1080px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-lg, .bento-wide { grid-column: span 2; }
  .d3-timeline { grid-template-columns: repeat(2, 1fr); }
  .d3-timeline-track { display: none; }
  .d3-project-grid { grid-template-columns: 1fr 1fr; }
  .dev-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-body { grid-template-columns: 1fr; }
  .editor-files { display: none; }
}

@media (max-width: 780px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .d3-timeline { grid-template-columns: 1fr; }
  .d3-project-grid { grid-template-columns: 1fr; }
  .dev-repo-grid { grid-template-columns: 1fr; }
  .dev-stack-grid { grid-template-columns: 1fr; }
  .d3-stage { min-height: 460px; }
  .d3-phone { right: 0; transform: rotate3d(0,1,0,-8deg); }
  .profile-frame { width: clamp(220px, 60vw, 320px); }
  .git-row { grid-template-columns: 70px 1fr; }
  .git-date { grid-column: 2; color: #6e7d9b; }
}


/* =====================================================================
   PAGE TRANSITIONS — bridge light/dark page jumps with smooth fade
===================================================================== */
body {
  animation: bodyFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes bodyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; }
}


/* =====================================================================
   HOME + BLOG :: WARM DARK THEME OVERRIDES
   Cards, buttons, panels styled for dark warm-coffee palette
===================================================================== */

body.home-theme,
body.blog-theme { color: var(--text); }

body.home-theme .hero-copy h1,
body.blog-theme .hero-copy h1 {
  color: var(--accent-2);
}

body.home-theme .site-header,
body.blog-theme .site-header {
  background: rgba(24, 20, 26, 0.78);
  border-bottom: 1px solid rgba(255, 235, 200, 0.08);
}
body.home-theme .logo,
body.blog-theme .logo { color: var(--accent-2); }
body.home-theme .nav-links a,
body.blog-theme .nav-links a { color: #b9b1a4; }
body.home-theme .nav-links a:hover,
body.home-theme .nav-links a.active,
body.blog-theme .nav-links a:hover,
body.blog-theme .nav-links a.active { color: var(--accent); }

body.home-theme .btn-secondary,
body.blog-theme .btn-secondary {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(255, 235, 200, 0.18);
}
body.home-theme .btn-secondary:hover,
body.blog-theme .btn-secondary:hover {
  background: rgba(255, 235, 200, 0.06);
  border-color: rgba(255, 235, 200, 0.30);
}

body.home-theme .btn-primary,
body.blog-theme .btn-primary { color: #18120a; }

body.home-theme .btn.btn-cv,
body.blog-theme .btn.btn-cv {
  background: linear-gradient(135deg, #2c2438, #3d3148);
  color: #ffe7c8;
  border: 1px solid rgba(255, 235, 200, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}
body.home-theme .btn.btn-cv:hover,
body.blog-theme .btn.btn-cv:hover {
  background: linear-gradient(135deg, #3a3046, #4a3d57);
}

body.home-theme .pill,
body.blog-theme .pill {
  background: rgba(255, 154, 69, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 154, 69, 0.28);
}

/* Cards & panels — darker surface */
body.home-theme .feature-panel,
body.home-theme .soft-card,
body.home-theme .stat-box,
body.home-theme .timeline-card,
body.home-theme .skill-card,
body.home-theme .notice-banner,
body.home-theme .blog-hero-card,
body.blog-theme .feature-panel,
body.blog-theme .soft-card,
body.blog-theme .stat-box,
body.blog-theme .timeline-card,
body.blog-theme .skill-card,
body.blog-theme .notice-banner,
body.blog-theme .blog-hero-card {
  background: linear-gradient(180deg, rgba(255, 235, 200, 0.04), rgba(255, 235, 200, 0.015));
  border: 1px solid rgba(255, 235, 200, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

body.home-theme .accent-panel,
body.blog-theme .accent-panel {
  background: linear-gradient(135deg, rgba(255, 154, 69, 0.18), rgba(120, 70, 200, 0.14));
  border: 1px solid rgba(255, 154, 69, 0.22);
}

body.home-theme .floating-note,
body.blog-theme .floating-note {
  background: rgba(34, 28, 42, 0.85);
  border: 1px solid rgba(255, 235, 200, 0.10);
  color: var(--text);
}
body.home-theme .floating-note span,
body.blog-theme .floating-note span { color: #b9b1a4; }
body.home-theme .floating-note strong,
body.blog-theme .floating-note strong { color: var(--accent-2); }

/* Now widget on dark */
body.home-theme .now-widget,
body.blog-theme .now-widget {
  background: linear-gradient(135deg, rgba(34, 28, 42, 0.85), rgba(28, 23, 34, 0.85));
  border: 1px solid rgba(255, 235, 200, 0.10);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
body.home-theme .now-label,
body.blog-theme .now-label { color: var(--accent); }
body.home-theme .now-track span,
body.blog-theme .now-track span { color: #ddd3c4; }

/* Headings & text on dark */
body.home-theme .section-heading h2,
body.blog-theme .section-heading h2 { color: var(--accent-2); }
body.home-theme .section-heading p,
body.blog-theme .section-heading p { color: #b9b1a4; }
body.home-theme .feature-panel h3,
body.home-theme .stat-box h3,
body.home-theme .blog-hero-card h3,
body.blog-theme .feature-panel h3,
body.blog-theme .stat-box h3,
body.blog-theme .blog-hero-card h3 { color: var(--accent-2); }

/* Blog category pills — dark variants */
body.blog-theme .cat-pill {
  background: rgba(255, 235, 200, 0.04);
  border: 1px solid rgba(255, 235, 200, 0.12);
  color: #ddd3c4;
}
body.blog-theme .cat-pill.cat-all     { background: linear-gradient(135deg, #ff9a45, #ffcd80); color: #18120a; border-color: transparent; }
body.blog-theme .cat-pill.cat-cyber   { background: rgba(57, 255, 178, 0.10); color: #aaffd9; border-color: rgba(57, 255, 178, 0.28); }
body.blog-theme .cat-pill.cat-design  { background: rgba(217, 70, 239, 0.14); color: #f5b8ff; border-color: rgba(217, 70, 239, 0.30); }
body.blog-theme .cat-pill.cat-dev     { background: rgba(57, 130, 246, 0.14); color: #a8c4ff; border-color: rgba(57, 130, 246, 0.30); }
body.blog-theme .cat-pill.cat-travel  { background: rgba(20, 184, 166, 0.14); color: #96f2e0; border-color: rgba(20, 184, 166, 0.30); }
body.blog-theme .cat-pill.cat-train   { background: rgba(245, 158, 11, 0.18); color: #ffd58a; border-color: rgba(245, 158, 11, 0.32); }
body.blog-theme .cat-pill.cat-learn   { background: rgba(34, 197, 94, 0.16); color: #b6f0c8; border-color: rgba(34, 197, 94, 0.32); }
body.blog-theme .cat-pill.cat-life    { background: rgba(244, 63, 94, 0.14); color: #ffb8c6; border-color: rgba(244, 63, 94, 0.30); }

/* Blog post cards */
body.blog-theme .blog-post-card {
  background: linear-gradient(180deg, rgba(255, 235, 200, 0.04), rgba(255, 235, 200, 0.015));
  border: 1px solid rgba(255, 235, 200, 0.10);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
body.blog-theme .blog-post-card h3 { color: var(--accent-2); }
body.blog-theme .blog-post-card p { color: #b9b1a4; }
body.blog-theme .blog-post-meta { color: #998d80; }

body.home-theme .footer-note,
body.blog-theme .footer-note { color: #998d80; }


/* =====================================================================
   DEVELOPMENT PAGE :: extra polish to match cyber hacker aesthetic
===================================================================== */
body.dev-ide {
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(57, 255, 178, 0.10), transparent 55%),
    radial-gradient(900px 600px at 110% 0%, rgba(25, 198, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #050b15 0%, #060e1c 100%);
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
}
body.dev-ide .hero-copy h1 {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* Subtle scan-line texture on dev hero, like cyber */
body.dev-ide main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(57, 255, 178, 0.025) 0,
    rgba(57, 255, 178, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 0;
  opacity: 0.7;
}
body.dev-ide main > * { position: relative; z-index: 1; }


/* =====================================================================
   GLOBAL RESPONSIVE FIXES (header collapse, hero stack, mobile)
===================================================================== */

@media (max-width: 880px) {
  .navbar { min-height: 56px; }
  .logo { font-size: 16px; }
  .logo img { width: 28px; height: 28px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: 56px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }
  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  body.home-theme .nav-links,
  body.blog-theme .nav-links { background: #18141a; }
  body.dev-ide .nav-links { background: #050b15; }

  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 56px;
    min-height: auto;
    gap: 32px;
  }
  .hero-visual { min-height: auto; }

  .hero-actions { gap: 10px; }
  .btn { min-height: 48px; padding: 0 18px; font-size: 14px; }

  .home-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .large-panel { grid-row: auto; }
  .panel-image-wrap img { height: 220px; }

  .floating-note { display: none; }

  .now-widget { max-width: 100%; padding: 12px 14px; }
  .now-track { gap: 18px; }
  .now-track span { font-size: 13px; }

  .dev-editor { font-size: 11.5px; }
  .editor-tabs { display: none; }
  .editor-code { padding: 12px 10px; }

  .d3-headline { font-size: clamp(40px, 12vw, 64px) !important; }
  .d3-meta { gap: 18px; }
  .d3-stage { min-height: 380px; }
  .d3-phone { width: 180px; height: 360px; right: -10px; top: 10px; }
  .d3-card-back { width: 180px; left: -20px; }
  .d3-card-mini { width: 130px; bottom: 10px; left: 30px; }
  .d3-float-cube { width: 44px; height: 44px; }
  .d3-float-pyramid { width: 36px; height: 36px; }
  .d3-float-ring { width: 56px; height: 56px; }

  .section { padding: 56px 0; }
  .section-heading h2 { font-size: clamp(28px, 7vw, 40px); }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .profile-frame { width: clamp(220px, 80vw, 320px); }
  .now-marquee { -webkit-mask-image: none; mask-image: none; }
}
