:root {
  /* Colors — Light Mode */
  --color-bg: #fafafa;
  --color-bg-secondary: #f4f4f5;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-text: #18181b;
  --color-text-secondary: #52525b;
  --color-text-muted: #a1a1aa;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: rgba(99, 102, 241, 0.1);
  --color-accent: #8b5cf6;
  --color-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #8b5cf6 50%,
    #a78bfa 100%
  );
  --color-gradient-subtle: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-star: #fbbf24;

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #09090b;
  --color-bg-secondary: #18181b;
  --color-surface: rgba(24, 24, 27, 0.7);
  --color-surface-hover: rgba(39, 39, 42, 0.9);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-primary-light: rgba(99, 102, 241, 0.15);
  --color-gradient-subtle: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(139, 92, 246, 0.12) 100%
  );
  --glass-bg: rgba(24, 24, 27, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.2);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

.btn__loading {
  display: none;
}

.btn.is-loading .btn__text {
  display: none;
}

.btn.is-loading .btn__loading {
  display: inline;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-4xl);
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.reveal--delay {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

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

.loader__content {
  text-align: center;
}

.loader__logo {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

.loader__bar {
  width: 200px;
  height: 3px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-inline: auto;
}

.loader__progress {
  height: 100%;
  width: 0;
  background: var(--color-gradient);
  border-radius: var(--radius-full);
  animation: loaderProgress 1.5s ease forwards;
}

.loader__text {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@keyframes loaderProgress {
  to {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  z-index: 1101;
}

.nav__logo-bracket {
  color: var(--color-primary);
}

.nav__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gradient);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link.active::after,
.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__cta {
  display: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 40px;
  padding: 4px 0;
  position: relative;
  z-index: 1101;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Open */
.nav__menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--color-bg);
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  z-index: 1100;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl)
    var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__menu.open .nav__link {
  font-size: 1.25rem;
  display: block;
  padding: var(--space-sm) 0;
}

.nav__menu-cta {
  display: none;
  width: min(100%, 240px);
  margin-top: var(--space-md);
}

.nav__menu.open .nav__menu-cta {
  display: block;
}

body.nav-open .nav__actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--color-gradient-subtle);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 20%,
    transparent 70%
  );
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.3);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.25);
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(167, 139, 250, 0.2);
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

.hero__container {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
}

.hero__greeting {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero__name {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__role {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  min-height: 2.5rem;
}

.typing-cursor {
  color: var(--color-primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__social {
  display: flex;
  gap: var(--space-md);
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.hero__social-link svg {
  width: 20px;
  height: 20px;
}

.hero__social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.hero__image-wrapper {
  position: relative;
  max-width: min(100%, 480px);
  margin-inline: auto;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-xl);
  width: 100%;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: var(--space-3xl);
}

.about__intro {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.about__content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-block: var(--space-xl);
}

.about__highlight {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-gradient-subtle);
  border: 1px solid var(--color-border);
}

.about__highlight-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__highlight-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.about__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.about__edu-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.about__edu-card h4 {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.about__edu-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.about__expertise {
  padding: var(--space-xl);
}

.about__expertise-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.about__expertise-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Skills Section
   -------------------------------------------------------------------------- */
.skills {
  background: var(--color-bg-secondary);
}

.skills__grid {
  display: grid;
  gap: var(--space-lg);
}

.skills__category {
  padding: var(--space-xl);
}

.skills__category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skills__category-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.skills__category-icon svg {
  width: 22px;
  height: 22px;
}

.skills__category-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.skills__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skill-item__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
}

.skill-item__percent {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.skill-item__bar {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-item__fill {
  height: 100%;
  width: 0;
  background: var(--color-gradient);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Projects Section
   -------------------------------------------------------------------------- */
.projects__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.projects__grid {
  display: grid;
  gap: var(--space-xl);
}

.project-card {
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.hidden {
  display: none;
}

.project-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__slideshow picture {
  position: absolute;
  inset: 0;
}

.project-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: projectSlideFade 15s infinite;
}

.project-card__slideshow picture:nth-of-type(1) .project-card__slide {
  animation-delay: 0s;
}

.project-card__slideshow picture:nth-of-type(2) .project-card__slide {
  animation-delay: 5s;
}

.project-card__slideshow picture:nth-of-type(3) .project-card__slide {
  animation-delay: 10s;
}

@keyframes projectSlideFade {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  36% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card__slide {
    animation: none;
  }
  .project-card__slideshow picture:nth-of-type(1) .project-card__slide {
    opacity: 1;
  }
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__link {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.project-card__link:hover {
  background: #fff;
  color: #111827;
}

.project-card__body {
  padding: var(--space-lg);
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.project-card__stack span {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.project-card__metrics {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   Experience Timeline
   -------------------------------------------------------------------------- */
.experience {
  background: var(--color-bg-secondary);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-3xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gradient);
  border: 3px solid var(--color-bg-secondary);
  z-index: 1;
  transition: transform var(--transition-base);
}

.timeline__item:hover .timeline__marker {
  transform: scale(1.3);
}

.timeline__content {
  padding: var(--space-xl);
  transition: transform var(--transition-base);
  text-align: left;
}

.timeline__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.timeline__header-main {
  flex: 1;
  min-width: 0;
}

.timeline__item:hover .timeline__content {
  transform: translateX(4px);
}

.timeline__date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-primary);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.timeline__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline__company {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .timeline__header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .timeline__date {
    padding-top: 0;
  }
}

.timeline__list {
  margin-bottom: var(--space-md);
}

.timeline__list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.timeline__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.timeline__achievement {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-xl);
  text-align: center;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-gradient);
  color: #fff;
  transform: scale(1.1);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--color-bg-secondary);
}

.testimonials__carousel {
  max-width: 700px;
  margin-inline: auto;
}

.testimonials__slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  flex-shrink: 0;
  padding: var(--space-2xl);
  box-sizing: border-box;
}

.testimonial-card__rating {
  color: var(--color-star);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  letter-spacing: 2px;
}

.testimonial-card__quote {
  margin: 0;
}

.testimonial-card__quote p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.testimonial-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  border: none;
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card__name a {
  color: inherit;
  text-decoration: none;
}

.testimonial-card__name a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.testimonial-card__company {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonials__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.testimonials__btn svg {
  width: 20px;
  height: 20px;
}

.testimonials__btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.testimonials__dots {
  display: flex;
  gap: var(--space-sm);
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.testimonials__dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Certifications Section
   -------------------------------------------------------------------------- */
.certifications__grid {
  display: grid;
  gap: var(--space-lg);
}

.cert-card {
  padding: var(--space-xl);
  transition: transform var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-4px);
}

.cert-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.cert-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.cert-card__org {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.cert-card__date {
  display: block;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.cert-card__link {
  font-size: 0.875rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Statistics Section
   -------------------------------------------------------------------------- */
.stats {
  background: var(--color-gradient-subtle);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  padding: var(--space-xl);
  text-align: center;
}

.stat-card__number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: var(--space-3xl);
}

.contact__intro {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.contact__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-secondary);
}

.contact__item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact__item a {
  color: var(--color-text-secondary);
}

.contact__item a:hover {
  color: var(--color-primary);
}

.contact__social {
  display: flex;
  gap: var(--space-md);
}

.contact__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.contact__social a svg {
  width: 20px;
  height: 20px;
}

.contact__social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.contact__form {
  padding: var(--space-xl);
}

.contact__form-header {
  margin-bottom: var(--space-lg);
}

.contact__form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact__form-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.contact__form-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.form-row {
  display: grid;
  gap: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.form-required {
  color: var(--color-error);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--color-error);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.form-group__meta .form-error {
  margin-top: 0;
  flex: 1;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: var(--space-xs);
  min-height: 1.25rem;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--color-success);
}

.form-success:not([hidden]) {
  display: flex;
}

.form-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-success p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error-banner {
  display: none;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--color-error);
}

.form-error-banner:not([hidden]) {
  display: flex;
}

.form-error-banner svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-error-banner strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-error-banner p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-block: var(--space-3xl) var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.footer__grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer__logo span {
  color: var(--color-primary);
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  max-width: 280px;
}

.footer__nav-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__social-links {
  display: flex;
  gap: var(--space-md);
}

.footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.footer__social-links a svg {
  width: 18px;
  height: 18px;
}

.footer__social-links a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    align-items: center;
  }

  .nav__menu.open {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    align-items: center;
  }

  .nav__menu-cta {
    display: none !important;
  }

  body.nav-open .nav__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__cta {
    display: inline-flex;
  }

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

  .hero__image-wrapper {
    margin-inline: 0;
    margin-left: auto;
    max-width: 560px;
  }

  .about__grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certifications__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .timeline {
    max-width: 760px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .certifications__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__orb,
  .hero__scroll {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .loader,
  .hero__bg,
  .hero__scroll,
  .back-to-top,
  .theme-toggle,
  .nav__toggle,
  .testimonials__controls,
  .projects__filters {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding-block: 1rem;
    break-inside: avoid;
  }
}
