@import url('https://fonts.googleapis.com/css2?family=Sixtyfour+Convergence&family=Tektur:wght@400..900&display=swap');

:root {

  --first-color: hsl(216, 96%, 64%);
  --white-color: hsl(0, 0%, 100%);
  --dark-color: hsl(216, 26%, 11%);
  --dark-color-light: hsl(216, 14%, 24%);
  --body-color: hsl(216, 96%, 98%);

  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --font-medium: 500;
  --font-semi-bold: 600;
  --z-tooltip: 10;
  --z-fixed: 100;
}



* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Tektur;
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

/* navbar */
.header {
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--dark-color);
    z-index: var(--z-fixed);
}
.header img{
  width: clamp(20px, 100px, 7vw);
}
.nav {
    position: relative;
    height: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white-color);
}
.nav__logo {
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}
.nav__logo:hover {
    color: var(--first-color);
}

.nav__toggle, 
.nav__close {
  display: flex;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}
.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav__link:hover {
  color: var(--first-color);
}

.nav_link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav_link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.nav__actions {
  display: flex;
  align-items: center;
  column-gap: .75rem;
}
.show-menu {
  top: 0% !important;
}

/* background image */
.background {
  background-image: url('pozadi-graf3.jpg');
  background-repeat: repeat;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--dark-color);
  min-width: 200px;
  row-gap: 1rem;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}
.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}
.dropdown:active .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* standart index */
.main{
  padding: 2% 5% 0 5%;
}
.main-a{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.main img{
  width: clamp(150px, 30vw, 30vw);
  height: auto;
}
.main h1{
  text-align: center;
  font-size: clamp(30px, 80px, 10vw);
  color: whitesmoke;
}
.main h2{
  font-size: clamp(15px, 45px, 5vw);
  color: whitesmoke;
}

.main h2:hover{
  cursor:wait;
  transition: .3s;
  transform: scale(1.2);
}


/* grafika */
.grafika-prace{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10%;
  justify-content: space-between;
}
.grafika{
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 2rem ;
}
.obr img{
  width: auto;
  height: 30vh;
  border: black 2px solid;
  cursor: pointer;
}
.obr img:hover{
  transition: .2s;
  transform: scale(1.7);
}

.obr p{
  font-size: larger;
  color: white;
  text-shadow: black 0px 0px 5px;
}


/* projekty */
.duh{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
.projekty{
  padding: 5%;
  display: grid;
  justify-content: space-between;
  grid-auto-rows: clamp(50px, 17vw, 20vw);
}
.projekty img{
  width: 37vw;
  height: auto;
  border-radius: clamp(2px, 20px, 20px);
}
.projekty h2{
  color: whitesmoke;
  text-align: center;
  font-size: clamp(10px, 30px, 1.7vw);
}
.projekty-a{
  border: solid 3px whitesmoke;
  border-radius: clamp(2px, 20px, 20px);
  background-color: black;
}

/* responzivita */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    background-color: var(--dark-color);
    box-shadow: 0 8px 16px hsla(216, 24%, 8%, .2);
    width: 100%;
    padding-block: 4rem;
    z-index: var(--z-fixed);
    transition: top .4s;
  }
  .obr img:hover{
    transform: scale(1.4);
  }
}
@media screen and (max-width:615px){
  .obr img:hover{
    transform: scale(1.2);
  }
  .main-a{
    flex-direction: column;
  }
}

@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  .obr img:hover{
    transform: scale(1);
  }
}
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }
  
  .nav {
    height: calc(3.5rem + 2rem);
    column-gap: 4rem;
  }
  .nav__toggle, 
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  .nav__menu {
    margin-left: auto;
  }

  .dropdown__profile {
    column-gap: 1rem;
  }
  .dropdown__list {
    top: 5.5rem;
  }

  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

@media screen and (max-width: 900px){
  .duh{
    flex-direction: column;
    align-items: center;
  }
  .projekty img{
    width: 100%;
  }
  .projekty{
    grid-auto-rows: clamp(50px, 25vw, 25vw);
    width: 95%;
  }
  .projekty h2{
    font-size: clamp(10px, 60px, 3vw);
  }
}