:root {
  --bg: #060a14;
  --s1: #0c1220;
  --s2: #111827;
  --bd: #1e2d45;
  --bd2: #2a4060;
  --green: #00e5a0;
  --gdim: rgba(0, 229, 160, 0.1);
  --gglow: rgba(0, 229, 160, 0.22);
  --blue: #38bdf8;
  --amber: #fbbf24;
  --txt: #e2e8f0;
  --dim: #94a3b8;
  --muted: #64748b;
  --mono: "Space Mono", monospace;
  --disp: "Syne", sans-serif;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  cursor: none;
}

/* ═══ CURSOR ═══ */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.08s,
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    left 0.12s ease,
    top 0.12s ease,
    width 0.25s,
    height 0.25s,
    opacity 0.2s;
  opacity: 0.5;
}
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(0, 229, 160, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition:
    left 0.18s ease,
    top 0.18s ease;
}

/* ═══ LOADER ═══ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  font-family: var(--disp), sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 30%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderPulse 1s ease infinite alternate;
}
@keyframes loaderPulse {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}
.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: var(--bd);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
  animation: loadFill 1.4s ease forwards;
}
@keyframes loadFill {
  0% {
    width: 0;
  }
  60% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}
.loader-text {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ═══ PARTICLES ═══ */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ═══ SCANLINES ═══ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.018) 2px,
    rgba(0, 0, 0, 0.018) 4px
  );
}

/* ═══ NAV ═══ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo a {
  font-family: var(--disp), sans-serif;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--green);
  letter-spacing: -0.02em;
  cursor: none;
}
.logo em {
  color: var(--muted);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: none;
}
.nav-a:hover {
  color: var(--txt);
  border-color: var(--bd2);
  background: var(--s1);
}
.nav-a.active {
  color: var(--green);
  border-color: var(--green);
  background: var(--gdim);
}

/* ═══ LAYOUT ═══ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
section {
  padding: 96px 0;
}
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent 60%);
  opacity: 0.2;
  margin-bottom: 0;
}
.sec-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.sec-label::before {
  content: "$ ";
  color: var(--blue);
}
.sec-h {
  font-family: var(--disp), sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--txt);
  margin-bottom: 36px;
}
.sec-h span {
  color: var(--green);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* ═══ HERO ═══ */
#hero {
  padding: 72px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 36px;
  align-items: start;
}
.hero-term {
  background: var(--s1);
  border: 1px solid var(--bd2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 229, 160, 0.07),
    0 0 80px rgba(0, 229, 160, 0.07),
    0 28px 70px rgba(0, 0, 0, 0.6);
  position: relative;
}
.hero-term::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
}
.hero-term::after {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(0, 229, 160, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.tbar {
  background: var(--s2);
  border-bottom: 1px solid var(--bd);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dr {
  background: #ff5f56;
}
.dy {
  background: #ffbd2e;
}
.dg {
  background: #27c93f;
}
.tpath {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}
.hero-body {
  padding: 36px 40px 42px;
  position: relative;
  z-index: 1;
}
.hprompt {
  font-size: 0.75rem;
  color: var(--blue);
  margin-bottom: 6px;
}
.hprompt::before {
  content: "$ ";
  color: var(--muted);
}
.hname {
  font-family: var(--disp), sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
  background: linear-gradient(135deg, #fff 20%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hrole {
  font-size: 0.85rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pdot 2s infinite;
  flex-shrink: 0;
}
@keyframes pdot {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--gglow);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}
.typed-wrap {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 18px;
  min-height: 1.4em;
}
#typed-text {
  color: var(--green);
}
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.75s step-end infinite;
}
.hquote {
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.75;
  border-left: 2px solid var(--green);
  padding-left: 16px;
  margin: 0 0 20px;
  font-style: italic;
}
.habout {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.85;
  max-width: 560px;
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.badge {
  font-size: 0.67rem;
  color: var(--green);
  background: var(--gdim);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  animation: badgeFloat 3s ease-in-out infinite;
}
.badge:nth-child(2) {
  animation-delay: 0.4s;
}
.badge:nth-child(3) {
  animation-delay: 0.8s;
}
.badge:nth-child(4) {
  animation-delay: 1.2s;
}
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.stat {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 13px 15px;
  transition: all 0.25s;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--green);
  transition: height 0.3s ease;
  border-radius: 0 2px 2px 0;
}
.stat:hover {
  border-color: var(--green);
  transform: translateX(-4px);
}
.stat:hover::before {
  height: 100%;
}
.stat-l {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.stat-v {
  font-family: var(--disp), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

/* ═══ SKILLS ═══ */
.hint-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 5px;
  padding: 7px 13px;
  margin-bottom: 24px;
}
.hd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pdot 1.5s infinite;
}
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.sg {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.sg:hover {
  border-color: var(--bd2);
}
.sg-title {
  background: var(--s2);
  border-bottom: 1px solid var(--bd);
  padding: 11px 15px;
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sg-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.si {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 5px;
  cursor: none;
  transition: all 0.18s;
  position: relative;
  user-select: none;
}
.si:hover {
  border-color: var(--green);
  background: var(--gdim);
  transform: translateX(5px);
}
.si:active {
  transform: translateX(2px) scale(0.98);
}
.si::after {
  content: "↗";
  position: absolute;
  right: 11px;
  font-size: 0.65rem;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.18s;
}
.si:hover::after {
  opacity: 1;
}
.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.sname {
  font-size: 0.8rem;
  color: var(--dim);
  flex: 1;
}
.si:hover .sname {
  color: var(--txt);
}
.sg-hint {
  font-size: 0.62rem;
  color: var(--muted);
  padding: 0 11px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sg-hint::before {
  content: "ℹ";
  color: var(--blue);
}

/* ═══ EXPERTISE ═══ */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}
.ec {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 22px;
  transition: all 0.3s;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.ec-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(0, 229, 160, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.ec:hover .ec-shine {
  opacity: 1;
}
.ec::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}
.ec:hover {
  border-color: var(--bd2);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.ec:hover::after {
  opacity: 1;
}
.ec-icon {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.ec-title {
  font-family: var(--disp), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--txt);
  margin-bottom: 7px;
}
.ec-desc {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══ PROJECTS ═══ */
.proj-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.pf-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--bd);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: none;
  transition: all 0.22s;
}
.pf-btn:hover {
  color: var(--txt);
  border-color: var(--bd2);
  background: var(--s1);
}
.pf-btn.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--gdim);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
.pc {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.32s;
  position: relative;
  cursor: none;
  display: flex;
  flex-direction: column;
}
.pc:hover {
  border-color: var(--green);
  transform: translateY(-7px);
  box-shadow:
    0 22px 56px rgba(0, 229, 160, 0.12),
    0 0 0 1px rgba(0, 229, 160, 0.08);
}
.pc::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green),
    var(--blue),
    transparent
  );
  transition: left 0.55s ease;
}
.pc:hover::before {
  left: 100%;
}
.pc.feat {
  border-color: rgba(0, 229, 160, 0.28);
}
.pc-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  font-size: 0.58rem;
  color: var(--green);
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(0, 229, 160, 0.35);
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}
.pc-img-wrap {
  height: 195px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition:
    transform 0.55s ease,
    filter 0.3s;
}
.pc:hover .pc-img {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.pc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(6, 10, 20, 0.7) 100%
  );
  pointer-events: none;
}
.pc-cat {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  font-size: 0.62rem;
  color: var(--bg);
  background: var(--green);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-title {
  font-family: var(--disp), sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pc-desc {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}
.pc-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pc-pill {
  font-size: 0.65rem;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 9px;
  border-radius: 12px;
}
.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bd);
  padding-top: 14px;
  margin-top: auto;
}
.pc-links {
  display: flex;
  gap: 10px;
}
.pc-link {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--bd);
  padding: 5px 12px;
  border-radius: 5px;
  transition: all 0.2s;
  cursor: none;
}
.pc-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--gdim);
}
.pc-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}
.pc-year {
  font-size: 0.65rem;
  color: var(--muted);
}
.pc-anim {
  animation: pcIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pcIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ BLOGS ═══ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.bc {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  cursor: none;
  transition: all 0.3s;
}
.bc:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 229, 160, 0.1);
}
.bimg-wrap {
  overflow: hidden;
  height: 170px;
}
.bimg {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--bd);
  transition:
    transform 0.5s ease,
    filter 0.3s;
}
.bc:hover .bimg {
  transform: scale(1.04);
  filter: brightness(1.1);
}
.bcontent {
  padding: 18px;
}
.btitle {
  font-family: var(--disp), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 7px;
  line-height: 1.3;
}
.bmeta {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.bexc {
  font-size: 0.77rem;
  color: var(--dim);
  line-height: 1.6;
  margin-bottom: 12px;
}
.btags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.btag {
  font-size: 0.67rem;
  color: var(--green);
  background: var(--gdim);
  border: 1px solid rgba(0, 229, 160, 0.18);
  padding: 2px 9px;
  border-radius: 20px;
}
.bread {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--green);
  margin-top: 10px;
  transition: gap 0.2s;
}
.bc:hover .bread {
  gap: 8px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 36px;
}
.pbtn {
  font-family: var(--mono);
  font-size: 0.74rem;
  background: var(--s1);
  color: var(--muted);
  border: 1px solid var(--bd);
  padding: 7px 14px;
  border-radius: 5px;
  cursor: none;
  transition: all 0.2s;
}
.pbtn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}
.pbtn.active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
  font-weight: 700;
}
.pbtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.cc {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.cc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gdim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cc:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 229, 160, 0.12);
}
.cc:hover::before {
  opacity: 1;
}
.cc-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--s2);
  border: 1px solid var(--bd2);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.cc:hover .cc-icon {
  background: var(--gdim);
  border-color: var(--green);
}
.cc-info {
  position: relative;
  z-index: 1;
}
.cc-name {
  font-family: var(--disp), sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--txt);
  margin-bottom: 2px;
}
.cc-handle {
  font-size: 0.68rem;
  color: var(--muted);
}
.cc-arr {
  margin-left: auto;
  color: var(--green);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}
.cc:hover .cc-arr {
  opacity: 1;
  transform: translateX(4px);
}

/* ═══ MODAL ═══ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 500;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(12px);
}
.modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.mbox {
  background: var(--s1);
  border: 1px solid var(--bd2);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
  animation: fadeUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.mimg-w {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.mimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}
.mclose {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--s1);
  color: var(--txt);
  border: 1px solid var(--bd2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mclose:hover {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.mbody {
  padding: 28px;
}
.mtitle {
  font-family: var(--disp), sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 10px;
  line-height: 1.2;
}
.mmeta {
  font-size: 0.74rem;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 18px;
}
.mtext {
  font-size: 0.84rem;
  color: var(--dim);
  line-height: 1.9;
}
.mtext p {
  margin-bottom: 12px;
}
.mtext h3 {
  font-family: var(--disp), sans-serif;
  color: var(--green);
  font-size: 1rem;
  margin: 20px 0 10px;
}
.mtext code {
  background: var(--s2);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.82em;
}
.mtext pre {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 7px;
  padding: 14px;
  overflow-x: auto;
  margin: 14px 0;
}
.mtext pre code {
  background: transparent;
  padding: 0;
}
.mtags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ═══ GLITCH ═══ */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #fff 20%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 100%;
}
.glitch::before {
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  animation: glitch2 4s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 1px);
  }
  94% {
    transform: translate(2px, -1px);
  }
  96% {
    transform: translate(-1px, 2px);
  }
}
@keyframes glitch2 {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(2px, -1px);
  }
  94% {
    transform: translate(-2px, 1px);
  }
  96% {
    transform: translate(1px, -2px);
  }
}

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--bd);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
footer span {
  color: var(--green);
}
.back-top {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  border: 1px solid var(--bd);
  padding: 5px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: none;
}
.back-top:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat {
    flex: 1;
    min-width: 120px;
  }
}
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .hero-body {
    padding: 24px;
  }
  .blog-grid,
  .skill-groups,
  .exp-grid,
  .contact-grid,
  .proj-grid {
    grid-template-columns: 1fr;
  }
  body {
    cursor: auto;
  }
  #cursor,
  #cursor-ring,
  #cursor-glow {
    display: none;
  }

  .hname {
    top: -40px;
  }
}
