@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Libre+Bodoni:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@300;400;500&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #08080d;
  --bg-surface: #0e0e16;
  --bg-elevated: #16161f;
  --bg-card: #111119;
  --purple-core: #8b5cf6;
  --purple-glow: #a78bfa;
  --purple-dark: #4c1d95;
  --purple-muted: #6d28d9;
  --green-wild: #22c55e;
  --text-primary: #e8e6f0;
  --text-secondary: #9896a8;
  --text-muted: #4e4c5e;
  --border-subtle: rgba(139, 92, 246, 0.1);
  --border-glow: rgba(139, 92, 246, 0.25);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-accent: 'Libre Bodoni', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(139,92,246,0.035) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(34,197,94,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(76,29,149,0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.4rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(8,8,13,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

nav .logo {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary); text-decoration: none;
}

nav .nav-links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}

nav .nav-links a {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  padding: 0.3rem 0; transition: color 0.3s ease; position: relative;
}

nav .nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--purple-core);
  transition: width 0.3s ease;
}

nav .nav-links a:hover { color: var(--purple-glow); }
nav .nav-links a:hover::after { width: 100%; }
nav .nav-links a.active { color: var(--purple-core); }
nav .nav-links a.active::after { width: 100%; }

nav .nav-links span.disabled {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); cursor: default; position: relative;
}

nav .nav-links span.disabled .coming-soon {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  font-size: 0.5rem; letter-spacing: 0.15em; color: var(--purple-dark);
  white-space: nowrap; opacity: 0; transition: opacity 0.3s ease;
}

nav .nav-links span.disabled:hover .coming-soon { opacity: 1; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary); transition: all 0.3s ease;
}

/* ── MAIN ── */
main { position: relative; z-index: 1; padding-top: 5rem; }
.container { max-width: 960px; margin: 0 auto; padding: 0 3rem; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 5rem);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 0 4rem; position: relative;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.02em;
  color: var(--text-primary); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-name .accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple-core), var(--purple-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-roles {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s;
}

.role-tag {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-subtle); color: var(--purple-glow);
  background: rgba(139,92,246,0.04);
}

.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--purple-core), transparent);
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-bio {
  max-width: 620px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-bio p {
  font-size: 1.1rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.2rem;
}
.hero-bio p:last-child { margin-bottom: 0; }
.hero-bio strong { color: var(--text-primary); font-weight: 500; }
.hero-bio em {
  font-family: var(--font-accent); font-style: italic; color: var(--purple-glow);
}

.vine-decoration {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 250px; height: 500px; opacity: 0.045; pointer-events: none;
}
.vine-decoration svg { width: 100%; height: 100%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── CONTACT STRIP ── */
.contact-strip {
  padding: 4rem 0; border-top: 1px solid var(--border-subtle);
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.9s;
}

.contact-inner {
  display: flex; justify-content: space-between; align-items: center;
}

.contact-text {
  font-family: var(--font-accent); font-size: 1.3rem;
  font-style: italic; color: var(--text-secondary);
}

.contact-email {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--purple-glow); text-decoration: none;
  padding: 0.7rem 1.8rem; border: 1px solid var(--border-glow);
  letter-spacing: 0.06em; transition: all 0.3s ease;
}

.contact-email:hover {
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 30px rgba(139,92,246,0.12);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 300;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}

.section-label::before {
  content: ''; width: 25px; height: 1px; background: var(--purple-muted);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1rem;
}

.page-header p {
  font-family: var(--font-accent); font-style: italic;
  color: var(--text-secondary); font-size: 1.1rem;
  max-width: 550px; line-height: 1.7;
}

/* ── CV ── */
.cv-section { margin-bottom: 4rem; }

.cv-section-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 2rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 0.8rem;
}

.cv-section-title::before {
  content: ''; width: 8px; height: 8px;
  background: var(--purple-core); border-radius: 50%; flex-shrink: 0;
}

.cv-entry {
  margin-bottom: 2.2rem; padding-left: 1.8rem;
  border-left: 1px solid rgba(139,92,246,0.08); position: relative;
}

.cv-entry::before {
  content: ''; position: absolute; left: -3px; top: 0.6rem;
  width: 5px; height: 5px; background: var(--purple-muted); border-radius: 50%;
}

.cv-entry .cv-period {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple-core); margin-bottom: 0.3rem; display: block;
}

.cv-entry h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 600; margin-bottom: 0.15rem; line-height: 1.3;
}

.cv-entry .cv-place {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); margin-bottom: 0.5rem;
  display: block; letter-spacing: 0.03em;
}

.cv-entry p {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75;
}

/* ── SKILLS ── */
.skills-section { margin-top: 1rem; }
.skills-group { margin-bottom: 2rem; }

.skills-group-title {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.8rem;
}

.skills-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.skill-tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.06em; padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-subtle); color: var(--text-secondary);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: var(--purple-core); color: var(--purple-glow);
  background: rgba(139,92,246,0.05);
}

/* ── LANGUAGES ── */
.languages-row { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 0.5rem; }

.lang-item { display: flex; align-items: baseline; gap: 0.5rem; }

.lang-name { font-size: 0.95rem; color: var(--text-primary); font-weight: 400; }

.lang-level {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--text-muted); letter-spacing: 0.05em;
}

/* ── COMING SOON ── */
.coming-soon-page {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 0;
}

.coming-soon-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem;
}

.coming-soon-page p {
  font-family: var(--font-accent); font-style: italic;
  color: var(--text-muted); font-size: 1.1rem;
}

.cs-line { width: 40px; height: 1px; background: var(--purple-dark); margin: 2rem 0; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0; margin-top: 4rem;
}

.footer-content {
  display: flex; justify-content: space-between; align-items: center;
}

.footer-left {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.05em;
}

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); text-decoration: none;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--purple-glow); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: flex; }

  nav .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    flex-direction: column; justify-content: center;
    background: var(--bg-surface); border-left: 1px solid var(--border-subtle);
    padding: 2rem; gap: 2rem; transition: right 0.4s ease;
  }
  nav .nav-links.open { right: 0; }

  .container { padding: 0 1.5rem; }
  .hero-name { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .vine-decoration { display: none; }

  .contact-inner {
    flex-direction: column; gap: 1.5rem; text-align: center;
  }

  .footer-content {
    flex-direction: column; gap: 1.2rem; text-align: center;
  }

  .languages-row { gap: 1.2rem; }
}
