html{
    overflow-x: hidden;
}
* {
    scroll-behavior: smooth;
    font-family: Nexa;
}
@font-face {
    font-family: Font;
    src: url(fonts/CaviarDreams.ttf);
}
a {
    text-decoration: none;
}
@font-face {
    font-family: Nexa;
    src: url(fonts/nexa/Nexa-Heavy.ttf);
}

h2{
  margin: 3%;
}

button:hover {
  letter-spacing: 2px;
  background-color: hsl(0, 0%, 100%);
  color: hsl(0, 0%, 0%);
  box-shadow: rgb(230, 230, 230) 0px 7px 29px 0px;
  font-size: 1rem;
}


.minNadpis{
    padding: 5px;
    font-size: 4rem;
    margin: 50px auto;
    border-bottom: 2px solid #ccc;
    width: 50%;
    animation: graviti2 5s infinite ease-in-out;
    font-family: Nexa;
}

body {
    width: 100vw;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #000000 ;
    overflow-x: hidden;
    color: #ffffff;
    
}
nav {
    background: linear-gradient(to right, #1e3b72, #2a52981b, #2a529800, #2a52981b, #1e3b72);
    width: 100vw;
    height: 7%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: fixed;
    z-index: 11; 
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 3%;
}

.logo img {
    height: 45px; 
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px; 
    padding-right: 3%;
}

nav a {
    color: white;
    position: relative;
    transition: all ease-in-out 0.3s;
    z-index: 3;
}

nav a img {
    height: 24px;
    width: 100%;
}

nav a:hover {
    transform: translateY(-3px);
}   
 /* Hvězdy */
  .starry-background {
    overflow-x: hidden;
    overflow-y: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh;
    background:
      /* Malé hvězdy */
      radial-gradient(1.5px 1.5px at 20px 30px, white 90%, transparent 100%),
      radial-gradient(1.3px 1.3px at 50px 90px, #eee 90%, transparent 100%),
      radial-gradient(1.8px 1.8px at 130px 60px, white 90%, transparent 100%),
      radial-gradient(1.2px 1.2px at 180px 200px, #ddd 90%, transparent 100%),
      radial-gradient(1.6px 1.6px at 220px 150px, white 90%, transparent 100%),
      radial-gradient(1.1px 1.1px at 300px 300px, #ccc 90%, transparent 100%),
      radial-gradient(1.7px 1.7px at 370px 120px, white 90%, transparent 100%),
      radial-gradient(1.3px 1.3px at 410px 410px, #eee 90%, transparent 100%),
      radial-gradient(1.0px 1.0px at 450px 220px, white 90%, transparent 100%),
      radial-gradient(1.5px 1.5px at 490px 80px, #ddd 90%, transparent 100%),
      /* Středně velké hvězdy */
      radial-gradient(2.5px 2.5px at 70px 120px, #fff 90%, transparent 100%),
      radial-gradient(2.0px 2.0px at 150px 180px, #eee 90%, transparent 100%),
      radial-gradient(2.6px 2.6px at 230px 250px, #fff 90%, transparent 100%),
      radial-gradient(2.3px 2.3px at 320px 100px, #ddd 90%, transparent 100%),
      radial-gradient(2.4px 2.4px at 400px 290px, #fff 90%, transparent 100%),
      radial-gradient(2.1px 2.1px at 480px 160px, #ccc 90%, transparent 100%),
      /* Velké hvězdy*/
      radial-gradient(3.5px 3.5px at 90px 310px, #fff 90%, transparent 100%),
      radial-gradient(3.0px 3.0px at 170px 350px, #eee 90%, transparent 100%),
      radial-gradient(3.6px 3.6px at 250px 400px, #fff 90%, transparent 100%),
      radial-gradient(3.2px 3.2px at 340px 220px, #ddd 90%, transparent 100%),
      radial-gradient(3.4px 3.4px at 420px 350px, #ffe100 90%, transparent 100%),
      radial-gradient(3.3px 3.3px at 510px 300px, #ccc 90%, transparent 100%);
    background-repeat: repeat;
    background-size: 600px 600px;
     animation: spin 250s linear infinite; 
    z-index: 0;
    pointer-events: none;
  }

  
.heroB{
    margin-left: 5%;
    width: 90vw;
    height: 190vh; 
    background: linear-gradient(to left, #010408, #1c386b,#3c76da) ;
    position: absolute;
    animation: spin 15s linear infinite;
    z-index: 1;
    border-radius: 50%;
    box-shadow: 2px #ffffff69;;
    top: 0;
    left: 0;
    will-change: transform, position, top;
    transition: top 0.3s ease, position 0.3s ease;
}
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(255, 255, 255, 0);
    font-size: 3rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    -webkit-text-stroke: 3px #ffffff;
}

.Socials{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    gap: 5%;
    height: 10%;
    width: 15%;
}

.social{
    width: 60px;
    height: 60px;
    transition: all ease-in-out 0.3s;
    object-fit: cover;
}
.social:hover{
  transform: translateY(-5px);
}

.pfp{
 object-fit: contain;
 width: 100%;
 height: 100%;

}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

.section{
    position: absolute;
    z-index: 10;
   
    height: 100%;
    width: 100%;
    top: 100vh;

}
.section p{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 35px;
    padding: 30px;
    border-radius: 10px;

    font-size: 1.3rem;
}
h3{
  display: flex;
  justify-content: center;
  align-items: center;
}


.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.about-text {
    width: 80%;
    color: white;
    border-radius: 10px;
    text-align: center;
    
    overflow: hidden;
    height: 220px; 
    transition: height 0.8s ease;
}

.about-text.expanded {
    height: 110vh; 
}

.extra-text {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-text.expanded .extra-text {
    opacity: 1;
}

.toggle-button {
    margin-top: 15px;
    padding: 10px 20px;
    margin-bottom: 25px;
    background-color: #1e3b7273;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-bottom: 10%;
    animation: graviti 5s infinite linear;
    z-index: 3;
    transition: all 0.5s ease;
}

#more-about {
  width: 80%;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 10px;
  display: none;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.hidden {
  display: none;
}

.informace{
  flex-direction: column;
  width: 25%;
}

.puvod{
  display: flex;  
  justify-content: space-evenly;
  width: 100%;
  height: 100%;
  align-items: center;
  object-fit: cover;
}
.puvod img{
  width: 15%;
  height: 35vh;
  border-radius: 5px;
}

#projects {
  text-align: center;
}

.interactive-projects {
  color: white;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 10px 10px;
  align-items: stretch; 
}

.project-card {
  position: relative;
  width: 25%;
  height: 50vh;
  background-color: #1e3b72;
  color: white;
  border-radius: 12px;
  padding-top: 10px;
  transition:  all 0.4s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.288);
  transition: ease-in-out 0.3s;
}

.project-card:hover{
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.616);
}

.project-card.active {
  background-color: #2a5298;
  padding-bottom: 50px;
  padding-right: 75px;
  padding-left: 75px;
}
.card-header{
    width: 100%;
    height: 15vh;
    border-bottom: 1px solid #ffffff9c;
    
}
.card-header img{
    width: 15%;
    height: 30%;
    object-fit: contain;
    z-index: 5;
}
.card-header h3{
    margin: auto;
    font-size: 2rem;
}
.card-body{
    width: 100%;
    height: 100%;

 
    position: relative;
}
.card-body img{
    width: 100%;
    height: 100%;    
    top: 10vh;
    object-fit: cover;

 
}

.project-list {
  position: relative;
  width:0%;
  top: -22vh;
  height: 14vh;
  opacity: 0;
  transition:  opacity 0.3s, transform 0.4s, height 0.8s, width 0.8s;
  overflow: hidden;
  background-color: #2a5298;
}


.project-card.active .project-list  {
  opacity: 1;
  height: 30vh;
  width: 100%;
  transition: ease-in-out 0.3s;
}

.popup-text{
    width: 100%;
    height: 20%;
    margin-top: 10px;
    background-color: #0c1a2b00;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.project-item {
width: 100%;

}

.project-item a {
  display: inline-block;
  margin-top: 5px;
  padding: 6px 12px;
  background-color: #ffffff22;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.project-item a:hover {
  background-color: #ffffff44;
}
.ProjB{
   margin-top: 15px;
    padding: 10px 20px;
    background-color: #1e3b7273;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-bottom: 10%;
    animation: graviti 5s infinite linear;
    z-index: 3;
     transition: all 0.5s ease;
}
.kontakt {

    margin: 80px auto 0;
    width: 70vw;
    padding: 10px;
    background-color: #1e3c72;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.kontakt h2 {
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #ffffff;
}
.kontakt input, textarea{
    background-color: #0c1a2b00;
    border: 1px solid #ff0000;
}

.kontakt-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kontakt-form input,
.kontakt-form textarea {
    padding: 15px;
    border: 1px solid #2a5298;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: #ffffff;
    outline: none;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #2a5298;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button img {
    width: 18px;
    height: 18px;
}

.submit-button:hover {
    background-color: #1e3c72;
}

.raketa{
    z-index: 5;
    width: 200%;
    height: 100%;
    transform: rotate(35deg) ;
    transition: ease-in 0.2s;
}
.raketa:hover{

    transform: rotate(-10deg);
    transition: ease-in 0.2s;
}

footer {
    width: 100%;
    text-align: center;
    height: 100%;
    padding: 0px;
    background-color: #19488a15;
    color: #999;
    margin-top: 3rem;
}

.abou-karty{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card {
  overflow: visible;
  width: 25%;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}

.content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 500ms;
  box-shadow: 0px 0px 10px 1px #000000ee;
  border-radius: 5px;
}

.front, .back {
  background-color: #0c1a2b;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}
.front-header{
  height: 35%;
  width: 70%;
  margin-left: 15%;
  margin-bottom: 7.5%
}
.front img{
    width: 95%;
    height: 55%;
    object-fit: cover;
    border-radius: 5px;
}

.back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back::before {
  position: absolute;
  content: ' ';
  display: block;
  width: 100%;
  height: 160%;
  background: linear-gradient(90deg, transparent,   #fafafa,  transparent);
  animation: borderSpin 5000ms infinite linear;
}

.back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: #1e3b72;
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card:hover .content {
  transform: rotateY(180deg);
}

.icon-karta{
    font-size: 5rem;
}

.front {
  transform: rotateY(180deg);
  color: white;
}

.front .front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-content .badge {
  background-color: #00000055;
  padding: 2px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  width: fit-content;
}

footer {
    width: 100%;
    text-align: center;
    height: 10%;
    padding: 0px;
    background-color: #19488a68;
    color: #999;
    margin-top: 3rem;
}

.footer-text{
  padding-top: 2%;
}

/*animace keyframes -------------------------------------------------------------------------------------------------------*/

@keyframes spin{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes graviti {
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-10px);
    }
    100%{
        transform: translateY(0px);
    }
}@keyframes graviti2 {
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(10px);
    }
    100%{
        transform: translateY(0px);
    }
}
@keyframes borderSpin {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

/*responzivita -------------------------------------------------------------------------------------------------------*/

@media (min-width: 320px) {
  .heroB{
    top: 350PX;
    margin-left: 0px;
    width: 320px;
    height: 320px; 
    
}
.card {
  overflow: visible;
  width: 75vw;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}
.hero{
    font-size: 1.1rem;
}


nav img{
    object-fit: contain;
    width: 70%;
    height: 25%;
}  

.project-card {
  width: 60%;

}
.project-card.active {
 
  padding-bottom: 35px;
  padding-right: 35px;
  padding-left: 35px;
}
.minNadpis{
    font-size: 1.8rem;
  }

.section p{
  font-size: 0.7rem;
  margin: 10px;
  padding: 0px;
}
.informace{
  font-size: 0.7rem;
}
.puvod img{
  width: 40%;
  height: 55%;
}
.about-text.expanded {
    height: 250vh; 
}
}
@media (min-width: 375px) {
  .heroB{
    top: 300PX;
    margin-left: -0px;
    width: 375px;
    height: 375px; 
    
}
.card {
  overflow: visible;
  width: 55vw;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}

.hero{
    font-size: 1.2rem;
  }
  .section p{
  font-size: 0.7rem;
  margin: 10px;
  padding: 0px;
}

.about-text.expanded {
    height: 245vh; 
}
}
@media (min-width: 400px) {
  .heroB{
    top: 300px;
    margin-left: 0;
    width: 400px;
    height: 400px; 
  }    
  .minNadpis{
    font-size: 1.5rem;
  }
}
@media (min-width: 430px) {
  .heroB{
    top: 300px;
    margin-left: 0%;
    width: 430px;
    height: 430px; 
    
}
.card {
  overflow: visible;
  width: 45vw;
  height: 30vh;
  margin: 2vw;
  padding: 10px;
}

.hero{
    font-size: 1.3rem;
  }
.about-text.expanded {
    height: 250vh; 
}
.section p{
  font-size: 0.8rem;
  margin: 10px;
  padding: 0px;
}
}
@media (min-width: 500px) {
  .heroB{
    top: 250px;
    margin-left: 35px;
    width: 500px;
    height: 500px; 
  }
  .hero{
    font-size: 1.5rem;
  }
  .section p{
  font-size: 1rem;
  margin: 10px;
  padding: 0px;
}
.about-text.expanded {
    height: 250vh; 
}



}
@media (min-width: 600px) {
  .heroB{
    top: 250px;
    margin-left: 0;
    width: 600px;
    height: 600px; 
  }

  .hero{
    font-size: 1.7rem;
  }
  .section p{
  font-size: 1.1rem;
  margin: 10px;
  padding: 0px;
}
.minNadpis{
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
    .kontakt {
        padding: 0px;
    }

    .submit-button {
        flex-direction: column;
        font-size: 1rem;
    }

    
}
@media (min-width: 700px) {
  .heroB{
    top: 150px;
    margin-left: 0;
    width: 700px;
    height: 700px; 
    
}
.project-card {
  width: 35%;
  height: 50vh;
  border-radius: 12px;
  padding-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.288);
  transition: ease-in-out 0.3s;
}
.about-text.expanded {
    height: 350vh; 
}
}
@media (min-width: 768px) {
  .heroB{
    top: 150px;
    margin-left: 0;
    width: 768px;
    height: 768px; 
    
}
.card {
  overflow: visible;
  width: 55vw;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}
.card {
  overflow: visible;
  width: 20vw;
  height: 35vh;
  margin: 2vw;
  padding: 10px;
}
.about-text.expanded {
    height: 115vh; 
}

}
@media (min-width: 800px) {
  .heroB{
    top: 100px;
    margin-left: 7.5%;
    width: 800px;
    height: 800px;    
}
.hero {

    font-size: 2.5rem;
}
.card {
  overflow: visible;
  width: 20vw;
  height: 35vh;
  margin: 2vw;
  padding: 10px;
}
.about-text.expanded {
    height: 150vh; 
}
.section p{
  font-size: 1.2rem;
  margin: 10px;
  padding: 0px;
}
}
@media (min-width: 1024px) {
  .heroB{
    top: 75px;
    margin-left: 0%;
    width: 1024px;
    height: 1024px; 
    
}
.card {
  overflow: visible;
  width: 55vw;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}
.hero{
    font-size: 3rem;
}
.card {
  overflow: visible;
  width: 20vw;
  height: 35vh;
  margin: 2vw;
  padding: 10px;
}
.about-text.expanded {
    height: 150vh; 
}
.section p{
  font-size: 1.4rem;
  margin: 10px;
  padding: 0px;
}
.informace{
  font-size: 1rem;
}
}
@media (min-width: 1200px) {
  .heroB{
    top: 75px;
    margin-left: 0%;
    width: 1200px;
    height: 1200px; 
    
}
.project-card {
  width: 25%;
  height: 50vh;
  border-radius: 12px;
  padding-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.288);
  transition: ease-in-out 0.3s;
}
.card {
  overflow: visible;
  width: 20vw;
  height: 35vh;
  margin: 2vw;
  padding: 10px;
}
.about-text.expanded {
    height: 150vh; 
}
}
@media (min-width: 1440px) {
  .heroB{
    top: 80px;
    margin-left: 0%;
    width: 1440px;
    height: 1440px; 
    
}
.card {
  overflow: visible;
  width: 25%;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}
.about-text.expanded {
    height: 150vh; 
}
.section p{
  font-size: 1.6rem;
  margin: 10px;
  padding: 0px;
}
.about-text.expanded {
    height: 200vh; 
}
    .puvod img {
        width: 30%;
        height: 25%;

    }

}
@media (min-width: 1600px) {
  .heroB{
    top: 150px;
    margin-left: 0%;
    width: 1600px;
    height: 1600px; 
    
}
.card {
  overflow: visible;
  width: 25%;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}

}
@media (min-width: 1700px){
  .heroB{
    width: 1700px;
    height: 1700px;
  }
}
@media (min-width: 1800px){
  .heroB{
    margin-left: 0;
    width: 1800px;
    height: 1800px;
  }
}
@media (min-width: 1920px) {
  .heroB{
    margin-left: 0%;
    top: 50px;
    width:1920px;
    height: 1920px; 
    
}

}
@media (min-width: 2560px) {
  .heroB{
    margin-left: 0%;
    top: 50px;
    width: 2560px;
    height: 2560px; 
}
.projekty-box{
  margin-bottom: 0%;
}
.card {
  overflow: visible;
  width: 25%;
  height: 50vh;
  margin: 2vw;
  padding: 10px;
}

.section p{
  font-size: 2rem;
  margin: 10px;
  padding: 0px;
}
.puvod img {
        width: 30%;
        height: 15%;
    }
}