/* Typography and layout */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --primary: #5c6bf2;
  --primary-soft: rgba(92, 107, 242, 0.18);
  --accent: #7fe0f9;
  --shadow: 0 20px 60px rgba(5, 9, 20, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Playfair Display', 'Inter', serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 8px 0;
}

ul {
  margin: 0 0 12px 20px;
}

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

.page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 126, 255, 0.15), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(127, 224, 249, 0.12), transparent 32%),
              radial-gradient(circle at 40% 80%, rgba(91, 234, 196, 0.08), transparent 32%);
  z-index: -2;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(92, 107, 242, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(124, 126, 255, 0.2);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  color: var(--muted);
  max-width: 560px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 224, 249, 0.3);
  background: rgba(127, 224, 249, 0.06);
}

.icon {
  font-size: 14px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), #7f9bff);
  color: #0b1220;
  box-shadow: 0 12px 30px rgba(92, 107, 242, 0.25);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(92, 107, 242, 0.25);
}

.hero__visual {
  text-align: center;
}

.photo-frame {
  position: relative;
  border-radius: 24px;
  background: var(--card);
  padding: 12px;
  border: 1px dashed rgba(127, 224, 249, 0.4);
  box-shadow: inset 0 0 0 1px rgba(92, 107, 242, 0.35);
}

.photo-frame img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.placeholder-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 15px 35px rgba(5, 9, 20, 0.35);
  backdrop-filter: blur(6px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-accent {
  height: 3px;
  flex: 1;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}

.body-text {
  color: #d7deea;
}

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

.edu-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meta {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(92, 107, 242, 0.16);
  color: var(--accent);
  border: 1px solid rgba(127, 224, 249, 0.25);
  font-weight: 600;
  font-size: 13px;
}

.pill-soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline__item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.timeline__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.project-grid {
  align-items: stretch;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(92, 107, 242, 0.1);
}

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

.contact-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

footer {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 32px;
  }

  .hero {
    padding: 24px;
  }

  .contacts {
    gap: 6px;
  }

  .chip {
    width: 100%;
    justify-content: center;
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
