﻿:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #172033;
  --muted: #5f6d7e;
  --border: #dce4ee;
  --primary: #0f766e;
  --shadow: 0 18px 50px rgba(20, 34, 55, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", sans-serif; line-height: 1.6; }
body { overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.site-header, main, .footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; background: rgba(245, 247, 251, 0.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(220, 228, 238, 0.8); }
.brand { font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.94rem; font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--primary); }
.hero { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 36px; padding: 72px 0 44px; }
.eyebrow, .section-title p { margin: 0 0 10px; color: var(--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.96; letter-spacing: -0.06em; }
.summary { max-width: 720px; color: var(--muted); font-size: 1.18rem; }
.hero-actions, .contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.button, .contact-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 8px; font-weight: 800; text-decoration: none; text-align: center; }
.button.primary, .contact-links a:first-child { background: var(--primary); color: #ffffff; }
.button.secondary, .contact-links a { border: 1px solid var(--border); background: #ffffff; color: var(--text); }
.profile-card { display: grid; gap: 18px; justify-items: center; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.photo-frame { width: min(260px, 66vw); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #8b8a90; border: 6px solid var(--surface-soft); }
.portrait { width: 95%; height: 95%; object-fit: contain; object-position: center center; border-radius: 50%; transform: translate(0%, -4%); }
.profile-card h2 { margin-bottom: 4px; }
.profile-card p { margin: 0; color: var(--muted); font-weight: 700; }
.quick-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.quick-info article, .content-card, .timeline-item, .skills-grid article, .education-list article, .contact-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(20, 34, 55, 0.06); }
.quick-info article { padding: 20px; }
.quick-info span, .timeline-meta span, .education-list span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.quick-info strong { font-size: 1.08rem; }
.section { padding: 52px 0; }
.section,
.hero {
  scroll-margin-top: 132px;
}
.section-title { max-width: 760px; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.03em; }
.content-card, .contact-card { padding: 26px; }
.content-card p:last-child, .contact-card p:last-child { margin-bottom: 0; }
.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 24px; }
.timeline-meta strong { display: block; font-size: 1.05rem; }
.timeline-body h3, .skills-grid h3, .education-list h3 { margin-bottom: 8px; font-size: 1.12rem; }
.timeline-body p, .skills-grid p, .education-list p, .contact-card p { color: var(--muted); overflow-wrap: anywhere; }
.skills-grid, .education-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skills-grid article, .education-list article { padding: 22px; }
.contact-card { display: grid; gap: 18px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 40px; color: var(--muted); font-size: 0.94rem; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero,
  .timeline-item,
  .quick-info,
  .skills-grid,
  .education-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .profile-card {
    justify-self: start;
    width: min(100%, 420px);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    top: 10px;
    align-items: center;
    flex-direction: row;
    padding: 14px 16px;
    border-radius: 22px;
  }

  .menu-toggle {
    position: relative;
    z-index: 90;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(213, 222, 234, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 28px rgba(25, 42, 70, 0.1);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: min(290px, calc(100vw - 36px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(232, 242, 245, 0.54)),
      rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(22px) saturate(125%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav::before {
    content: "";
    position: absolute;
    inset: -80px -24px -24px -24px;
    z-index: -1;
    border-radius: 30px;
    background: radial-gradient(circle at 80% 0%, rgba(11, 124, 117, 0.2), transparent 36%), rgba(17, 24, 39, 0.08);
    filter: blur(18px);
  }

  .site-header.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(213, 222, 234, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: 0.94rem;
  }

  .nav a::after {
    content: ">";
    color: var(--primary);
    font-weight: 800;
  }

  .hero {
    gap: 22px;
    padding: 34px 0 28px;
  }

  .summary {
    font-size: 1rem;
  }

  .profile-card {
    width: 100%;
    padding: 20px;
  }

  .photo-frame {
    width: min(220px, 70vw);
  }

  .section {
    padding: 34px 0;
  }

  .content-card,
  .contact-card,
  .timeline-item,
  .skills-grid article,
  .education-list article,
  .quick-info article {
    padding: 18px;
  }

  .timeline-item {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .footer {
    width: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: 2.75rem;
    letter-spacing: -0.04em;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }

  .hero-actions,
  .contact-links,
  .footer {
    flex-direction: column;
  }

  .button,
  .contact-links a,
  .contact-cv-button {
    width: 100%;
  }

  .quick-info {
    margin-bottom: 16px;
  }
}

@media (max-width: 380px) {
  .nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
  }
}

/* Premium formal finish */
:root {
  --bg: #eef3f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: #e3ebf4;
  --text: #111827;
  --muted: #5b687a;
  --border: #d5deea;
  --primary: #0b7c75;
  --primary-dark: #075e59;
  --accent: #c79a48;
  --shadow: 0 24px 70px rgba(25, 42, 70, 0.13);
}

body {
  background:
    radial-gradient(circle at 15% 12%, rgba(11, 124, 117, 0.12), transparent 30%),
    radial-gradient(circle at 86% 5%, rgba(199, 154, 72, 0.12), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 44%, #e8eef6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header {
  top: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(213, 222, 234, 0.9);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(25, 42, 70, 0.08);
}

.brand {
  position: relative;
  padding-left: 18px;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(11, 124, 117, 0.12);
}

.nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: 650px;
  padding: 88px 0 54px;
}

.eyebrow,
.section-title p {
  color: var(--primary);
}

h1 {
  color: #0d172a;
  text-wrap: balance;
}

.summary {
  color: #536278;
}

.button,
.contact-links a,
.contact-cv-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.contact-links a:hover,
.contact-cv-button:hover {
  transform: translateY(-2px);
}

.button.primary,
.contact-links a:first-child {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(11, 124, 117, 0.22);
}

.button.primary.cv-trigger {
  min-width: 74px;
}

.button.secondary,
.contact-links a,
.contact-cv-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.profile-card,
.quick-info article,
.content-card,
.timeline-item,
.skills-grid article,
.education-list article,
.contact-card {
  backdrop-filter: blur(18px);
}

.profile-card {
  position: relative;
  padding: 34px;
  border-radius: 28px;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(11, 124, 117, 0.08), rgba(199, 154, 72, 0.1));
  filter: blur(28px);
}

.photo-frame {
  width: min(300px, 66vw);
  border: 8px solid #e8eef6;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), 0 22px 50px rgba(25, 42, 70, 0.18);
}

.portrait {
  width: 108%;
  height: 108%;
  transform: translate(0%, -3%);
}

.quick-info article,
.skills-grid article,
.education-list article {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-info article:hover,
.skills-grid article:hover,
.education-list article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.timeline-item {
  border-left: 4px solid var(--primary);
}

.contact-cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.contact-links {
  align-items: center;
}

.contact-links a,
.contact-cv-button {
  min-width: 112px;
  border-radius: 12px;
}

.contact-links a[href^="mailto"] {
  min-width: 276px;
}

.contact-card {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.contact-card > * {
  position: relative;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cv-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open {
  overflow: hidden;
}

.cv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.58);
  backdrop-filter: blur(10px);
}

.cv-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 251, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.cv-modal.is-open .cv-modal__panel {
  transform: translateY(0) scale(1);
}

.cv-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cv-modal__panel h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.cv-modal__text {
  color: var(--muted);
}

.cv-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 680px) {
  .site-header {
    top: 0;
    border-radius: 0 0 18px 18px;
  }

  .section,
  .hero {
    scroll-margin-top: 18px;
  }

  .hero {
    min-height: auto;
  }

  .photo-frame {
    width: min(250px, 72vw);
  }

  .cv-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    top: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }

  .brand {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(232, 242, 245, 0.48)),
      rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px) saturate(130%);
    pointer-events: auto;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #0f172a;
  }

  .nav {
    position: fixed;
    z-index: 70;
    top: 68px;
    right: 16px;
    left: auto;
    width: min(300px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    background:
      radial-gradient(circle at 90% 0%, rgba(11, 124, 117, 0.18), transparent 42%),
      linear-gradient(145deg, rgba(248, 252, 252, 0.88), rgba(232, 242, 245, 0.78)),
      rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(24px) saturate(135%);
    pointer-events: none;
  }

  .site-header.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    color: #182235;
    border-color: rgba(190, 203, 220, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    font-weight: 800;
  }

  .hero {
    gap: 14px;
    padding-top: 6px;
    padding-bottom: 22px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.66rem;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.55rem, 14vw, 3.35rem);
  }

  .summary {
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 48px;
    border-radius: 12px;
  }

  .profile-card {
    margin-top: 14px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .photo-frame {
    width: min(220px, 70vw);
  }
}

.footer {
  justify-content: center;
  text-align: center;
}
