* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #070b12;
  --bg-dark-2: #0c1220;
  --bg-light: #0d1320;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --text-dark: #eef2ff;
  --muted: rgba(245, 247, 250, 0.72);
  --muted-dark: rgba(226, 232, 240, 0.74);
  --primary: #63d2c7;
  --secondary: #9b8cff;
  --accent: #f1b84b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #10182b 0%, #090d16 42%, #06080d 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 210, 199, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(155, 140, 255, 0.12), transparent 24%),
    radial-gradient(circle at 60% 75%, rgba(241, 184, 75, 0.08), transparent 26%);
  z-index: -2;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  width: 90px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.brand-mark:hover {
  transform: translate(-50%, -52%) scale(1.02);
}

.brand-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  transform: translateY(-1px);
}

.panel {
  position: relative;
  width: 100%;
}

.panel-dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: #fff;
}

.panel-dark::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.section-intro {
  min-height: 100svh;
  padding-top: 84px;
  overflow: hidden;
}

.intro-copy {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 120px;
  text-align: center;
}

.hero-name {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #63d2c7 35%, #9b8cff 65%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 900;
  animation: heroNameShimmer 4.2s linear infinite, heroNameFloat 3.8s ease-in-out infinite;
}

.hero-shimmer,
.intro-card h1.hero-shimmer,
.section-title.hero-shimmer {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #63d2c7 35%, #9b8cff 65%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroNameShimmer 4.2s linear infinite;
  will-change: background-position;
}

.hero-subtitle {
  color: rgba(236, 244, 255, 0.76);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-kicker,
.project-label,
.timeline-date {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-wrap {
  display: flex;
  justify-content: center;
  margin: 26px 0 34px;
  perspective: 1000px;
}

.profile-ring {
  width: 222px;
  height: 222px;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 210, 199, 0.9), rgba(155, 140, 255, 0.9));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: profileFloat 4.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  display: block;
  background: #fff;
  animation: profileGlow 3.2s ease-in-out infinite;
}

.profile-ring::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(99,210,199,0.0), rgba(99,210,199,0.45), rgba(155,140,255,0.45), rgba(99,210,199,0.0));
  filter: blur(10px);
  opacity: 0.75;
  z-index: -1;
  animation: profileAura 6s linear infinite;
}

@keyframes profileFloat {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg);
    box-shadow: 0 32px 56px rgba(0, 0, 0, 0.4);
  }
}

@keyframes profileGlow {
  0%, 100% {
    filter: saturate(1) contrast(1);
  }
  50% {
    filter: saturate(1.08) contrast(1.04);
  }
}

@keyframes profileAura {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroNameShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes heroNameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.profile-ring.missing::after {
  content: "RK";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 35%), linear-gradient(135deg, #4f46e5, #63d2c7);
  color: #fff;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.intro-card {
  text-align: center;
  padding: 20px 8px 0;
}

.intro-card h1 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}

.intro-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.bubble-stage {
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble-layer {
  position: absolute;
  inset: 300px 0 102px 0;
}

.bubble {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #f1f3f5;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.bubble::before {
  content: none;
}

.bubble-icon {
  display: none;
}

.bubble-logo {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: saturate(1.02);
}

.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 132px;
  pointer-events: none;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave {
  transform-origin: center bottom;
}

.wave-back {
  fill: #b9bdc1;
  opacity: 0.85;
  animation: waveShiftBack 9s linear infinite;
}

.wave-mid {
  fill: #d5d8db;
  opacity: 0.9;
  animation: waveShiftMid 7s linear infinite;
}

.wave-front {
  fill: var(--bg-light);
  animation: waveShiftFront 5.5s linear infinite;
}

@keyframes waveShiftBack {
  0% { transform: translateX(0); }
  50% { transform: translateX(-18px); }
  100% { transform: translateX(0); }
}

@keyframes waveShiftMid {
  0% { transform: translateX(0); }
  50% { transform: translateX(-12px); }
  100% { transform: translateX(0); }
}

@keyframes waveShiftFront {
  0% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

.section-light,
.section-mid,
.section-contact {
  padding: 92px 0;
}

.section-light {
  background: linear-gradient(180deg, #0b1020 0%, #090d17 100%);
}

.section-mid {
  background: linear-gradient(180deg, #090d17 0%, #070b12 100%);
}

.section-contact {
  background: linear-gradient(180deg, #070b12 0%, #05070c 100%);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--text);
}

.section-kicker {
  color: #8fb9ff;
  margin-bottom: 8px;
}

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.experience-title {
  text-align: right;
}

.experience-wrap {
  margin-top: 30px;
}

.xp-track {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 0 8px 42px;
  max-height: 620px;
  overflow: auto;
  mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 92%, transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 176, 206, 0.55) transparent;
}

.xp-track::-webkit-scrollbar {
  width: 8px;
}

.xp-track::-webkit-scrollbar-thumb {
  background: rgba(160, 176, 206, 0.55);
  border-radius: 999px;
}

.xp-track::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #171c27, #353c4d 35%, #171c27 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.xp-track::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 6px;
  height: 80px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(72, 210, 200, 0), rgba(72, 210, 200, 0.95), rgba(176, 131, 244, 0));
  animation: xpFlow 3.2s linear infinite;
  pointer-events: none;
}

.xp-item {
  --xp-accent: #8f97a5;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 14px 14px 14px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-right: 6px solid var(--xp-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: xpSlideIn 0.6s ease both;
}

.xp-item:nth-child(1) { animation-delay: 0.03s; }
.xp-item:nth-child(2) { animation-delay: 0.06s; }
.xp-item:nth-child(3) { animation-delay: 0.09s; }
.xp-item:nth-child(4) { animation-delay: 0.12s; }
.xp-item:nth-child(5) { animation-delay: 0.15s; }
.xp-item:nth-child(6) { animation-delay: 0.18s; }
.xp-item:nth-child(7) { animation-delay: 0.21s; }
.xp-item:nth-child(8) { animation-delay: 0.24s; }
.xp-item:nth-child(9) { animation-delay: 0.27s; }
.xp-item:nth-child(10) { animation-delay: 0.3s; }
.xp-item:nth-child(11) { animation-delay: 0.33s; }
.xp-item:nth-child(12) { animation-delay: 0.36s; }
.xp-item:nth-child(13) { animation-delay: 0.39s; }

.xp-item:hover {
  transform: translateX(4px);
  filter: brightness(1.08);
}

.xp-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--xp-accent);
  border: 4px solid rgba(10, 14, 24, 0.48);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--xp-accent) 45%, transparent);
  animation: xpDotPulse 2s ease-in-out infinite;
}

.xp-item::after {
  content: "";
  position: absolute;
  left: -21px;
  top: 50%;
  width: 16px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--xp-accent);
  opacity: 0.85;
}

.xp-role {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #edf3ff;
}

.xp-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: #d8e5ff;
  white-space: nowrap;
}

@keyframes xpFlow {
  0% { top: 8px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 88px); opacity: 0; }
}

@keyframes xpDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--xp-accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--xp-accent) 22%, transparent); }
}

@keyframes xpSlideIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.xp-purple {
  --xp-accent: #b083f4;
  background: rgba(176, 131, 244, 0.14);
}

.xp-teal {
  --xp-accent: #48d2c8;
  background: rgba(72, 210, 200, 0.14);
}

.xp-dark {
  --xp-accent: #2d3440;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-card,
.skill-group,
.contact-grid,
.project-block,
.stack-cloud {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.timeline-card {
  padding: 28px 30px;
  max-width: 860px;
}

.timeline-card h3 {
  font-size: 1.35rem;
  margin: 10px 0 8px;
  color: #fff;
}

.timeline-card p,
.project-copy p,
.contact-copy {
  color: var(--muted-dark);
  line-height: 1.7;
}

.project-block {
  display: grid;
  grid-template-columns: minmax(340px, 520px) 1fr;
  gap: 38px;
  padding: 24px;
  margin-top: 24px;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-block:hover {
  transform: translateY(-2px);
}

.projects-dynamic {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.projects-loading {
  color: var(--muted-dark);
  font-weight: 600;
  padding: 14px 4px;
}

.project-block .project-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.project-block .project-copy h3 a:hover {
  text-decoration: underline;
}

.project-block .project-copy h3 a.project-name-shimmer {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor;
  display: inline-block;
  animation: projectNameColorCycle 2.4s linear infinite !important;
  text-shadow: 0 0 14px rgba(155, 140, 255, 0.2);
  text-decoration: none;
}

@keyframes projectNameColorCycle {
  0% { color: #ffffff; }
  33% { color: #63d2c7; }
  66% { color: #9b8cff; }
  100% { color: #ffffff; }
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.project-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dce5ff;
  background: rgba(147, 168, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
}

.project-block.reverse {
  grid-template-columns: 1fr minmax(320px, 430px);
}

.project-block.reverse .project-visual {
  order: 2;
}

.project-visual {
  min-height: 440px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-visual-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-visual-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.project-visual-noise {
  position: absolute;
  inset: 18px;
  border: 6px solid rgba(35, 40, 46, 0.9);
  opacity: 0.85;
  clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}

.project-visual-noise.alt {
  inset: 28px 24px 24px 28px;
  border-color: rgba(255, 255, 255, 0.9);
  clip-path: polygon(0 6%, 96% 0, 100% 94%, 6% 100%);
  opacity: 0.34;
}

.project-visual-panels {
  position: absolute;
  inset: 18% 10% 16% 12%;
}

.panel-block {
  position: absolute;
  display: block;
  border-radius: 2px;
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

.panel-a {
  width: 36%;
  height: 34%;
  left: 8%;
  top: 10%;
  background: linear-gradient(135deg, #0c4da2 0%, #187bdf 70%, #0e5db6 100%);
  transform: skewY(-18deg) rotate(-8deg);
}

.panel-b {
  width: 38%;
  height: 36%;
  left: 52%;
  top: 30%;
  background: linear-gradient(135deg, #0f52a8 0%, #308ef1 100%);
  transform: skewY(-18deg) rotate(10deg);
}

.panel-c {
  width: 30%;
  height: 18%;
  left: 15%;
  top: 64%;
  background: linear-gradient(135deg, #10182d 0%, #1d2e52 100%);
  transform: skewX(28deg) rotate(8deg);
}

.panel-d {
  width: 22%;
  height: 16%;
  left: 37%;
  top: 40%;
  background: linear-gradient(135deg, #f6b21b 0%, #d28612 100%);
  transform: skewY(-18deg) rotate(-8deg);
}

.project-visual-initials {
  position: absolute;
  bottom: 18px;
  right: 18px;
  font-size: 1rem;
  font-weight: 900;
  color: rgba(240, 246, 255, 0.85);
  letter-spacing: 0.1em;
}

.project-read-more {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 12px 20px;
  background: rgba(7, 10, 18, 0.88);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease 0.28s, transform 0.25s ease 0.28s;
  pointer-events: none;
}

.project-visual:hover .project-read-more {
  opacity: 1;
}
.project-visual::before {
  mix-blend-mode: screen;
}

.project-gradient-a { background: linear-gradient(135deg, rgba(118, 100, 255, 0.95) 0%, rgba(79, 189, 178, 0.95) 100%); }
.project-gradient-b { background: linear-gradient(135deg, rgba(47, 182, 255, 0.95) 0%, rgba(140, 104, 255, 0.95) 100%); }
.project-gradient-c { background: linear-gradient(135deg, rgba(31, 138, 112, 0.95) 0%, rgba(99, 210, 199, 0.95) 100%); }

.project-media {
  min-height: 440px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.94), rgba(19, 30, 52, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-media-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 78% 80%, rgba(99, 210, 199, 0.2), transparent 24%),
    radial-gradient(circle at 55% 35%, rgba(155, 140, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 58%);
  opacity: 0.95;
}

.project-media-surface {
  position: absolute;
  inset: 0;
  background: var(--project-bg);
  overflow: hidden;
  z-index: 1;
}

.project-media-badge {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.42);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.project-media-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.project-media-subtext {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 58%;
  line-height: 1.5;
}

.project-fragment {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  z-index: 2;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0) rotate(0deg);
  opacity: 1;
  transition:
    transform 0.82s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
    opacity 0.82s ease var(--delay, 0s),
    filter 0.82s ease var(--delay, 0s);
  filter: saturate(1.02);
}

.project-media:hover .project-fragment,
.project-media:focus-within .project-fragment {
  transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(0.7);
  opacity: 0;
  filter: blur(0.6px) saturate(1.1);
}

.project-media:hover .project-read-more,
.project-media:focus-within .project-read-more {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-media:hover .project-media-badge,
.project-media:hover .project-media-subtext {
  opacity: 0.2;
}

.project-copy {
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-copy h3 {
  font-size: 1.75rem;
  margin: 8px 0 10px;
  color: #fff;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #151a26, #28304a);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f1320, #1b2440);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91, 99, 230, 0.08);
  color: #4a54d6;
  font-weight: 700;
  font-size: 0.84rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.skill-group {
  padding: 28px 30px 30px;
  min-height: 214px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px);
}

.skill-group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(99, 210, 199, 0.18), transparent 34%);
  pointer-events: none;
}

.skill-group h3 {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #fff;
}

.skill-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  color: #f2f6ff;
}

.skill-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px rgba(99, 210, 199, 0.35);
}

.skill-group.is-visible .skill-bar i {
  transform: scaleX(1);
}

.stack-cloud {
  margin-top: 24px;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.stack-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 30px;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #131a29, #2b3550);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 49, 53, 0.22);
}

.site-footer {
  background: #05070c;
  color: rgba(255, 255, 255, 0.72);
  padding: 20px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

@media (max-width: 960px) {
  .intro-cards,
  .skills-grid,
  .contact-grid,
  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
  }

  .project-block.reverse .project-visual {
    order: 0;
  }

  .project-visual {
    min-height: 360px;
  }

  .project-media {
    min-height: 360px;
  }

  .brand-mark {
    width: 78px;
    height: 64px;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .experience-title {
    text-align: left;
  }

  .xp-track {
    padding-left: 34px;
  }

  .xp-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 12px 12px 14px;
  }

  .xp-time {
    font-size: 0.9rem;
  }

    .xp-track {
      max-height: 560px;
    }
}

@media (max-width: 700px) {
  .nav-shell {
    gap: 12px;
    align-items: flex-start;
    padding-top: 10px;
    flex-direction: column;
    position: relative;
  }

  .navbar {
    height: auto;
    padding-bottom: 10px;
  }

  .brand-mark {
    position: static;
    width: 74px;
    height: 60px;
    transform: none;
    margin: 0 auto;
  }

  .section-intro {
    padding-top: 110px;
  }

  .bubble-layer {
    inset: 320px 0 96px 0;
  }

  .intro-card {
    padding: 18px 0 0;
  }

  .profile-ring {
    width: 186px;
    height: 186px;
  }

  .section-light,
  .section-mid,
  .section-contact {
    padding: 72px 0;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 320px;
  }

  .project-block.reverse .project-visual {
    order: 0;
  }

  .xp-track {
    padding-left: 30px;
  }

  .xp-track::before {
    left: 6px;
    width: 5px;
  }

  .xp-item {
    min-height: 48px;
    margin-bottom: 8px;
    padding: 10px 10px 10px 12px;
    border-right-width: 5px;
  }

  .xp-item::before {
    left: -27px;
    width: 14px;
    height: 14px;
  }

  .xp-role {
    font-size: 0.92rem;
  }

  .xp-track {
    max-height: 470px;
  }
}
