:root {
  --bg: #f8f8f9;
  --ink: #0f172a;
  --muted: #5b6472;
  --line: #e5e7eb;
  --card: #ffffff;
  --accent: #2563eb;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Sora", "Manrope", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

nav {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

nav a.active,
nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 32px;
}

.hero h1 {
  font-family: "Sora", "Manrope", Arial, sans-serif;
  font-size: 30px;
  margin: 0 0 10px;
}

.hero p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  font-size: 12px;
  color: #3f4c6b;
}

.section {
  margin-top: 36px;
}

.section h2 {
  font-family: "Sora", "Manrope", Arial, sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.section-footer {
  margin-top: 16px;
}

.section-footer-link {
  display: flex;
  justify-content: flex-end;
}

.section-footer-link a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.section-footer-link a:hover {
  border-color: var(--accent);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  font-size: 17px;
  font-weight: 700;
}

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

.card p + p {
  margin-top: 8px;
}

.card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.card-header h3,
.card-header p {
  margin: 0;
}

.card-header p {
  color: var(--muted);
}

.profile-photo {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.list-item strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.list-item span {
  color: var(--muted);
}

.item-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
}

.project-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.project-hero-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f8fafc;
}

.project-card .meta {
  display: grid;
  gap: 6px;
}

.project-card .project-card-tags {
  margin: 6px 0 0;
}

.project-card .meta h3 {
  margin: 0;
  font-size: 17px;
}

.project-card .meta p {
  margin: 0;
  color: var(--muted);
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.project-links a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

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

  .project-card img,
  .project-card video {
    height: 160px;
  }

  .logo-icon {
    width: 56px;
    height: 56px;
  }
}
