/* FONTS */
@font-face {
  font-family: Inconsolata;
  src: url(font/Inconsolata_Condensed-Regular.ttf);
  font-weight: normal;
}

@font-face {
  font-family: Inconsolata;
  src: url(font/Inconsolata_Condensed-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: pixel;
  src: url(font/ProggyCleanSZ.ttf);
  font-weight: bold;
}

@font-face {
  font-family: mode;
  src: url(font/alphabetized\ cassette\ tapes.ttf);
}

/* CSS reset */

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

li {
  list-style: none;
}

a {
  text-decoration: none;
}

/*********************************** COLORS ***********************************/

:root {
  /* dark mode colors*/
  --gold: #bd9d3d;
  --white: #e2e2e9;
  --purple: #b1afd0;
  --grey: #a6a1a0;
  --dark1: #514d82;
  --dark2: #44426e;
  --dark3: #38365a;
  --dark4: #2c2a46;
  --dark5: #1f1e32;
  --dark6: #13121e;
  /* light mode colors*/
  --red: #da372e;
  --black: #00004d;
  --pink: #ffc6c0;
  --yellow: #ffb11d;
  --light1: #ffffff;
  --light2: #fffbfb;
  --light3: #fff7f6;
  --light4: #e79a91;
}

/************** Dark/Light Mode colors **************/

.light {
  --backGround: linear-gradient(
    to right,
    var(--light1),
    var(--light2),
    var(--light3),
    var(--light4)
  );

  --buttons: linear-gradient(
    to right,
    var(--light1),
    var(--light2),
    var(--light3),
    var(--light4)
  );

  --navbar: var(--light3);
  --mode: var(--grey);
  --font: var(--black);
  --htmlTags: var(--red);
  --slide: var(--pink);
}

.dark {
  --backGround: linear-gradient(
    to right,
    var(--dark1),
    var(--dark2),
    var(--dark3),
    var(--dark4),
    var(--dark5),
    var(--dark6)
  );

  --buttons: linear-gradient(
    to right,
    var(--dark1),
    var(--dark2),
    var(--dark3),
    var(--dark4),
    var(--dark5),
    var(--dark6)
  );

  --navbar: var(--dark2);
  --mode: var(--yellow);
  --font: var(--white);
  --htmlTags: var(--gold);
  --slide: var(--purple);
}

/* dark/light icons */

.mode p {
  font-family: mode;
  font-size: 1.2rem;
  color: var(--mode);
}

.lightMode {
  display: none;
}

.darkMode {
  display: block;
}

/*********************************** GLOBAL ***********************************/

html {
  font-family: Inconsolata;
  font-size: 22px;
  background: 500ms ease-in-out, color 700ms ease-in-out;
}

body {
  margin: 0;
  max-width: 1700px;
  background: var(--backGround);
  color: var(--font);
  transition: all 0.7s linear;
}

/*********************************** NAVBAR ***********************************/

.menu {
  position: fixed;
  top: 0;
  left: -150px;
  height: 100vh;
  width: 150px;
  background: var(--navbar);
  transition: left 0.4s ease;
  z-index: 1000;
  box-shadow: none;
}

.menu.show {
  left: 0;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/************** Logo **************/
.menu .logo {
  width: 100%;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 80px;
}

.link:hover {
  cursor: pointer;
}

.menu .logo a {
  font-family: pixel;
  font-size: 60px;
  color: var(--htmlTags);
}

/* Animace barev loga */
@keyframes logoColorAnimationDark {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

/* animace pro light mode */
.light .menu .logo a {
  animation: logoColorAnimationDark 8s infinite alternate linear;
}

/* animace pro dark mode */
.dark .menu .logo a {
  animation: logoColorAnimationDark 8s infinite alternate linear;
}

/* překlady */
.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 25px;
  border-bottom: 0.5px dotted var(--font);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--font);
  font-family: Inconsolata, monospace;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
}

.lang-btn.active-lang {
  color: var(--htmlTags);
  font-weight: bold;
  cursor: default;
}

.lang-divider {
  color: var(--font);
  font-size: 1.2rem;
  user-select: none;
}

/************** Links **************/

.menu .menu-links li a {
  border-bottom: 0.5px dotted var(--font);
  display: block;
  text-align: center;
  padding: 20px 25px;
  color: var(--font);
  transition: background 0.5s;
  background-image: linear-gradient(90deg, transparent 50%, var(--navbar) 50%);
  background-size: 200% 100%;
  background-position: 100%;
}

.menu .menu-links li a:hover {
  background-position: 0;
  background-color: var(--slide);
}

/************** Mode button **************/

.menu .mode {
  padding: 20px 0px;
}

.menu .mode button {
  background-color: var(--navbar);
  border: none;
  font-family: Inconsolata;
  font-size: 22px;
  width: 100%;
}

.menu .mode button:hover {
  cursor: pointer;
}

.menu .mode button img {
  width: 30px;
}

/************** Hamburger **************/

.hamburger {
  display: block;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: none;
  border: none;
  transition: left 0.4s ease;
}

.hamburger:hover {
  cursor: pointer;
}

.hamburger.open {
  left: 160px;
}

.hamburger.open .bar {
  background: var(--font);
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--htmlTags);
  transition: background 0.4s;
}

/************** Scroll button **************/

.arrow {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 26px;
  height: 26px;
  border: 2px solid;
  border-radius: 4px;
  color: var(--htmlTags);
  transition: left 0.4s ease;
}

.arrow:hover {
  cursor: pointer;
}

.arrow::after,
.arrow::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: 6px;
}

.arrow::after {
  width: 6px;
  height: 6px;
  border-top: 2px solid;
  border-left: 2px solid;
  transform: rotate(45deg);
  left: 8px;
}

.arrow::before {
  width: 2px;
  height: 10px;
  left: 10px;
  background: currentColor;
}

.arrow.open {
  left: 160px;
}

.arrow.open {
  color: var(--font);
}

/*********************************** FOOTER ***********************************/

footer {
  font-size: 16px;
  color: var(--htmlTags);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  text-align: center;
}

/*********************************** MAIN ***********************************/

main {
  margin-left: 210px;
  padding: 20px;
}

section {
  line-height: 1.5;
  text-align: justify;
  padding: 20px 0;
}

/* TAGS */

.html-tag {
  margin-left: 0px;
  color: var(--htmlTags);
}

.body-tag {
  margin-left: 30px;
  color: var(--htmlTags);
}

.header-tag {
  margin-left: 60px;
}

.other-tags {
  color: var(--htmlTags);
}

/************** SECTIONS **************/
/************** Domů **************/

#section1 h1 {
  background-image: url(img/h1.jpg);
  background-size: cover;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 50px;
}

.contact button {
  background-color: var(--buttons);
  border: none;
  margin-top: 40px;
}

.contact button a {
  display: inline-block;
  border: 2px solid var(--htmlTags);
  color: var(--font);
  padding: 10px 40px;
  font-family: Inconsolata;
  font-size: 22px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.hover:hover {
  transform: scale(1.02);
  transition: ease-in 0.2s;
}

/************** Profil **************/

section .profil a {
  color: var(--htmlTags);
}

/************** Dovednosti **************/

section .icons-html img {
  width: 65px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.icons-html img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.icons-html img:hover {
  filter: grayscale(0%);
}

/************** Portfolio **************/

.portfolio-wrapper {
  display: flex;
  flex-direction: column;
  margin: auto;
}

.cards {
  display: flex;
  gap: 50px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.cards h3 {
  text-align: center;
  padding-bottom: 7px;
}

.text-wrapper {
  width: 60%;
}

.image-wrapper {
  width: 40%;
  display: flex;
  justify-content: center;
}

.image-wrapper img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.cards img {
  border-radius: 10px;
}

.cards img:hover {
  transform: scale(1.02);
  transition: ease-in 0.2s;
}

.cards button {
  background-color: var(--buttons);
  border: 2px solid var(--htmlTags);
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.cards button a {
  color: var(--font);
  font-family: Inconsolata;
  font-size: 17px;
}

.cards button a:hover {
  color: var(--htmlTags);
  transition: ease-in 0.2s;
}

.text-wrapper .icons-html img {
  width: 50px;
}

/************** Kariéra **************/

#section5 .accordion-content {
  margin: 10px 0;
  overflow: hidden;
}

.accordion-content.open {
  padding-bottom: 10px;
}

.accordion-content header {
  display: flex;
  align-items: center;
  min-height: 50px;
  justify-content: space-between;
  font-size: 25px;
  color: var(--font);
  cursor: pointer;
  transition: all 0.2s linear;
}

.accordion-content.open header {
  min-height: 50px;
  color: var(--htmlTags);
}

.accordion-content.open .dot {
  color: var(--htmlTags);
}

.accordion-content .dot {
  transition: all 0.2s linear;
}

.accordion-content a {
  color: var(--htmlTags);
}

.accordion-content .description {
  padding: 0 15px;
  height: 0;
  transition: all 0.2s linear;
  overflow: hidden;
  text-align: justify;
}

.accordion-content header .plus {
  font-size: 30px;
}

/************** Kontakt **************/

section .icons a:hover {
  color: var(--htmlTags);
}

section .icons a {
  color: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

section .icons img {
  width: 43px;
  margin-top: 5px;
  margin-bottom: 10px;
}

/*********************************** BREAKPOINTS ***********************************/

/************** 1200 **************/

@media (max-width: 1200px) {
  /* portfolio */
  .image-wrapper {
    width: 40%;
    display: block;
  }

  .text-wrapper {
    width: 50%;
  }

  .image-wrapper {
    width: 50%;
  }
}

/************** 1150 **************/

@media (max-width: 1150px) {
  /* velikost písma */
  html {
    font-size: 20px;
  }

  #section1 h1 {
    font-size: 40px;
  }

  .navbar .menu li a {
    font-size: 20px;
  }

  .contact button a {
    font-size: 20px;
  }
  .navbar .menu li span {
    font-size: 20px;
  }
  .accordion-content header {
    font-size: 23px;
  }

  section .icons-html img {
    width: 50px;
  }

  .cards button {
    padding: 8px 16px;
  }

  .cards button a {
    font-size: 15px;
  }

  section .icons img {
    width: 38px;
  }

  footer {
    font-size: 15px;
  }

  /* portfolio */
  .cards {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-wrapper {
    width: 100%;
  }

  .text-wrapper {
    width: 80%;
    text-align: justify;
  }

  /* logo zmenšení */
  .menu .logo {
    padding-top: 90px;
    padding-bottom: 70px;
  }
}

/************** 1000 **************/

@media (min-width: 1000px) {
  /* main 70% */
  main {
    width: 70%;
  }
}

@media (max-width: 1000px) {
  /* portfolio - pod sebou */
  .cards {
    flex-direction: column;
  }
}

/************** 800 **************/

/* zavření menu */
@media (max-width: 800px) {
  main {
    margin-left: 50px;
  }

  .menu {
    left: -150px;
  }

  /* logo zmenšení */
  .menu .logo {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  .logo a {
    font-size: 50px;
  }
  /* portfolio -borders */
  .cards {
    border-top: 2px solid var(--htmlTags);
    padding: 5px;
    gap: 30px;
    margin-top: 5px;
  }

  .text-wrapper {
    text-align: start;
  }
}
/************** 600 **************/

@media (max-width: 600px) {
  /* velikost písma */
  html {
    font-size: 19px;
    scroll-behavior: auto;
  }

  /* zalamování písma */
  section {
    text-align: start;
  }

  #section2 {
    text-align: start;
  }

  #section1 h1 {
    font-size: 38px;
  }

  .name {
    font-size: 23px;
  }

  .menu .menu-links li a {
    padding: 15px 25px;
    border-bottom: 0.5px solid var(--font);
  }

  .navbar .menu li a {
    font-size: 18px;
  }

  .contact button a {
    font-size: 18px;
    font-weight: bold;
  }

  .navbar .menu li span {
    font-size: 18px;
  }

  .accordion-content header {
    font-size: 20px;
  }

  .accordion-content .description {
    text-align: start;
  }

  section .icons-html img {
    width: 52px;
  }

  .text-wrapper .icons-html img {
    width: 40px;
  }

  .cards {
    gap: 20px;
  }

  .cards button {
    padding: 5px 10px;
    font-weight: bold;
  }

  .cards button a {
    font-size: 17px;
  }

  section .icons img {
    width: 33px;
  }

  footer {
    font-size: 13px;
  }

  /* logo zmenšení */
  .menu .logo {
    padding-top: 70px;
    padding-bottom: 50px;
  }
  .logo a {
    font-size: 45px;
  }
}

/* portfolio */
.text-wrapper {
  width: 100%;
}

.image-wrapper {
  width: 100%;
}
