body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

/* ── Print Styles ── */
@media print {
  body { background: #fff; color: #111; }
  .cv-wrapper { box-shadow: none; border: none; }
  .back-link, .print-btn, .glow-orb, .topbar-dots { display: none !important; }
  .section { break-inside: avoid; }
  a { color: #111; }
}

/* ── Background Glow ── */
.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.glow-orb--1 { top: -200px; left: -100px; background: var(--success); }
.glow-orb--2 { bottom: -200px; right: -100px; background: var(--accent); }

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }
.back-link svg { width: 14px; height: 14px; }

/* ── CV Card ── */
.cv-wrapper {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 60px rgba(0,0,0,0.4);
}

/* ── Header ── */
.cv-header {
  position: relative;
  padding: 48px 40px 40px;
  background: linear-gradient(135deg, var(--panel-raised) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.cv-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.name {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.title-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 20px;
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.print-btn:hover {
  background: var(--panel-raised);
  color: var(--white);
  border-color: var(--text-muted);
}
.print-btn svg { width: 14px; height: 14px; }

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--accent); }
.contact-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.6; }

/* ── Body ── */
.cv-body { padding: 36px 40px 48px; }

/* ── Section ── */
.section { margin-bottom: 36px; }
.section:last-child { margin-bottom: 0; }

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  width: 20px; height: 20px;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* ── Summary ── */
.summary-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 72ch;
}

/* ── Experience ── */
.exp-entry { margin-bottom: 28px; }
.exp-entry:last-child { margin-bottom: 0; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.exp-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.exp-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.exp-company {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.exp-duties {
  list-style: none;
  padding: 0;
}

.exp-duties li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

.exp-duties li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.achievements-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  margin-top: 16px;
  margin-bottom: 8px;
}

.exp-duties.achievements li::before {
  content: '✓';
  color: var(--success);
  font-size: 0.75rem;
}

/* ── Skills ── */
.skills-group { margin-bottom: 16px; }
.skills-group:last-child { margin-bottom: 0; }

.skills-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

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

.skill-chip {
  padding: 5px 12px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text);
  transition: all 0.2s;
}

.skill-chip:hover {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(125, 211, 252, 0.08);
  color: #7dd3fc;
}

/* ── Education ── */
.edu-entry { margin-bottom: 18px; }
.edu-entry:last-child { margin-bottom: 0; }

.edu-institution {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.edu-program {
  font-size: 0.88rem;
  color: var(--text);
}

.edu-date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2px;
}

/* ── Certifications ── */
.cert-group { margin-bottom: 18px; }
.cert-group:last-child { margin-bottom: 0; }

.cert-issuer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.cert-list {
  list-style: none;
  padding: 0;
}

.cert-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: var(--text);
}

.cert-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text-muted);
  font-weight: bold;
}

/* ── Footer ── */
.cv-footer {
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  background: var(--panel-raised);
}

.closing-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 68ch;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .page { width: calc(100% - 16px); padding: 16px 0 40px; }
  .cv-header { padding: 32px 20px 28px; }
  .cv-body { padding: 24px 20px 36px; }
  .cv-footer { padding: 16px 20px; }
  .header-top { flex-direction: column; }
  .header-actions { width: 100%; }
  .contact-bar { gap: 10px; }
  .exp-header { flex-direction: column; gap: 2px; }
}

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
