:root {
  --bg: #0b0f14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #18f3a6;
  --accent-2: rgba(24, 243, 166, 0.16);
  --nav-font-size: 16px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
}

/* Custom Scrollbar - Black */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 6px;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a #000000;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(24, 243, 166, 0.5);
  outline-offset: 3px;
}

.wrap {
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 22px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navlinks {
  display: inline-flex;
  gap: 22px;
  align-items: center;
}

.navlinks a {
  color: var(--muted);
  font-weight: 700;
  font-size: var(--nav-font-size);
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
}

.navlinks a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.navlinks a:hover {
  color: var(--text);
}

.lang {
  position: relative;
}

.lang button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: rgba(0, 0, 0, 0.88);
  font-weight: 800;
  font-size: 14px;
}

.lang button svg {
  width: 18px;
  height: 18px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(9, 12, 17, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  width: 180px;
  display: none;
}

.lang-menu[data-open="true"] {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}

.lang-menu a:hover {
  background: var(--panel);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
  padding: 22px 0 14px;
}

.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  line-height: 0.94;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.accent {
  color: var(--accent);
}

.subtitle {
  margin-top: 18px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Hero-specific subtitle styling */
.hero .subtitle {
  color: #ffffff;
}

.hero .subtitle strong {
  font-weight: 800;
}

.subtitle.subtitle-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
} 

.actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(24, 243, 166, 0.45);
  background: rgba(4, 12, 10, 0.2);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  background: rgba(24, 243, 166, 0.12);
}

.socials {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(24, 243, 166, 0.35);
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.iconbtn:hover {
  background: rgba(24, 243, 166, 0.1);
}

.iconbtn svg {
  width: 18px;
  height: 18px;
}

.portrait {
  display: grid;
  place-items: center;
}

.ring {
  width: min(440px, 82vw);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}

.ring-image-wrapper {
  width: 240px;
  height: 240px;
  position: absolute;
  opacity: 0;
  animation: fadeIn 0.9s ease-out 1.5s forwards;
}

.ring-svg {
  width: 242px;
  height: 242px;
  position: absolute;
  opacity: 0;
  animation: spin 20s linear infinite, fadeIn 0.5s ease-out 1s forwards;
  filter: drop-shadow(0 0 8px rgba(24, 243, 166, 0.6)) 
          drop-shadow(0 0 16px rgba(24, 243, 166, 0.4))
          drop-shadow(0 0 24px rgba(24, 243, 166, 0.2));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.hero,
.projects,
.project-card {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.stats,

.stat {
  animation: blurIn 1s ease-out forwards;
  opacity: 0;
}

.stats {
  animation-delay: 0.3s;
}

.stat:nth-child(1) {
  animation-delay: 0.4s;
}

.stat:nth-child(2) {
  animation-delay: 0.5s;
}

.stat:nth-child(3) {
  animation-delay: 0.6s;
}

.stat:nth-child(4) {
  animation-delay: 0.7s;
}

.hero {
  animation-delay: 0.1s;
}

.projects {
  animation-delay: 0.5s;
}

.project-card:nth-child(1) {
  animation-delay: 0.6s;
}

.project-card:nth-child(2) {
  animation-delay: 0.7s;
}

.project-card:nth-child(3) {
  animation-delay: 0.8s;
}

.project-card:nth-child(4) {
  animation-delay: 0.9s;
}

.project-card:nth-child(5) {
  animation-delay: 1s;
}

.project-card:nth-child(6) {
  animation-delay: 1.1s;
}

.ring-inner {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.ring-inner > * {
  grid-area: 1 / 1;
}

.ring-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

@media (min-width: 1280px) {
  .ring-image-wrapper {
    width: 400px;
    height: 400px;
  }
  
  .ring-svg {
    width: 408px;
    height: 408px;
  }
}

.fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(24, 243, 166, 0.1));
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 28px;
}

.fallback[hidden] {
  display: none !important;
}

.stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 0 34px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-right: 10px;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat .num {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stat .label {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-transform: none;
}

/* Hover effect: blur the other stats' number + label */
.stat .num,
.stat .label {
  transition: filter 950ms ease, opacity 950ms ease;
}

/* Only trigger blur when hovering an actual stat (fixes large hitbox on the whole section). */
@supports selector(:has(*)) {
  .stats:has(.stat:hover) .stat .num,
  .stats:has(.stat:hover) .stat .label {
    transition-delay: 180ms;
    filter: blur(6px);
    opacity: 0.28;
  }

  .stats:has(.stat:hover) .stat:hover .num,
  .stats:has(.stat:hover) .stat:hover .label {
    transition-delay: 0ms;
    transition-duration: 180ms;
    filter: none;
    opacity: 1;
  }
}


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

.certificate-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.certificate-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
}

.certificate-body {
  padding: 14px 16px 18px;
}

.cert-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.certificate-body h3 {
  margin: 6px 0 6px;
  font-size: 16px;
}

.cert-badge {
  flex-shrink: 0;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 100, 0.38);
  background: rgba(255, 180, 100, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.certificate-card.is-high-demand {
  border-color: rgba(255, 180, 100, 0.22);
  background: linear-gradient(145deg, rgba(255, 180, 100, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 0 1px rgba(255, 180, 100, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 180, 100, 0.12);
}

.certificate-card.is-high-demand:hover {
  box-shadow:
    0 0 0 1px rgba(255, 180, 100, 0.14),
    0 24px 64px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(255, 180, 100, 0.18);
}

.certificate-card.is-high-demand .btn {
  border-color: rgba(255, 180, 100, 0.55);
  color: rgba(255, 180, 100, 0.98);
  background: rgba(255, 180, 100, 0.06);
}

.cert-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cert-meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.cert-meta li {
  margin: 0;
}

.cert-meta-key {
  color: var(--muted-2);
}

.section-title {
  margin: 8px 0 22px;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  position: relative;
  display: block;
  border-radius: 22px;
  perspective: 1000px;
  outline: none;
}

.project-link {
  display: block;
  border-radius: 22px;
  outline: none;
}

.project-pill {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -8px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  z-index: 4;
}

.project-surface {
  position: relative;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  transition:
    transform 260ms ease,
    border-color 220ms ease,
    box-shadow 260ms ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.project-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 50% 0%, rgba(24, 243, 166, 0.12), transparent 55%),
    radial-gradient(520px 320px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.project-surface::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(24, 243, 166, 0.35),
    rgba(255, 255, 255, 0.15),
    rgba(24, 243, 166, 0.35),
    transparent
  );
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.project-media {
  height: 200px;
  margin: 18px 18px 0;
  border-radius: 16px;
  background:
    radial-gradient(650px 280px at 70% 0%, rgba(24, 243, 166, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(55, 96, 255, 0.16), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.project-media--bond {
  background:
    radial-gradient(650px 280px at 70% 0%, rgba(55, 96, 255, 0.26), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--comex {
  background:
    radial-gradient(650px 280px at 70% 0%, rgba(0, 170, 255, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--gobi {
  background:
    radial-gradient(650px 280px at 70% 0%, rgba(255, 200, 0, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.82), rgba(24, 243, 166, 0.06));
}

.project-media--jsc {
  background:
    radial-gradient(650px 280px at 70% 0%, rgba(90, 120, 160, 0.18), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.82), rgba(24, 243, 166, 0.06));
}

.project-media-gag {
  background:
    url("assets/gag.gif") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(255, 100, 200, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--ceu {
  background:
    url("assets/ceu-redirect.gif") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(200, 100, 200, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--xyphara {
  background:
    url("assets/Xyphara.gif") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(255, 150, 100, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--sprite {
  background:
    url("assets/spritevibe-studio.png") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(255, 100, 150, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--urbuddy {
  background:
    url("assets/urbuddy.png") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(100, 150, 255, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--thea {
  background:
    url("assets/thea-bot.gif") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(255, 180, 100, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--automation {
  background:
    url("assets/Python Automation Suite1.gif") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(100, 255, 150, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

.project-media--pixelblade {
  background:
    url("assets/PixelBlade bot.gif") center / cover no-repeat,
    radial-gradient(650px 280px at 70% 0%, rgba(255, 100, 100, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(8, 14, 22, 0.8), rgba(24, 243, 166, 0.06));
}

/* Story page */
.page-hero {
  padding: 32px 0 12px;
}

.story-hero {
  position: relative;
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 12px 0 0;
  background: radial-gradient(680px 280px at 30% 0%, rgba(24, 243, 166, 0.08), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.page-hero h1 {
  margin: 0;
}

.timeline-section {
  padding: 8px 0 84px;
}

.timeline {
  --marker-x: 60px;
  position: relative;
  margin-top: 30px;
}

.timeline-progress {
  position: absolute;
  left: var(--marker-x);
  top: 6px;
  width: 3px;
  height: 0;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(24, 243, 166, 0.9),
    rgba(24, 243, 166, 0.45),
    rgba(24, 243, 166, 0.1)
  );
  box-shadow:
    0 0 12px rgba(24, 243, 166, 0.65),
    0 0 28px rgba(24, 243, 166, 0.35),
    inset 0 0 8px rgba(24, 243, 166, 0.4);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition:
    height 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 280ms ease,
    box-shadow 380ms ease;
}

.timeline::before {
  content: "";
  position: absolute;
  left: var(--marker-x);
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(24, 243, 166, 0.45),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.65;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 12px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: var(--marker-x);
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(24, 243, 166, 0.65);
  background: rgba(4, 12, 10, 0.88);
  box-shadow: 0 0 0 6px rgba(24, 243, 166, 0.12);
}

.timeline-year {
  text-align: left;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  padding-top: 6px;
  padding-right: 10px;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.timeline-card {
  position: relative;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.timeline-card h3 {
  margin: 2px 0 8px;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Social-style post cards (Facebook-like) */

.post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 32px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  max-width: 700px;
  width: 100%;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(24,243,166,0.12), rgba(24,243,166,0.04));
  border: 2px solid rgba(24,243,166,0.10);
  flex-shrink: 0;
}

.post .post-content h3 {
  margin: 0 0 6px;
}

.post .post-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.post-author {
  font-weight: 800;
  font-size: 14px;
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}



.post-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.post-body {
  margin-bottom: 10px;
}

.post-tags {
  margin: 8px 0 6px;
  display: flex;
  gap: 8px;
}



@media (max-width:880px) {
  .post {
    padding: 10px;
  }
  .post-avatar {
    width: 36px;
    height: 36px;
  }
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.timeline-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .timeline {
    --marker-x: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 10px;
  }

  .timeline-item::before {
    top: 18px;
  }

  .timeline-year {
    text-align: left;
    padding-left: 24px;
  }
}

#about {
  margin-top: 14px;
}

.about-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-body {
  padding: 16px 18px 18px;
  transform: translateZ(30px);
}

.project-title {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.project-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.project-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tech-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 70%;
}

.tech {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(24, 243, 166, 0.92);
  font-weight: 900;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.project-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-cta a:hover {
  color: #fff;
  transform: translateX(2px);
}

.project-cta .arrow {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-cta-secondary {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-cta-secondary:hover {
  color: var(--accent);
  border-color: rgba(24, 243, 166, 0.45);
}

/* Story page layout + gallery */
.timeline-layout {
  display: block;
}

.timeline-column {
  min-width: 0;
}



.project-card:hover .project-pill {
  opacity: 1;
  transform: translate(-50%, -16px);
}

.project-card:hover .project-surface {
  transform: translateY(-14px) rotateX(12deg) rotateY(-10deg) scale(1.02);
  border-color: rgba(24, 243, 166, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
}

.project-card:focus-visible .project-surface,
.project-link:focus-visible .project-surface {
  border-color: rgba(24, 243, 166, 0.45);
}

.project-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.project-demo-btn {
  padding: 10px 14px;
  font-size: 10px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 80px;
  padding: 40px 0 60px;
  background: radial-gradient(650px 280px at 80% 0%, rgba(24, 243, 166, 0.08), transparent 60%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(220px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.footer-inner > div:first-child {
  text-align: center;
}

.footer-title {
  margin: 8px 0 12px;
  font-size: clamp(26px, 3vw, 32px);
}

.footer-subtitle {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 auto 18px;
  text-align: center;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  justify-content: center;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
  border-color: rgba(24, 243, 166, 0.35);
  color: var(--accent);
}

.footer-contacts {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--accent);
  border-color: rgba(24, 243, 166, 0.45);
}

.footer-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.9;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 999;
}

.modal[data-open="true"] {
  display: flex;
}

.modal-content {
  width: min(920px, 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(24, 243, 166, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(24, 243, 166, 0.12);
}

#modal-video {
  width: 100%;
  height: auto;
  display: block;
  background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 820px) {
  .timeline-layout {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

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

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

  .portrait {
    order: -1;
  }

  header {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .project-demo-btn {
    right: 22px;
    top: 22px;
  }
}

@media (max-width: 720px) {
  .navlinks {
    gap: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat:nth-child(2)::after {
    display: none;
  }
}
