:root {
  --bg: #0f172a;
  --card-bg: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.4);
  --tag-bg: rgba(15, 23, 42, 0.8);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 40%, #000 100%);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 16px;
}

.resume {
  width: 100%;
  max-width: 960px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}

.resume::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent 30%, transparent 70%, rgba(129, 140, 248, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.resume-inner {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  margin-bottom: 18px;
}

.profile-picture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.name-block h1 {
  margin: 0 0 6px;
  font-size: 2.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  font-size: 0.9rem;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 6px;
}

.section {
  margin-bottom: 18px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.section-title::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.9));
}

.entry {
  padding: 10px 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.35);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 65%),
              linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  margin-bottom: 10px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.entry-org {
  font-weight: 600;
  color: #f9fafb;
  font-size: 0.98rem;
}

.entry-meta {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.entry-role {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.9rem;
}

.entry ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.entry ul li {
  margin-bottom: 3px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
  white-space: nowrap;
}

.edu-degree {
  font-weight: 600;
  margin-bottom: 4px;
  color: #f9fafb;
  font-size: 0.96rem;
}

.edu-detail-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
}

.edu-detail {
  font-size: 0.84rem;
  margin-top: 2px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.project-name {
  font-weight: 600;
  color: #f9fafb;
  font-size: 0.94rem;
}

.project-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.project ul {
  margin-top: 4px;
  padding-left: 18px;
  font-size: 0.84rem;
}

.skills-group {
  margin-bottom: 10px;
}

.skills-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills-tags .pill {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

@media (max-width: 800px) {
  body {
    padding: 20px 10px;
  }

  .resume {
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact {
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

