:root {
  --bg: #0a0f1e;
  --bg-deep: #070b16;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.035);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.76);
  --subtle: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --btn: rgba(255, 255, 255, 0.09);
  --btn-hover: rgba(255, 255, 255, 0.15);
  --accent: #8ab4ff;
  --accent-green: #5eead4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(85, 115, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 194, 168, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.5;
}

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

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

[id] {
  scroll-margin-top: 70px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #07101f;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.16s ease;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 860px;
  min-height: 50px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-name {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}

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

.page {
  max-width: 860px;
  margin: 56px auto;
  padding: 0 20px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.85;
}

.hero-glow-1 {
  width: 180px;
  height: 180px;
  background: rgba(95, 120, 255, 0.18);
  top: -40px;
  left: -30px;
}

.hero-glow-2 {
  width: 180px;
  height: 180px;
  background: rgba(0, 214, 201, 0.12);
  right: -30px;
  bottom: -50px;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}

.hero-text h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.headline {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.subline {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.7;
}

.location {
  color: rgba(255, 255, 255, 0.66);
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 5px 13px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 20px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
  font-size: 12.5px;
  font-weight: 500;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.content {
  margin-top: 22px;
  padding: 24px 30px 18px;
}

.section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.section-first {
  padding-top: 0;
  border-top: none;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-text {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.75;
}

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

.hero-actions {
  margin-top: 16px;
}

.section-actions {
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--btn);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--btn-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 2px;
}

.svc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.svc:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.svc-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.svc-title {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 650;
}

.svc-desc {
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.58;
}

.tag em {
  font-style: normal;
  opacity: 0.62;
  font-size: 11px;
}

.work-featured {
  display: block;
  padding: 18px 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(138, 180, 255, 0.26);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(138, 180, 255, 0.10), rgba(255, 255, 255, 0.03));
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.work-featured:hover {
  border-color: rgba(138, 180, 255, 0.45);
  transform: translateY(-1px);
}

.work-tagline {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  border: 1px solid rgba(138, 180, 255, 0.3);
  border-radius: 5px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.work-item {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.work-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.work-title {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 650;
}

.work-desc {
  display: block;
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.58;
}

.stack-group + .stack-group {
  margin-top: 18px;
}

.stack-label {
  margin-bottom: 8px;
  color: rgba(138, 180, 255, 0.9);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.exp-item:first-child {
  padding-top: 0;
}

.exp-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.exp-co {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.exp-role {
  margin-bottom: 6px;
  color: rgba(130, 180, 255, 0.9);
  font-size: 12.5px;
  font-weight: 500;
}

.exp-info {
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.65;
}

.exp-date {
  padding-top: 2px;
  color: var(--subtle);
  font-size: 11.5px;
  opacity: 0.75;
  text-align: right;
  white-space: nowrap;
}

.cred-list {
  display: flex;
  flex-direction: column;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.cred-row:first-child {
  padding-top: 0;
}

.cred-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cred-ico {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cred-name {
  color: var(--muted);
  font-weight: 500;
  flex: 1;
}

.cred-badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.link:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.contact-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}

.link span:last-child {
  min-width: 0;
}

.link strong,
.link small {
  display: block;
}

.link strong {
  font-size: 13.5px;
  font-weight: 650;
}

.link small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact .link:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.contact-alt {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.85;
}

.contact-alt a {
  color: var(--accent);
  border-bottom: 1px solid rgba(138, 180, 255, 0.35);
  transition: border-color 0.16s ease;
}

.contact-alt a:hover {
  border-bottom-color: var(--accent);
}

.footer {
  margin-top: 24px;
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
}

@media (max-width: 640px) {
  .nav-inner {
    justify-content: center;
    padding: 0 12px;
  }

  .nav-name {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 12.5px;
  }

  .page {
    margin: 30px auto;
    padding: 0 16px;
  }

  .hero {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }

  .avatar {
    width: 84px;
    height: 84px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .headline {
    font-size: 15px;
  }

  .subline {
    font-size: 13px;
  }

  .avail {
    justify-content: center;
  }

  .hero-actions,
  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .content {
    padding: 20px 20px 16px;
  }

  .services-grid,
  .work-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .exp-item {
    grid-template-columns: 1fr;
  }

  .exp-date {
    text-align: left;
  }

  .cred-row {
    align-items: flex-start;
  }

  .cred-badge {
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .nav-links a {
    padding-inline: 7px;
    font-size: 12px;
  }

  .cred-row {
    flex-wrap: wrap;
  }

  .cred-name {
    min-width: calc(100% - 46px);
  }

  .cred-badge {
    margin-left: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
