@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --background: #000;
  --text: #fff;
  --muted: #929292;
  --line: #292929;
  --box: #171717;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.cv-accordion summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* Horní lišta */

.top-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 82px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  display: block;
  width: auto;
  max-width: 80vw;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .top-bar {
    height: 72px;
    padding: 0 24px;
  }
 
  .logo img {
    height: 42px;
  }
}

/* Vodorovná navigace */

.vertical-line {
  display: none;
}

.side-navigation {
  position: fixed;
  top: 82px;
  right: 0;
  left: 0;
  z-index: 9;

  display: flex;
  justify-content: center;
  gap: 40px;

  height: 52px;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--line);
}

.side-navigation a {
  position: relative;

  display: flex;
  align-items: center;

  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.side-navigation a::before {
  display: none;
}

.side-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.side-navigation a:hover,
.side-navigation a.active {
  color: var(--text);
}

.side-navigation a.active::after {
  background: var(--text);
}

/* Obsah */

main,
footer {
  margin-left: 0px;
}

main section,
footer {
  scroll-margin-top: 150px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 8vw 120px;
}

.hero-content {
  max-width: 900px;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 28px;
}

h1 {
  max-width: 900px;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -5px;
}

.intro {
  max-width: 620px;
  margin-top: 44px;
  color: #bdbdbd;
  font-size: 20px;
  line-height: 1.6;
}

.content-section {
  padding: 130px 8vw;
  border-top: 1px solid var(--line);
}

.section-text {
  max-width: 720px;
  margin-top: 50px;
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-text p {
  color: #bdbdbd;
  font-size: 18px;
  line-height: 1.7;
}

/* Portfolio */

.portfolio-section {
  margin-left: 0px;
  padding-left: 8vW;
  background: #111;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 45px;
}

.project-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: none;
 
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-shadow: none;
 
  background-color: #171717;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
 
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-tile:hover {
  filter: brightness(1.08);
  transform: translateY(-5px);
}

.tile-bonveno {
  background-image: url("images/bonveno.png");
}

.tile-tesco {
  background-image: url("images/tesco.png");
}

.tile-kaufland {
  background-image: url("images/kaufland.png");
}

.tile-drahy {
  background-image: url("images/cd.png");
}

.tile-brema {
  background-image: url("images/brema.png");
}

.tile-alte-logis {
  background-image: url("images/alte-logis.png");
}

.tile-ilustrace {
  background-image: url("images/ilustrace.png");
}

.tile-q {
  background-image: url("images/q.png");
}

/* CV */

.cv {
  max-width: 900px;
  margin-top: 90px;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.cv-header h3 {
  font-size: 20px;
  font-weight: 500;
}

.cv-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.cv-contact a:hover {
  color: var(--text);
}

.cv-accordion {
  border-bottom: 1px solid var(--line);
}

.cv-accordion:first-of-type {
  border-top: 1px solid var(--line);
}

.cv-accordion summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
}

.cv-accordion summary::-webkit-details-marker {
  display: none;
}

.cv-accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-50%);
}

.cv-accordion[open] summary::after {
  content: "−";
  color: var(--text);
}

.cv-accordion summary:hover {
  color: var(--muted);
}

.cv-accordion-content {
  padding: 0 0 26px;
}

.cv-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 10px 0;
}

.cv-date {
  color: var(--muted);
  font-size: 14px;
}

.cv-entry strong {
  font-size: 15px;
  font-weight: 500;
}

.cv-entry p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cv-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: #bdbdbd;
  font-size: 13px;
}

/* Kontakty */

footer {
  padding: 120px 8vw 50px;
  border-top: 1px solid var(--line);
}

.email {
  display: inline-block;
  margin-top: 35px;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -2px;
}

.copyright {
  margin-top: 120px;
  color: var(--muted);
  font-size: 13px;
}

/* Mobilní zobrazení */

@media (max-width: 700px) {
  .top-bar {
    height: 72px;
    padding: 0 24px;
  }

  .logo {
    font-size: 15px;
  }

  .side-navigation {
    top: 72px;
    justify-content: space-around;
    gap: 8px;
    height: 48px;
    padding: 0 10px;
  }

  .side-navigation a {
    font-size: 9px;
    letter-spacing: 0.4px;
  }

  main,
  footer {
    margin-left: 0px;
  }

  main section,
  footer {
    scroll-margin-top: 130px;
  }

  .hero {
    padding: 160px 28px 90px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 78px);
    letter-spacing: -3px;
  }

  .intro {
    font-size: 17px;
  }

  .content-section,
  footer {
    padding: 90px 28px;
  }

  .portfolio-section {
    margin-left: 0px;
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .cv {
    margin-top: 60px;
  }

  .cv-header {
    flex-direction: column;
  }

  .cv-contact {
    align-items: flex-start;
  }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cv-accordion summary {
    font-size: 16px;
  }

  .email {
    font-size: 28px;
    word-break: break-word;
  }
}

#uvod {
  background: url("images/bg_1920x1080_uvod.jpg") center / cover no-repeat;
  color: #000;
}

#o-mne {
  background: url("images/bg_1920x1080_o_mne.jpg") center / cover no-repeat;
  color: #000;
}

/* Texty v úvodu a sekci O mně */
#uvod *,
#o-mne * {
  color: #000;
}

/* Bílé nadpisy */
#uvod h1,
#o-mne .section-text h2 {
  color: #fff;
}

/* Znaménko rozbalovacího CV */
#o-mne .cv-accordion summary::after {
  color: #000;
}

#o-mne .cv-accordion[open] summary::after {
  color: #000;
}

.cv-accordion {
  border-bottom: 1px solid var(--line);
}
 
.cv-accordion:first-of-type {
  border-top: 1px solid var(--line);
}

.cv-accordion summary {
  font-size: 21px;
}

.cv-entry strong {
  font-size: 18px;
}

.cv-entry p,
.cv-date {
  font-size: 16px;
}

.cv-tags {
  gap: 12px 20px;
}

.cv-tags span {
  padding: 0;
  border: none;
  font-size: 16px;
}

@media (max-width: 700px) {
  .cv-accordion summary {
    font-size: 19px;
  }

  .cv-entry strong,
  .cv-entry p,
  .cv-date,
  .cv-tags span {
    font-size: 16px;
  }
}

.cv-tags span {
  padding: 0;
  border: none;
  box-shadow: none;
  font-size: 16px;
}
