/* ============================================================
   Ilias Fotopoulos — Résumé  ·  "Dark sidebar, modern tech"
   ============================================================ */

:root {
  --navy:      #0f172a;   /* deep charcoal-navy sidebar */
  --navy-2:    #1e293b;   /* raised surfaces inside sidebar */
  --navy-line: #334155;
  --accent:    #2dd4bf;   /* teal */
  --accent-2:  #38bdf8;   /* electric blue */
  --ink:       #0f172a;   /* main text on light */
  --ink-soft:  #475569;
  --ink-faint: #64748b;
  --paper:     #ffffff;
  --paper-2:   #f1f5f9;
  --side-ink:  #e2e8f0;   /* text on dark */
  --side-soft: #94a3b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #e2e8f0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 0;
  line-height: 1.2;
}

a { color: inherit; }

/* ---------- Layout ---------- */
.resume {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: var(--navy);
  color: var(--side-ink);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.10), transparent 40%);
}

.sidebar-inner {
  padding: 34px 26px 40px;
}

.profile {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--navy-line);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  padding: 3px;
  background: var(--navy-2);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.10);
}

.name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 16px;
  color: #fff;
}

.tagline {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
}

.side-block { margin-bottom: 26px; }
.side-block:last-child { margin-bottom: 0; }

.side-h {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
  padding-bottom: 8px;
  margin-bottom: 12px;
  position: relative;
}
.side-h::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-word;
}
.contact-list a {
  color: var(--side-ink);
  text-decoration: none;
}
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.ico {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--navy-2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* Skills chips */
.chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  color: var(--side-ink);
}

/* Languages */
.lang-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 5px;
}
.lang-note { color: var(--side-soft); font-size: 11px; }
.bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--navy-2);
  overflow: hidden;
}
.fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Certifications */
.cert-group { margin-bottom: 14px; }
.cert-group:last-child { margin-bottom: 0; }
.cert-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cert-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-list a {
  display: block;
  font-size: 12px;
  color: var(--side-ink);
  text-decoration: none;
  padding-left: 14px;
  position: relative;
  line-height: 1.35;
}
.cert-list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.cert-list a:hover { color: var(--accent); }

/* ============ MAIN CONTENT ============ */
.content {
  padding: 42px 46px 46px;
}

.block { margin-bottom: 30px; }
.block:last-child { margin-bottom: 0; }

.main-h {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--paper-2);
  position: relative;
}
.main-h::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 62ch;
}

/* Jobs */
.job {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--paper-2);
  position: relative;
}
.job::before {
  content: "";
  position: absolute;
  left: -5px; top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.job:last-child { margin-bottom: 0; }

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.job-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.job-org {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
}
.job-org .company { color: var(--accent-2); }
.job-org .platform {
  color: var(--ink-faint);
  font-weight: 500;
}
.job-org .platform::before {
  content: "· ";
  color: var(--ink-faint);
}
.job-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.job-dates {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.job-loc {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.bullets {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}
.bullets > li { margin-bottom: 5px; }
.bullets a {
  color: #0f766e;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.5);
}
.bullets a:hover { color: var(--accent); }

.sub-bullets {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: circle;
}
.sub-bullets li { margin-bottom: 3px; }

/* ============ PRINT / A4 ============ */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html, body {
    background: #fff;
    font-size: 9.6px;
    line-height: 1.42;
  }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .resume {
    box-shadow: none;
    max-width: none;
    width: 100%;
    min-height: 0;
    grid-template-columns: 250px 1fr;
  }

  /* Keep the dark sidebar, force color printing so it doesn't break */
  .sidebar {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: var(--navy) !important;
  }
  .sidebar-inner { padding: 16px 15px; }

  .profile { padding-bottom: 14px; margin-bottom: 14px; }
  .avatar {
    width: 84px;
    height: 84px;
    box-shadow: none;
  }
  .name { font-size: 17px; margin-top: 10px; }
  .tagline { font-size: 10.5px; margin-top: 4px; }

  .content { padding: 16px 22px; }

  .main-h { font-size: 15px; margin-bottom: 10px; padding-bottom: 5px; }

  .block { margin-bottom: 12px; }
  .job { margin-bottom: 9px; page-break-inside: avoid; }
  .bullets { margin-top: 5px; }
  .bullets > li { margin-bottom: 2px; }
  .side-block { margin-bottom: 13px; }
  .side-h { margin-bottom: 8px; padding-bottom: 5px; }
  .contact-list { gap: 7px; }
  .lang-list { gap: 8px; }
  .cert-group { page-break-inside: avoid; margin-bottom: 9px; }
  .cert-list { gap: 4px; }
  .chips { gap: 5px; }
  .chips li { padding: 3px 8px; }

  a { text-decoration: none; }
  .bullets a { border-bottom: none; }
}
