/* ============================================================
   NATALIA LISOHURSKA — PORTFOLIO
   Warm cream & charcoal: editorial, human, confident
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg: #F5EFE6;
  --surface: #EDE6DA;
  --surface-hover: #E5DDD0;
  --border: rgba(28, 25, 23, 0.1);
  --text: #1C1917;
  --muted: #8C7B6B;
  --muted-light: #5C4F42;
  --accent: #C4622D;
  --accent-light: #D97B4F;
  --accent-glow: rgba(196, 98, 45, 0.12);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fragment Mono', 'Courier New', monospace;
  --radius: 6px;
  --max-w: 1160px;
  --nav-h: 68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* safe area insets for notched phones */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
              border-bottom 0.3s ease;
}
#nav.scrolled {
  background: rgba(245, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: var(--accent-light);
  padding: 7px 18px;
  border: 1px solid rgba(196, 98, 45, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent-light);
  color: var(--text);
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh; /* fallback */
  min-height: 100svh; /* shrinks with mobile browser chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 32px 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(196, 98, 45, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  width: 100%;
}
.hero-location {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  transition-delay: 0.1s;
}
.hero-name {
  font-size: clamp(44px, 11vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
  transition-delay: 0.2s;
}
.hero-role {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 52px;
  transition-delay: 0.3s;
}
.role-static { color: var(--muted-light); }
.role-cycle {
  display: inline-block;
  position: relative;
  height: 1.4em;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 120px;
}
.role-word {
  display: block;
  position: absolute;
  left: 0;
  color: var(--accent-light);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
}
.role-word.active {
  opacity: 1;
  transform: translateY(0);
}
.role-word.exit {
  opacity: 0;
  transform: translateY(-100%);
}
.hero-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(196, 98, 45, 0.35);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  transition-delay: 0s !important;
}
.hero-cta:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(2px);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}


/* ============================================================
   NUMBERS BAR
   ============================================================ */
.numbers-bar {
  padding: 0 32px;
  margin: 0 auto;
}
.numbers-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px 80px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  flex: 1;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-size: 0.6em;
  color: var(--accent);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 120px;
}
.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}


/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
section { padding: 120px 32px; }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 72px;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-left .section-eyebrow { margin-bottom: 28px; }
.about-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}
.about-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-light);
  margin-bottom: 20px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-light);
  background: rgba(28, 25, 23, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tag:hover {
  background: var(--accent-glow);
  border-color: rgba(196, 98, 45, 0.4);
  color: var(--accent);
}


/* ============================================================
   EXPERIENCE
   ============================================================ */
#experience { background: var(--surface); }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exp-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 40px 40px 40px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
  border-radius: var(--radius);
  position: relative;
}
.exp-card::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 2px;
}
.exp-card:hover::before { opacity: 1; }
.exp-card:hover { background: var(--surface-hover); padding-left: 24px; }
.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.exp-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.exp-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
}
.exp-role {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.exp-desc {
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.exp-achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-achievements li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.exp-achievements li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.exp-achievements li strong {
  color: var(--text);
  font-weight: 500;
}


/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
}
.skills-col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-light);
  background: rgba(28, 25, 23, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: default;
}
.pill:hover {
  background: var(--accent-glow);
  border-color: rgba(196, 98, 45, 0.4);
  color: var(--accent);
  transform: translateY(-1px);
}
.pill-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  padding: 10px 16px;
}
.lang-name { color: var(--text); font-weight: 500; }
.lang-level {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}


/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(196, 98, 45, 0.06) 100%);
}
.contact-inner {
  text-align: left;
  max-width: var(--max-w);
}
.contact-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.contact-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 52px;
}
.contact-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted-light);
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
  letter-spacing: 0.01em;
}
.contact-link:hover {
  background: rgba(28, 25, 23, 0.05);
  border-color: rgba(28, 25, 23, 0.2);
  color: var(--text);
  transform: translateY(-2px);
}
.contact-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}
.contact-link.primary:hover {
  background: #B5561F;
  border-color: #B5561F;
  color: #fff;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .exp-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 24px;
  }
  .exp-card:hover { padding-left: 24px; }
  .numbers-inner {
    padding: 40px 32px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
  .stat-divider { display: none; }
  .stat { flex: 0 0 calc(50% - 16px); }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  section { padding: 72px 20px; }
  #hero { padding: calc(var(--nav-h) + 32px) 20px 64px; }

  .numbers-bar { padding: 0 16px; }
  .numbers-inner {
    padding: 28px 20px;
    border-radius: 12px;
    gap: 24px;
  }
  .stat { flex: 0 0 calc(50% - 12px); }
  .stat-value { font-size: clamp(28px, 8vw, 40px); }

  .nav-inner { padding: 0 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(245, 239, 230, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 16px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 8px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links a.nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
  }
  .nav-burger { display: flex; }

  .hero-location { margin-bottom: 20px; }
  .hero-name { margin-bottom: 20px; }
  .hero-role { margin-bottom: 40px; font-size: 18px; }

  .section-title { margin-bottom: 48px; }

  .exp-card {
    padding: 28px 0;
    border-radius: 0;
  }
  /* disable hover shift on touch */
  .exp-card:hover { padding-left: 0; background: none; }
  .exp-card:hover::before { opacity: 0; }
  .exp-meta { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .exp-role { font-size: 18px; }

  .about-body { font-size: 15px; }

  .skills-grid { grid-template-columns: 1fr; gap: 36px; }
  .pill { font-size: 13px; padding: 8px 14px; }
  .pill-lang { padding: 10px 16px; }

  .contact-headline { font-size: clamp(36px, 10vw, 56px); }
  .contact-sub { font-size: 15px; margin-bottom: 40px; }
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-link {
    text-align: center;
    padding: 14px 24px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── Small phones (≤ 390px) ── */
@media (max-width: 390px) {
  section { padding: 60px 16px; }
  #hero { padding: calc(var(--nav-h) + 24px) 16px 56px; }
  .numbers-bar { padding: 0 12px; }
  .nav-inner { padding: 0 12px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 11px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-indicator { display: none; }
  .role-word { transition: none; }
}
