@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #030712;
  --fg: #f4f6fb;
  --muted: #9aa0b5;
  --card: rgba(20, 24, 37, 0.9);
  --glass: rgba(32, 38, 54, 0.55);
  --surface: rgba(16, 20, 31, 0.7);
  --border: rgba(118, 131, 177, 0.18);
  --border-strong: rgba(118, 131, 177, 0.32);
  --accent: #5b7cfa;
  --accent-2: #3de4c5;
  --accent-soft: rgba(91, 124, 250, 0.16);
  --shadow: 0 30px 60px -30px rgba(10, 15, 37, 0.8);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --transition: 180ms ease;
  --grid-line: rgba(148, 164, 196, 0.08);
  color-scheme: dark;
  accent-color: var(--accent);
}

html[data-theme="light"] {
  --bg: #fafbfc;
  --fg: #1a202c;
  --muted: #4a5568;
  --card: rgba(255, 255, 255, 0.98);
  --glass: rgba(255, 255, 255, 0.85);
  --surface: rgba(247, 250, 252, 0.95);
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --accent: #2563eb;
  --accent-2: #0891b2;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
  --grid-line: rgba(0, 0, 0, 0.03);
  color-scheme: light;
  accent-color: var(--accent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(91, 124, 250, 0.22), transparent 60%),
    radial-gradient(800px 600px at 15% -10%, rgba(61, 228, 197, 0.18), transparent 65%);
  pointer-events: none;
  z-index: -2;
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(37, 99, 235, 0.15), transparent 60%),
    radial-gradient(800px 600px at 15% -10%, rgba(8, 145, 178, 0.12), transparent 65%),
    radial-gradient(600px 400px at 50% 80%, rgba(139, 92, 246, 0.08), transparent 70%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0, var(--grid-line) 1px, transparent 1px),
    linear-gradient(0deg, transparent 0, var(--grid-line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -3;
}

::selection {
  background: rgba(91, 124, 250, 0.35);
  color: var(--fg);
}

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

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

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

a:hover {
  color: var(--accent-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 4px;
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.35);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

p {
  margin: 0 0 1.2rem;
  font-size: 1rem;
}

.contact-copy p {
  margin: 0;
  line-height: 1.2;
}

strong {
  font-weight: 600;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(96px, 12vw, 132px) 0;
}

/* Section divider lines removed for cleaner design */

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 620px;
}

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--muted);
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

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

.small {
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.85), rgba(3, 7, 18, 0.55));
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 251, 252, 0.85));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  box-shadow: 0 24px 40px -32px rgba(10, 15, 37, 0.7);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@supports not ((backdrop-filter: blur(10px))) {
  .site-header {
    background: rgba(3, 7, 18, 0.92);
  }

  html[data-theme="light"] .site-header {
    background: rgba(247, 249, 253, 0.94);
  }

  .contact-copy,
  .skill-category,
  .contact-form,
  .hero-pane,
  .about-panel {
    background: rgba(16, 20, 31, 0.92);
  }

  html[data-theme="light"] .contact-copy,
  html[data-theme="light"] .skill-category,
  html[data-theme="light"] .contact-form,
  html[data-theme="light"] .hero-pane,
  html[data-theme="light"] .about-panel {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  transition: padding var(--transition);
}

.site-header.is-scrolled .nav {
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.brand img {
  width: 32px;
  height: 32px;
  transition: transform var(--transition);
}

.site-header.is-scrolled .brand img {
  transform: scale(0.9);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--fg);
  border-color: var(--border);
  background: var(--surface);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--fg);
  background: var(--accent-soft);
  border-color: rgba(91, 124, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--border-strong);
  background: var(--card);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.menu-toggle {
  display: none;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 140ms ease-out;
}

.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 80;
}

.back-to-top:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  color: var(--fg);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061021;
  box-shadow: 0 18px 30px -22px rgba(91, 124, 250, 0.8);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  z-index: -1;
}

.btn.primary::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: calc(inherit - 1px);
  z-index: -1;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 124, 250, 0.4);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 20px 34px -26px rgba(91, 124, 250, 0.9);
}

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

.btn.email {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn.email::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 124, 250, 0.1), rgba(61, 228, 197, 0.1));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn.email:hover {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 6px 16px rgba(91, 124, 250, 0.2);
  transform: translateY(-2px);
}

.btn.email:hover::before {
  opacity: 1;
}

.btn-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(6, 16, 33, 0.7);
  margin-left: 8px;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(20px, 4vw, 40px) 0 clamp(80px, 12vw, 120px);
  overflow: hidden;
}

/* Hero section divider line removed for cleaner design */

.hero-backdrop {
  position: absolute;
  inset: -8% -10% auto;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.55;
  filter: blur(0px);
}

.hero-orb--one {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(91, 124, 250, 0.55), transparent 70%);
  animation: float 14s ease-in-out infinite;
}

.hero-orb--two {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -60px;
  background: radial-gradient(circle at 70% 40%, rgba(61, 228, 197, 0.45), transparent 75%);
  animation: float 16s ease-in-out infinite reverse;
}

.hero-orb--three {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(91, 124, 250, 0.35), transparent 80%);
  animation: float 18s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-body {
  max-width: 620px;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-note {
  color: var(--muted);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 40px;
}

.hero-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-highlight__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  color: var(--muted);
}

.hero-highlight__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-social {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-social a {
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: white;
  background: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(91, 124, 250, 0.2);
}

.hero-social a:hover {
  border-color: var(--accent-2);
  color: white;
  background: var(--accent-2);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(91, 124, 250, 0.4);
}

.hero-social a svg {
  flex-shrink: 0;
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-social a:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.hero-aside {
  display: flex;
  justify-content: center;
}

.hero-pane {
  position: relative;
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.hero-pane::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(91, 124, 250, 0.22), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.hero-pane:hover::after {
  opacity: 1;
}

.avatar-container {
  position: relative;
  width: clamp(220px, 32vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.avatar {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.avatar-badge {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(40, 241, 201, 0.12);
  border: 1px solid rgba(61, 228, 197, 0.35);
  color: rgba(61, 228, 197, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}

.hero-cards {
  display: grid;
  gap: 16px;
}

.hero-card {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(91, 124, 250, 0.08), rgba(18, 25, 39, 0.95));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), border-color var(--transition);
  transform: translateZ(0);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 124, 250, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-card:hover {
  transform: translateY(-6px) translateZ(16px);
  border-color: var(--border-strong);
}

.hero-card:hover::before {
  opacity: 1;
}

.hero-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--muted);
}

.hero-card__value {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-card__meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071122;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--fg);
}

.accent {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.about-copy p {
  font-size: 1.2rem;
  color: var(--muted);
}

.about-panels {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-panel {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.about-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(91, 124, 250, 0.26), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.about-panel:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.about-panel:hover::before {
  opacity: 1;
}

.about-panel__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.about-panel p {
  margin: 0;
  color: var(--fg);
  font-size: 1.05rem;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skill-category {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.skill-category h3 {
  margin: 0;
  font-size: 1.05rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 124, 250, 0.24);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Projects */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 28px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

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

.filter-btn.active,
.filter-btn[aria-checked="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061021;
  border-color: transparent;
  box-shadow: 0 18px 30px -24px rgba(91, 124, 250, 0.65);
}

.grid.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card.project {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(91, 124, 250, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card.project:hover {
  transform: translateY(-10px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 40px -28px rgba(10, 15, 37, 0.8);
}

.card.project:focus-within {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 38px -28px rgba(91, 124, 250, 0.55);
}

.card.project:hover::before {
  opacity: 1;
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.card-body {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-body h3 {
  font-size: 1.2rem;
}

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

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.links a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.links a.is-opening {
  opacity: 0.7;
}

.links a::after {
  content: '↗';
  font-size: 0.95rem;
  transition: transform var(--transition);
}

.links a:hover::after {
  transform: translate(2px, -2px);
}

/* Experience */
.timeline {
  position: relative;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}

.timeline li {
  position: relative;
  padding-left: 70px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(91, 124, 250, 0.15);
}

.t-card {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.t-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
}

.t-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.t-card p {
  margin-bottom: 0;
}

/* Resume */
.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.resume-copy .section-header {
  margin-bottom: 24px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-preview .embed {
  height: 100%;
}

.embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.embed object {
  width: 100%;
  height: min(70vh, 720px);
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

.contact-copy {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-copy .section-header {
  margin: 0;
}

.contact-form {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.contact-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form button {
  justify-self: start;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.4), rgba(3, 7, 18, 0.75));
  text-align: center;
}

html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(250, 251, 252, 0.8), rgba(247, 250, 252, 0.95));
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Light mode specific enhancements */
html[data-theme="light"] .hero-pane {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .hero-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .hero-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .about-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .about-panel:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .skill-category {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .card.project {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .card.project:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .t-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .t-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Light mode button enhancements */
html[data-theme="light"] .btn.primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  border: none;
}

html[data-theme="light"] .btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

html[data-theme="light"] .btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn.secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn.email {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn.email:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .btn-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

html[data-theme="light"] .filter-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--fg);
}

html[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Light mode navigation and social links */
html[data-theme="light"] .site-nav a {
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}

html[data-theme="light"] .site-nav a:hover {
  color: var(--fg);
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .site-nav a.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .hero-social a {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .hero-social a:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .menu-toggle {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--fg);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Enhanced light mode hero orbs */
html[data-theme="light"] .hero-orb--one {
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.25), transparent 70%);
  opacity: 0.7;
}

html[data-theme="light"] .hero-orb--two {
  background: radial-gradient(circle at 70% 40%, rgba(8, 145, 178, 0.2), transparent 75%);
  opacity: 0.6;
}

html[data-theme="light"] .hero-orb--three {
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 80%);
  opacity: 0.5;
}

/* Enhanced light mode hero pane with subtle color */
html[data-theme="light"] .hero-pane::after {
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 70%);
  opacity: 0.6;
}

html[data-theme="light"] .hero-pane:hover::after {
  opacity: 1;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Utilities */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #061021;
  z-index: 100;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

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

.section {
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-body {
    order: 1;
    text-align: center;
    margin: 0 auto;
  }

  .hero-highlights,
  .cta-row,
  .hero-social {
    justify-content: center;
  }

  .hero-aside {
    order: 2;
  }

  .hero-pane {
    margin: 20px auto 0;
  }

  .about-grid,
  .resume-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 4%;
    top: 70px;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    align-items: stretch;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-nav__list a {
    width: 100%;
  }

  .nav-actions {
    justify-content: flex-start;
    width: 100%;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    margin-left: 0;
  }

  .hero-card {
    text-align: left;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline li {
    padding-left: 56px;
  }

  .timeline li::before {
    left: 2px;
  }
}

@media (max-width: 720px) {
  .skills-grid,
  .about-panels,
  .grid.projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

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

  .back-to-top {
    bottom: 24px;
    right: 20px;
  }
}

@media (max-width: 540px) {
  .hero-card,
  .skill-category,
  .about-panel,
  .t-card,
  .contact-form,
  .contact-copy,
  .hero-pane {
    padding: 24px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-highlight {
    width: 100%;
  }

  .hero-badge {
    margin-bottom: 20px;
  }
}

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