:root{
    --bg:#0d2b45;
    --bg2:#123c5f;
    --card:#163d60;
    --primary:#ffffff;
    --accent:#ff4747;
    --yellow:#f5c542;
    --blue:#42a5ff;
    --text:#dce8f4;
    --radius:16px;
    --shadow:0 15px 35px rgba(0,0,0,.25);
    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--primary);
    line-height:1.6;
}

img{
    width:100%;
    display:block;
}

a{
    color:#fff;
    text-decoration:none;
    transition:var(--transition);
}

.container{
    width:min(1200px,92%);
    margin:auto;
}

/* HEADER */

header{
    position:sticky;
    top:0;
    background:#082238ee;
    backdrop-filter:blur(12px);
    z-index:999;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo-icon{
    font-size:32px;
}

.logo h2{
    font-size:26px;
    font-weight:700;
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    position:relative;
    font-weight:500;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--accent);
    transition:var(--transition);
}

nav a:hover::after{
    width:100%;
}

#menuBtn{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:30px;
    cursor:pointer;
}

/* HERO */

.hero{
    padding:70px 0;
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.hero-image img{
    border-radius:25px;
    box-shadow:var(--shadow);
}

.hero-content h1{
    font-size:52px;
    line-height:1.2;
    margin-bottom:20px;
}

.hero-content h2{
    color:var(--yellow);
    margin-bottom:30px;
    font-size:34px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.card{
    background:var(--card);
    border:1px solid rgba(255,255,255,.12);
    border-radius:var(--radius);
    padding:30px 22px;
    text-align:center;
    transition:var(--transition);
    box-shadow:var(--shadow);
}

.card:hover{
    transform:translateY(-8px);
}

.icon{
    width:70px;
    height:70px;
    margin:auto;
    margin-bottom:15px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    background:rgba(66,165,255,.2);
}

.card h3{
    font-size:17px;
    font-weight:500;
    color:var(--text);
    min-height:90px;
}

.card button{
    margin-top:18px;
    border:none;
    background:var(--blue);
    color:#fff;
    padding:12px 22px;
    border-radius:40px;
    cursor:pointer;
    transition:var(--transition);
    font-weight:600;
}

.card button:hover{
    background:var(--accent);
    transform:scale(1.05);
}

/* SLOGAN */

.slogan{
    text-align:center;
    padding:80px 20px;
}

.slogan h2{
    font-size:42px;
    font-weight:800;
}

.slogan .red{
    color:var(--accent);
}

.slogan p{
    margin-top:12px;
    font-family:'Caveat',cursive;
    color:var(--yellow);
    font-size:48px;
}
/* ===========================
   RESPONSIVIDADE
=========================== */

@media (max-width: 992px){

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-image{
        max-width:650px;
        margin:auto;
    }

    .hero-content h1{
        font-size:42px;
    }

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:768px){

    #menuBtn{
        display:block;
    }

    nav{
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:var(--bg2);
        flex-direction:column;
        align-items:center;
        gap:25px;
        padding:30px 0;
        display:none;
        box-shadow:0 10px 25px rgba(0,0,0,.25);
    }

    nav.active{
        display:flex;
    }

    .hero{
        padding:50px 0;
    }

    .hero-content h1{
        font-size:34px;
    }

    .hero-content h2{
        font-size:28px;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .card{
        padding:25px;
    }

    .card h3{
        min-height:auto;
    }

    .slogan h2{
        font-size:30px;
    }

    .slogan p{
        font-size:36px;
    }

}

@media (max-width:480px){

    .logo h2{
        font-size:22px;
    }

    .hero-content h1{
        font-size:28px;
    }

    .hero-content h2{
        font-size:24px;
    }

    .icon{
        width:60px;
        height:60px;
        font-size:28px;
    }

    .card button{
        width:100%;
    }

    .slogan{
        padding:50px 15px;
    }

    .slogan h2{
        font-size:24px;
    }

    .slogan p{
        font-size:30px;
    }

}

/* ===========================
   ANIMAÇÕES
=========================== */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.hero-image,
.hero-content,
.card,
.slogan{
    animation:fadeUp .8s ease forwards;
}

.card:nth-child(2){
    animation-delay:.1s;
}

.card:nth-child(3){
    animation-delay:.2s;
}

.card:nth-child(4){
    animation-delay:.3s;
}

button,
a{
    transition:all .3s ease;
}

button:hover{
    cursor:pointer;
}