html {
  scroll-behavior: smooth;
}

body{
  margin:0;
  padding: 0;
  background-color: #1B1E23;
  color: white;
  font-family: 'Poppins', sans-serif;
}

header{
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background-color: #2b2d31d8;
  backdrop-filter: blur(5px);
  z-index: 1000;
  height: 70px;
}

nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:0;
  margin: 0 auto;
  width: 80%;
  max-width: 100%;
  height: 100%;
}

#nav-links {
  display: flex;
  flex-direction: row;
  gap: 50px;
  list-style-type: none;
  margin: 0;
  padding: 0;
}


.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  margin: 4px 0;
  border-radius: 3px;
  transition: 0.3s ease;
}


.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1100;
}

.in-line{
  display: inline;
}

.container-logo{
  display: flex;
  gap: 20px;
  justify-content: center;
  text-align: center;
}

.logo{
  max-width: 80px;
  max-height: 80px;
  height: 80px;
  margin: auto;
  padding: auto;
}

nav h1{
  color: #ffffff ;
  font-weight: 500;
  margin: auto;
}
.small{
  font-size: 20px;
}

nav > ul{
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin: 0 20px;
  padding: 0;
  list-style-type: none;
}

nav a{
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: text-decoration 1.5s ease-in;
}

nav a:hover {
  text-decoration: underline solid;
}
/** main section  **/


.container{
  display:flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
  padding: 30px;
  border-bottom: 2px solid rgb(70, 70, 70);
}

.half{
  width: 50%;
  max-width: 600px;
  margin: 0 auto;
}

.portret{
  width: 400px;
  height: 400px;
  margin: 2rem auto;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 0 25px 5px rgb(63, 63, 63);;
}
.container-main-text{
  max-width: 600px;
  margin-top: 1rem;
}

.line{
  width: 62%;
  height: 5px;
  background-color: white;
}

.bold{
  font-weight: 800px;
}

.main-text{
  font-family: 'Poppins', sans-serif;
  font-size: 50px;
  font-weight: 800px;
  max-width: 400px;
  color:rgb(61, 130, 233);
}

.description{
  line-height: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.round{
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-top: 50px;
  background-color: rgb(35, 35, 187) ;
}

.position{
  margin-top: 3rem;
}

h2{
  letter-spacing: 2px;
  color: rgb(61, 130, 233);
}

.card p{
  font-size: 15px;
  font-weight: 200;
}

.card a{
  color: white;
  letter-spacing: 2px;
  font-size: 20px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.divider{
  width: 100%;
  height: 2px;
  margin: 2rem 0;
  background-color: rgb(70, 70, 70);
}

.socials-name{
  margin-top: 50px;
}

.socials{
  width: 30px;
  height: 30px;
  margin: 0 5px;
  border-radius: 25%;
  transition: transform 0.2s ease-in; 
}

.socials:hover{
  transform: scale(1.1);
  border-radius: 0%;
}

.List-of-socials{
  width: 40%;
}

/** Skills section**/

.skils-text{
  text-align: center;
  color:rgb(61, 130, 233);
  font-size: 40px;
}

.skills{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 80%;
  margin: 20px auto 0;
  padding-bottom: 30px;
  border-bottom: 2px solid rgb(70, 70, 70);
}

.skill-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 23%;
  height: 250px;
  margin: 10px auto;
  border-radius: 5%;
  background-color: #363a42;
  font-size: 25px;
  text-align: center;
}

.skill-box img {
  width: 40%;
  height: auto;
  margin-bottom: 10px;
}

.items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.items p{
  margin: 0;
}


/** about Page **/

.No-Line{
  border-bottom: none;
}
.no-space{
  padding: 0px;
  margin: 0px;
}

.about-divider{
  width: 80%;
  height: 2px;
  margin: 0 auto;
  background-color: rgb(70, 70, 70);
}

.projects {
  max-width: 80%;
  margin: 3rem auto;
  padding: 0 1rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.project-card {
  background-color: #363a42;
  border-radius: 12px;
  overflow: hidden;
  max-width: 22%;
  text-align: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-card img {
  width: 90%;
  height: auto;
  max-height: 200px;
  margin: 15px auto;
  display: block;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 1rem;
  color: #fff;
}

.project-card p {
  color: #8b949e;
  margin: 0 1rem 1rem 1rem;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  margin: 0 1rem 1rem 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #21262d;
  color: #ffffff;
  border: 1px solid #30363d;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #30363d;
}

.link-maturita{
  color: white;
  text-decoration-color:white;
}
.link-maturita:hover{
  color: rgb(61, 130, 233);
  text-decoration-color:rgb(61, 130, 233) ;
}

.spaceForm{
  width: 100%;
  height: 10vw;
}

.no-margin{
  margin-top: 0px;
}

.submitbtn{
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #2b2d31;
  color: #ffffff;
  border: 1px solid #30363d;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 95%; 
  box-sizing: border-box;
  justify-content: center;
}

.contact-input{
  padding: 10px;
  border-radius: 6px;
  background-color: #2b2d31;
  color: white;
  border: 1px solid #444;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.contact-textarea{
  padding: 10px;
  border-radius: 6px;
  background-color: #2b2d31;
  color: white;
  border: 1px solid #444;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.submitbtn{
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  align-self: center;
}
.submitbtn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/** Animation **/

.about {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: black;
  transition: transform 0.2s ease-in; 
}

.about:hover {
  transform: scale(1.01); /* zvětšení textu o 5 % */

}
.about-hover {
  opacity: 0;
  text-decoration: none;
  transform: translateX(-10px); /* Začíná víc vlevo */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about:hover .about-hover {
  opacity: 1;
  transform: translateX(0); /* Přiletí na místo */
  scale: 1.1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* Modal box */
.modal-content {
  background-color: #161b22;
  color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Close button */
.close {
  color: #aaa;
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

/** responsive  **/

@media screen and (max-width: 1550px) {
  .divider{
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 0;
    margin: 0 1vw;
  }

  .container-logo {
    justify-content: flex-start;
    margin-left: 10px;
    font-size: 18px;
  }

  .burger {
    display: flex;
    margin: auto;
    justify-content: end;
  }

  .header{
    width: 100%;
  }

  nav > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-left: 10px;
    margin-top: 10px;
  }

  nav {
    flex-wrap: wrap;
    gap: 20%;
  }

    #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    gap: 20px;
    background-color: #2b2d31;
    padding: 10px 0;
    z-index: 1000;
  }

  #nav-links.active {
    display: flex;
  }

  #nav-links li {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
  }

  .container-logo {
    gap: 10px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 16px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    width: 100%;

    padding: 20px 0;
  }

  .half {
    width: 100%;
    margin: 3vw auto;
  }

  .half.position {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Vertikální zarovnání */
    align-items: center;      /* Horizontální zarovnání */
    text-align: center;       /* Zarovnání textu */
  }

  .divider{
    width: 80%;
  }

  .portret {
    width: 250px;
    height: 250px;
    display :flex;
    justify-content: center;
  }

  .main-text {
    font-size: 30px;
    text-align: center;
    max-width: 100%;
  }

  .line {
    width: 100%;
    margin: 1rem 0;
    height: 2px;
  }

  .description {
    text-align: center;
    padding: 0 10px;
  }

  .card {
    padding: 0 10px;
  }
  .card h2{
    justify-content: center;
  }

  .List-of-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
  }

  .socials {
    width: 40px;
    height: 40px;
  }

  .socials-name{
    justify-self: center;
  }

  .skills {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .skill-box {
    width: 45%; /* místo 23% */
    height: 180px; /* menší výška */
  }

  .project-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .no-decoration{
    list-style-type: none;
  }

  .contact-form{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 95%; 
    box-sizing: border-box;
  }

  .contact-input{
    padding: 10px;
    border-radius: 6px;
    background-color: #2b2d31;
    color: white;
    border: 1px solid #444;
    width: 90%;
    margin-bottom: 1rem;
  }

  .contact-textarea{
    padding: 10px;
    border-radius: 6px;
    background-color: #2b2d31;
    color: white;
    border: 1px solid #444;
    width: 90%;
    margin-bottom: 1rem;
  }
  .submitbtn{
    align-self: center;
  }
}