:root {
  --bg: #0b1220;
  --card-bg: #141b2d;
  --border: #223049;
  --text: #e2e8f0;
  --text-muted: #8b9bb4;

  --accent: #2dd4bf;
  --accent-solid: #0f766e;
  --accent-dark: #134e4a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.page {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 16px 60px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* ---------- Profile card ---------- */

.banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, rgba(45, 212, 191, 0.28), transparent 38%),
    radial-gradient(circle at 85% 75%, rgba(94, 234, 212, 0.18), transparent 42%),
    linear-gradient(135deg, #062b29 0%, var(--accent-dark) 55%, #0a3f3b 100%);
}

.banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
}

.banner-icon {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  .banner-icon {
    width: 60px;
    height: 60px;
    right: 20px;
  }
}

.profile-body {
  position: relative;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
}

.avatar {
  width: 152px;
  height: 152px;
  border-radius: 32px;
  background: linear-gradient(150deg, #1e293b, #0f172a);
  border: 4px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent-solid), 0 10px 28px -10px rgba(15, 118, 110, 0.6);
  position: absolute;
  top: -76px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar svg {
  width: 70%;
  height: 70%;
}

.avatar svg circle,
.avatar svg path {
  fill: #64748b;
}

.profile-info {
  grid-column: 1;
  padding-top: 88px;
}

.profile-info h1 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.badge {
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pronoun {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.role-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.3);
  letter-spacing: 0.2px;
}

.tag-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

.meta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px 5px 10px;
  text-decoration: none;
}

.meta-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-chip-link {
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.3);
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-solid);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text-muted);
}

.profile-side {
  grid-column: 2;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
}

.side-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: var(--accent);
  flex-shrink: 0;
}

.side-icon svg {
  width: 13px;
  height: 13px;
}

.side-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.side-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.side-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Cards: About / Experience ---------- */

.card-header {
  padding: 20px 24px 0;
}

.card-header h2 {
  font-size: 20px;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.card-content {
  padding: 16px 24px 24px;
}

.about-content p {
  margin-bottom: 12px;
  font-size: 15px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ---------- Experience ---------- */

.exp-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%);
}

.logo-kulina {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 4px 16px -4px rgba(5, 150, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-uii {
  background: linear-gradient(135deg, #60a5fa, #1e3a8a);
  box-shadow: 0 4px 16px -4px rgba(30, 58, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-codemi {
  background: linear-gradient(135deg, #94a3b8, #475569);
  box-shadow: 0 4px 16px -4px rgba(71, 85, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-ralali {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  box-shadow: 0 4px 16px -4px rgba(194, 65, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-ramein {
  background: linear-gradient(135deg, #fcd34d, #b45309);
  box-shadow: 0 4px 16px -4px rgba(180, 83, 9, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-generic {
  background: linear-gradient(135deg, #94a3b8, #334155);
  box-shadow: 0 4px 16px -4px rgba(51, 65, 85, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.exp-details h3 {
  font-size: 16px;
  font-weight: 600;
}

.exp-sub {
  font-size: 14px;
}

.exp-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.exp-desc {
  font-size: 14px;
  margin-top: 8px;
}

.exp-desc a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.exp-skills {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-side {
    grid-column: 1;
    padding-top: 8px;
  }

  .avatar {
    width: 110px;
    height: 110px;
    top: -55px;
  }

  .profile-info {
    padding-top: 64px;
  }
}
