/* ═══════════════════════════════════════════
   SANTINO JAN ANDRÉ — Personal Website
   Barvy: bílo-modrá kombinace
   ════════════════════════════════════════ */

/* ✏️ UPRAV: Barvy zde */
:root {
  --blue:       #0057FF;
  --blue-light: #3B82FF;
  --blue-pale:  #E8F0FF;
  --blue-mid:   #C2D4FF;
  --white:      #FFFFFF;
  --off-white:  #F7F9FF;
  --text:       #0A0F1E;
  --text-mid:   #3A4560;
  --text-muted: #7080A0;
  --border:     rgba(0, 87, 255, 0.12);
  --border-mid: rgba(0, 87, 255, 0.25);

  /* ✏️ UPRAV: Fonty */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ─── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── NAVIGACE ─────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,87,255,0.08);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  letter-spacing: 2px;
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

.nav-cta-mobile { display: none; }
.nav-overlay { display: none; }

/* Hamburger — skrytý na desktopu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── TLAČÍTKA ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,87,255,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

/* ─── HERO ─────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  overflow: hidden;
  background: var(--off-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #b8d0ff 0%, transparent 65%);
  top: -200px; right: -200px;
  animation: blobMove1 8s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #d6e8ff 0%, transparent 65%);
  bottom: -100px; left: -150px;
  animation: blobMove2 10s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.05); }
}
@keyframes blobMove2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.04); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,87,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid var(--blue-mid);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease both;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 2px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title .line-1 {
  display: block;
  font-size: clamp(80px, 14vw, 160px);
  color: var(--text);
}
.hero-title .line-2 {
  display: block;
  font-size: clamp(80px, 14vw, 160px);
  color: var(--text);
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
  -webkit-text-stroke: 0px;
}

.hero-sub {
  margin: 28px auto 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 64px;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 2px;
  color: var(--blue);
  line-height: 1;
}
.stat-l {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-sep {
  width: 1px;
  height: 44px;
  background: var(--border-mid);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-bar {
  width: 2px;
  height: 48px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

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

/* ─── SEKCE (O mně, atd.) ─────────────────── */
section { padding: 120px 0; }

.section-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::after {
  content: '';
  width: 48px; height: 1.5px;
  background: var(--blue);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 48px;
}

/* ─── O MNĚ ──────────────────────────────── */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 18px;
}
.about-body strong { color: var(--text); font-weight: 500; }

.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 80px;
}

.fact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.22s;
}
.fact-card:hover {
  border-color: var(--blue-mid);
  background: var(--blue-pale);
  transform: translateX(6px);
}
.fact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.fact-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.fact-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ─── DOVEDNOSTI ─────────────────────────── */
.skills-section {
  background: var(--text); /* tmavá sekce pro kontrast */
  color: var(--white);
}
.skills-section .section-tag { color: var(--blue-light); }
.skills-section .section-tag::after { background: var(--blue-light); }
.skills-section .section-title { color: var(--white); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity 0.25s;
}
.skill-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.skill-card:hover::before { opacity: 1; }

.skill-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
}
.skill-icon { font-size: 28px; margin-bottom: 16px; }
.skill-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}
.skill-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  font-size: 11px;
  padding: 5px 12px;
  background: rgba(0,87,255,0.2);
  color: var(--blue-light);
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ─── KONTAKT ─────────────────────────────── */
#contact { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  color: var(--text);
}
.contact-item:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  transform: translateX(4px);
}
.ci-icon {
  width: 40px; height: 40px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-mid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ci-body { flex: 1; }
.ci-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 3px; }
.ci-val { font-size: 14px; font-weight: 500; color: var(--text); }
.ci-arrow { font-size: 18px; color: var(--text-muted); transition: color 0.2s; }
.contact-item:hover .ci-arrow { color: var(--blue); }

/* FORMULÁŘ */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}
.form-group textarea { min-height: 130px; }

.form-msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--blue);
  min-height: 20px;
}

/* ─── FOOTER ──────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}
.footer-logo span { color: var(--blue-light); }
.footer-copy { font-size: 12px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-light); }

/* ─── REVEAL ANIMACE ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONZIVITA — tablet a mobil
   ════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-right { padding-top: 0; }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section { padding: 88px 0; }
}

/* ── MOBIL / MALÝ TABLET (≤ 768px) ── */
@media (max-width: 768px) {
  /* Navigace → hamburger menu */
  #nav { padding: 16px 24px; }

  .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 100px 36px 40px;
    background: var(--white);
    box-shadow: -16px 0 48px rgba(10,15,30,0.12);
    transition: right 0.35s ease;
    z-index: 205;
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    font-size: 17px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-cta-mobile {
    display: block;
    margin-top: 16px;
  }
  .nav-cta-mobile .nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,15,30,0.4);
    z-index: 201;
    cursor: pointer;
    border: none;
  }
  body.nav-open .nav-overlay {
    display: block;
  }

  /* Hero */
  #hero { padding: 110px 24px 64px; }
  .hero-title .line-1,
  .hero-title .line-2 {
    font-size: clamp(52px, 16vw, 96px);
  }
  .hero-sub { font-size: 15px; padding: 0 8px; }
  .hero-btns { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .stat-n { font-size: 30px; }

  /* Sekce obecně */
  section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .section-title { margin-bottom: 36px; }

  /* O mně */
  .about-grid { gap: 36px; }
  .fact-card { padding: 18px 20px; }

  /* Dovednosti */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Kontakt */
  .contact-grid { gap: 36px; }
  .contact-form { padding: 24px; }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ── MALÝ MOBIL (≤ 420px) ── */
@media (max-width: 420px) {
  .hero-badge { font-size: 11px; padding: 7px 16px; }
  .hero-title .line-1,
  .hero-title .line-2 { font-size: clamp(44px, 17vw, 76px); }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .stat-sep { display: none; }
  .section-title { font-size: clamp(34px, 9vw, 48px); }
  .ci-val { font-size: 13px; }
  .contact-item { padding: 16px 16px; gap: 14px; }
}
