:root {
  --bg: #080413;
  --bg-2: #130924;
  --panel: rgba(20, 18, 52, 0.52);
  --panel-strong: rgba(26, 22, 66, 0.74);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(171, 193, 255, 0.2);
  --line-strong: rgba(130, 183, 255, 0.42);
  --text: #f7f3ff;
  --muted: #d7d0ec;
  --accent: #74a5ff;
  --accent-2: #65ddff;
  --accent-3: #cd8eff;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 16%, rgba(89, 115, 255, 0.22), transparent 22%),
    radial-gradient(circle at 72% 18%, rgba(174, 90, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 68%, rgba(112, 74, 195, 0.42), transparent 32%),
    linear-gradient(180deg, #080413 0%, #11081f 42%, #130924 100%);
  line-height: 1.7;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(163, 210, 255, 0.65) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(236, 204, 255, 0.45) 0 1.1px, transparent 1.9px);
  background-size: 160px 160px, 240px 240px, 320px 320px;
  background-position: 0 0, 80px 30px, 30px 120px;
}

body::after {
  background:
    radial-gradient(circle at center, rgba(167, 111, 255, 0.18), transparent 28%),
    radial-gradient(circle at center, rgba(94, 151, 255, 0.14), transparent 48%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
}

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

img {
  max-width: 100%;
  display: block;
}

svg {
  width: 1em;
  height: 1em;
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), transparent 24%),
    linear-gradient(180deg, rgba(103, 160, 255, 0.95), rgba(110, 92, 255, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 28px rgba(73, 107, 255, 0.35);
}

.logo-avatar {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.logo-avatar:not([hidden]) + .logo-core {
  display: none;
}

.logo-core {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(9, 13, 39, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(248, 244, 255, 0.9);
  transition: 0.24s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-actions,
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-actions {
  flex-wrap: nowrap;
}

.nav-action,
.action-btn,
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(191, 208, 255, 0.26);
  background: rgba(13, 16, 39, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.nav-action {
  white-space: nowrap;
}

.nav-action:hover,
.action-btn:hover,
.profile-link:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 183, 255, 0.52);
  background: rgba(33, 29, 72, 0.84);
}

.action-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.lang-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(247, 243, 255, 0.72);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(111, 151, 255, 0.36), rgba(139, 107, 255, 0.38));
  color: white;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero-content {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 86px 0 112px;
}

.badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(124, 166, 255, 0.42);
  background: linear-gradient(135deg, rgba(99, 156, 255, 0.3), rgba(159, 105, 255, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px rgba(59, 77, 204, 0.18);
  color: #cbe6ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.2rem, 6.8vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(74, 127, 255, 0.78), rgba(91, 198, 255, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 36px rgba(68, 119, 255, 0.28);
}

.btn-secondary {
  border-color: rgba(195, 208, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.section {
  padding: 56px 0 88px;
}

.section::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.section-head,
.about-header {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  flex-wrap: wrap;
}

.section-head h2,
.about-header h2,
.contact-box h2,
.detail-head-row h2 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.04em;
}

.section-desc,
.detail-summary,
.about-box p,
.contact-box p,
.image-caption,
.profile-role {
  color: var(--muted);
}

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

.project-card,
.about-box,
.contact-box,
.glass-card,
.detail-wrap,
.story-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(195, 206, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(40, 33, 82, 0.68), rgba(15, 12, 40, 0.76)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.project-card::before,
.about-box::before,
.glass-card::before,
.contact-box::before,
.detail-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(116, 165, 255, 0.14), transparent 34%, rgba(205, 142, 255, 0.12));
  pointer-events: none;
}

.project-card {
  min-height: 360px;
  padding: 26px;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(130, 183, 255, 0.42);
  box-shadow: 0 38px 80px rgba(17, 11, 43, 0.64);
}

.project-card-glow {
  position: absolute;
  inset: auto -10% -34% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 221, 255, 0.28), transparent 62%);
  filter: blur(8px);
  z-index: -1;
}

.project-card:nth-child(2n) .project-card-glow {
  background: radial-gradient(circle, rgba(205, 142, 255, 0.3), transparent 62%);
}

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

.project-kicker {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  width: fit-content;
  background: rgba(145, 116, 255, 0.18);
  border: 1px solid rgba(174, 140, 255, 0.22);
  color: #d6c6ff;
  font-size: 0.86rem;
}

.project-card h3 {
  margin: 0;
  max-width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.project-summary {
  max-width: 100%;
  margin: 16px 0 22px;
  font-size: 1.03rem;
  line-height: 1.68;
  color: rgba(236, 231, 247, 0.9);
}

.project-badge {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116, 165, 255, 0.34);
  background: rgba(43, 86, 173, 0.18);
  color: #ddebff;
  font-size: 0.83rem;
  white-space: nowrap;
}

.project-badge.large {
  font-size: 0.92rem;
  padding: 9px 14px;
}

.project-cover-wrap {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: clamp(180px, 42%, 280px);
  pointer-events: none;
}

.project-cover {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(56, 31, 126, 0.34));
}

.tech-list,
.tag-list,
.story-list,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-list {
  max-width: 100%;
  gap: 8px;
}

.tech-list li,
.tag-list li,
.story-list li {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(209, 219, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #e2ddf4;
}

.tech-list li {
  font-size: 0.92rem;
}

.section-detail {
  padding-top: 8px;
}

.detail-wrap {
  padding: 30px;
}

.detail-header {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #b8d6ff;
}

.detail-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-cover-wrap {
  margin: 24px 0 28px;
}

.detail-cover-wrap {
  display: flex;
  justify-content: center;
}

.detail-cover-wrap.is-empty {
  display: none;
}

.detail-cover,
.story-image {
  width: min(100%, 720px);
  margin-inline: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  justify-content: start;
  gap: 16px;
}

.story-thumb-btn {
  width: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.story-thumb-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(130, 183, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.story-thumb-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 14, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 16, 34, 0.86);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 16, 34, 0.86);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  width: min(100%, 96vw);
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 19, 44, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.lightbox-image {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.lightbox-counter {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.story-flow {
  display: grid;
  gap: 22px;
}

.story-block {
  padding: 24px;
}

.story-block h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.62rem;
}

.text-block p,
.list-block,
.quote-block,
.video-block {
  font-size: 1.08rem;
  line-height: 1.95;
}

.text-block p {
  margin: 0;
}

.story-video {
  width: 100%;
  display: block;
  margin: 0 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 18, 0.72);
}

.quote-block blockquote {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.8;
}

.quote-author {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
}

.section-alt {
  background: transparent;
}

.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  grid-template-areas:
    "header header"
    "about side"
    "cert cert"
    "experience experience";
  gap: 28px;
  align-items: start;
}

.about-header-wide {
  grid-area: header;
}

.about-box {
  grid-area: about;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
  align-items: stretch;
}

.experience-block {
  grid-area: experience;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(195, 206, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(40, 33, 82, 0.68), rgba(15, 12, 40, 0.76)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.about-side {
  grid-area: side;
}

.certifications-block {
  grid-area: cert;
  margin-bottom: 0;
}

.experience-block h3 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.experience-list {
  display: grid;
  gap: 16px;
}

.experience-card {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.experience-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 12px;
}

.experience-head h4 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.experience-company,
.experience-summary,
.experience-note,
.experience-meta span,
.experience-highlights {
  color: var(--muted);
}

.experience-company {
  margin: 0;
  font-weight: 700;
}

.experience-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 180px;
  font-size: 0.94rem;
}

.experience-summary {
  margin: 0 0 14px;
}

.experience-note {
  margin: -2px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(130, 187, 255, 0.18);
  background: rgba(97, 131, 255, 0.08);
  font-size: 0.96rem;
  line-height: 1.65;
}

.experience-highlights {
  margin: 0;
  padding-left: 20px;
}

.experience-highlights li + li {
  margin-top: 8px;
}

.profile-visual {
  position: relative;
  min-height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 199, 130, 0.3), transparent 18%),
    radial-gradient(circle at 66% 18%, rgba(124, 182, 255, 0.3), transparent 22%),
    linear-gradient(180deg, rgba(42, 52, 92, 0.9), rgba(14, 13, 34, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -22% -12%;
  height: 52%;
  background: radial-gradient(circle at center, rgba(158, 129, 255, 0.38), transparent 58%);
  filter: blur(18px);
}

.profile-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(180deg, rgba(116, 165, 255, 0.95), rgba(205, 142, 255, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 24px 50px rgba(43, 28, 107, 0.46);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-image:not([hidden]) + span {
  display: none;
}

.profile-avatar span {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 10, 28, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
}

.profile-copy h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.profile-role {
  margin: 0 0 18px;
  font-size: 1rem;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-copy p {
  margin-top: 0;
}

.profile-links {
  margin-top: 22px;
}

.profile-link-item {
  width: 100%;
}

.profile-link {
  width: 100%;
  justify-content: flex-start;
}

.glass-card,
.contact-box {
  padding: 28px;
}

.glass-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.glass-card .tag-list {
  margin-top: 18px;
  margin-bottom: 22px;
}

.facts-grid,
.writing-grid {
  display: grid;
  gap: 14px;
}

.facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.certifications-block h3 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.certification-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 18px;
}

.certification-brand,
.certification-preview-btn {
  width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 12, 28, 0.46);
  overflow: hidden;
}

.certification-preview-btn {
  padding: 0;
  cursor: pointer;
}

.certification-preview-btn:hover,
.certification-preview-btn:focus-visible {
  border-color: rgba(130, 187, 255, 0.36);
  transform: translateY(-1px);
}

.certification-logo {
  width: calc(100% - 18px);
  height: auto;
  display: block;
}

.certification-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.certification-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(116, 165, 255, 0.95), rgba(205, 142, 255, 0.72));
  color: #0d1024;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.certification-copy h4 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.certification-issuer,
.certification-date,
.certification-note {
  display: block;
  color: var(--muted);
}

.certification-issuer {
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: #b8d6ff;
}

.certification-date {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.certification-note {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.fact-card,
.writing-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 18px;
}

.fact-card::before,
.writing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(116, 165, 255, 0.08), transparent 50%, rgba(205, 142, 255, 0.08));
  pointer-events: none;
}

.fact-label,
.writing-meta {
  display: block;
  color: #b8d6ff;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.fact-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.04rem;
  line-height: 1.3;
}

.writing-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.writing-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.38rem;
  letter-spacing: -0.03em;
}

.writing-video {
  width: 100%;
  display: block;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 18, 0.72);
}

.writing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.writing-card p {
  margin-top: 0;
  color: var(--muted);
}

.writing-image {
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 24, 0.5);
}

.writing-image-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  padding: 6px;
}

.writing-image-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
}

.writing-card.image-cover .writing-card-head {
  display: block;
}

.writing-card.image-cover .writing-meta {
  margin-bottom: 12px;
}

.writing-card .tag-list {
  margin-top: 14px;
  margin-bottom: 18px;
}

.writing-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe8ff;
  font-weight: 700;
}

.contact-box {
  text-align: center;
}

.contact-box p {
  max-width: 720px;
  margin-inline: auto;
}

.contact-actions {
  justify-content: center;
  margin-top: 20px;
}

.footer {
  padding: 26px 0 34px;
}

.footer-inner {
  display: grid;
  gap: 6px;
  text-align: center;
  color: rgba(235, 227, 247, 0.74);
}

@media (max-width: 1100px) {
  .navbar {
    grid-template-columns: auto auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 10px;
  }

  .about-box {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .navbar {
    grid-template-columns: auto auto;
    gap: 14px;
  }

  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    flex-direction: column;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 11, 28, 0.94);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
    padding: 13px 14px;
  }

  .hero-content {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 4.4rem);
  }

  .project-grid,
  .about-wrap {
    grid-template-columns: 1fr;
  }

  .about-wrap {
    grid-template-areas:
      "header"
      "about"
      "side"
      "cert"
      "experience";
  }

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

  .certification-card {
    grid-template-columns: 1fr;
  }

  .certification-brand,
  .certification-preview-btn {
    width: 100%;
    min-height: 110px;
  }

  .story-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 480px;
  }

  .project-card h3,
  .project-summary,
  .tech-list {
    max-width: 100%;
  }

  .project-cover-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 320px);
    margin: 18px auto 0;
  }

  .tech-list {
    margin-bottom: 8px;
  }

  .experience-head {
    flex-direction: column;
  }

  .experience-meta {
    justify-items: start;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--maxw));
  }

  .logo {
    font-size: 1.24rem;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-core {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  .hero-content {
    gap: 18px;
    padding-bottom: 86px;
  }

  .btn,
  .nav-action,
  .action-btn,
  .profile-link {
    width: 100%;
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 42px 0 72px;
  }

  .project-card,
  .about-box,
  .glass-card,
  .contact-box,
  .detail-wrap,
  .story-block {
    border-radius: 24px;
  }

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

  .story-thumb-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-figure {
    padding: 12px;
    border-radius: 22px;
  }

  .project-card,
  .about-box,
  .glass-card,
  .experience-block,
  .contact-box,
  .detail-wrap {
    padding: 22px;
  }

  .profile-avatar {
    width: 150px;
    height: 150px;
  }

  .profile-avatar span {
    width: 112px;
    height: 112px;
    font-size: 2rem;
  }
}
