:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-2: #080d22;
  --bg-3: #0d132d;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.13);
  --surface-3: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(98, 245, 255, 0.38);
  --text: #f7f9ff;
  --text-soft: #c7d0e8;
  --text-muted: #8b98b8;
  --accent: #62f5ff;
  --accent-2: #8b5cf6;
  --accent-3: #21e68a;
  --gold: #f8d886;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.26);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 82px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-2: #eef3ff;
  --bg-3: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-3: rgba(255, 255, 255, 0.58);
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(0, 119, 255, 0.34);
  --text: #06111f;
  --text-soft: #2f3b52;
  --text-muted: #67738c;
  --accent: #0077ff;
  --accent-2: #6d28d9;
  --accent-3: #0f9f6e;
  --gold: #b7791f;
  --shadow: 0 26px 90px rgba(44, 63, 107, 0.18);
  --shadow-soft: 0 18px 50px rgba(44, 63, 107, 0.13);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(98, 245, 255, 0.16), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.18), transparent 32%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: #020617;
  background: var(--accent);
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 9999;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-2);
  backdrop-filter: blur(18px);
  transform: translateY(-150%);
  transition: transform 220ms ease;
}

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

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

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
}

html[data-theme="light"] .ambient-grid {
  background-image:
    linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px);
}

.ambient-orb {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(62px);
  opacity: 0.36;
  animation: float-orb 12s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  left: -12rem;
  top: 8rem;
  background: rgba(98, 245, 255, 0.42);
}

.ambient-orb-2 {
  right: -13rem;
  top: -7rem;
  background: rgba(139, 92, 246, 0.44);
  animation-delay: -4s;
}

.ambient-orb-3 {
  right: 18%;
  bottom: -17rem;
  background: rgba(34, 197, 94, 0.22);
  animation-delay: -8s;
}

@keyframes float-orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(32px, -24px, 0) scale(1.08); }
}

.glass-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  width: 100%;
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.site-header.sticky {
  background: rgba(5, 8, 22, 0.7);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px);
}

html[data-theme="light"] .site-header.sticky {
  background: rgba(246, 248, 255, 0.78);
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #ffffff 42%, var(--accent-2));
  box-shadow: 0 14px 34px rgba(98, 245, 255, 0.24);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.navigation a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.navigation a:hover,
.navigation a.active {
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-btn,
.language-toggle,
.scrollToTop-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle,
.menu-btn,
.scrollToTop-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.theme-toggle:hover,
.menu-btn:hover,
.language-toggle:hover,
.scrollToTop-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.theme-light,
html[data-theme="light"] .theme-dark {
  display: none;
}

html[data-theme="light"] .theme-light {
  display: inline-flex;
}

.menu-btn {
  display: none;
}

.menu-icon-close {
  display: none;
}

.menu-btn.active .menu-icon-open {
  display: none;
}

.menu-btn.active .menu-icon-close {
  display: inline-flex;
}

.language-switcher {
  position: relative;
}

.language-toggle {
  height: 48px;
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.language-toggle img,
.language-option img {
  width: 23px;
  height: 23px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 214px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10, 14, 34, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 190ms ease, visibility 190ms ease, transform 190ms ease;
}

html[data-theme="light"] .language-menu {
  background: rgba(255, 255, 255, 0.92);
}

.language-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 15px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.language-option:hover,
.language-option.active {
  color: var(--text);
  background: var(--surface-2);
}

.fallback-flag {
  display: none;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
}

.section-shell {
  position: relative;
  padding: clamp(86px, 9vw, 138px) 0;
}

.section-dark {
  background:
    radial-gradient(circle at 16% 12%, rgba(98, 245, 255, 0.12), transparent 36%),
    radial-gradient(circle at 90% 12%, rgba(139, 92, 246, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.14);
}

.content,
.title,
.hero-layout,
.hero-metrics,
.skills-showcase,
.skill-matrix,
.experience-timeline,
.projects-grid,
.interests-grid,
.interests-parallax-grid,
.contact-grid,
.section-actions {
  width: var(--container);
  margin-inline: auto;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  position: relative;
  margin-top: 10px;
  padding-bottom: 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(138px, 38vw);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent) 54%, white) 18%, color-mix(in srgb, var(--accent) 80%, transparent) 50%, color-mix(in srgb, var(--accent-2) 72%, white) 82%, transparent 100%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-2) 26%, transparent);
  opacity: 0.88;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 24px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-2) 42%, transparent);
  animation: title-accent-glide 5.6s ease-in-out infinite;
}

.title p {
  max-width: 760px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.76;
}

@keyframes title-accent-glide {
  0%, 100% { transform: translateX(calc(-50% - 28px)); opacity: 0.72; }
  50% { transform: translateX(calc(-50% + 28px)); opacity: 1; }
}

.content-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.paragraph-text {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.84;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.title + .section-actions,
.section-dark > .section-actions {
  justify-content: center;
}

.btn {
  position: relative;
  isolation: isolate;
  width: fit-content;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #ffffff 42%, var(--accent-2));
  box-shadow: 0 18px 44px rgba(98, 245, 255, 0.22);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* Hero */

.hero-section {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 46px) 0 58px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.74), rgba(5, 8, 22, 0.24)),
    url("../assets/bg.png") center / cover no-repeat;
  opacity: 0.42;
}

html[data-theme="light"] .hero-section::before {
  opacity: 0.18;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: clamp(38px, 7vw, 94px);
  align-items: center;
}

.hero-content {
  max-width: 810px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  font-size: 0.9rem;
  font-weight: 850;
}

.eyebrow .material-symbols-rounded {
  color: var(--gold);
}

.hero-content h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.9vw, 5.65rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-content h1::after {
  content: "";
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 38px rgba(98, 245, 255, 0.55);
}

.animated-text {
  position: relative;
  height: 62px;
  margin-top: 22px;
  overflow: hidden;
}

.animated-text h3 {
  height: 62px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 62px;
  letter-spacing: -0.05em;
}

.animated-text h3:first-child {
  animation: text-move 13s infinite cubic-bezier(.77, 0, .18, 1);
}

@keyframes text-move {
  0%, 16% { margin-top: 0; }
  20%, 36% { margin-top: -62px; }
  40%, 56% { margin-top: -124px; }
  60%, 76% { margin-top: -186px; }
  80%, 96% { margin-top: -248px; }
  100% { margin-top: 0; }
}

.hero-description {
  max-width: 720px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.82;
}

.hero-description strong {
  color: var(--text);
}

.hero-actions {
  width: auto;
  margin-inline: 0;
}

.media-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.media-icons a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface-3);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.media-icons a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.media-icons .material-symbols-rounded {
  color: var(--accent);
}

.hero-panel {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.profile-card {
  position: relative;
  width: min(100%, 430px);
  padding: 18px;
  border-radius: var(--radius-xl);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(98, 245, 255, 0.55), transparent 36%, rgba(139, 92, 246, 0.54));
  opacity: 0.56;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.82rem;
  font-weight: 850;
}

html[data-theme="light"] .profile-status {
  background: rgba(255, 255, 255, 0.52);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-3) 18%, transparent);
}

.profile-image-card {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(98, 245, 255, 0.18), rgba(139, 92, 246, 0.2));
}

.profile-image-card::after,
.img-card::after,
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 56%, rgba(0,0,0,0.42)),
    radial-gradient(circle at 28% 12%, rgba(255,255,255,0.26), transparent 24%);
}

.profile-image-card img,
.img-card img,
.card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-content {
  padding: 22px 6px 8px;
}

.profile-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-card-content h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.profile-card-content p {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.68;
}

.profile-tags,
.project-tags,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-tags {
  padding: 4px 6px 2px;
}

.profile-tags span,
.project-tags span,
.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface-3);
  font-size: 0.78rem;
  font-weight: 900;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(276px, 72vw);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
  animation: float-chip 5.5s ease-in-out infinite;
}

.floating-chip > .material-symbols-rounded {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #fff);
}

.floating-chip strong,
.floating-chip small {
  display: block;
}

.floating-chip strong {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.floating-chip small {
  margin-top: 3px;
  color: var(--text-muted);
  line-height: 1.35;
}

.chip-ai {
  left: -26px;
  top: 16%;
}

.chip-ux {
  right: -22px;
  bottom: 14%;
  animation-delay: -2.5s;
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.metric-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
}

.metric-card > .material-symbols-rounded {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #fff 52%, var(--accent-2));
}

.metric-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* About */

.split-layout {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.img-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  line-height: 0;
  border-radius: var(--radius-xl);
}

.img-card::before,
.profile-image-card::before,
.project-card::after,
.experience-item::before,
.skill-feature::before {
  content: "";
  position: absolute;
  inset: auto -18% -36% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-highlights > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 850;
}

.about-highlights .material-symbols-rounded {
  color: var(--accent);
}

/* Skills */

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

.skill-feature {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}

.skill-feature:hover,
.skill-category:hover,
.project-card:hover,
.experience-item:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.skill-feature::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 245, 255, 0.18), transparent 68%);
}

.skill-feature > .material-symbols-rounded,
.skill-category-heading > .material-symbols-rounded,
.experience-icon,
.project-visual,
.contact-icon {
  display: grid;
  place-items: center;
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #fff 50%, var(--accent-2));
}

.skill-feature > .material-symbols-rounded {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 1.55rem;
  margin-bottom: 22px;
}

.skill-feature h3,
.skill-category h3,
.project-card h3,
.experience-item h3,
.contact-card h3 {
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.skill-feature h3 {
  font-size: 1.45rem;
}

.skill-feature p {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.72;
}

.skill-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.skill-category {
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 200ms ease, border-color 200ms ease;
}

.skill-category:nth-child(5) {
  grid-column: 1 / -1;
}

.skill-category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-category-heading > .material-symbols-rounded {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 15px;
}

.skill-category h3 {
  font-size: 1.3rem;
}

/* Experience */

.experience-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.experience-item {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.experience-item.featured {
  grid-column: span 2;
  min-height: 280px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface-2)), color-mix(in srgb, var(--accent-2) 16%, var(--surface-3)) 65%, var(--surface-3));
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.experience-item .date {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.experience-item h3 {
  font-size: 1.22rem;
}

.experience-item p {
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.72;
}

/* Projects */

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

.project-card {
  position: relative;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(24px);
  transition: transform 200ms ease, border-color 200ms ease;
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 22px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -42% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 68%);
  pointer-events: none;
}

.project-visual {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(98, 245, 255, 0.18);
}

.project-card.featured .project-visual {
  width: 154px;
  height: 154px;
  border-radius: 34px;
}

.project-card.featured .project-visual .material-symbols-rounded {
  font-size: 4rem;
}

.project-content {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.project-card.featured .project-content {
  margin-top: 0;
}

.project-type {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 1.42rem;
}

.project-card p {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.72;
}

.project-tags {
  margin-top: 18px;
}

/* Interests */

.interests-parallax-grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.interest-flip-card {
  --rx: 0deg;
  --ry: 0deg;
  min-height: 340px;
  perspective: 1400px;
  cursor: pointer;
}

.interest-card-shell {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 220ms ease, filter 220ms ease;
}

.interest-card-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 780ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.interest-flip-card:hover .interest-card-shell,
.interest-flip-card:focus-visible .interest-card-shell,
.interest-flip-card.is-flipped .interest-card-shell {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.22));
}

.interest-flip-card:hover .interest-card-inner,
.interest-flip-card:focus-visible .interest-card-inner,
.interest-flip-card.is-flipped .interest-card-inner {
  transform: rotateY(180deg);
}

.interest-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  box-shadow: var(--shadow-soft);
  backface-visibility: hidden;
}

.interest-front {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 22, 0.12), rgba(5, 8, 22, 0.78)),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.28), transparent 28%),
    var(--interest-image);
  background-size: cover;
  background-position: center;
}

.interest-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 30%, rgba(255,255,255,0.08) 46%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(98, 245, 255, 0.12) 100%);
  transform: translateX(-100%);
  transition: transform 800ms ease;
}

.interest-flip-card:hover .interest-front::after,
.interest-flip-card.is-flipped .interest-front::after {
  transform: translateX(100%);
}

.interest-back {
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(98, 245, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.22), transparent 38%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface-3) 92%, transparent));
  transform: rotateY(180deg);
}

.interest-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px;
}

.interest-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #06121f;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), color-mix(in srgb, var(--accent) 70%, white));
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.interest-micro {
  display: block;
  margin-bottom: 10px;
  color: rgba(233, 240, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.interest-front h3,
.interest-back h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.interest-back .material-symbols-rounded {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #04131f;
  background: linear-gradient(135deg, var(--accent), #fff, var(--accent-2));
  box-shadow: 0 18px 36px rgba(0,0,0,0.2);
}

.interest-back p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.contact-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.contact-card h3 {
  font-size: 1.05rem;
}

.contact-card span:not(.material-symbols-rounded) {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.footer {
  padding: 38px 20px;
  color: var(--text-soft);
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--border);
}

.footer-title {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer p {
  margin-top: 10px;
}

.footer a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.scrollToTop-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.scrollToTop-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .brand-name {
    display: none;
  }

  .navigation a {
    padding-inline: 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 1040px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    padding: 0 20px;
  }

  .menu-btn {
    display: grid;
    order: 4;
  }

  .navigation {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 20px;
    left: 20px;
    z-index: 999;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
  }

  .navigation.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .navigation a {
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-metrics,
  .skills-showcase,
  .experience-timeline,
  .projects-grid,
  .interests-grid,
  .interests-parallax-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 11vw, 3.85rem);
  }

  .animated-text,
  .animated-text h3 {
    height: 48px;
    line-height: 48px;
  }

  .animated-text h3 {
    font-size: 2rem;
  }

  @keyframes text-move {
    0%, 16% { margin-top: 0; }
    20%, 36% { margin-top: -48px; }
    40%, 56% { margin-top: -96px; }
    60%, 76% { margin-top: -144px; }
    80%, 96% { margin-top: -192px; }
    100% { margin-top: 0; }
  }

  .hero-actions,
  .section-actions,
  .media-icons {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .media-icons a {
    width: 100%;
  }

  .hero-metrics,
  .skills-showcase,
  .skill-matrix,
  .experience-timeline,
  .projects-grid,
  .interests-grid,
  .interests-parallax-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .skill-category:nth-child(5) {
    grid-column: auto;
  }

  .project-card.featured {
    display: block;
  }

  .project-card.featured .project-visual {
    width: 74px;
    height: 74px;
    border-radius: 24px;
  }

  .project-card.featured .project-visual .material-symbols-rounded {
    font-size: 2rem;
  }

  .img-card {
    min-height: 390px;
  }

  .floating-chip {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 14px;
    animation: none;
  }

  .language-toggle {
    min-width: 74px;
  }

  .language-toggle #language-current-code {
    display: none;
  }

  .language-menu {
    right: -58px;
  }
}

@media (max-width: 420px) {
  .brand-mark,
  .theme-toggle,
  .menu-btn,
  .language-toggle {
    width: 43px;
    height: 43px;
  }

  .language-toggle {
    min-width: 43px;
    padding: 0;
  }

  .language-toggle .material-symbols-rounded {
    display: none;
  }
}

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


.interests::before,
.experience::before,
.projects::before,
.about::before {
  content: "";
  position: absolute;
  inset: auto auto -10% -8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.interests,
.experience,
.projects,
.about {
  position: relative;
}

@media (max-width: 1180px) {
  .interests-parallax-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1040px) {
  .experience-item.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .interests-parallax-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .interest-flip-card {
    min-height: 320px;
  }
}


/* V5 refinements: exact About image fit, reliable Interest imagery and cleaner premium motion */
.img-card.glass-card {
  display: block;
  min-height: 0 !important;
  height: auto !important;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.img-card.glass-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  vertical-align: middle;
}

.img-card.glass-card::after {
  border-radius: inherit;
}

.interest-front {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 22, 0.08), rgba(5, 8, 22, 0.8)),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.28), transparent 28%),
    var(--interest-image);
}

.interest-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.015);
  transition: transform 780ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 780ms ease, opacity 780ms ease;
}

.interest-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.2), transparent 26%),
    linear-gradient(180deg, rgba(5,8,22,0.18) 0%, rgba(5,8,22,0.22) 34%, rgba(5,8,22,0.82) 100%);
  pointer-events: none;
}

.interest-front::after {
  z-index: 1;
}

.interest-flip-card:hover .interest-bg,
.interest-flip-card:focus-visible .interest-bg,
.interest-flip-card.is-flipped .interest-bg {
  transform: scale(1.09);
  filter: saturate(1.18) contrast(1.08);
  opacity: 1;
}

.interest-inner {
  z-index: 2;
}

@media (max-width: 760px) {
  .img-card.glass-card {
    min-height: 0 !important;
  }
}
