/* ==========================================================================
   Oliver Berndt — Portfolio
   Design tokens
   ========================================================================== */
:root {
  --bg:            #0a0a0f;
  --surface:       #101018;
  --text:          #ECECF1;
  --text-strong:   #f3f3f7;
  --text-soft:     #e6e6ee;
  --muted-1:       #c7c7d4;
  --muted-2:       #b0b0c0;
  --muted-3:       #a6a6b6;
  --muted-4:       #8f8fa2;
  --muted-5:       #6f6f80;
  --purple:        #7c5cff;
  --purple-soft:   #a78bff;
  --teal:          #22d3aa;
  --link:          #35e0b5;

  --accent-grad:   linear-gradient(135deg, #7c5cff, #22d3aa);

  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Manrope', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --maxw:          1120px;
  --nav-h:         63px;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--purple-soft); }
::selection { background: rgba(124, 92, 255, .35); color: #fff; }

@keyframes pf-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes pf-rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Entrance animation — suppressed after first paint (e.g. language switch) */
.pf-anim-rise { animation: pf-rise .7s ease both; }
.pf-app--booted .pf-anim-rise { animation: none; }

/* ==========================================================================
   App shell + ambient glow
   ========================================================================== */
.pf-app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

.pf-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.pf-glow__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
}
.pf-glow__orb--a {
  top: -180px; right: -100px; width: 640px; height: 640px;
  background: radial-gradient(circle at center, rgba(124, 92, 255, .40), transparent 62%);
  animation: pf-pulse 9s ease-in-out infinite;
}
.pf-glow__orb--b {
  bottom: -240px; left: -140px; width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(34, 211, 170, .26), transparent 62%);
  animation: pf-pulse 11s ease-in-out infinite;
}
.pf-glow__orb--c {
  top: 38%; left: 52%; width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(124, 92, 255, .14), transparent 65%);
  filter: blur(40px);
  animation: pf-pulse 13s ease-in-out infinite;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.pf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(10, 10, 15, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pf-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.pf-nav__logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
}
.pf-nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
}
.pf-nav__right { display: flex; align-items: center; gap: 28px; }
.pf-nav__links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.pf-nav__link { color: var(--muted-1); }
.pf-nav__link:hover { color: #fff; }
.pf-nav__socials { display: flex; align-items: center; gap: 14px; }

.pf-icon-link { display: inline-flex; color: var(--muted-1); }
.pf-icon-link:hover { color: #fff; }

/* Language switch */
.pf-lang {
  display: flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.pf-lang__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  background: transparent;
  color: var(--muted-1);
  font: inherit;
}
.pf-lang__btn--active {
  background: var(--accent-grad);
  color: var(--bg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
}
.pf-btn--ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
}
.pf-btn--ghost:hover { color: var(--text); }

/* ==========================================================================
   Hero (shared)
   ========================================================================== */
.pf-hero { position: relative; z-index: 1; }

.pf-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.pf-role {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--purple-soft);
  margin-bottom: 26px;
}
.pf-headline {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: var(--text-strong);
}
.pf-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0 0 4px;
  text-wrap: pretty;
}

/* Photo */
.pf-photo-wrap { position: relative; justify-self: center; }
.pf-photo-glow {
  position: absolute;
  inset: -24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .5), rgba(34, 211, 170, .4));
  filter: blur(40px);
  border-radius: 36px;
  opacity: .7;
}
.pf-photo-frame {
  position: relative;
  padding: 1.5px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(124, 92, 255, .9), rgba(34, 211, 170, .7), rgba(255, 255, 255, .08));
}
.pf-photo-inner {
  width: 340px;
  height: 430px;
  border-radius: 25px;
  overflow: hidden;
  background: var(--surface);
}
.pf-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero layout */
.pf-hero--split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 40px 96px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.pf-hero--split .pf-h1 { font-size: clamp(44px, 6vw, 76px); }
.pf-hero--split .pf-headline { max-width: 30ch; }
.pf-hero--split .pf-intro { max-width: 52ch; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.pf-section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}
.pf-section--path { padding: 64px 40px 40px; }
.pf-section--skills { padding: 56px 40px 40px; }
.pf-section--contact { padding: 70px 40px 90px; }

.pf-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.pf-section__num { font-family: var(--font-mono); font-size: 13px; color: var(--purple); }
.pf-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -.02em;
  margin: 0;
}
.pf-section__sub { margin: 6px 0 0; color: var(--muted-4); font-size: 15px; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.pf-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 640px;
}
.pf-timeline__item { position: relative; }
.pf-timeline__dot {
  position: absolute;
  left: -36px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(124, 92, 255, .7);
}
.pf-timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--teal); margin-bottom: 6px; }
.pf-timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.pf-timeline__desc { margin: 0; color: var(--muted-3); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

/* ==========================================================================
   Skills
   ========================================================================== */
.pf-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.pf-skill-card {
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .025);
  border-radius: 18px;
  padding: 26px 26px 28px;
}
.pf-skill-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-4);
  margin-bottom: 18px;
}
.pf-skill-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  padding: 9px 15px 9px 12px;
  border-radius: 11px;
}
.pf-skill-tag__logo { display: block; flex: none; }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.pf-contact__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  padding: 56px 44px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(34, 211, 170, .1));
  text-align: center;
}
.pf-contact__card-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 280px;
  background: radial-gradient(circle at center, rgba(124, 92, 255, .4), transparent 65%);
  filter: blur(20px);
}
.pf-contact__inner { position: relative; }
.pf-contact__eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--purple); }
.pf-contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.02em;
  margin: 14px 0 28px;
  text-wrap: balance;
}
.pf-contact__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.pf-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .pf-hero--split { grid-template-columns: 1fr; }
  .pf-photo-wrap { display: none; }
  .pf-nav { padding: 14px 20px; }
  .pf-nav__links { display: none; }
  .pf-section,
  .pf-hero--split { padding-left: 20px; padding-right: 20px; }
}
