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

:root {
  --navy: #1e3a5f;
  --slate: #4a6080;
  --accent: #2563eb;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.hero-text .title {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 2px;
}

.hero-text .location {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

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

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-primary:hover,
.btn-secondary:hover {
  opacity: 0.82;
}

/* Sections */
section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

section > p {
  color: var(--text);
  margin-bottom: 12px;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card-wrap {
  position: relative;
}

.project-card {
  display: block;
  background: #fff;
  border: 2px solid #c7d7f5;
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  z-index: 0;
}

.project-card:hover {
  z-index: 1;
  background: #eef3ff;
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px) scale(1.15);
}

.project-card::after {
  content: "→";
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}

.project-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Info button */
.info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #7c3aed;
  background: #f3eeff;
  color: #7c3aed;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
  padding: 0;
}

.info-btn:hover {
  background: #7c3aed;
  color: #fff;
}

/* Info popup */
.info-popup {
  display: none;
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 10px;
  border: 2px solid var(--accent);
  padding: 16px 16px 16px 16px;
  z-index: 3;
  overflow-y: auto;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

.info-popup.open {
  display: block;
}

.info-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.15s;
}

.info-close:hover {
  color: var(--text);
}

.info-popup h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 20px;
}

.info-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-popup ul li {
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 7px;
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}

.info-popup ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.info-popup ul li:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.sep {
  margin: 0 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 28px 16px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

  .hero-text h1 {
    font-size: 1.6rem;
  }

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