@charset "UTF-8";

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --color-gold:        #e2bf2b;
  --color-purple:      #4a1e9e;
  --color-purple-dark: #3a1680;
  --color-text:        #2d2d2d;
  --color-muted:       #666666;
  --color-subtle:      #888888;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f8f8f9;
  --color-border:      #e8e8e8;

  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --max-width: 900px;
  --body-pad:  clamp(1.25rem, 5vw, 3rem);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  background-color: #d0d0d0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: #d0d0d0;
}

::selection {
  background-color: rgba(74, 30, 158, 0.15);
  color: inherit;
}

a {
  color: var(--color-purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ─── Page Shell ─────────────────────────────────────────────────────────── */
.resume {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--color-bg);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background-color: rgba(74, 30, 158, 0.75);
  color: #fff;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__inner {
  padding: var(--space-md) var(--body-pad);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(74, 30, 158, 0.75), rgba(74, 30, 158, 0.75)) padding-box,
    linear-gradient(to bottom, var(--color-gold) 0%, transparent 80%) border-box;
}

.hero__identity {
  flex: 1;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.hero__name--last {
  color: #fff;
}

.hero__title {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-sm);
}

.hero__contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__contact-item i {
  color: var(--color-gold);
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
}

.hero__contact-info a,
.hero__contact-info a:visited {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.hero__contact-info a:hover {
  color: var(--color-gold);
}

/* ─── Section Structure ──────────────────────────────────────────────────── */
.section {
  padding: var(--space-lg) var(--body-pad);
  border-bottom: 1px solid var(--color-border);
}

.section:last-child {
  border-bottom: none;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

.section__body {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ─── Profile ────────────────────────────────────────────────────────────── */
#profile .section__body {
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-md);
}

#profile .section__body p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
}

/* ─── Experience ─────────────────────────────────────────────────────────── */
.job {
  margin-bottom: var(--space-xl);
}

.job:last-child {
  margin-bottom: 0;
}

.job__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.job__employer {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.job__place {
  font-size: 0.8rem;
  color: var(--color-subtle);
  white-space: nowrap;
}

.job__place i {
  color: var(--color-purple);
  margin-right: 0.2rem;
}

.job__position {
  margin-bottom: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-border);
  margin-left: 2px;
}

.job__position:last-child {
  margin-bottom: 0;
}

.job__position-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
  gap: var(--space-sm);
}

.job__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job__date {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.job__bullets {
  list-style: none;
  margin-bottom: var(--space-sm);
}

.job__bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.job__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background-color: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.job__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: var(--space-xs);
}

.badge {
  font-size: 0.72rem;
  font-weight: 500;
  background-color: var(--color-purple);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* ─── Skills ─────────────────────────────────────────────────────────────── */
.skills {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.skills__family {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.skills__family-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  min-width: 130px;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.skills__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 400;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background-color: var(--color-bg-alt);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: default;
}

.skill-tag:hover {
  background-color: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

/* ─── Bottom Grid ────────────────────────────────────────────────────────── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.bottom-grid .section {
  border-bottom: 1px solid var(--color-border);
}

.bottom-grid .section:last-child {
  border-bottom: none;
}

.section--compact .section__title {
  font-size: 0.78rem;
  margin-bottom: var(--space-sm);
}

.education__course {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.education__place,
.education__date {
  font-size: 0.825rem;
  color: var(--color-muted);
}

.education__details {
  font-size: 0.8rem;
  color: var(--color-subtle);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.certs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cert__item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.interests {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.interest__item {
  font-size: 0.825rem;
  color: var(--color-muted);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .hero__contacts {
    justify-content: center;
  }

  .job__position-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .skills__family {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .skills__family-name {
    min-width: unset;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid .section {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .bottom-grid .section:last-child {
    border-bottom: none;
  }
}


/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  @page {
    size: A4;
    margin: 1.5cm 1.5cm;
  }

  html, body {
    background: #fff;
    font-size: 10pt;
  }

  .hero {
    background-color: #fff !important;
    border-bottom: 2pt solid var(--color-gold);
  }

  .hero__name {
    color: var(--color-gold) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero__name--last {
    color: var(--color-purple) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero__title {
    color: #444 !important;
  }

  .hero__contact-item {
    color: #444 !important;
  }

  .hero__contact-info a {
    color: #444 !important;
  }

  .hero__contact-item i {
    color: var(--color-gold) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .resume {
    box-shadow: none;
    max-width: 100%;
  }

  .section {
    padding: 0.5cm 0;
    border-bottom: none;
  }

  .job {
    page-break-inside: avoid;
    margin-bottom: 0.4cm;
  }

  .job__position {
    page-break-inside: avoid;
  }

  .badge {
    background-color: #fff !important;
    color: #333 !important;
    border: 0.5pt solid #999 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skill-tag {
    background-color: #fff !important;
    color: #333 !important;
    border: 0.5pt solid #aaa !important;
  }

  .bottom-grid {
    grid-template-columns: repeat(3, 1fr);
    background-color: #fff !important;
  }

  .bottom-grid .section {
    border-right: 1px solid #ddd;
  }

  a[href]::after {
    content: none;
  }
}
