/* ── VARIABLES ── */
:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --ink: #0f0e0c;
  --muted: #7a7469;
  --accent: #c8392b;
  --accent2: #1a3a5c;
  --border: #ddd9d0;
  --tag-bg: #ede9e1;
}
 
/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
html { scroll-behavior: smooth; }
 
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
 
/* ── LAYOUT ── */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
 
/* ── ACCENT BAR ── */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 60%, transparent 100%);
  margin-bottom: 3rem;
}
 
/* ── HEADER ── */
header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 3rem;
}
 
.header-left {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
 
/* ── PHOTO ── */
.photo-frame {
  flex-shrink: 0;
  width: 130px;
  height: 150px;
  overflow: hidden;
  border: 3px solid var(--accent);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  box-shadow: 4px 4px 0 var(--accent2);
}
 
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
 
/* ── NAME BLOCK ── */
.name-block { margin-bottom: 0.8rem; }
 
.name-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
 
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--ink);
}
 
.headline {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.6rem;
  max-width: 420px;
  line-height: 1.5;
}
 
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(200, 57, 43, 0.07);
  border: 1px solid rgba(200, 57, 43, 0.2);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 1px;
}
 
.availability::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
 
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
 
/* ── HEADER RIGHT ── */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
 
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--accent); }
 
.contact-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
 
/* ── BODY GRID ── */
.body-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}
 
/* ── SECTIONS ── */
.section { margin-bottom: 3rem; }
 
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
 
.section-label span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
 
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border);
}
 
/* ── EXPERIENCE ── */
.exp-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child  { border-bottom: none; }
 
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.3rem;
}
 
.exp-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
 
.exp-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(200, 57, 43, 0.08);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}
 
.exp-company {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
 
.exp-desc {
  font-size: 0.88rem;
  color: #4a4641;
  line-height: 1.65;
}
 
/* ── EDUCATION ── */
.edu-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:first-child { padding-top: 0; }
.edu-item:last-child  { border-bottom: none; }
 
.edu-degree { font-weight: 600; font-size: 0.95rem; }
.edu-school { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
 
/* ── TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
 
.tag {
  padding: 0.3rem 0.75rem;
  background: var(--tag-bg);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
}
 
/* ── SKILLS ── */
.skill-group        { margin-bottom: 2rem; }
 
.skill-group-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}
 
.skill-row          { margin-bottom: 1rem; }
 
.skill-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
 
.skill-name { font-size: 0.85rem; font-weight: 500; }
 
.skill-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
}
 
.bar-track {
  height: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
 
.bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: grow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: left;
  transform: scaleX(0);
}
 
@keyframes grow {
  to { transform: scaleX(1); }
}
 
/* ── CRYPTO BADGE ── */
.crypto-badge {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent2);
  color: #fff;
}
 
.crypto-badge-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.6rem;
}
 
.crypto-items        { display: flex; flex-direction: column; gap: 0.4rem; }
 
.crypto-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
 
.crypto-item::before {
  content: '⟨/⟩';
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  opacity: 0.6;
}
 
/* ── LANGUAGES ── */
.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
 
.lang-name  { font-size: 0.85rem; font-weight: 500; }
 
.lang-level {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
}
 
/* ── INTERESTS ── */
.interests       { display: flex; flex-wrap: wrap; gap: 0.5rem; }
 
.interest-tag {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
}
 
/* ── SOCIAL ── */
.social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  word-break: break-all;
}
.social-link:last-child { border-bottom: none; }
.social-link:hover      { color: var(--accent); }
 
.social-icon {
  width: 22px;
  height: 22px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
 
.social-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
 
.contact-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
 
/* ── PRINT ── */
@media print {
  body { background: white; }
  .page { padding: 1rem; }
}
 
/* ── MOBILE ── */
@media (max-width: 700px) {
  header {
    grid-template-columns: 1fr;
  }
  .header-left {
    flex-direction: column;
  }
  .header-right {
    align-items: flex-start;
  }
  .body-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
 
