:root {
  /* surfaces */
  --bg: #0a0e17;
  --bg-elev: #0f1420;
  --bg-card: #131a29;
  --bg-card-hover: #161f31;

  /* borders */
  --border: #212b40;
  --border-soft: #1a2333;

  /* text */
  --text: #e8ecf5;
  --text-dim: #aab4c8;
  --text-mute: #727f97;

  /* accents */
  --accent: #3d7fff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(61, 127, 255, 0.12);
  --accent-2-soft: rgba(34, 211, 238, 0.12);
  --green: #34d399;
  --amber: #f2b84b;

  /* geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);

  /* type */
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

html.light {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f3fa;
  --border: #e1e6f0;
  --border-soft: #eaeef6;
  --text: #101828;
  --text-dim: #4b5468;
  --text-mute: #8791a5;
  --accent-soft: rgba(61, 127, 255, 0.08);
  --accent-2-soft: rgba(34, 211, 238, 0.10);
  --shadow: 0 20px 50px -25px rgba(30, 40, 70, 0.25);
}



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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
 
a {
  color: inherit;
  text-decoration: none;
}
 
ul {
  list-style: none;
}
 
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
 
input,
textarea {
  font-family: inherit;
}
 
::selection {
  background: var(--accent);
  color: #fff;
}
 
::-webkit-scrollbar {
  width: 10px;
}
 
::-webkit-scrollbar-track {
  background: var(--bg);
}
 
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
 
 
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  letter-spacing: -0.01em;
  font-weight: 600;
}
 
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
 
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--accent-2-soft);
}
 
.eyebrow .prompt {
  color: var(--text-mute);
}
 
.section-num {
  font-family: var(--ff-mono);
  color: var(--text-mute);
  font-size: 12.5px;
  margin-bottom: 10px;
  display: block;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
 
.section {
  padding: 100px 0;
  position: relative;
}
 
.section.alt {
  background: linear-gradient(180deg, transparent, rgba(61, 127, 255, 0.035), transparent);
}
 
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
 
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 10px;
}
 
.section-head p {
  color: var(--text-dim);
  font-size: 15.5px;
}
 
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1);
}
 
.reveal.in {
  opacity: 1;
  transform: none;
}
 
 
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}
 
 
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 2px solid transparent;
}
 
#mainNav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border-soft);
  padding: 13px 0;
}
 
.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.logo {
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
 
.logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
 
.navlinks {
  display: flex;
  gap: 30px;
  align-items: center;
}
 
.navlinks a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
 
.navlinks a:hover {
  color: var(--text);
}
 
.navlinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent-2);
  transition: width 0.25s ease;
}
 
.navlinks a:hover::after {
  width: 100%;
}
 
.navactions {
  display: flex;
  align-items: center;
  gap: 10px;
}
 
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: 0.2s ease;
  background: var(--bg-elev);
}
 
.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
 
.hamburger {
  display: none;
}
 
 
.hero {
  padding-top: 96px;
}
 
.cover {
  position: relative;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(61, 127, 255, 0.5), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(34, 211, 238, 0.4), transparent 45%),
    linear-gradient(135deg, #0d1424 0%, #101a30 55%, #0a2a3a 100%);
  border: 2px solid var(--border);
}
 
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* if the image fails to load, the gradient on .cover shows through */
}
 
.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 23, 0.15) 0%, rgba(10, 14, 23, 0.55) 65%, rgba(10, 14, 23, 0.85) 100%),
    linear-gradient(100deg, rgba(61, 127, 255, 0.25), rgba(34, 211, 238, 0.12));
  mix-blend-mode: normal;
}
 
.cover .grid-overlay {
  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: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 70%);
}
 
.cover .code-float {
  position: absolute;
  right: 36px;
  top: 28px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  line-height: 1.9;
  display: none;
}
 
.profile-block {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  margin-top: -64px;
  padding: 0 8px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
 
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 26px;
  object-fit: cover;
  object-position: center;
  /* shows while the real photo loads, and as a fallback color if it fails */
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
 
.profile-info {
  padding-bottom: 10px;
  flex: 1;
  min-width: 240px;
}
 
.profile-info h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 6px;
}
 
.profile-info .headline {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 10px;
}
 
.profile-info .headline .sep {
  color: var(--accent-2);
  margin: 0 8px;
}
 
.locline {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 13.5px;
  font-family: var(--ff-mono);
}
 
.locline span {
  display: flex;
  align-items: center;
  gap: 6px;
}
 
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 2px solid rgba(61, 127, 255, 0.3);
  color: var(--accent-2);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  margin-bottom: 10px;
}
 
.status-pill .blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite;
}
 
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
}
 
.stackbar {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 2px solid var(--border-soft);
}
 
.stackbar .label {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
 
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
 
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: 0.2s ease;
}
 
.badge:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  background: var(--accent-soft);
}
 
.badge i {
  color: var(--accent-2);
  font-size: 14px;
}
 
 
.card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
 
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 127, 255, 0.4);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}


.about-card {
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
}

.about-text p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin-bottom: 16px;
}

.about-text .readmore {
  color: var(--accent-2);
  font-family: var(--ff-mono);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.about-text .more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.about-text .more-content.open {
  max-height: 600px;
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.focus-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-soft);
}

.focus-item i {
  color: var(--accent);
  font-size: 17px;
  margin-top: 2px;
  width: 20px;
}

.focus-item h4 {
  font-size: 14.5px;
  margin-bottom: 3px;
  font-family: var(--ff-body);
  font-weight: 600;
}

.focus-item p {
  font-size: 13px;
  color: var(--text-mute);
}



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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}


.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 99px;
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card);
  transition: 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}



.proj-card {
  overflow: hidden;
}

.proj-thumb {
  height: 170px;
  position: relative;
  overflow: hidden;
}

.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.08);
}

.proj-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 23, 0.8));
}

.proj-body {
  padding: 22px;
}

.proj-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.proj-body p {
  color: var(--text-mute);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tech-chip {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--accent-2);
  border: 2px solid var(--border-soft);
}

.proj-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 2px solid var(--border);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px -10px rgba(61, 127, 255, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(61, 127, 255, 0.7);
}

.btn-ghost {
  color: var(--text-dim);
  background: var(--bg-elev);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
  flex: 1;
}


.event-card {
  cursor: pointer;
  overflow: hidden;
}
 
.event-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}
 
.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
 
.event-card:hover .event-img img {
  transform: scale(1.06);
}
 
.event-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(6px);
  color: var(--accent-2);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
 
.event-body {
  padding: 22px;
}
 
.event-meta {
  display: flex;
  gap: 14px;
  color: var(--text-mute);
  font-family: var(--ff-mono);
  font-size: 12px;
  margin-bottom: 10px;
}
 
.event-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
 
.event-body p {
  color: var(--text-mute);
  font-size: 13.5px;
}


.table-wrap {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
 
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-soft);
}
 
.search-bar input {
  flex: 1;
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
}
 
.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}
 
.search-bar i {
  color: var(--text-mute);
}
 
table {
  width: 100%;
  border-collapse: collapse;
}
 
thead th {
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  padding: 14px 20px;
  border-bottom: 2px solid var(--border-soft);
  text-transform: uppercase;
}
 
tbody td {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-soft);
  font-size: 14px;
}
 
tbody tr:last-child td {
  border-bottom: none;
}
 
tbody tr {
  transition: background 0.2s ease;
}
 
tbody tr:hover {
  background: var(--accent-soft);
}
 
.art-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
 
.art-title i {
  color: var(--accent);
}
 
.read-link {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
 
.art-title code {
  font-family: var(--ff-mono);
  font-size: 12px;
  background: var(--bg-elev);
  border: 2px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent-2);
}
 
/* article groups / subgroups wrapper */
.articles-wrap {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
 
.articles-wrap > .search-bar {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}
 
.article-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
 
.group-title i {
  color: var(--accent-2);
  font-size: 16px;
}
 
.article-subgroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.subgroup-title {
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  padding-left: 2px;
}
 
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.note-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: 0.2s ease;
}
 
.note-link i:first-child {
  color: var(--accent-2);
  width: 18px;
}
 
.note-link .note-ext {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-mute);
}
 
.note-link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
  transform: translateX(4px);
}


.video-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
 
/* left: live playlist embed */
.video-embed-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
 
.video-embed-head {
  padding: 24px 24px 0;
}
 
.playlist-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-family: var(--ff-mono);
  color: var(--accent-2);
  background: var(--accent-2-soft);
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 12px;
}
 
.video-embed-head h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
 
.video-embed-head p {
  font-size: 13.5px;
  color: var(--text-mute);
}
 
.video-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  background: var(--bg-elev);
}
 
.video-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
 
/* right: channel card */
.channel-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
 
.channel-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #061019;
}
 
.channel-name h4 {
  font-size: 17px;
  margin-bottom: 2px;
}
 
.channel-handle {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-mute);
}
 
.channel-stats {
  display: flex;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text-mute);
}
 
.channel-stats i {
  color: var(--accent-2);
  margin-right: 4px;
}
 
.channel-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
 
.channel-card .btn {
  justify-content: center;
  width: 100%;
}
 


.skill-cat {
  padding: 26px;
}

.skill-cat .cathead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-cat .cathead i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.skill-cat .cathead h4 {
  font-size: 15.5px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 2px solid var(--border-soft);
  color: var(--text-dim);
  font-family: var(--ff-mono);
}



.soft-card {
  padding: 26px;
  text-align: left;
}

.soft-card i {
  font-size: 22px;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.soft-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.soft-card p {
  font-size: 13.5px;
  color: var(--text-mute);
}



.edu-card {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  overflow: hidden;
}
 
.edu-visual {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.28), transparent 55%),
    linear-gradient(160deg, #0d1424, #101a30);
  min-height: 220px;
  border-right: 2px solid var(--border);
  overflow: hidden;
}
 
.edu-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
 
.edu-content {
  padding: 36px;
}
 
.edu-content .period {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 10px;
}
 
.edu-content h3 {
  font-size: 21px;
  margin-bottom: 4px;
}
 
.edu-content .degree {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 16px;
}
 
.edu-content p.desc {
  color: var(--text-mute);
  font-size: 13.5px;
  margin-bottom: 18px;
}
 
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
 
.edu-grid h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
 
.edu-grid li {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}
 
.edu-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}
 
.section-divider {
  height: 0;
  border-top: 2px solid var(--border-soft);
  margin-bottom: 56px;
}
 
.hobby-cert-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
 
.hobby-side {
  padding: 32px;
}
 
.cert-side {
  padding: 32px;
}
 
.side-title {
  font-size: 16px;
  margin-bottom: 4px;
}
 
.side-sub {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 20px;
}
 
/* hobby carousel */
.hobby-carousel {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
}
 
.hobby-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
 
.hobby-slide {
  flex: 0 0 100%;
  height: 100%;
}
 
.hobby-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: 0.2s ease;
}
 
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
 
.carousel-btn.prev {
  left: 12px;
}
 
.carousel-btn.next {
  right: 12px;
}
 
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
 
.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: 0.2s ease;
}
 
.carousel-dots .dot.active {
  background: var(--accent-2);
  width: 20px;
  border-radius: 4px;
}
 
/* certificates */
.cert-list {
  display: flex;
  flex-direction: column;
}
 
.cert-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 2px solid var(--border-soft);
}
 
.cert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
 
.cert-item:first-child {
  padding-top: 0;
}
 
.cert-thumb {
  width: 64px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-soft);
  flex-shrink: 0;
}
 
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.cert-info h5 {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ff-body);
  margin-bottom: 4px;
}
 
.cert-org {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
 
.cert-date {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--text-mute);
}
.social-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.social-card .sicon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.social-card h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.social-card p {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.social-card .visit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}



.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
}
 
.contact-side {
  padding: 36px;
}
 
.contact-side .cline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
 
.contact-side .cline i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.contact-side .cline span {
  font-size: 14px;
  color: var(--text-dim);
}
 
.mini-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
 
.mini-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: 0.2s ease;
}
 
.mini-social a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
 
.resume-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.resume-thumb {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  align-self: center;
}
 
.resume-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
 
.resume-info {
  text-align: center;
}
 
.resume-info h4 {
  font-size: 17px;
  margin-bottom: 8px;
}
 
.resume-info p {
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 20px;
}
 

footer {
  border-top: 2px solid var(--border-soft);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.foot-brand p {
  color: var(--text-mute);
  font-size: 13.5px;
  margin-top: 10px;
  max-width: 280px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot-nav a {
  font-size: 13.5px;
  color: var(--text-dim);
}

.foot-nav a:hover {
  color: var(--accent-2);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 2px solid var(--border-soft);
}

.foot-bottom p {
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--ff-mono);
}

.foot-social {
  display: flex;
  gap: 10px;
}

.foot-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
}

.foot-social a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}



#backtotop {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.3s ease;
  box-shadow: var(--shadow);
}

#backtotop.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#backtotop:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 16, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: none;
}

.modal-img {
  height: 220px;
  overflow: hidden;
}

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

.modal-body {
  padding: 28px;
}

.modal-body .event-meta {
  margin-bottom: 12px;
}

.modal-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-body p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(6, 9, 16, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}



/* Tablet — around 900px */
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .navlinks {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    box-shadow: var(--shadow);
    z-index: 950;
  }

  .navlinks.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .navlinks a {
    padding: 9px 0;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .cover .code-float {
    display: block;
  }

  .video-row {
    grid-template-columns: 1fr;
  }
  .hobby-cert-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .about-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

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

@media (max-width: 760px) {
  .edu-card {
    grid-template-columns: 1fr;
  }

  .edu-visual {
    border-right: none;
    border-bottom: 2px solid var(--border);
  }

  /* education subject/activity columns stack on small screens */
  .edu-grid {
    grid-template-columns: 1fr;
  }

  /* articles table becomes stacked cards */
  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border-bottom: 2px solid var(--border-soft);
    padding: 16px 20px;
  }

  tbody td {
    border: none;
    padding: 6px 0;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--ff-mono);
    font-size: 10.5px;
    color: var(--text-mute);
    margin-bottom: 4px;
    text-transform: uppercase;
  }
}

/* Mobile — around 620px */
@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Mobile — around 520px */
@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 0 18px;
  }

  .cover {
    height: 220px;
  }

  .profile-block {
    margin-top: -48px;
  }

  .avatar {
    width: 110px;
    height: 110px;
    border-width: 4px;
  }

  .locline {
    gap: 10px;
    font-size: 12.5px;
  }

  .about-card,
  .edu-content,
  .hobby-side,
  .cert-side,
  .contact-side,
  .resume-card {
    padding: 20px;
  }

  .proj-actions {
    flex-direction: column;
  }
}