*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

:root{
    --azul:#1d4f91;
    --azul-claro:#39b6e6;
    --amarelo:#f4c542;
    --vermelho:#e53935;
    --escuro:#222;
    --cinza:#f5f7fa;
    --branco:#fff;
}

body{
    color:var(--escuro);
    background:var(--branco);
    line-height:1.6;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:100px 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06);

    z-index: 999;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 90px;
}

.nav img {
    height: 75px;
    transition: transform .3s ease;
}

.nav img:hover {
    transform: scale(1.03);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    position: relative;

    text-decoration: none;
    color: var(--escuro);

    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .3px;

    transition: color .3s ease;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: var(--azul);

    transition: width .3s ease;
}

nav a:hover {
    color: var(--azul);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;

    border-radius: 999px;

    text-decoration: none;

    font-weight: 600;
    font-size: .95rem;

    background: var(--azul);
    color: #fff;

    box-shadow:
        0 10px 20px rgba(0, 102, 255, 0.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.btn:hover {
    background: var(--azul-claro);

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(0, 102, 255, 0.35);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 992px) {

    .nav {
        min-height: 80px;
    }

    nav {
        gap: 1.2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: .9rem;
    }
}

@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        gap: 1rem;

        padding: 1rem 0;
    }

    .nav img {
        height: 65px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {

    nav {
        gap: .8rem;
    }

    nav a {
        font-size: .9rem;
    }

    .btn {
        padding: 12px 18px;
    }
}

/* HERO */

.hero{
    height:100vh;
    background:
    linear-gradient(
        rgba(29,79,145,.85),
        rgba(0,0,0,.75)
    ),
    url("/images/herobackground.png");

    background-size:cover;
    background-position:center;
    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-content{
    position:relative;
    color:white;
    max-width:850px;
    padding:20px;
}

.hero-content span{
    display:inline-block;
    background:var(--amarelo);
    color:#000;
    padding:8px 18px;
    border-radius:50px;
    font-size:.9rem;
    font-weight:700;
    margin-bottom:20px;
}

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

.hero p{
    font-size:1.2rem;
    opacity:.95;
}

.hero-buttons{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:15px;
}

.btn-outline{
    border:2px solid white;
    color:white;
    text-decoration:none;
    padding:12px 25px;
    border-radius:8px;
    transition:.3s;
}

.btn-outline:hover{
    background:white;
    color:var(--azul);
}

/* TITULOS */

h2{
    text-align:center;
    margin-bottom:40px;
    color:var(--azul);
    font-size:2.5rem;
}

/* SOBRE */

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

.sobre p{
    font-size:1.05rem;
}

.stats{
    display:grid;
    gap:20px;
}

.stats div{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    text-align:center;
}

.stats h3{
    color:var(--azul);
    font-size:2rem;
}

/* SERVIÇOS */

.servicos{
    background:var(--amarelo);
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.card{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    border-top:5px solid var(--azul);
}

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

.card h3{
    color:var(--azul);
    margin-bottom:10px;
}

/* =========================
   PORTFÓLIO
========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* =========================
   CARD
========================= */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);

    transition: transform .3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

/* =========================
   IMAGEM
========================= */

.gallery-item img {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(.85);
}

/* =========================
   OVERLAY
========================= */

.overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 24px;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 45%,
            rgba(0, 0, 0, 0.05) 100%
        );

    opacity: 0;

    transition: opacity .35s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* =========================
   TEXTO
========================= */

.overlay h3,
.overlay p {
    transform: translateY(20px);
    transition: .35s ease;
}

.gallery-item:hover .overlay h3,
.gallery-item:hover .overlay p {
    transform: translateY(0);
}

.overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: .95rem;
    line-height: 1.5;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 240px;
    }

    .overlay {
        opacity: 1;
    }

    .overlay h3,
    .overlay p {
        transform: translateY(0);
    }
}

/* DIFERENCIAIS */

.diferenciais{
    background:linear-gradient(
        135deg,
        var(--azul),
        var(--azul-claro)
    );
}

.diferenciais h2{
    color:white;
}

.diferenciais .card{
    border:none;
}

.diferenciais .card h3{
    text-align:center;
}

/* DEPOIMENTOS */

.depoimentos{
    background:var(--cinza);
}

.depoimentos .card{
    border-top:5px solid var(--amarelo);
    text-align: center;
}

/* CONTATO */

.contato{
    background:white;
}

form{
    max-width:700px;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:15px;
}

input,
textarea{
    padding:16px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    transition:.3s;
}

input:focus,
textarea:focus{
    border-color:var(--azul);
}

textarea{
    resize:none;
    height:180px;
}

button{
    background:var(--azul);
    color:white;
    border:none;
    padding:16px;
    border-radius:10px;
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:var(--azul-claro);
}

/* FOOTER */

footer{
    background:var(--escuro);
    color:white;
    text-align:center;
    padding:30px;
}

/* RESPONSIVO */

@media(max-width:900px){

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

    .hero h1{
        font-size:3rem;
    }
}

@media(max-width:768px){

    nav{
        display:none;
    }

    .btn{
        display:none;
    }

    .hero{
        padding:0 20px;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    h2{
        font-size:2rem;
    }
}