:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e5e7eb;
  background: #020617;
  --bg: #060a18;
  --surface: rgba(15, 23, 42, 0.88);
  --surface-strong: rgba(15, 23, 42, 0.98);
  --border: rgba(148, 163, 184, 0.18);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 25%),
    linear-gradient(180deg, #020617 0%, #090b16 100%);
  color: #e5e7eb;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.12), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(56, 189, 248, 0.09), transparent 18%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(3, 7, 24, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.page-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 1;
}

.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-surface {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 32px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-label {
  margin: 0 0 12px;
  color: #818cf8;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.hero {
  display: grid;
  gap: 32px;
  align-items: start;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #60a5fa;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.hero-description {
  margin: 24px 0 0;
  color: #cbd5e1;
  max-width: 680px;
  font-size: 1.05rem;
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel-inner {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(79, 70, 229, 0.18);
  box-shadow: var(--shadow);
}

.hero-panel-inner p {
  margin: 0;
  text-align: center;
  color: #e2e8f0;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #38bdf8 100%);
  color: white;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.28);
}

.btn-secondary {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.skills-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.22);
  color: #e2e8f0;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
  background: rgba(79, 70, 229, 0.22);
}

.project-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.32);
}

.project-meta {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.project-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.project-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  font-size: 0.88rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.4);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #818cf8;
  flex-shrink: 0;
}

.contact-link-label {
  margin: 0 0 2px;
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact-link-value {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
  }
}

@media (max-width: 700px) {
  .page-wrapper {
    padding: 24px 18px 48px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .project-card,
  .contact-links-card,
  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .project-tags {
    gap: 8px;
  }
}