
:root {
 

  /*barvy*/
  --gold: #ffc000;
    --gold-light: #ffe28a;
    --gold-2: #eca660;
    --light-grey: rgb(173, 173, 173);

  --title-color: rgb(241, 237, 237);
  --text-color: hsl(0, 0%, 70%);
  --text-color-light: hsl(0, 0%, 60%);
  --body-color: hsl(0, 0%, 0%);
  --container-color: hsl(0, 0%, 8%);
  --shadow-gradient: linear-gradient(180deg, 
                    hsla(0, 0%, 0%, 0) 50%, 
                    hsl(0, 0%, 0%) 125%);

   /* velikost textu při menším rozlišení */
  --body-font: "Cormorant Upright", serif ;
  --second-font: "Dancing Script", serif;
  --biggest-font-size: 2.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 1rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* Font weight */
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;

 
}

/* velikost textu při větším rozlišení */
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 5.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1.5rem;
    --small-font-size: 1.5rem;
    --smaller-font-size: 1.5rem;
  }
}


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

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

body {
  background-color: var(--body-color);
}

button,
input {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/*preloader*/

.loader-container {
  width: 100%;
  height: 100vh;
  background-color: #241849;
  position: fixed;
  display: flex;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid;
  color: var(--gold-2);
  border-radius: 50%;
  border-top-color: transparent ;
  animation: loader 1.2s linear infinite;
}

@keyframes loader {
  25%{
      color: #2c1d58;
  }
  50%{
      color: #03197c;
  }
  75%{
      color: #800360;
  }
  to{
      transform: rotate(360deg);
  }
}



/* CSS CLASSY */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;

}

.grid {
  display: grid;
  gap: 1.5rem;
  
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.main {
  overflow: hidden; /* Pro animaci ScrollReveal */
}


/*HEADER*/

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--white) ;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Cormorant Upright", serif;
}

a:hover {
    color: var(--gold-2) ;
}



.header {
    position: relative;
    padding: 0 2rem;
}

.navbar {
    width: 100%;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: absolute;
    z-index: 999;
}


.logo img {
  margin-top: 55px;
    width: 50px;
    height: 50px;
  }

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Cormorant Upright", serif;

    text-decoration: none;
    color: var(--white);
    cursor:context-menu;

    padding-left: 3%;
}

.navbar .links {
    display: flex;
    gap: 2rem;
    text-align: center;
    justify-content: center;
}

.navbar .toggle_btn {
    color: var(--gold-2);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    margin-right: 3%;

}

/*button*/

.action_btn {
    background-color: var(--gold-2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
    margin-right:3%;
}


.action_btn:hover {
    scale: 1.05;
    color: var(--white);
}

.action_btn:active {
    scale: 0.95;
}

/*dropdown menu*/

.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0px;
    width: 350px;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
    height: 410px;
    z-index: 1;
}

.dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}




/* HOME */
.home {
  position: relative;
  
}

.home__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
  object-fit: cover;
  object-position: center;
  
}

.home__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  background: linear-gradient(180deg, 
            hsla(0, 0%, 0%, 0) 58%, 
            hsl(0, 0%, 0%) 78%);
}

.home__container {
  position: relative;
  padding-top: 3rem;
  row-gap: 3rem;
}

.home__data {
  text-align: center;
}



.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}



.home__cards {
  grid-template-columns: 240px;
  justify-content: center;
}

.home__card {
  position: relative;
  overflow: hidden;
}

.home__card-img {
  transition: transform .4s;
}

.home__card-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--shadow-gradient);
}

.home__card-title {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: var(--h3-font-size);
  z-index: 1;
}

.home__card:hover .home__card-img {
  transform: scale(1.2);
}



/*ABOUT */
.about__container {
  row-gap: 3rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__image {
  position: relative;
  justify-self: center;
  overflow: hidden;
}

.about__img {
  width: 300px;
  transition: transform .4s;
}

.about__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--shadow-gradient);
}

.about__image:hover .about__img {
  transform: scale(1.2);
}

/* tools */
.tools__container {
  padding-top: 1.5rem;
  grid-template-columns: 240px;
  justify-content: center;
  row-gap: 2.5rem;
}

.tools__image {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.tools__img {
  transition: transform .4s;
}

.tools__image:hover .tools__img {
  transform: scale(1.2);
}

.tools__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--shadow-gradient);
}

.tools__title {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.tools__location {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  font-weight: 500;
}

.tools__location i {
  font-size: 1rem;
}

/* ZÁVĚR */
.zaver {
  position: relative;
  margin-bottom: 150px;
}

.zaver__image {
  position: absolute;
  overflow: hidden;
}

.zaver__img {
  width: 100%;
  height: 333px;
  object-fit: cover;
  object-position: center;
}

.zaver__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
            hsl(0, 0%, 0%) 5%, 
            hsla(0, 0%, 0%, 0) 40%, 
            hsla(0, 0%, 0%, 0) 60%, 
            hsl(0, 0%, 0%) 92%);
}

.zaver__content {
  position: relative;
  padding-top: 16rem;
  text-align: center;
  row-gap: 2.5rem;
}



.zaver__perfil {
  width: 30px;
  border-radius: 50%;
}

.zaver__name {
  font-size: var(--small-font-size);
  color: var(--title-color);
}



/* SCROLL BAR */
::-webkit-scrollbar {
  display:none ;
}

/* SCROLL UP */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: hsla(0, 0%, 100%, .1);
  border-radius: 25px;
  padding: 6px;
  display: inline-flex;
  color: var(--title-color);
  font-size: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); 
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}



/* RESPONSIVITA */


@media screen and (min-width: 320px) {
  .home__cards {
    padding-top: 17rem;
  }
}

@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

}

@media screen and (max-width: 375px) {

  .dropdown_menu{
    left: 2rem;
    width: unset;
}

}





@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .zaver__content {
    grid-template-columns: 380px;
    justify-content: center;
  }
  
}





@media screen and (min-width: 768px) {
  .home__cards {
    grid-template-columns: repeat(2, 240px);
    padding-top: 17rem;
  }

  .about__container {
    grid-template-columns: repeat(2, 350px);
    align-items: center;
  }

  .about__data,
  .about__data .section__title,
  .join__data .section__title {
    text-align: initial;
  }

  .tools__container {
    grid-template-columns: repeat(2, 240px);
  }

  .zaver__img {
    width: 100vw;
  }

}




@media screen and (max-width: 820px){

  .navbar .links,
  .navbar .action_btn {
      display: none;
  }

  .navbar .toggle_btn {
      display: block;
  }

  .dropdown_menu {
      display: block;
      z-index: 999 !important;
  }

}






@media screen and (min-width: 1023px) {
  .nav__close, 
  .nav__toggle {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .tools__container {
    grid-template-columns: repeat(3, 240px);
  }

  .home__cards {
    padding-top: 17rem;
  }
}




@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .home__container {
    grid-template-columns: initial;
    justify-content: initial;
    row-gap: 4rem;
    padding-top: 1rem;

  }
  .home__shadow {
    height: 980px;
  }
  .home__data {
    text-align: center;
    margin: auto;
    width: 480px;
  }

  .home__cards {
    grid-template-columns: repeat(4, 260px);
    padding-top: 17rem;
  }

  .home__card-title {
    left: 1.5rem;
    bottom: 1.5rem;
  }

  .about__container {
    grid-template-columns: 400px 460px;
    column-gap: 8.5rem;
    padding-block: 1rem;
  }
  .about__description {
    margin-bottom: 3rem;
  }
  .about__img {
    width: 460px;
  }

  .tools__container {
    grid-template-columns: repeat(3, 300px);
    column-gap: 3rem;
    padding-top: 4rem;
  }
  .tools__title {
    font-size: var(--h2-font-size);
  }
  .tools__location {
    font-size: var(--normal-font-size);
  }

  .zaver__img {
    height: 600px;
  }
  .zaver__content {
    padding-top: 28rem;
    grid-template-columns: 670px 1fr;
  }
  .zaver__data, 
  .zaver__data .section__title {
    text-align: initial;
  }

  .scrollup {
    right: 3rem;
  }
}