@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    background-size: cover;
 }

 :root{
    --bg-color: #2a2a2a;
    --second-bg-color: #202020;
    --text-color:#fff;
    --second-color:#4D4D4D;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font:1.1rem;
}

html,body{
    background: var(--text-color);
    color: var(--bg-color);
    scroll-behavior: smooth;
}


 /* --------------------------------------------------------------- Hlavička --------------------------------------------------------------- */


.hlavicka{
    background-image: url(images/pozadi.png);
    background-size: cover;
    height: 100vh;
}

.jmeno{
    text-align: center;
    color: #fff;
    font-size: 7vh;
    padding: 10%;
}

.jmeno h1, h3{
    font-weight: 300;
}

.scroll-downs {
    position: absolute;
    right: 0;
    bottom: 2;
    left: 0;
    margin: auto;
    width :34px;
    height: 55px;
    transition: transform 0.3s ease;
  }

  .scroll-downs:hover{
    transform: scale(1.5);
    z-index: 2;
    transition: 1s;
  }

 .scroll-downs::after{
    transform: scale(-1.5);
    z-index: 2;
    transition: 1s;
 }



  .mousey {
    width: 3px;
    padding: 10px 15px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 25px;
    opacity: 0.75;
    box-sizing: content-box;
  }
  .scroller {
    width: 3px;
    height: 10px;
    border-radius: 25%;
    background-color: #fff;
    animation-name: scroll;
    animation-duration: 2.2s;
    animation-timing-function: cubic-bezier(.15,.41,.69,.94);
    animation-iteration-count: infinite;
  }
  @keyframes scroll {
    0% { opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0;}
  }

 /* --------------------------------------------------------------- Projekty --------------------------------------------------------------- */
 
 .nadpis-main h2{
    color: var(--second-bg-color); 
    text-align: center;
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    font-style: italic;
    margin-top: 5%;
}

.projekty-obsah{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, auto));
    align-items: center;
    gap: 2.5rem;
    margin-top: 5rem;
    margin-left: 3rem;
    margin-right: 3rem;
}

.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.vrstva{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.1), var(--second-bg-color));
    position: absolute;
    border-radius: 10px;
    flex-direction: column;
    left: 0;
    bottom: 0;
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}

.vrstva h5{
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vrstva p{
    font-size: 1.2rem;
    line-height: 1.8;
}

.fa-link{
    color: var(--second-bg-color);
    background-color: var(--text-color);
    margin-top: 20px;
    font-size: 20px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;  
    padding: 0.4rem; 
}

.row:hover img{
    transform: scale(1.1rem);
}

.row:hover .vrstva{
height: 100%;
}


/* --------------------------------------------------------------- Paticka --------------------------------------------------------------- */

.paticka{
    text-align: center;
    background-color: black;
    color: var(--text-color);
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    margin-top: 5%;
}

.paticka p{
    background-color: black;
}

.link{
    color: var(--text-color);
    text-decoration: none;
    font-style: italic;
    background-color: black;
}