/* =====================================================
   VARIABLES
===================================================== */

:root {
  --bg: #0f1220;
  --text: #f1f2f6;
  --muted: #a5a7c0;
  --accent: #4f7cff;
  --border: rgba(255,255,255,0.08);
}

/* =====================================================
   BASE / RESET
===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, #1a1f44, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   LAYOUT
===================================================== */

.container {
  max-width: 1000px;
  padding: 32px 18px;
  text-align: center;
}

/* =====================================================
   HEADER WITH PHOTO
===================================================== */

.header-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
  text-align: left;
}

.profile-photo img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.15);
}

.profile-text h1 {
  font-size: 34px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-text h1 a {
  color: var(--text);
  text-decoration: none;
}

.profile-text h2 {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}

.profile-text .subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* =====================================================
   CONTACT
===================================================== */

.contact {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact a {
  color: var(--muted);
  text-decoration: none;
}

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

/* =====================================================
   CV SECTIONS
===================================================== */

.cv-section {
  margin-top: 38px;
  padding: 26px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.cv-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.cv-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 720px;
  margin: 0 auto;
}

.cv-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}

.cv-box:hover {
  transform: translateY(-3px);
  border-color: rgba(79,124,255,0.5);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.cv-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.cv-box p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.cv-download {
  margin-top: 10px;
  font-size: 13px;
}

.cv-download a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}

footer span {
  color: var(--text);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 700px) {
  .header-block {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo img {
    width: 140px;
    height: 140px;
  }

  .profile-text h1 {
    font-size: 28px;
  }

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

@media (max-width: 600px) {
  .profile-text h2 {
    font-size: 16px;
  }

  .cv-section {
    padding: 22px 18px;
  }
}