:root {
  --bg: #0f172a;
  --bg-elevated: #020617;
  --card-bg: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: rgba(56, 189, 248, 0.24);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.9);
  --radius-lg: 24px;
  --radius-full: 999px;
}

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

body {
  margin: 0;
  padding: 24px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  color: var(--text);
}

.cv-page {
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(145deg, #020617, #020617 55%, #020617 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(20px);
}

.cv-sidebar {
  padding: 32px 28px 28px;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cv-main {
  padding: 32px 32px 28px;
  background: radial-gradient(circle at top right, #020617 0, #020617 55%);
}

.cv-photo-wrapper {
  width: 132px;
  height: 132px;
  border-radius: var(--radius-full);
  padding: 4px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(56, 189, 248, 0.1),
    rgba(129, 140, 248, 0.25),
    rgba(45, 212, 191, 0.2),
    rgba(56, 189, 248, 0.4),
    rgba(129, 140, 248, 0.3),
    rgba(56, 189, 248, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 3px solid rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.cv-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h1 {
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin: 12px 0 2px;
}

.cv-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-section {
  margin-bottom: 24px;
}

.cv-section h2 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  font-weight: 600;
}

.cv-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.cv-contact-item-label {
  font-weight: 500;
  color: var(--text-soft);
  margin-right: 6px;
}

.cv-contact-item-value a {
  color: var(--accent);
  text-decoration: none;
}

.cv-contact-item-value a:hover {
  text-decoration: underline;
}

.cv-download-btn {
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top, #0ea5e9 0, #0369a1 40%, #0f172a 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 16px 35px rgba(8, 47, 73, 0.7);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.cv-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.85);
}

.cv-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 25px rgba(8, 47, 73, 0.7);
}

.cv-download-btn::before {
  content: "⬇";
  font-size: 0.85rem;
}

.cv-experience-company {
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  background: radial-gradient(circle at top left, #0b1120 0, #020617 55%);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.cv-experience-company::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(56, 189, 248, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.cv-experience-company:hover::before {
  opacity: 1;
}

.cv-experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.cv-experience-title {
  font-weight: 600;
  font-size: 1rem;
}

.cv-experience-date {
  font-size: 0.85rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.cv-company-divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 10px 0 8px;
}

.cv-team {
  padding-top: 10px;
  margin-top: 6px;
  margin-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  padding-left: 12px;
}

.cv-team-header {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.cv-team-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.cv-team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.cv-team-description {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.cv-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.cv-tech-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
}

.cv-tech-pill {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(
    circle at top left,
    var(--accent-soft),
    rgba(15, 23, 42, 0.9)
  );
  color: #e5e7eb;
  white-space: nowrap;
}

.cv-tech-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cv-tech-group-multi {
  flex: 1 1 100%;
  flex-direction: row;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.cv-tech-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}

.cv-tech-group-children {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-tech-group-multi .cv-tech-group-children {
  flex-wrap: nowrap;
  margin-left: 6px;
}

.cv-tech-group-label-solo {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
}

.cv-tech-pill-child {
  font-size: 0.76rem;
  padding-inline: 7px;
}

.cv-company-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cv-company-name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #4ade80 50%, #166534 100%);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

@media (max-width: 900px) {
  body {
    padding: 16px;
  }

  .cv-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    flex-direction: row;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .cv-header-text {
    flex: 1;
  }

  .cv-section {
    width: 100%;
  }

  .cv-download-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.4rem;
  }
}

@media print {
  body {
    padding: 0;
    background: #ffffff;
  }

  .cv-page {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .cv-sidebar,
  .cv-main {
    background: #ffffff;
  }

  .cv-download-btn {
    display: none;
  }

  a {
    color: #000000;
    text-decoration: none;
  }
}

