/* =========================================================================
   Sohan Kharel — Portfolio
   Clean Minimal Light Theme Only
   Optimized for Mobile Tap & Desktop
   High contrast, crisp typography, responsive & accessible
   ========================================================================= */

:root {
  --anchor-offset: 76px;

  /* Typography */
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --pad: clamp(16px, 4.5vw, 40px);

  /* Light Theme Palette */
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #f1f5f9;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bone: #0f172a;
  --bone-dim: #334155;
  --bone-mute: #64748b;
  --accent: #0284c7;
  --accent-dim: #0369a1;
  --accent-soft: rgba(2, 132, 199, 0.08);
  --accent-glow: rgba(2, 132, 199, 0.18);
  --badge-bg: rgba(2, 132, 199, 0.06);
  --card-glow: rgba(2, 132, 199, 0.04);
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 10px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --header-bg: rgba(255, 255, 255, 0.94);
}

/* Base Reset & Tap Optimization */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

section[id], main[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--bone);
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--bone);
  text-decoration: none;
  touch-action: manipulation;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 600;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
  font-weight: 600;
}

/* Micro-interaction tap states for mobile */
.cta:active,
.nav a:active,
.contact-card:active,
.wa:active,
.skills-toggle-btn:active,
.thm-head:active {
  transform: scale(0.978);
  transition: transform 0.1s ease;
}

/* ================= Header & Sticky Navigation ================= */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.top-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  min-height: 44px;
  transition: opacity 0.15s ease;
}

.brand:hover {
  color: var(--bone);
  opacity: 0.9;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 30px;
  border: 1.5px solid var(--line-2);
  background: var(--bg-3);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.08);
  border-color: var(--accent);
}

.brand-name {
  color: var(--bone);
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.nav a:hover {
  color: var(--bone);
  background: var(--bg-3);
  border-color: var(--line);
}

.nav a[aria-current="true"] {
  color: var(--accent-dim);
  background: var(--accent-soft);
  border-color: var(--line-2);
  font-weight: 600;
}

/* Responsive Mobile Navigation — Single Line Layout */
@media (max-width: 820px) {
  .top {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .top-in {
    flex-wrap: nowrap;
    min-height: 56px;
    height: 56px;
    padding: 0 clamp(10px, 2.5vw, 20px);
    gap: 8px;
    justify-content: space-between;
  }

  .brand {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 44px;
    font-size: clamp(0.92rem, 2.6vw, 1.02rem);
  }

  .brand-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .brand-name {
    white-space: nowrap;
  }

  .nav {
    order: unset;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 2px 2px 2px 8px;
    border-top: none;
    mask-image: linear-gradient(to right, transparent, black 12px, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black 100%);
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    min-height: 36px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  }

  .nav a[aria-current="true"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-dim);
    font-weight: 600;
  }
}

@media (max-width: 400px) {
  .top-in {
    padding: 0 8px;
    gap: 6px;
  }

  .brand {
    font-size: 0.88rem;
    gap: 6px;
  }

  .brand-logo {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .nav a {
    padding: 6px 9px;
    font-size: 0.68rem;
    min-height: 32px;
  }
}

/* ================= Hero Section ================= */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  --spot-x: 50%;
  --spot-y: 40%;
  --spot-opacity: 0.55;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

/* Option 2: Dot-Grid Blueprint with Cursor Spotlight */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(var(--line-2) 1.25px, transparent 1.25px);
  background-size: 24px 24px;
  background-position: center center;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at 50% 45%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 40%, transparent 95%);
}

.hero-spotlight-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(#0284c7 1.8px, transparent 1.8px);
  background-size: 24px 24px;
  background-position: center center;
  opacity: var(--spot-opacity, 0.55);
  mask-image: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 40%), black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 40%), black 0%, transparent 80%);
  transition: opacity 0.35s ease;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    560px circle at var(--spot-x, 50%) var(--spot-y, 40%),
    rgba(2, 132, 199, 0.12),
    rgba(56, 189, 248, 0.04) 45%,
    transparent 72%
  );
  opacity: var(--spot-opacity, 0.55);
  transition: opacity 0.35s ease;
}

.hero h1 {
  margin-bottom: 0.25em;
  max-width: 18ch;
}

.hero-role {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.8vw, 1.18rem);
  letter-spacing: -0.01em;
  color: var(--bone-dim);
  font-weight: 500;
  margin-bottom: clamp(22px, 3.2vw, 30px);
}


/* About Block */
.about-block {
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 860px) {
  .about-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.about-main p {
  color: var(--bone-dim);
  font-size: clamp(0.96rem, 1.5vw, 1.05rem);
  line-height: 1.74;
  max-width: 66ch;
}

.about-main p + p {
  margin-top: 16px;
}

.about-main strong {
  color: var(--bone);
  font-weight: 600;
}

/* Motto Box */
.about-motto {
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-motto-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 600;
}

.about-motto-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1.35;
}

/* Call-to-action buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4.5vw, 44px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--bone);
  background: var(--bg-2);
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.cta:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
  background: var(--bg-3);
}

.cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.cta-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.cta-copy {
  background: var(--bg-2);
}

.cta-copy:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
}

@media (max-width: 580px) {
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cta {
    width: 100%;
    min-height: 50px;
    font-size: 0.8rem;
  }
}

/* ================= TryHackMe Card ================= */
.hero-thm {
  margin-top: clamp(36px, 5vw, 52px);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-thm:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-hover);
}

.thm-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}

.thm-title h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.thm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  font-weight: 600;
  transition: all 0.15s ease;
}

.thm-live-badge:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.thm-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 24px);
  transition: background 0.15s ease;
}

.thm-head:hover {
  background: #fafafa;
}

.thm-avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
}

.thm-id {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.thm-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.thm-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 3px;
}

.thm-bio {
  color: var(--bone-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 6px;
}

.thm-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
  font-weight: 600;
}

.thm-head:hover .thm-verify-btn {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

@media (max-width: 680px) {
  .thm-head {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }
  .thm-avatar {
    width: 60px;
    height: 60px;
  }
  .thm-verify-btn {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

/* Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
}

.stats div {
  padding: clamp(14px, 2vw, 18px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-2);
}

.stats div:last-child {
  border-right: none;
}

.stats dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-bottom: 6px;
  font-weight: 600;
}

.stats dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--bone);
  line-height: 1.1;
}

.stats dd span {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 4px;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats div:nth-child(2n) {
    border-right: none;
  }
  .stats div {
    border-bottom: 1px solid var(--line);
  }
  .stats div:last-child {
    grid-column: 1 / -1;
    border-bottom: none;
  }
}

/* THM Badges */
.thm-badges {
  padding: clamp(16px, 2.2vw, 20px) clamp(16px, 2.5vw, 24px);
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}

.thm-badges ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.thm-badges li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.thm-badges li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.thm-badges li img {
  width: 32px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.thm-badges li span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--bone);
  font-weight: 600;
}

.thm-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--bone-mute);
}

.thm-status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.thm-status-bar .thm-sep {
  color: var(--line-2);
}

.thm-status-bar .thm-sync-date {
  color: var(--bone-dim);
  font-weight: 500;
}

.thm-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.thm-ext-link:hover {
  color: var(--bone);
}

/* ================= Section Generic ================= */
.sec {
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}

.sec-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.sec-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--bone-mute);
  padding-bottom: 4px;
  font-weight: 600;
}

/* ================= Projects Section ================= */
.proj-grid {
  display: grid;
  gap: 20px;
}

.proj {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 220px;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  align-items: start;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proj:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-hover);
}

.proj-ava {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #111a2b;
  display: block;
}

.proj-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.proj-head h3 {
  font-size: 1.25rem;
}

.proj-status-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  background: var(--badge-bg);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.proj p {
  color: var(--bone-dim);
  font-size: 0.96rem;
  line-height: 1.7;
}

.proj p + p {
  margin-top: 10px;
}

.proj-side {
  border-left: 1px solid var(--line);
  padding-left: clamp(16px, 2.5vw, 24px);
}

.proj-side dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.proj-side dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-bottom: 2px;
  font-weight: 600;
}

.proj-side dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--bone);
  font-weight: 500;
}

.proj-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--accent-dim);
  font-weight: 600;
  transition: all 0.15s ease;
}

.proj-repo-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

@media (max-width: 920px) {
  .proj {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }
  .proj-ava {
    width: 64px;
    height: 64px;
  }
  .proj-side {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 600px) {
  .proj {
    grid-template-columns: 1fr;
  }
}

.proj-foot {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

.proj-foot a {
  color: var(--accent-dim);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  font-weight: 600;
}

/* ================= Certification Section ================= */
.cert {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 36px);
  align-items: start;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-hover);
}

.cert-badge {
  border: 1px solid var(--line);
  padding: 8px;
  background: #ffffff;
  border-radius: 8px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.cert-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.cert h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: 6px;
}

.cert .issuer {
  color: var(--bone-dim);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.cert .issuer b {
  color: var(--bone);
  font-weight: 600;
}

.cert .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 16px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.tag.is-ok {
  color: var(--accent-dim);
  border-color: var(--accent);
  background: var(--badge-bg);
  font-weight: 600;
}

.cert p.desc {
  color: var(--bone-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 66ch;
}

.cert-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 600;
  transition: all 0.15s ease;
}

.cert-verify-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .cert {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }
}

/* ================= Skills Strip & Grid ================= */
.skills-strip {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.skills-strip-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.skills-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-toggle-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 6px 12px;
  border-radius: 6px;
  min-height: 36px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.skills-toggle-btn:hover {
  background: var(--bg-3);
  border-color: var(--accent);
}

/* Default: Horizontal Scroller with smooth snap */
.skills-scroll {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.skills-scroll::-webkit-scrollbar {
  height: 6px;
}
.skills-scroll::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 4px;
}

.skills-scroll li {
  flex: 0 0 auto;
  width: clamp(210px, 26vw, 250px);
  scroll-snap-align: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  display: grid;
  gap: 6px;
  align-content: start;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.skills-scroll li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.skills-scroll li b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  line-height: 1.25;
}

.skills-scroll li span {
  font-size: 0.78rem;
  color: var(--bone-dim);
  line-height: 1.45;
}

/* Grid View Mode */
.skills-scroll.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow-x: visible;
  scroll-snap-type: none;
}

.skills-scroll.is-grid li {
  width: auto;
}

.skills-hint {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 4px;
}

/* ================= Contact Section ================= */
.contact {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.contact-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--pad);
}

.contact h2 {
  margin-bottom: 14px;
}

.contact .lead {
  color: var(--bone-dim);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.68;
  max-width: 54ch;
  margin-bottom: clamp(28px, 4vw, 42px);
}

/* WhatsApp Card */
.wa {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 3vw, 24px);
  background: #ffffff;
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 8px;
  max-width: 500px;
  margin-bottom: clamp(28px, 4vw, 40px);
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.08);
  min-height: 72px;
}

.wa:hover {
  border-color: #25d366;
  background: #f0fdf4;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

.wa-ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #16a34a;
}

.wa-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wa-k {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-mute);
  font-weight: 600;
}

.wa-v {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.wa:hover .wa-v {
  color: #16a34a;
}

.wa-ar {
  margin-left: auto;
  color: #16a34a;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.contact-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.contact-card:hover {
  border-color: var(--accent);
  background: #fafafa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-dim);
  transition: all 0.15s ease;
}

.contact-card:hover .contact-card-icon {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.contact-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-card .k {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-mute);
  font-weight: 600;
}

.contact-card .v {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bone);
  overflow-wrap: anywhere;
}

.contact-card:hover .v {
  color: var(--accent-dim);
}

.contact-card.is-email {
  cursor: pointer;
}

/* ================= Footer ================= */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px var(--pad) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-mute);
  font-weight: 500;
}

.foot a {
  color: var(--bone-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.foot a:hover {
  color: var(--bone);
}

.foot-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ================= Toast Notification ================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  color: var(--bone);
  border: 1px solid var(--accent);
  padding: 12px 22px;
  border-radius: 30px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent);
  font-weight: bold;
}

/* ================= Back to Top Button ================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-2);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ================= Scroll Reveal Animations ================= */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ================= Privacy Policy Page ================= */
.policy-page {
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 8vw, 96px);
  min-height: calc(100vh - 160px);
}

.policy-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  background: var(--accent-soft);
  border: 1px solid var(--line-2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  font-weight: 600;
}

.policy-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.policy-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.policy-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--bone-mute);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--bone-dim);
  font-size: 0.95rem;
  line-height: 1.72;
}

.policy-content h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-top: 10px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-content h2::before {
  content: "§";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
}

.policy-content p {
  color: var(--bone-dim);
}

.policy-content ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-content li {
  color: var(--bone-dim);
}

.policy-content strong {
  color: var(--bone);
  font-weight: 600;
}

.policy-content a {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.policy-content a:hover {
  color: var(--accent);
}

.policy-box {
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 6px 0;
}

.policy-box p {
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.policy-back-bar {
  max-width: 860px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bone-dim);
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}

.policy-back-link:hover {
  color: var(--bone);
  border-color: var(--line-2);
  background: var(--bg-3);
  transform: translateX(-2px);
}

/* ================= Print ================= */
@media print {
  .top, .foot, .back-to-top, .toast, .skills-toggle-btn {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .sec, .contact, .hero {
    border-color: #ddd !important;
  }
  .contact {
    background: #fff !important;
  }
}