﻿:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --sidebar: #0f172a;
  --sidebar-text: #e2e8f0;
  --muted: #64748b;
  --text: #1f2937;
  --accent: #ff7a59;
  --accent-soft: #fff1ec;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 89, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 30px 18px;
}

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

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 330px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--sidebar-text);
  padding: 28px 24px 36px;
}

.profile-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.profile-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 18px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  object-fit: cover;
}

.profile-text h1 {
  font-size: clamp(2rem, 2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9a88a;
  margin-bottom: 8px;
  font-weight: 700;
}

.sidebar-section {
  margin-top: 30px;
}

.sidebar-section h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 700;
}

.contact-list,
.skill-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--sidebar-text);
  font-size: 0.96rem;
}

.contact-list a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: #fff;
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9a88a;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5edf8;
  font-size: 0.95rem;
}

.skill-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.18);
}

.content {
  padding: 42px 42px 50px;
}

.card,
.section {
  margin-bottom: 28px;
}

.summary {
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
  border: 1px solid rgba(255, 122, 89, 0.14);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.summary h2,
.section-header h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text);
}

.summary p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card a {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}

.badge {
  background: rgba(255, 122, 89, 0.12);
  color: #b94c2d;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 18px;
  padding-left: 4px;
}

.timeline-dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 122, 89, 0.14);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 22px);
  background: rgba(15, 23, 42, 0.12);
}

.timeline-item:last-child .timeline-dot::after {
  display: none;
}

.timeline-content {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 18px;
}

.timeline-content h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.timeline-content h3 span {
  color: var(--accent);
}

.period {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.timeline-content ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.education-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
}

.education-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.education-title {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 20px;
  }

  .profile-block {
    flex-direction: row;
    align-items: center;
  }

  .profile-photo {
    max-width: 150px;
  }

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

@media (max-width: 640px) {
  body {
    padding: 18px 12px;
  }

  .content {
    padding: 24px 18px 30px;
  }

  .sidebar {
    padding: 20px 18px;
  }

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

  .profile-photo {
    max-width: 200px;
  }

  .summary,
  .timeline-content,
  .education-card {
    padding: 18px 16px;
  }

  .timeline-item {
    grid-template-columns: 14px 1fr;
    gap: 14px;
  }

  .timeline-dot {
    width: 14px;
    height: 14px;
  }
}
