/* -------------------------------------------------------------------- */
/*                                GENERAL                               */
/* -------------------------------------------------------------------- */


:root{
    --blue-300: #00b0bb;
    --blue-500: #336699;

    --gray-50: #f9f9f9;
    --gray-200: #7a828b;
    --gray-900: #2e343e;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-300) transparent;
}
body{
    font-family: "Titillium Web", Arial, sans-serif;
    background: white;
    box-sizing: border-box;
    overflow-x: hidden;
}
body, input, textarea, button{
    font-family: "Titillium Web", Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
}
a{
    text-decoration: none;
    color: black;
}
.iframe-container{
    position: relative;
    overflow: hidden;
    width: 80%;
    padding-top: 49.1%;
    margin: 0 auto;

    /*width: 100%;
    padding-top: 61.375%;*/
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0;

    z-index: 0;
}
.iframe-container .loading-icon {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}
.iframe-container .loading-icon i{
    animation: loading_animation 1.2s linear infinite;
    font-size: 3rem;
}


/* -------------------------------------------------------------------- */
/*                               ANIMATIONS                             */
/* -------------------------------------------------------------------- */


@keyframes loading_animation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }


/* -------------------------------------------------------------------- */
/*                                HEADER                                */
/* -------------------------------------------------------------------- */


header{
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0;

    z-index: 999999;
    position: relative;
}
header img{
    width: 15rem;
}
header button{
    background-color: var(--blue-500);
    color: white;
    padding: 0.3rem 0.7rem;
    font-size: 1.6rem;

    border-radius: 8px;
    border: 2px solid var(--blue-500);
    cursor: pointer;

    display: none;
}
header button:hover{
    background-color: transparent;
    color: var(--blue-500);
}
header nav{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    row-gap: 1rem;
    list-style: none;

    flex-wrap: wrap;
}
header nav a li{
    background-color: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.2s;

    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--blue-500);
    font-weight: 600;
}
header nav a li:hover{
    background-color: var(--blue-500);
    color: white;
}
header nav .home li{
    background-color: var(--blue-500);
    color: white;
}


/* -------------------------------------------------------------------- */
/*                                  MAIN                                */
/* -------------------------------------------------------------------- */


main{
    background: url(images/references-bg.png) 0 0 repeat;
    z-index: 0;
    position: relative;
}
main .main-title{
    background-color: var(--gray-900);
    padding: 1.5rem 0;

    z-index: 0;
    position: relative;
}
main .main-title h1,
main .main-title h2{
    width: 70%;
    margin: 0 auto;

    text-align: center;
    text-transform: uppercase;
    color: var(--blue-300);
    font-size: 3rem;
}
main .main-title h2{
    font-size: 2rem;
}
main .dashboard{
    width: 100%;
    background-color: var(--gray-50);

    border-bottom: 3.5rem solid var(--gray-900);
}
main .other-projects{
    padding: 3rem 0;
}
main .other-projects h2{
    font-size: 2.5rem;
    color: var(--blue-300);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
main .other-projects .projects {
    display: flex;
    justify-content: center;
    gap: 2rem;

    padding: 4rem;
}
main .other-projects .projects .item{
    flex: 1;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    padding: 1rem;

    border-radius: 8px;

    background-color: var(--gray-900);
}
main .other-projects .projects .item p{
    text-align: center;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    margin-top: 1.5rem;
}
main .other-projects .projects .item p span{
    display: block;
}
main .other-projects .projects .item img{
    width: 100%;
    border-radius: 4px;
}
main .other-projects .projects .item a{
    background-color: var(--blue-300);
    padding: 0.5rem 1.5rem;

    border-radius: 4px;
    border: 2px solid var(--blue-300);

    transition: all 0.2s;

    text-transform: uppercase;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    text-align: center;
}
main .other-projects .projects .item a:hover{
    background-color: transparent;
}

main .about h2{
    font-size: 2.5rem;
    color: var(--blue-300);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
main .about .videos{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;

    padding: 4rem;
}
main .about .videos .item{
    width: calc(50% - 2rem);
    max-width: calc(50% - 2rem);
    padding-top: 30%;
}
main .about .description{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;

    width: 70%;
    padding: 0 2rem;
    margin: 0 auto;
}
main .about .description p{
    color: var(--gray-200);
    font-size: 1.2rem;
    text-align: center;
    
}
main .about .description img{
    width: 100%;
}


/* -------------------------------------------------------------------- */
/*                                 FOOTER                               */
/* -------------------------------------------------------------------- */


footer{
    background-color: var(--gray-900);
    padding: 3rem 4rem;

    margin-top: 4rem;

    z-index: 0;
    position: relative;
}
footer h2{
    font-size: 2.5rem;
    color: var(--blue-300);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
footer .row{
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    color: white;
    
    margin-top: 3rem;
}
footer .row h3{
    text-transform: uppercase;
    font-size: 1.4rem;
    padding-bottom: 1rem;
}
footer .contacts{
    display: flex;
    flex-direction: column;
    gap: 3rem;

    max-width: 24%;
}
footer .contacts .socials .icons{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
footer .contacts .socials p a{
    background-color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 100%;
    color: var(--gray-900);
    border: 2px solid white;
    font-size: 1.5rem;
    transition: all 0.2s;
}
footer .contacts .socials p a:hover{
    color: white;
    background-color: transparent;
}
footer .map{
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}
footer .map .iframe-container{
    width: 100%;
    padding-top: 30%;
}


/* -------------------------------------------------------------------- */
/*                               RESPONSIVE                             */
/* -------------------------------------------------------------------- */


@media (max-width: 768px) {
    /* Se 16px = 1rem = 100%, 14px = ? */
    html {
        font-size: 87.5%;
    }
    header{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 3rem;
    }
    header img{
        width: 10rem;
    }
    header button{
        display: block;
    }
    header nav{
        display: none;
        position: absolute;
        top: 150px;
        left: 0;

        background-color: white;
        border: 1px solid var(--blue-500);
    
        width: 100%;
    }
    header nav a li{
        width: 100%;
        border-radius: 0px;
    }
    main .other-projects .projects{
        flex-direction: column;
        padding: 4rem 2rem;
        padding-bottom: 0;
    }
    main .other-projects .projects .item{
        width: 100%;
    }
    main .about{
        padding-top: 0;
    }
    main .about .videos{
        flex-direction: column;
    }
    main .about .videos .item{
        width: 100%;
        max-width: 100%;
        padding-top: 61.375%;
    }
    main .about .description{
        width: 100%;
    }
    footer .row{
        flex-direction: column;
        align-items: center;
        gap: 3rem;

        text-align: center;
    }
    footer .contacts{
        max-width: 100%;
    }
    footer .map{
        width: 100%;
    }
    footer .map .iframe-container{
        width: 100%;
        padding-top: 60%;
    }
}