/* Premium web CV styling */
:root {
  --bg: #05060a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #b8c1d6;
  --soft: #7f8ba7;
  --purple: #8b5cf6;
  --blue: #38bdf8;
  --gold: #facc15;
  --green: #34d399;
  --radius: 24px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.2), transparent 28rem),
    linear-gradient(145deg, #05060a, #080b14 48%, #0f172a);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.cv-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(26px);
}

.cv-glow-one {
  width: 430px;
  height: 170px;
  top: 100px;
  right: -120px;
  background: conic-gradient(from 40deg, rgba(139, 92, 246, 0.5), rgba(56, 189, 248, 0.44), rgba(250, 204, 21, 0.28), rgba(139, 92, 246, 0.5));
  transform: rotate(-18deg);
}

.cv-glow-two {
  width: 360px;
  height: 220px;
  bottom: 8%;
  left: -130px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), rgba(139, 92, 246, 0.18), transparent 68%);
}

.cv-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.back-link,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.back-link:hover,
.action-button:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
}

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

.action-button.primary {
  color: #020617;
  background: linear-gradient(135deg, var(--blue), #c4b5fd 48%, var(--gold));
  border-color: transparent;
}

.cv-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 70px;
}

.cv-hero,
.cv-grid,
.sidebar-card,
.timeline-card,
.project-list article,
.education-list article {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cv-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
}

.cv-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 160px;
  right: -100px;
  top: -55px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.32), rgba(139, 92, 246, 0.2), transparent 70%);
  filter: blur(12px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 15px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 8px;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content p {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-tags,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.skill-cloud span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e5eefc;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(2, 6, 23, 0.46);
  text-align: center;
}

.cv-photo {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 42px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  color: var(--muted);
}

.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 34px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.cv-section {
  display: grid;
  gap: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.18);
}

.timeline-card {
  position: relative;
  padding: 26px 26px 24px 34px;
  border-radius: var(--radius);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 28px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--purple), var(--gold));
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.1), 0 0 28px rgba(250, 204, 21, 0.34);
}

.role-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.role-line h3 {
  margin: 0;
}

.role-line span,
.education-list span {
  display: inline-flex;
  min-width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.22);
  font-size: 0.86rem;
  font-weight: 800;
}

.company {
  color: var(--blue);
  font-weight: 900;
}

.timeline-card ul,
.icon-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-card li,
.icon-list li {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
}

.timeline-card li {
  padding-left: 24px;
}

.timeline-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.project-list,
.education-list {
  display: grid;
  gap: 14px;
}

.project-list article,
.education-list article {
  border-radius: var(--radius);
  padding: 22px;
}

.project-list p,
.education-list p {
  margin-bottom: 0;
}

.education-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sidebar-card {
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-card h2 {
  margin-bottom: 16px;
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-card i,
.icon-list i {
  color: var(--gold);
}

.icon-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.highlight-card {
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.13), rgba(139, 92, 246, 0.13), rgba(250, 204, 21, 0.08)),
    var(--panel);
}

.highlight-card p {
  margin-bottom: 0;
}

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

  .side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cv-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .top-actions .action-button,
  .back-link {
    width: 100%;
  }

  .cv-shell {
    width: min(100% - 24px, 1180px);
    margin-top: 6px;
  }

  .cv-hero,
  .cv-grid {
    border-radius: 24px;
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.6rem);
  }

  .role-line,
  .education-list article {
    display: grid;
  }

  .side-column {
    grid-template-columns: 1fr;
  }
}

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

  .cv-topbar,
  .cv-glow {
    display: none;
  }

  .cv-shell {
    width: 100%;
    margin: 0;
  }

  .cv-hero,
  .cv-grid,
  .sidebar-card,
  .timeline-card,
  .project-list article,
  .education-list article {
    box-shadow: none;
    backdrop-filter: none;
    background: #ffffff;
    border-color: #d6d9e0;
  }

  p,
  .timeline-card li,
  .icon-list li,
  .contact-card a {
    color: #334155;
  }
}
