@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Sora:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #0f1318;
  --bg-2: #151b22;
  --ink: #e7edf4;
  --ink-muted: #a7b1bd;
  --accent: #59d1b1;
  --accent-2: #7aa8ff;
  --card: #151b23;
  --stroke: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, rgba(90, 140, 180, 0.2), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(89, 209, 177, 0.15), transparent 42%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

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

main {
  padding: 0 24px 96px;
}

.site-header {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(15, 19, 24, 0.7);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar,
.avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}

.avatar {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(120, 220, 210, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #cfeff0;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f1318;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
}

.name {
  font-weight: 600;
}

.tag {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 168, 255, 0.25), transparent 70%);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.3rem);
  line-height: 1.05;
}

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

.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.lead {
  margin: 0;
  color: var(--ink-muted);
  max-width: 520px;
}

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

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  color: #0f1318;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.outline {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.hero-card {
  display: grid;
  gap: 18px;
  align-content: center;
}

.card {
  padding: 22px;
  background: rgba(12, 16, 20, 0.9);
  border-radius: 16px;
  border: 1px solid var(--stroke);
}

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

.card p {
  margin: 10px 0 0;
  color: var(--ink-muted);
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
}

.section {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 0 8px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 620px;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  padding: 22px;
  background: rgba(15, 19, 24, 0.8);
  border-radius: 16px;
  border: 1px solid var(--stroke);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
}

.pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(89, 209, 177, 0.18);
  color: var(--ink);
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.skill-list span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  background: rgba(15, 19, 24, 0.85);
  border-radius: 18px;
  border: 1px solid var(--stroke);
}

.contact-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-footer {
  max-width: var(--max);
  margin: 72px auto 40px;
  padding: 0 24px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}

[data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}

[data-reveal]:nth-child(3) {
  transition-delay: 0.2s;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

@media (max-width: 600px) {
  .site-header {
    border-radius: 24px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding: 28px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

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