:root {

  --color-void:        #0a0e1f;  
  --color-panel:        #12172f;  
  --color-panel-2:      #1a2140;  
  --color-border:       #2a3260;
  --color-star:         #e9ecfb;  
  --color-muted:        #8891b8;  
  --color-cyan:         #5eead4;  
  --color-magenta:      #f472b6;  
  --color-purple:       #8b7bf7; 

  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  
  --max-width: 1140px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

:root[data-theme="light"] {
  --color-void:    #f5f7fb;
  --color-panel:   #ffffff;
  --color-panel-2: #eef1fa;
  --color-border:  #d7dcf0;
  --color-star:    #1b1f3a;
  --color-muted:   #5b6180;
  --color-cyan:    #0f9c8d;
  --color-magenta: #db2777;
  --color-purple:  #6d28d9;
}

:root[data-theme="light"] .starfield {
  opacity: 0.18;
}
:root[data-theme="light"] .navbar {
  background: rgba(245, 247, 251, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--color-void);
  color: var(--color-star);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

/* Transisi halus default untuk semua elemen interaktif (hover/focus) */
a, button, .btn, .tag, input, textarea {
  transition: color 0.25s ease, background-color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease;
}

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

section { padding: 6.5rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }


.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at top, #131a3a 0%, var(--color-void) 55%);
  overflow: hidden;
}

.starfield::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: circuit-pan 60s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}

@keyframes circuit-pan {
  from { transform: translate(0, 0); }
  to { transform: translate(-48px, -48px); }
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  animation: drift 90s linear infinite;
}

.stars-small {
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent),
    radial-gradient(1px 1px at 65% 15%, #fff, transparent),
    radial-gradient(1px 1px at 85% 55%, #fff, transparent),
    radial-gradient(1px 1px at 25% 85%, #fff, transparent),
    radial-gradient(1px 1px at 55% 40%, #fff, transparent),
    radial-gradient(1px 1px at 95% 90%, #fff, transparent);
  background-size: 400px 400px;
  opacity: 0.5;
  animation-duration: 140s;
}

.stars-medium {
  background-image:
    radial-gradient(1.5px 1.5px at 15% 45%, var(--color-cyan), transparent),
    radial-gradient(1.5px 1.5px at 75% 25%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, var(--color-magenta), transparent),
    radial-gradient(1.5px 1.5px at 90% 65%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 10%, #fff, transparent);
  background-size: 600px 600px;
  opacity: 0.6;
  animation-duration: 100s;
  animation-direction: reverse;
}

.stars-large {
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 60% 60%, #fff, transparent),
    radial-gradient(2px 2px at 80% 20%, #fff, transparent);
  background-size: 800px 800px;
  opacity: 0.8;
  animation-duration: 60s;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-400px, 200px); }
}

.nebula-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: nebula-drift 24s ease-in-out infinite alternate;
}
.nebula-glow--cyan {
  background: var(--color-cyan);
  top: -10%;
  left: -10%;
}
.nebula-glow--magenta {
  background: var(--color-magenta);
  bottom: -15%;
  right: -10%;
  animation-delay: -8s;
}

.starfield::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  transform: translate(-50%, -50%) rotate(0deg);
  background:
    conic-gradient(from 0deg,
      transparent 0deg,
      rgba(139, 123, 247, 0.12) 60deg,
      transparent 140deg,
      rgba(94, 234, 212, 0.10) 220deg,
      transparent 300deg,
      rgba(244, 114, 182, 0.08) 340deg,
      transparent 360deg);
  border-radius: 50%;
  filter: blur(40px);
  animation: galaxy-spin 90s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes galaxy-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

html::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 95vw;
  height: 95vw;
  transform: translate(-50%, -50%) rotate(0deg);
  background:
    conic-gradient(from 90deg,
      transparent 0deg,
      rgba(94, 234, 212, 0.07) 40deg,
      transparent 100deg,
      rgba(244, 114, 182, 0.07) 200deg,
      transparent 260deg,
      rgba(139, 123, 247, 0.06) 320deg,
      transparent 360deg);
  border-radius: 50%;
  filter: blur(60px);
  animation: galaxy-spin-reverse 140s linear infinite;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

@keyframes galaxy-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to   { transform: translate(-50%, -50%) rotate(0deg); }
}

.stars-small,
.stars-medium,
.stars-large {
  animation-name: drift, twinkle;
  animation-duration: inherit, 4s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}
.stars-medium { animation-duration: inherit, 5.5s; }
.stars-large { animation-duration: inherit, 3.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.35; }
}

@keyframes nebula-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 3%) scale(1.08); }
}

.stars-small::before,
.stars-medium::before,
.stars-large::before,
.nebula-glow--cyan::before,
.nebula-glow--magenta::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-star);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px var(--color-cyan)) drop-shadow(0 0 12px rgba(94,234,212,0.6));
}

.stars-small::before {
  top: 5%;
  left: 70%;
  background: linear-gradient(220deg, rgba(233,236,251,0) 0%, var(--color-star) 100%);
  width: 2px;
  height: 90px;
  border-radius: 999px;
  animation: meteor-fall 5.5s linear infinite;
  animation-delay: 0.3s;
}

.stars-medium::before {
  top: -5%;
  left: 30%;
  background: linear-gradient(220deg, rgba(244,114,182,0) 0%, var(--color-magenta) 100%);
  width: 2px;
  height: 70px;
  border-radius: 999px;
  animation: meteor-fall 7s linear infinite;
  animation-delay: 2.1s;
}

.stars-large::before {
  top: 10%;
  left: 85%;
  background: linear-gradient(220deg, rgba(94,234,212,0) 0%, var(--color-cyan) 100%);
  width: 2px;
  height: 110px;
  border-radius: 999px;
  animation: meteor-fall 4.2s linear infinite;
  animation-delay: 1.2s;
}

.nebula-glow--cyan::before {
  top: 0%;
  left: 15%;
  background: linear-gradient(220deg, rgba(139,123,247,0) 0%, var(--color-purple) 100%);
  width: 2px;
  height: 80px;
  border-radius: 999px;
  animation: meteor-fall 6.3s linear infinite;
  animation-delay: 3.4s;
}

.nebula-glow--magenta::before {
  top: 8%;
  left: 55%;
  background: linear-gradient(220deg, rgba(255,255,255,0) 0%, #fff 100%);
  width: 2px;
  height: 60px;
  border-radius: 999px;
  animation: meteor-fall 8.5s linear infinite;
  animation-delay: 0.9s;
}

@keyframes meteor-fall {
  0% {
    transform: translate(0, -10vh) rotate(215deg);
    opacity: 0;
  }
  5% { opacity: 1; }
  60% { opacity: 1; }
  100% {
    transform: translate(-60vw, 60vh) rotate(215deg);
    opacity: 0;
  }
}

.stars-small::after,
.stars-medium::after,
.stars-large::after,
.nebula-glow--cyan::after,
.nebula-glow--magenta::after,
html::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.stars-small::after {
  top: -8%;
  left: 45%;
  width: 2px;
  height: 65px;
  background: linear-gradient(220deg, rgba(139,123,247,0) 0%, var(--color-purple) 100%);
  animation: meteor-fall 6.8s linear infinite;
  animation-delay: 1.6s;
}

.stars-medium::after {
  top: 3%;
  left: 90%;
  width: 2px;
  height: 95px;
  background: linear-gradient(220deg, rgba(94,234,212,0) 0%, var(--color-cyan) 100%);
  animation: meteor-fall 5.1s linear infinite;
  animation-delay: 3.9s;
}

.stars-large::after {
  top: -3%;
  left: 60%;
  width: 2px;
  height: 75px;
  background: linear-gradient(220deg, rgba(255,255,255,0) 0%, #fff 100%);
  animation: meteor-fall 7.7s linear infinite;
  animation-delay: 0.6s;
}

.nebula-glow--cyan::after {
  top: 6%;
  left: 40%;
  width: 2px;
  height: 100px;
  background: linear-gradient(220deg, rgba(244,114,182,0) 0%, var(--color-magenta) 100%);
  animation: meteor-fall 4.9s linear infinite;
  animation-delay: 2.7s;
}

.nebula-glow--magenta::after {
  top: -6%;
  left: 20%;
  width: 2px;
  height: 55px;
  background: linear-gradient(220deg, rgba(94,234,212,0) 0%, var(--color-cyan) 100%);
  animation: meteor-fall 9.4s linear infinite;
  animation-delay: 4.6s;
}

html::after {
  top: -2%;
  left: 75%;
  width: 3px;
  height: 130px;
  background: linear-gradient(220deg, rgba(233,236,251,0) 0%, var(--color-star) 100%);
  filter: drop-shadow(0 0 8px var(--color-cyan));
  animation: meteor-fall 5.9s linear infinite;
  animation-delay: 5.2s;
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: rgba(10, 14, 31, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo__prompt { color: var(--color-cyan); margin-right: 0.35rem; }
.logo__dot { color: var(--color-magenta); }

.nav {
  display: flex;
  gap: 2rem;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--color-muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--color-cyan); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--color-cyan);
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--color-cyan); }
.nav__link.is-active::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--color-cyan);
  transform: translateY(-2px) rotate(12deg);
  box-shadow: 0 8px 20px -8px rgba(94, 234, 212, 0.45);
}

.nav-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--color-star);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Saat checkbox dicentang (menu dibuka), ubah ikon jadi silang */
.nav-checkbox:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-checkbox:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-checkbox:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
  position: relative;
}

.hero__inner { max-width: 680px; width: 100%; }

.terminal {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 40px -18px rgba(94, 234, 212, 0.35);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--color-panel-2);
  border-bottom: 1px solid var(--color-border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }
.terminal__title {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.terminal__body {
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
}
.terminal__line {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  animation: reveal-line 0.4s steps(1) forwards;
}
.line-1 { animation-delay: 0.2s; }
.line-2 { animation-delay: 1.1s; }
.line-3 { animation-delay: 2.0s; }
.line-4 { animation-delay: 2.9s; color: var(--color-star); }
@keyframes reveal-line { to { opacity: 1; } }

.ok { color: var(--color-cyan); }

.cursor {
  display: inline-block;
  color: var(--color-cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-star), var(--color-cyan) 60%, var(--color-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: 3.3s;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-cyan);
  margin-top: 0.8rem;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: 3.5s;
}
.bracket { color: var(--color-muted); }

.hero__desc {
  max-width: 480px;
  margin: 1.2rem auto 0;
  color: var(--color-muted);
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: 3.7s;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
  animation-delay: 3.9s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-block;
}
.btn--primary {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  color: var(--color-void);
  font-weight: 600;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(94, 234, 212, 0.45); }
.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-star);
}
.btn--ghost:hover { border-color: var(--color-cyan); color: var(--color-cyan); }
.btn--block { width: 100%; text-align: center; margin-top: 0.5rem; }

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}
.scroll-hint__line {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--color-cyan), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-cyan);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.section-sub {
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}

.fetch-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.fetch-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.fetch-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-void);
  font-weight: 700;
  flex-shrink: 0;
}
.fetch-name { color: var(--color-star); font-weight: 600; }
.fetch-sub { color: var(--color-border); }

.fetch-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  color: var(--color-star);
}
.fetch-key { color: var(--color-cyan); }
.status-dot { color: #4ade80; }

.about__text p { color: var(--color-muted); margin-bottom: 1.1rem; }

.mini-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 1.8rem;
}
.mini-stat { display: flex; flex-direction: column; }
.mini-stat__num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-cyan);
}
.mini-stat__label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-card:hover { border-color: var(--color-cyan); transform: translateY(-3px); }

.skill-card__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.skill-card__icon {
  font-family: var(--font-mono);
  color: var(--color-cyan);
  font-size: 1.1rem;
}
.skill-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.signal {
  height: 6px;
  background: var(--color-panel-2);
  border-radius: 999px;
  overflow: hidden;
}
.signal__bar {
  display: block;
  height: 100%;
  width: var(--level);
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  border-radius: 999px;
  animation: fill-signal 1.2s ease forwards;
  transform-origin: left;
}
@keyframes fill-signal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.repo-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.repo-card:hover { border-color: var(--color-magenta); transform: translateY(-4px); }

.repo-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.repo-card__folder { font-size: 1rem; }
.repo-card__name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-star);
}
.repo-card__visibility {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.repo-card__desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.repo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-cyan);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.repo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.repo-link { color: var(--color-cyan); font-weight: 500; }
.repo-link:hover { text-decoration: underline; }
.repo-orbit { color: var(--color-muted); font-family: var(--font-mono); font-size: 0.75rem; }


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.project-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.5);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--color-cyan);
  box-shadow:
    0 24px 48px -18px rgba(0, 0, 0, 0.65),
    0 0 32px -10px rgba(94, 234, 212, 0.35);
}

.project-card__thumb {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--color-panel-2);
  border-bottom: 1px solid var(--color-border);
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__thumb img {
  transform: scale(1.06);
}

.project-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-star);
  margin-bottom: 0.6rem;
}

.project-card__desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.project-card__actions {
  display: flex;
  gap: 0.8rem;
}

.project-card__actions .btn {
  flex: 1;
  text-align: center;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .project-card__actions {
    flex-direction: column;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.id-card-wrap {
  position: relative;
  width: 210px;
  margin: 0 auto;
  transform-origin: top center;
  animation: id-card-sway 4.5s ease-in-out infinite;
}

.id-card-wrap:hover,
.id-card-wrap:focus-within {
  animation-play-state: paused;
}

@keyframes id-card-sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50%      { transform: rotate(2.5deg); }
}

.id-card-mount {
  width: 34px;
  height: 10px;
  margin: 0 auto;
  background: var(--color-border);
  border: 1px solid var(--color-muted);
  border-radius: 4px 4px 0 0;
}

.id-card-strap {
  width: 26px;
  height: 70px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    45deg,
    var(--color-cyan) 0px,
    var(--color-cyan) 8px,
    var(--color-panel-2) 8px,
    var(--color-panel-2) 16px
  );
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.id-card {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.id-card-wrap:hover .id-card {
  transform: scale(1.03);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.65), 0 0 32px -10px rgba(94, 234, 212, 0.4);
}

.id-card__clip {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-panel-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.id-card__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-magenta));
}

.id-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.id-card__logo {
  color: var(--color-cyan);
  font-weight: 600;
}

.id-card__photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-cyan);
  background: var(--color-panel-2);
  box-shadow: 0 0 0 4px var(--color-void), 0 0 20px -4px rgba(94, 234, 212, 0.5);
}

.id-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-star);
  margin-bottom: 0.2rem;
}

.id-card__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-cyan);
  margin-bottom: 0.9rem;
}

.id-card__divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 0.8rem;
}

.id-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.id-card__meta span:last-child {
  color: var(--color-star);
}

.id-card__barcode {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 22px;
}

.id-card__barcode span {
  display: block;
  width: 3px;
  background: var(--color-muted);
  opacity: 0.7;
}
.id-card__barcode span:nth-child(1) { height: 60%; }
.id-card__barcode span:nth-child(2) { height: 100%; }
.id-card__barcode span:nth-child(3) { height: 40%; }
.id-card__barcode span:nth-child(4) { height: 80%; }
.id-card__barcode span:nth-child(5) { height: 55%; }
.id-card__barcode span:nth-child(6) { height: 100%; }
.id-card__barcode span:nth-child(7) { height: 35%; }
.id-card__barcode span:nth-child(8) { height: 70%; }

.contact-terminal {
  max-width: 560px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 40px -18px rgba(94, 234, 212, 0.3);
}
.contact-terminal__body { padding: 1.5rem; }

.field { display: block; margin-bottom: 1.1rem; }
.field__prompt {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-cyan);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--color-void);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--color-star);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-cyan);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-muted); }

.form-status {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.socials__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
}
.socials__link:hover { color: var(--color-magenta); }

.page-section {
  min-height: 70vh;
  padding-top: 5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--color-border);
}
.page-nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
}
.page-nav__link:hover { color: var(--color-cyan); }

.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

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

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-panel);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-checkbox:checked ~ .nav { max-height: 300px; }
  .nav__link { padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }

  section { padding: 4.5rem 1.2rem; }
  .terminal__line { font-size: 0.72rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .mini-stats { gap: 1.4rem; }
}