/* ============================================================
   Jan Bureš — personal site
   Stripe-inspired: navy ink, skewed gradient bands, soft cards
   ============================================================ */

:root {
  --ink: #0a2540;            /* deep navy (headings, dark bands) */
  --ink-soft: #425466;       /* slate body text */
  --bg: #ffffff;
  --bg-tint: #f6f9fc;        /* stripe's pale blue-grey */
  --emerald: #00d4a0;
  --cyan: #00b8d9;
  --blue: #0a6cff;
  --grad: linear-gradient(100deg, var(--emerald), var(--cyan) 50%, var(--blue));
  --radius: 16px;
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, 0.06), 0 8px 24px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 12px 24px rgba(10, 37, 64, 0.10), 0 30px 60px rgba(10, 37, 64, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.eyebrow-light { background: linear-gradient(100deg, #5ef2c8, #6ad6ff); -webkit-background-clip: text; background-clip: text; }

.section-sub {
  max-width: 620px;
  margin-top: 20px;
  font-size: 1.12rem;
}

.h-light { color: #fff; }
.sub-light { color: rgba(255, 255, 255, 0.78); }

.arrow { display: inline-block; transition: transform 0.2s ease; }
a:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--emerald); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 99px;
  opacity: 1 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(10, 37, 64, 0.16);
  border-radius: 99px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.6);
}
.lang-switch a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  opacity: 0.6;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover { opacity: 0.9; }
.lang-switch a.active {
  background: var(--ink);
  color: #fff;
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid rgba(10, 37, 64, 0.18);
}
.btn-ghost:hover { border-color: rgba(10, 37, 64, 0.4); transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 170px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: skewY(-7deg);
  transform-origin: top left;
  background: var(--bg-tint);
}
.hero-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  background: var(--grad);
  opacity: 0.9;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: #b9f5e4; top: -10%; left: -8%; }
.blob-2 { width: 420px; height: 420px; background: #c7e6ff; top: 10%; right: -6%; animation-delay: -5s; }
.blob-3 { width: 380px; height: 380px; background: #d9f0ff; bottom: 30%; left: 35%; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 36px) scale(1.12); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-sub { font-size: 1.18rem; margin-top: 24px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-photo { position: relative; justify-self: center; }
.photo-card {
  width: min(380px, 80vw);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.photo-card:hover { transform: rotate(0deg) scale(1.02); }
.photo-card img { display: block; width: 100%; height: auto; }

.photo-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 12px 18px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.photo-badge strong { color: var(--ink); font-size: 0.85rem; }
.badge-top { top: -22px; right: -18px; animation: float 6s ease-in-out infinite; }
.badge-bottom { bottom: -20px; left: -26px; animation: float 7s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.badge-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #fff;
}
.badge-icon svg { width: 19px; height: 19px; }
.badge-icon-blue { background: linear-gradient(135deg, var(--cyan), var(--blue)); }

/* ---------- Stats ---------- */
.stats { padding: 64px 0 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { border-top: 2px solid transparent; border-image: var(--grad) 1; border-image-slice: 1 0 0 0; padding-top: 20px; }
.stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-label { font-size: 0.95rem; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }

/* ---------- Expertise cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.card {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.07);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.icon-emerald { background: linear-gradient(135deg, #00d4a0, #00bfae); }
.icon-cyan    { background: linear-gradient(135deg, #00b8d9, #0090d9); }
.icon-blue    { background: linear-gradient(135deg, #0a6cff, #4d4dff); }
.icon-violet  { background: linear-gradient(135deg, #7c5cff, #b14dff); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; flex: 1; }
.card-link {
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Journey (dark band) ---------- */
.section-dark {
  position: relative;
  background: var(--ink);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding: 150px 0 170px;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(0, 212, 160, 0.14), transparent 70%),
    radial-gradient(700px 500px at 10% 90%, rgba(10, 108, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.section-dark .container { position: relative; }

.timeline {
  list-style: none;
  margin-top: 64px;
  position: relative;
  max-width: 720px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--emerald), var(--cyan), var(--blue));
  opacity: 0.6;
}
.t-item {
  position: relative;
  padding: 0 0 48px 52px;
}
.t-item:last-child { padding-bottom: 0; }
.t-marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 184, 217, 0.18);
}
.t-current .t-marker {
  background: var(--grad);
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 212, 160, 0.25);
}
.t-org {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5ef2c8;
}
.t-body h3 { color: #fff; margin: 6px 0 8px; font-size: 1.3rem; }
.t-body p { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; max-width: 560px; }
.t-current .t-body h3 {
  background: linear-gradient(100deg, #5ef2c8, #6ad6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Quote ---------- */
.quote { padding: 110px 0; text-align: center; background: var(--bg-tint); }
.quote-latin {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.quote-en { margin-top: 18px; font-size: 1.1rem; }
.quote footer { margin-top: 10px; font-size: 0.9rem; opacity: 0.7; }

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.cred {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid rgba(10, 37, 64, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.cred:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-sm); }
.cred h3 { margin-bottom: 6px; }
.cred-meta {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 14px;
}
.cred p:last-child { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(0, 212, 160, 0.35), transparent 65%),
    radial-gradient(800px 500px at 85% 100%, rgba(10, 108, 255, 0.4), transparent 65%),
    var(--ink);
}
.contact-inner { position: relative; }
.contact .sub-light { margin: 18px auto 0; max-width: 480px; }
.contact .hero-actions { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .photo-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 140px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-photo { justify-self: start; margin-left: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cred-grid { grid-template-columns: 1fr; }
  .nav-links > a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .badge-top { right: 6px; }
  .badge-bottom { left: -6px; }
  .hero-photo { margin-left: 6px; }
}
