:root {
  --ink: #071014;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #e9f7f3;
  --muted: #9fb4b8;
  --mint: #7cf7c8;
  --sky: #8bc7ff;
  --coral: #ff8f70;
  --bg-radial-1: rgba(124, 247, 200, 0.16);
  --bg-radial-2: rgba(139, 199, 255, 0.16);
  --bg-linear-1: #071014;
  --bg-linear-2: #09161d;
  --bg-linear-3: #0d111c;
  --grid-line: rgba(255, 255, 255, 0.035);
  --loader-bg: #071014;
}

.theme-light {
  --ink: #0e1518;
  --panel: rgba(9, 22, 26, 0.06);
  --panel-strong: rgba(9, 22, 26, 0.12);
  --line: rgba(9, 22, 26, 0.16);
  --text: #0e161a;
  --muted: #3b4f55;
  --mint: #1b9478;
  --sky: #2f6ea7;
  --coral: #e0714d;
  --bg-radial-1: rgba(27, 148, 120, 0.18);
  --bg-radial-2: rgba(47, 110, 167, 0.18);
  --bg-linear-1: #e8f2f1;
  --bg-linear-2: #dfeaec;
  --bg-linear-3: #d6e3e7;
  --grid-line: rgba(9, 22, 26, 0.08);
  --loader-bg: #e6efef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    radial-gradient(circle at 20% 0%, var(--bg-radial-1), transparent 28rem),
    radial-gradient(circle at 80% 8%, var(--bg-radial-2), transparent 30rem),
    linear-gradient(135deg, var(--bg-linear-1) 0%, var(--bg-linear-2) 44%, var(--bg-linear-3) 100%);
  color: var(--text);
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.loading {
  height: 100vh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.smooth-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }
}

.smooth-cursor.is-visible {
  opacity: 1;
}

.smooth-cursor-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(124, 247, 200, 0.55);
  box-shadow: 0 0 18px rgba(124, 247, 200, 0.35);
  background: rgba(7, 16, 20, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.smooth-cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--mint);
  box-shadow: 0 0 14px rgba(124, 247, 200, 0.6);
}

.smooth-cursor.is-pressed .smooth-cursor-ring {
  transform: scale(0.88);
  border-color: rgba(139, 199, 255, 0.65);
  box-shadow: 0 0 22px rgba(139, 199, 255, 0.35);
}

.smooth-cursor.is-hovering .smooth-cursor-ring {
  transform: scale(1.18);
  border-color: rgba(124, 247, 200, 0.85);
  box-shadow: 0 0 28px rgba(124, 247, 200, 0.45);
}

.theme-light .smooth-cursor-ring {
  border-color: rgba(27, 148, 120, 0.55);
  box-shadow: 0 0 18px rgba(27, 148, 120, 0.28);
  background: rgba(232, 242, 241, 0.7);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .smooth-cursor {
    display: none;
  }
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--coral));
  box-shadow: 0 0 24px rgba(124, 247, 200, 0.55);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--loader-bg);
  transition: opacity 650ms ease, visibility 650ms ease;
}

.page-loader.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: visible;
  color: #f3fffb;
  user-select: none;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 28%),
    rgba(124, 247, 200, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 42px -18px rgba(124, 247, 200, 0.54),
    0 0 74px -48px rgba(139, 199, 255, 0.62),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.loader {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: transparent;
  animation: loader-rotate 2s linear infinite;
  z-index: 0;
}

.loader-letter {
  display: inline-block;
  opacity: 0.4;
  transform: translateY(0);
  animation: loader-letter-anim 2s infinite;
  z-index: 1;
  border-radius: 50ch;
  filter: blur(2px);
  margin: 0.22em;
}

.loader-letter:nth-child(1) {
  animation-delay: 0s;
}

.loader-letter:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-letter:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-letter:nth-child(4) {
  animation-delay: 0.3s;
}

.loader-letter:nth-child(5) {
  animation-delay: 0.4s;
}

.loader-letter:nth-child(6) {
  animation-delay: 0.5s;
}

.loader-letter:nth-child(7) {
  animation-delay: 0.6s;
}

.loader-letter:nth-child(8) {
  animation-delay: 0.7s;
}

.loader-letter:nth-child(9) {
  animation-delay: 0.8s;
}

.star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f4fffb;
  transform: translate(20px, 90px);
  animation: blur-anim 2s infinite;
  box-shadow:
    0 0 6px 0 rgba(255, 255, 255, 0.68),
    0 0 12px rgba(124, 247, 200, 0.42);
  filter: blur(4px);
  opacity: 0.2;
}

.star:nth-of-type(2) {
  transform: translate(56px, 46px);
  scale: 1.05;
  animation-delay: 0.2s;
}

.star:nth-of-type(3) {
  transform: translate(-26px, 56px);
  scale: 1.4;
  animation-delay: 0.4s;
}

.star:nth-of-type(4) {
  transform: translate(-50px, -70px);
  scale: 0.95;
  animation-delay: 0.7s;
}

.star:nth-of-type(5) {
  transform: translate(32px, -66px);
  scale: 1.3;
  animation-delay: 0.35s;
}

.star:nth-of-type(6) {
  transform: translate(82px, -36px);
  scale: 1;
  animation-delay: 0.9s;
}

.star:nth-of-type(7) {
  transform: translate(-92px, 26px);
  scale: 1;
  animation-delay: 0.95s;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
}

.orb-a {
  top: 8%;
  left: -8rem;
  background: rgba(124, 247, 200, 0.42);
}

.orb-b {
  top: 34%;
  right: -10rem;
  background: rgba(139, 199, 255, 0.34);
}

.orb-c {
  bottom: -12rem;
  left: 34%;
  background: rgba(255, 143, 112, 0.24);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 28%),
    repeating-radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 20, 0.72);
  backdrop-filter: blur(18px);
}

.theme-light .site-header {
  background: rgba(246, 250, 252, 0.82);
}

.brand {
  display: grid;
  gap: 0.1rem;
}

.brand span {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand small,
.eyebrow {
  color: var(--mint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.theme-light .site-nav a:hover,
.theme-light .site-nav a:focus-visible {
  background: rgba(7, 16, 20, 0.06);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.45rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  --toggle-duration: 600ms;
  transition: var(--toggle-duration) ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(124, 247, 200, 0.5);
  box-shadow: 0 0 18px rgba(124, 247, 200, 0.25);
}

.theme-toggle-track {
  position: absolute;
  left: 0.5rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(124, 247, 200, 0.85), rgba(139, 199, 255, 0.85));
  box-shadow: 0 0 10px rgba(124, 247, 200, 0.45);
  transform-origin: center;
  transition: transform var(--toggle-duration) ease, box-shadow var(--toggle-duration) ease;
}

.theme-light .theme-toggle-track {
  transform: translateX(0.45rem);
  background: linear-gradient(145deg, rgba(255, 184, 107, 0.85), rgba(255, 143, 112, 0.85));
  box-shadow: 0 0 10px rgba(255, 143, 112, 0.35);
}

.theme-icon {
  width: 18px;
  height: 18px;
  transform-origin: center;
  transition: opacity var(--toggle-duration) ease, transform var(--toggle-duration) ease;
}

.icon-sun {
  opacity: 0;
  transform: translateY(6px) scale(0.85);
}

.icon-moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.theme-light .icon-sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.theme-light .icon-moon {
  opacity: 0;
  transform: translateY(-6px) scale(0.85);
}

.theme-toggle-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.theme-toggle.variant-hexagon .theme-toggle-track {
  border-radius: 0;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}

.theme-toggle.from-center .theme-toggle-track,
.theme-toggle.from-center .theme-icon {
  transform-origin: center;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.7rem, 6vh, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero h1,
.section-heading h2,
.large-card h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.45rem, 5.6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.hero-text {
  max-width: 44rem;
  margin: 1.15rem 0 0;
  color: #c1d3d5;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  transition: 180ms ease;
}

.primary-action {
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(124, 247, 200, 0.25);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero-visual {
  perspective: 1000px;
}

.soft-card,
.project-card,
.skills-panel,
.timeline-card,
.large-card,
.contact-section {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.ai-core-panel {
  position: relative;
  min-height: min(60vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 46%, rgba(124, 247, 200, 0.2), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.ai-core-panel::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(124, 247, 200, 0.16);
  box-shadow: inset 0 0 60px rgba(124, 247, 200, 0.07);
}

.ai-core-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -22%;
  height: 42%;
  background: radial-gradient(ellipse, rgba(139, 199, 255, 0.18), transparent 65%);
  filter: blur(12px);
}

.ai-core-loader {
  --color-one: var(--mint);
  --color-two: var(--sky);
  --color-three: rgba(124, 247, 200, 0.45);
  --color-four: rgba(139, 199, 255, 0.34);
  --color-five: rgba(255, 143, 112, 0.18);
  --time-animation: 2.4s;
  --size: 2.35;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  z-index: 2;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--size));
  transform-origin: center;
  box-shadow:
    0 0 25px 0 var(--color-three),
    0 20px 50px 0 var(--color-four);
  animation: ai-colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

.core-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ai-core-loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-top: solid 1px var(--color-one);
  border-bottom: solid 1px var(--color-two);
  background: linear-gradient(180deg, var(--color-five), var(--color-four));
  box-shadow:
    inset 0 10px 10px 0 var(--color-three),
    inset 0 -10px 10px 0 var(--color-four);
}

.ai-core-loader .box {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg, var(--color-one) 30%, var(--color-two) 70%);
  mask: url("#clipping");
  -webkit-mask: url("#clipping");
}

.ai-core-loader svg {
  position: absolute;
}

.ai-core-loader svg #clipping {
  filter: contrast(15);
  animation: ai-roundness calc(var(--time-animation) / 2) linear infinite;
}

.ai-core-loader svg #clipping polygon {
  filter: blur(7px);
}

.ai-core-loader svg #clipping polygon:nth-child(1) {
  transform-origin: 75% 25%;
  transform: rotate(90deg);
}

.ai-core-loader svg #clipping polygon:nth-child(2) {
  transform-origin: 50% 50%;
  animation: ai-rotation var(--time-animation) linear infinite reverse;
}

.ai-core-loader svg #clipping polygon:nth-child(3) {
  transform-origin: 50% 60%;
  animation: ai-rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -3);
}

.ai-core-loader svg #clipping polygon:nth-child(4),
.ai-core-loader svg #clipping polygon:nth-child(5) {
  transform-origin: 40% 40%;
  animation: ai-rotation var(--time-animation) linear infinite reverse;
}

.ai-core-loader svg #clipping polygon:nth-child(5) {
  animation-delay: calc(var(--time-animation) / -2);
}

.ai-core-loader svg #clipping polygon:nth-child(6),
.ai-core-loader svg #clipping polygon:nth-child(7) {
  transform-origin: 60% 40%;
  animation: ai-rotation var(--time-animation) linear infinite;
}

.ai-core-loader svg #clipping polygon:nth-child(7) {
  animation-delay: calc(var(--time-animation) / -1.5);
}

.core-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(124, 247, 200, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: core-ring 6s linear infinite;
}

.core-rings span:nth-child(2) {
  width: min(62%, 340px);
  border-color: rgba(139, 199, 255, 0.16);
  animation-duration: 8s;
  animation-direction: reverse;
}

.core-rings span:nth-child(3) {
  width: min(48%, 260px);
  border-color: rgba(255, 143, 112, 0.14);
  animation-duration: 10s;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(6.5rem, 13vw, 11rem) 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.4rem, 5vw, 4rem);
}

.section-heading {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.section-heading h2,
.large-card h2,
.contact-section h2 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4.6vw, 4.7rem);
}

.section-heading.centered {
  position: static;
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.about-grid,
.timeline {
  display: grid;
  gap: 1.15rem;
}

.about-main {
  min-height: 360px;
}

.about-main p {
  max-width: 62rem;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.78;
}

.soft-card,
.timeline-card,
.project-card,
.skills-panel,
.large-card {
  border-radius: 28px;
  padding: clamp(1.35rem, 3.4vw, 2.15rem);
}

.card-index,
.timeline-card span,
.project-meta span {
  color: var(--mint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

h3 {
  margin: 0.65rem 0 0.6rem;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 340px;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(124, 247, 200, 0.7), rgba(139, 199, 255, 0.75));
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: 180ms ease;
}

.project-button:hover,
.project-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 247, 200, 0.3);
}

.project-button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.theme-light .project-button {
  color: var(--ink);
}

.theme-light .project-button.ghost {
  background: rgba(9, 22, 26, 0.06);
}

.project-card.featured {
  grid-column: span 6;
  min-height: 430px;
  background:
    radial-gradient(circle at 82% 18%, rgba(124, 247, 200, 0.2), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.project-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  letter-spacing: -0.04em;
}

.tags,
.skill-list,
.skill-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span,
.skill-list span,
.skill-nodes span {
  padding: 0.46rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font-size: 0.9rem;
}

.skills-board {
  display: grid;
  gap: 1.35rem;
}

.skill-stack {
  position: relative;
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 2.35rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.skill-stack::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: radial-gradient(circle at 30% 120%, rgba(124, 247, 200, 0.22), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.skill-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.skill-signal {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.skill-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.9rem 0 1.1rem;
  overflow: hidden;
}

.skill-track::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--track, 0.75) * 100%);
  background: linear-gradient(90deg, rgba(124, 247, 200, 0.8), rgba(139, 199, 255, 0.75));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(124, 247, 200, 0.4);
}

.theme-light .skill-stack::after {
  background: radial-gradient(circle at 30% 120%, rgba(27, 148, 120, 0.2), transparent 60%);
}

.achievements {
  padding-top: clamp(5rem, 10vw, 9rem);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.achievement-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3.5vw, 2rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.achievement-card h3 {
  margin-top: 0;
}

.large-card {
  min-height: 500px;
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 143, 112, 0.2), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
}

.large-card p {
  max-width: 780px;
}

.contact-section {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(6.5rem, 12vw, 10rem) auto 0;
  padding: clamp(1.8rem, 5.5vw, 3.6rem);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-card {
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.18),
    inset 0 0 5px rgba(255, 255, 255, 0.24),
    0 5px 5px rgba(0, 0, 0, 0.16);
  transition: 0.5s;
}

.contact-card:hover {
  background: rgba(173, 173, 173, 0.05);
}

.contact-card ul {
  padding: 0.75rem;
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.contact-card ul li {
  cursor: pointer;
  position: relative;
}

.contact-card .svg {
  transition: all 0.3s;
  padding: 0.9rem;
  height: 56px;
  width: 56px;
  border-radius: 100%;
  color: var(--mint);
  fill: currentColor;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.164);
}

.contact-card .text {
  opacity: 0;
  border-radius: 5px;
  padding: 5px 8px;
  transition: all 0.3s;
  color: var(--text);
  background-color: rgba(7, 16, 20, 0.7);
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: -42px;
  z-index: 10;
  box-shadow:
    -5px 0 1px rgba(153, 153, 153, 0.2),
    -10px 0 1px rgba(153, 153, 153, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.082);
}

.contact-card .iso-pro {
  transition: 0.5s;
}

.contact-card .iso-pro:hover a > .svg {
  transform: translate(10px, -10px);
  border-radius: 100%;
}

.contact-card .iso-pro:hover .text {
  opacity: 1;
  transform: translate(-50%, -6px) skew(-5deg);
}

.contact-card .iso-pro:hover .svg {
  transform: translate(5px, -5px);
}

.contact-card .iso-pro span {
  opacity: 0;
  position: absolute;
  color: var(--mint);
  border-color: var(--mint);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.5),
    0 5px 5px rgba(0, 0, 0, 0.164);
  border-radius: 50%;
  transition: all 0.3s;
  height: 56px;
  width: 56px;
  top: 0;
  left: 0;
}

.contact-card .iso-pro:hover span {
  opacity: 1;
}

.contact-card .iso-pro:hover span:nth-child(1) {
  opacity: 0.2;
}

.contact-card .iso-pro:hover span:nth-child(2) {
  opacity: 0.4;
  transform: translate(4px, -4px);
}

.contact-card .iso-pro:hover span:nth-child(3) {
  opacity: 0.6;
  transform: translate(8px, -8px);
}

.contact-card .gmail .svg {
  color: var(--coral);
}

.contact-card .linkedin .svg {
  color: var(--sky);
}

.contact-card .github .svg {
  color: #cbd5e1;
}

.theme-light .contact-card .text {
  background-color: rgba(230, 239, 239, 0.92);
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
}

.motion {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(74px) scale(0.94) rotateX(7deg);
  transform-origin: center top;
  transition:
    opacity 980ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 980ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 980ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, filter, transform;
}

.motion.in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1) rotateX(0);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease;
}

@keyframes ai-rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes ai-roundness {
  0% {
    filter: contrast(15);
  }

  20%,
  40% {
    filter: contrast(3);
  }

  60%,
  100% {
    filter: contrast(15);
  }
}

@keyframes ai-colorize {
  0% {
    filter: hue-rotate(0deg);
  }

  20% {
    filter: hue-rotate(-18deg);
  }

  40% {
    filter: hue-rotate(-34deg);
  }

  60% {
    filter: hue-rotate(-52deg);
  }

  80% {
    filter: hue-rotate(-22deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes core-ring {
  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(1.04);
  }
}

@keyframes loader-rotate {
  0% {
    transform: rotate(90deg);
    box-shadow:
      0 10px 20px 0 rgba(255, 255, 255, 0.86) inset,
      0 22px 34px 0 rgba(124, 247, 200, 0.38) inset,
      0 68px 72px 0 rgba(139, 199, 255, 0.16) inset;
  }

  50% {
    transform: rotate(270deg);
    box-shadow:
      0 10px 20px 0 rgba(255, 255, 255, 0.8) inset,
      0 22px 14px 0 rgba(255, 143, 112, 0.42) inset,
      0 48px 68px 0 rgba(124, 247, 200, 0.16) inset;
  }

  100% {
    transform: rotate(450deg);
    box-shadow:
      0 10px 20px 0 rgba(255, 255, 255, 0.86) inset,
      0 22px 34px 0 rgba(124, 247, 200, 0.38) inset,
      0 68px 72px 0 rgba(139, 199, 255, 0.16) inset;
  }
}

@keyframes loader-letter-anim {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
    filter: blur(2px);
  }

  20% {
    opacity: 1;
    transform: scale(1.18) translateY(-1px);
    filter: blur(0);
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.95),
      0 0 14px rgba(124, 247, 200, 0.8),
      0 0 22px rgba(139, 199, 255, 0.5);
  }

  40% {
    opacity: 0.7;
    transform: translateY(0);
    filter: blur(2px);
  }
}

@keyframes blur-anim {
  0%,
  100% {
    opacity: 0.2;
    filter: blur(4px);
  }

  50% {
    opacity: 0.44;
    filter: blur(1px);
  }
}

@media (max-width: 920px) {
  .site-header,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .two-column,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .section-heading {
    position: static;
  }

  .project-card,
  .project-card.featured {
    grid-column: span 6;
  }

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

@media (max-width: 560px) {
  .site-nav a {
    padding: 0.45rem 0.55rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.45rem);
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.featured {
    grid-column: auto;
  }
}

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