/*Import fonts*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Protest+Riot&display=swap');


/*CSS color variables*/
:root{
    --main-color: #388fe1;
    --scnd-color: #222324;
    --light-color: #f2f2f2;
}

/*Scroll config*/
html{
    scroll-behavior: smooth;
    scroll-padding-top: 81px;
}

/*Fonts*/
body{
    font-family: 'Nunito', cursive;
}

/*Reset margins*/
h1, h2, h3, h4, p{
    margin: 0;
}

/*<p> config*/
p{
    text-wrap: pretty;
    color: var(--scnd-color);
}

/*Header and navigation bar*/
header{
    background-color: var(--scnd-color);
    color: white;
    
    position: fixed;
    width: 100%;
    
    display: flex;
    justify-content: space-between;

    box-sizing: border-box;
    align-items: center;
    padding: 1rem 5rem;
}

header img{
    height: 40px;
    user-select: none;
}

nav ul{
    list-style: none;
    text-transform: uppercase;
    
    display: flex;
    gap: 2rem;
    user-select: none;
}

nav a{
    text-decoration: none;
    color: #757577;
    position: relative;
    transition: all 0.5s ease;
}


nav a::after, nav a::before{
    content: '';
    border-bottom: 2px solid var(--light-color);
    position: absolute;
    width: 10%;
    bottom: -5px;
    opacity: 0;
    transition: all 0.5s ease;
}

nav a::before{
    left: 50%;
}

nav a::after{
    right: 50%;
}

nav a:hover{
    color: var(--light-color);
}

nav a:hover::after, nav a:hover::before{
    opacity: 1;
    width: 50%;
}

/*Article & sections default settings*/

article{
    padding-top: 81px;
}

section{
    padding: 3rem 5rem;
}

/* SECTION #INDEX */

#index{
    width: 100%;
    height: 87dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;

    background-image: url("../source/image/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.index-content{
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.idx-rt{
    width: 40%;
}

.idx-lt{
    width: 20%;
    min-width: 270px;
    display: flex;
    align-items: center;
}

.idx-lt img{
    width: 100%;
    margin: auto 0;
}

.idx-ttl{
    display: flex;
    gap: 2rem;
    align-items: center;
}

h1{
    font-weight: 800;
    font-size: 5rem;
}

.idx-ttl img{
    height: 30px;
    padding: 1rem;
    background-color: #222324;
    border-radius: 10px;
}

.idx-txt h2{
    font-weight: 500;
    margin-top: 1rem;
    font-size: 3rem;
    text-wrap: pretty;
}

.idx-txt span{
    font-weight: bold;
}

.idx-txt p{
    margin: 1rem 0;
    font-size: 1.3rem;
}

.idx-txt a{
    display: inline-block;
    margin: 1rem 1rem;
    padding: 1rem;

    color: var(--light-color);
    font-weight: 700;
    font-size: 1.3rem;

    text-decoration: none;
    background-color: var(--main-color);

    border-radius: 30px;

    transition: all 500ms ease;
}

.idx-txt a:hover{
    background-color: #005fb8;
}

/* SECTION #USE */
#use{
    background-color: var(--scnd-color);
    color: white;
}
#use h2{
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.use-cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;

    margin-top: 2rem;
    flex-direction: row;

    width: 50%;
    margin: 0 auto;
}

.u-card{
    background-color: #f2f2f2;
    padding: 1rem 2rem;
    border-radius: 20px;

    width: 158px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;

    box-sizing: border-box;

    transition: all 250ms ease;

}

.u-card i, .u-card h4{
    font-size: 1rem;
    color: var(--scnd-color);
    user-select: none;
    transition: all 250ms ease;
}

.u-card i{
    font-size: 3rem;
    color: #494949;
}

.u-card:hover i{
    transform: rotate(10deg);
    color: var(--main-color);
}

.u-card:hover h4{
    font-weight: 1000;
}

.u-txt p{
    text-align: center;
    font-size: 1.5rem;
    color: var(--light-color);
}

/* SECTION #FUNCTIONS */

#functions{
    color: var(--scnd-color);
}

#functions h2{
    font-size: 3rem;
}

#functions p, #functions h4{
    color: white;
}

#functions h4{
    padding: 0.5rem 2rem 2rem 0;
}

#functions p{
    padding: 0 1.3rem;
    font-weight: lighter;
}

.func-dvs{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    margin-top: 4rem;
    padding: 0 10rem;
}

.func-dvs div{
    width: 350px;
    margin: 0 auto;
    padding-bottom: 2rem;

    border-radius: 20px;

    background-color: var(--scnd-color);

}

.func-dvs div img{
    width: 100%;
    object-fit: cover;
    height: 150px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.func-dvs div h4{
    font-size: 1.5rem;
    padding: 1rem 0;
    text-align: center;
}

#download{
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.down-vid{
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 10px;
}

.down-txt{
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 40%;
}

.down-txt p{
    font-size: 5rem;
    margin-right: 5rem;
    font-family: "Protest Riot", sans-serif;
}

.down-txt img{
    width: 20%;
    transform: rotate(-45deg);
}

/*Footer Style*/

footer{
    background-color: var(--scnd-color);
    padding: 2rem 5rem;
    text-align: center;
}

footer p{
    color: #999999;
    user-select: none;
    transition: all 250ms ease;
}

footer p:hover{
    color: var(--light-color);
}