*{
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}


html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html{
  scroll-behavior: smooth;
}

body{
  background: #080808;
  color: #fff;
}

/*----- hlavní stránka -----*/

#header{
  width: 100%;
  height: 100vh;
  background-image: url(images/pozadi-4.jpg);
  background-size: cover;
  background-position: center;
}
.nav__header{
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
}
.nav__logo img{
  max-width: 160px;
}
.nav__menu__btn{
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.nav__links.open {
  transform: translateY(100%);
}


.nav__links{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: black;
  transition: transform .5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__menu__btn{
  position: relative;
  z-index: 100;
}

.container{
  padding: 10px 10%;
}

nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo{
  width: 140px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after{
  content: '';
  width: 0%;
  height: 3px;
  background: #0066FF;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after{
  width: 100%;
}

.header-text{
  margin-top: 20%;
  font-size: 30px;
}

.header-text h1{
  font-size: 60px;
  margin-top: 20px;
}

.header-text h1 span{
  color: #0066FF;
}

/*----- O mne -----*/

#about{
  padding: 80px 0;
  color: #ababab;
}

.row{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1{
  flex-basis: 35%;
}

.about-col-1 img{
  width: 100%;
  border-radius: 15px;
}

.about-col-2{
  flex-basis: 60%;
}

.sub-title{
  font-size: 60px;
  font-weight: 600;
  color: white;
}

.tab-titles{
  display: flex;
  margin: 20px 0 40px;
}

.tab-links{
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after{
  content: '';
  width: 0;
  height: 3px;
  background: #0066FF;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after{
  width: 50%;
}

.tab-contents ul li{
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span{
  color: #0066FF;
  font-size: 14px;
}

.tab-contents{
  display: none;
}

.tab-contents.active-tab{
  display: block;
}

/*----- Sluzby -----*/

#sluzby{
  padding: 30px 0;
}

.sluzby-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.sluzby-list div{
  background: #262626;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 10px;
  transition: transform 0.5s;
}

.sluzby-list div i{
  font-size: 50px;
  margin-bottom: 30px;
}

.sluzby-list div h2{
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}

.sluzby-list div a{
  text-decoration: none;
  color: white;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}

.sluzby-list div:hover{
  background: #0066FF;
  transform: translateY(-10px);
}

/*----- Portfolio -----*/

#portfolio{
  padding: 50px 0;
}

.prace-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 30px;
}


.prace{
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.prace video{
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s; 
  max-height: 300px;
}

.project-video{
  aspect-ratio: 1 / 2;
}


.layer{
  width: 100%;
  height: 0%;
  background: linear-gradient(rgba(0,0,0,0.6), #0066FF);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3{
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a{
  margin-top: 20px;
  color: #0066FF;
  text-decoration: none;
  font-size: 16px;
  line-height: 50px;
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
}

.prace:hover img{
  transform: scale(1.1); /* priblizeni*/
}

.prace:hover .layer{
  height: 100%;
}

.btn{
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #0066FF;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: 0.5s;
}

.btn:hover{
  background: #0066FF;
}

/*----- Kontakt -----*/

.kontakt-left{
  flex-basis: 35%;
}

.kontakt-right{
  flex-basis: 60%; 
}

.kontakt-left p{
  margin-top: 30px;
}

.kontakt-left p i{
  color: #0066FF;
  margin-right: 15px;
  font-size: 25px;
}

.social-icons{
  margin-top: 30px;
}

.social-icons a{
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #ababab;
  display: inline-block;
  transition: transform 0.5s;
}

.social-icons a:hover{
  color: #0066FF;
  transform: translateY(-5px);
}

.btn.btn2{
  display: inline-block;
  background: #0066FF;
}

.kontakt-right form{
  width: 100%;
}

form input, form textarea{
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 16px;
}

form .btn2{
  padding:14px 16px;
  font-size: 18px;
  margin-top: 18px;
  width: 150px;
  cursor: pointer;
}

h2{
  font-size: 19px;
  margin-top: 10px;
  color:#ababab;
}

.copyright{
  width: 100%;
  text-align: center;
  padding: 25px 0;
  font-weight: 300;
  margin-top: 20px;
  color: #ababab;
}
.footer-image{
  width: 180px;
  margin-bottom: 10px;
}

.popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0066FF;
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/*----- CSS pro mobilni zarizeni -----*/

nav .fa-solid{
  display: none;
}

@media only screen and (max-width:700px){
  #header{
    background-image: url(images/pozadi-telefon-2.jpg);
  }

  #nav-links.open ~ .nav__menu__btn i{
  color: white;
}
  .header-text{
    margin-top: 100%;
    font-size: 16px;
  }
  .header-text h1{
    font-size: 29px;
  }
  nav .fa-solid{
  display: block;
  font-size: 25px;
  color: white;
}
  .nav__menu__btn{
    position: fixed;
    top: 20px;
    right: 20px;
  }

/* FIXNI MOBILNI HEADER */
.mobile-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  z-index: 100;
}

/* NAV UVNITR HEADERU */
.mobile-header nav{
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.mobile-header .logo{
  width: 120px;
}

/* TLAČÍTKO MENU */
.nav__menu__btn{
  z-index: 101;
}
#header{
  padding-top: 70px;
}

/* FIXNÍ HEADER */
.mobile-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  z-index: 1000;
}

/* NAV */
.mobile-header nav{
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO */
.mobile-header .logo{
  width: 120px;
}

/* MENU */
#nav-links{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;

  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
}

/* OTEVŘENÍ */
#nav-links.open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ODSAZENÍ OBSAHU */
#header{
  padding-top: 70px;
}

/*----- scale na video asi? -----*/
.project-video{
  scale: 1;
}
/*----- scale na video asi? -----*/


.sub-title{
  font-size: 40px;
  margin-bottom: 10px;
}
.about-col-1, .about-col-2{
  flex-basis: 100%;
}
.about-col-1{
  margin-bottom: 30px;
}
.about-col-2{
  font-size: 14px;
}
.tab-links{
  font-size: 16px;
  margin-right: 20px;
}
.kontakt-left, .kontakt-right{
  flex-basis: 100%;
}
.copyright{
  font-size: 12px;
  color: #ababab;
}

h2{
  font-size: 16px;
}
.footer-image{
width: 120px;
}
.prace-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 100px;
  margin-top: 30px;
}
}


/*----- max-width  CSS pro mensi notebooky (1000px) -----*/



@media(max-width:1050px){
  nav .fa-solid{
  display: block;
  font-size: 25px;
}

/* FIXNI MOBILNI HEADER */
.mobile-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  z-index: 100;
}

/* NAV UVNITR HEADERU */
.mobile-header nav{
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.mobile-header .logo{
  width: 120px;
}

/* TLAČÍTKO MENU */
.nav__menu__btn{
  z-index: 101;
}
#header{
  padding-top: 70px;
}

/* FIXNÍ HEADER */
.mobile-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  z-index: 1000;
  transition: 0.5s;
}

/* NAV */
.mobile-header nav{
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: 0.5s;
}

/* LOGO */
.mobile-header .logo{
  width: 120px;
}

/* MENU */
#nav-links{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  transition: 0.5s;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
}

/* OTEVŘENÍ */
#nav-links.open{
  transform: translateY(0);
  opacity: 1;
  transition: 0.5s;
  pointer-events: auto;
}

/* ODSAZENÍ OBSAHU */
#header{
  padding-top: 70px;
}
.sub-title{
  font-size: 40px;
  margin-bottom: 10px;
}

.tab-links{
  font-size: 16px;
  margin-right: 20px;
}
.kontakt-left, .kontakt-right{
  flex-basis: 100%;
}
.copyright{
  font-size: 12px;
  color: #ababab;
}

h2{
  font-size: 16px;
}
.footer-image{
width: 120px;
}
.prace-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 100px;
  margin-top: 30px;
  grid-template-columns: 1fr;
  }
}