/* ============================================================
   Muhammad Aiman bin Jamaluddin — CS (Hons.) Portfolio
   Clean, Professional Engineering Layout + @CaribbeanGreen Mosaic
   ============================================================ */

:root {
  --display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 5vw, 60px);
  --gold: #FFD64A;
}

/* ---------- Dark Theme (Default) ---------- */
html[data-theme="dark"] {
  --bg: #050A06;
  --surface: rgba(10, 18, 12, 0.88);
  --surface-2: rgba(15, 27, 18, 0.92);
  --surface-elevated: rgba(20, 36, 24, 0.95);
  --text: #F3F8F4;
  --text-soft: #CFE0D2;
  --text-muted: #8FA894;
  --line: rgba(24, 230, 62, 0.2);
  --line-soft: rgba(24, 230, 62, 0.11);

  --accent: #18E63E;
  --accent-quiet: rgba(24, 230, 62, 0.12);
  --accent-edge: rgba(24, 230, 62, 0.45);
  --btn-bg: #18E63E;
  --btn-ink: #030A04;
  --btn-bg-hover: #52F270;

  --nav-bg: rgba(5, 10, 6, 0.88);
  --card-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.85);
}

/* ---------- Light Theme ---------- */
html[data-theme="light"] {
  --bg: #F4F8F5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(235, 244, 237, 0.95);
  --surface-elevated: #FFFFFF;
  --text: #071409;
  --text-soft: #243828;
  --text-muted: #526956;
  --line: rgba(11, 138, 36, 0.22);
  --line-soft: rgba(11, 138, 36, 0.12);

  --accent: #0B8A24;
  --accent-quiet: rgba(11, 138, 36, 0.09);
  --accent-edge: rgba(11, 138, 36, 0.4);
  --btn-bg: #0B8A24;
  --btn-ink: #FFFFFF;
  --btn-bg-hover: #086B1B;

  --nav-bg: rgba(244, 248, 245, 0.9);
  --card-shadow: 0 18px 38px -22px rgba(7, 20, 9, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Animated @CaribbeanGreen Triangle Mosaic Background */
.bg-mosaic {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.sec {
  padding-block: clamp(64px, 8vw, 108px);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.sec-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-top: 10px;
}

.sec-head p {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* Scroll reveal */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rise.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}

.nav.stuck {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand span {
  color: var(--accent);
}

.brand-mosaic {
  border-radius: 6px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}

.nav-links a:not(.btn) {
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.18s;
}

.nav-links a:not(.btn):hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}

.theme {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.theme:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme svg {
  width: 17px;
  height: 17px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .theme .i-sun { display: block; }
html[data-theme="dark"] .theme .i-moon { display: none; }
html[data-theme="light"] .theme .i-sun { display: none; }
html[data-theme="light"] .theme .i-moon { display: block; }

@media (max-width: 880px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .nav-links a.btn { display: none; }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding-top: clamp(104px, 11vw, 138px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 0.98;
  margin-top: 12px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(24, 230, 62, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(24, 230, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 230, 62, 0); }
}

.hero-me {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.hero-me img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.hero-me figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-me figcaption b {
  color: var(--text);
  font-size: 13px;
  display: block;
}

@media (max-width: 880px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
  .hero-me {
    max-width: 280px;
  }
}

/* ============================================================
   Proof Numbers Bar (.stats)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  background: var(--surface);
  backdrop-filter: blur(12px);
  padding: 24px 22px;
}

.stat .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat .k {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ============================================================
   Core Focus & Technical Skills Matrix (#skills)
   ============================================================ */
.core-banner {
  background: var(--surface);
  border: 1.5px solid var(--accent-edge);
  border-radius: 16px;
  padding: clamp(24px, 3.2vw, 36px);
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

@media (max-width: 880px) {
  .core-banner { grid-template-columns: 1fr; gap: 22px; }
}

.core-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.core-banner h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 14px;
}

.core-banner p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.core-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.core-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.core-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.core-points li strong {
  color: var(--text);
}

/* Resume-Matched Skills Grid */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .skills-matrix { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .skills-matrix { grid-template-columns: 1fr; }
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}

.skill-group:hover {
  border-color: var(--accent-edge);
  transform: translateY(-3px);
}

.skill-group .sg-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.skill-group h4 {
  font-size: 19px;
  margin-top: 6px;
}

.pill-wrap {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
}

.pill.hi {
  border-color: var(--accent-edge);
  color: var(--text);
  background: var(--accent-quiet);
}

/* ============================================================
   Featured Projects (#projects)
   ============================================================ */
.fyp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  border: 1.5px solid var(--accent-edge);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

@media (max-width: 880px) {
  .fyp-card { grid-template-columns: 1fr; }
}

.fyp-visual {
  background: linear-gradient(145deg, rgba(6, 54, 18, 0.9), rgba(8, 16, 11, 0.95));
  border-right: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 880px) {
  .fyp-visual { border-right: 0; border-bottom: 1px solid var(--line); }
}

.fyp-body {
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fyp-body h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 10px;
}

.resume-bullets {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.resume-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

.resume-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.resume-bullets li strong {
  color: var(--text);
}

/* Two-up & Three-up Project Cards */
.proj-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 880px) {
  .proj-grid-2 { grid-template-columns: 1fr; }
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.proj-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-edge);
}

.shotbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}

.shotbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}

.shotbar span {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proj-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.proj-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.flag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-quiet);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

.flag.warm {
  color: #061209;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.proj-year {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.proj-body h3 {
  font-size: 22px;
  margin-top: 12px;
}

.tags {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
}

.proj-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
}

.proj-links a {
  color: var(--accent);
  font-weight: 500;
}

.proj-links a:hover {
  text-decoration: underline;
}

/* Archive Rows (.more) */
.more {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.more-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}

.more-row:last-child {
  border-bottom: 0;
}

.more-row:hover {
  background: var(--surface-2);
}

.more-row h4 {
  font-size: 16.5px;
  font-weight: 700;
}

.more-row p {
  font-size: 14px;
  color: var(--text-muted);
}

.more-row .k {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .more-row { grid-template-columns: 1fr; gap: 4px; }
  .more-row .k { text-align: left; }
}

/* ============================================================
   Interactive Browser Workbench (#preview)
   ============================================================ */
.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.chip {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--text-soft);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chip[aria-selected="true"] {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; }
}

.chrome {
  border-radius: 14px;
  overflow: hidden;
  background: #0B120D;
  color: #F2F7F3;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
}

.chrome-tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 12px 0;
  background: #142117;
}

.tabs-dots {
  display: flex;
  gap: 6px;
  padding: 0 6px 9px 2px;
}

.tabs-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.tabs-dots i:nth-child(1) { background: #F45B4F; }
.tabs-dots i:nth-child(2) { background: #F8BC3F; }
.tabs-dots i:nth-child(3) { background: #4FC44F; }

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0B120D;
  border-radius: 9px 9px 0 0;
  padding: 8px 14px;
  max-width: 280px;
  font-size: 12px;
  color: #E2E8F0;
}

.tab .fav {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
  background: #18E63E;
}

.tab b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab .x {
  opacity: 0.45;
  font-size: 13px;
}

.tab-new {
  padding: 0 0 9px 4px;
  color: #8E95A5;
  font-size: 15px;
}

.chrome-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #101A13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-arrows {
  display: flex;
  gap: 11px;
  color: #7D8597;
  font-size: 13px;
}

.url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #070C08;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url svg {
  width: 11px;
  height: 11px;
  flex: none;
  stroke: #18E63E;
  fill: none;
  stroke-width: 2;
}

.url b {
  color: #F8FAFC;
  font-weight: 500;
}

.wb-view {
  display: none;
  padding: 24px;
}

.wb-view.active {
  display: block;
}

.wb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wb-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 230, 62, 0.15);
  color: #18E63E;
}

.wb-kpi {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 36px);
  color: var(--gold);
  letter-spacing: -0.03em;
}

.wb-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .wb-grid { grid-template-columns: 1fr; }
}

.wb-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
}

.wb-box h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
}

.ctrl-row {
  margin-bottom: 12px;
}

.ctrl-row:last-child {
  margin-bottom: 0;
}

.ctrl-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #CBD5E1;
  margin-bottom: 4px;
}

.ctrl-lbl b {
  font-family: var(--mono);
  color: #18E63E;
}

.wb-view input[type="range"] {
  width: 100%;
  accent-color: #18E63E;
  cursor: pointer;
}

.wb-view select,
.wb-view input[type="text"],
.wb-view textarea {
  width: 100%;
  background: #060B07;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 11px;
  font-family: var(--body);
  font-size: 13.5px;
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.mini-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.shap-bars {
  display: grid;
  gap: 9px;
}

.shap-item {
  display: grid;
  grid-template-columns: 128px 1fr 68px;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.shap-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.shap-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.shap-fill.pos { background: #18E63E; }
.shap-fill.neg { background: #F43F5E; }

.shap-val.pos { color: #18E63E; text-align: right; }
.shap-val.neg { color: #FB7185; text-align: right; }

.trace-console {
  background: #060B07;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: #94A3B8;
  max-height: 195px;
  overflow-y: auto;
}

.trace-ok { color: #18E63E; }
.trace-err { color: #FB7185; }

.spec {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.spec h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.spec li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.45;
}

.spec li::before {
  content: "▸";
  color: var(--accent);
  flex: none;
}

.spec .line {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.spec .line b {
  color: var(--text);
  font-weight: 600;
}

.spec .btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Work Experience & Education Timeline (#experience)
   ============================================================ */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.exp-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.exp-role {
  font-size: clamp(21px, 2.4vw, 27px);
}

.exp-company {
  margin-top: 4px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
}

.exp-date {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.edu-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 880px) {
  .edu-grid { grid-template-columns: 1fr; }
}

.cert-strip {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
}

.cert-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Industrial Training (CST688) & Contact (#hire & #contact)
   ============================================================ */
.hire-card {
  background: linear-gradient(145deg, rgba(8, 52, 18, 0.94), rgba(5, 22, 9, 0.96));
  border: 1.5px solid var(--accent-edge);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  color: #F3F8F4;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
}

.hire-in {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

@media (max-width: 880px) {
  .hire-in { grid-template-columns: 1fr; }
}

.hire-card h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  margin-top: 10px;
  color: #FFFFFF;
}

.hire-card p {
  margin-top: 16px;
  color: rgba(243, 248, 244, 0.85);
  font-size: 16px;
  line-height: 1.6;
}

.facts {
  margin: 0;
  display: grid;
}

.fact {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14.5px;
}

.fact:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.fact dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6EE7B7;
  padding-top: 2px;
}

.fact dd {
  margin: 0;
  color: #FFFFFF;
}

@media (max-width: 520px) {
  .fact { grid-template-columns: 1fr; gap: 4px; }
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(12px);
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.side-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  transition: padding-left 0.18s ease;
}

.side-link:hover {
  padding-left: 6px;
}

.side-link b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.side-link em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}

.side-link:hover em {
  color: var(--accent);
}

.side-link i {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--text-muted);
  border-bottom: 1.8px solid var(--text-muted);
  transform: rotate(-45deg);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .rise {
    opacity: 1;
    transform: none;
  }
}
