body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: radial-gradient(circle at top, #0B1F3A, #050505 70%);
    overflow-x: hidden;
}

/* LOADER */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #222;
    border-top: 4px solid #FF6A00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5,5,5,0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;

    box-sizing: border-box; 
}



nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #FF6A00;
}


header h1 {
    color: #FF6A00;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
     padding: 0 4%;
    text-align: left;
    position: relative;

    background: linear-gradient(
        to right,
        rgba(5,5,5,0.75),
        rgba(5,5,5,0.4)
    ),
    url('assets/bg.jpg');

background-size: cover;
background-position: center;
background-repeat: no-repeat;

}

.hero div {
    max-width: 600px;
    z-index: 2;
}

.hero h2 {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 600;
}

.hero h2 span {
    color: #FF6A00;
}

.hero p {
    margin-top: 20px;
    color: #ccc;
    line-height: 1.6;
}


/* BOTÕES */
button {
    background: #FF6A00;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #ff7a1a;
    transform: translateY(-2px);
}

.outline {
    background: transparent;
    border: 2px solid #FF6A00;
}

.outline:hover {
    background: #FF6A00;
}


.outline {
    background: transparent;
    border: 2px solid #FF6A00;
}

/* SEÇÕES */
section {
    padding: 100px 40px;
}

.dark {
    background: #111;
}

/* GRID */
.grid {
    display: flex;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 30px;
    background: #0f1720;
    border: 1px solid rgba(255,106,0,0.2);
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #FF6A00;
}


/* FORM */
form {
    max-width: 500px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #222;
    border: none;
    color: white;
}

/* CTA */
.cta {
    display: inline-block;
    margin-top: 20px;
    background: #FF6A00;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,106,0,0.15), transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999; 
}
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}


button {
    background: linear-gradient(135deg, #FF6A00, #ff8c33);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,106,0,0.3);
}




.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,106,0,0.15), transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.hero h2 {
    font-size: 50px;
    color: #FF6A00;
    animation: slideUp 1s ease forwards;
}

.hero p {
    animation: slideUp 1.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button {
    background: linear-gradient(135deg, #FF6A00, #ff8c33);
    border: none;
    padding: 14px 26px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255,106,0,0.6);
}

.card {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.6s;
}

.logo {
    height: 98px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,106,0,0.5));
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

header {
    background: rgba(11,31,58,0.9);
    backdrop-filter: blur(10px);
}

/* FUNDO DA SEÇÃO SERVIÇOS */
.servicos-section {
    position: relative;
    background: linear-gradient(
        rgba(5,5,5,0.50),
        rgba(5,5,5,0.95)
    ),
    url('assets/cg.jpg'); 

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* GRID MAIS BONITO */
#servicos .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* CARD MELHORADO */
#servicos .card {
    background: rgba(15, 23, 32, 0.85);
    border: 1px solid rgba(255,106,0,0.2);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

/* TITULO DO CARD */
#servicos .card h3 {
    color: #FF6A00;
    margin-bottom: 10px;
    font-size: 18px;
}

/* TEXTO */
#servicos .card p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* HOVER */
#servicos .card:hover {
    transform: translateY(-6px);
    border-color: #FF6A00;
}

/* SEÇÃO AUTORIDADE */
.autoridade-section {
    position: relative;
    padding: 120px 40px;
    background: url('assets/sg.jpg') center/cover no-repeat;
}

/* OVERLAY ESCURO */
.autoridade-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,5,5,0.85);
}

/* CONTEÚDO */
.autoridade-section .container {
    position: relative;
    z-index: 2;
}

/* TÍTULO */
.autoridade-section h2 {
    margin-bottom: 40px;
}

/* GRID */
.autoridade-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* CARDS */
.autoridade-section .card {
    background: rgba(15, 23, 32, 0.85);
    border: 1px solid rgba(255,106,0,0.2);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

/* HOVER */
.autoridade-section .card:hover {
    transform: translateY(-6px);
    border-color: #FF6A00;
}

/* TITULO DO CARD */
.autoridade-section .card h3 {
    color: #FF6A00;
    margin-bottom: 10px;
}

/* TEXTO */
.autoridade-section .card p {
    color: #ccc;
    font-size: 14px;
}

.projetos-section {
    text-align: center;
}

/* BOTÕES */
.projetos-buttons button {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255,106,0,0.3);
    background: rgba(15,23,32,0.8);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

/* TEXTO PRINCIPAL */
.projetos-buttons {
    display: flex;
    justify-content: center; /* centraliza horizontal */
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* TEXTO "CLIQUE AQUI" */
.projetos-buttons button .sub {
    font-size: 11px;
    color: #FF6A00;
    margin-top: 4px;
    opacity: 0.8;
}

/* VIEWER */
.viewer {
    max-width: 1100px;
    margin: 40px auto;

    background: transparent; /* remove fundo */
    border: none; /* remove borda laranja */
    padding: 0; /* remove espaçamento interno */

    display: flex;
    justify-content: center;
    align-items: center;
}

model-viewer {
    width: 100%;
    height: 500px;
    background: transparent;
}

.descricao-projeto {
    margin-top: 15px;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

/* FUNDO DA SEÇÃO PROJETOS */
.projetos-section {
    position: relative;
    background: linear-gradient(
        rgba(5,5,5,0.50),
        rgba(5,5,5,0.95)
    ),
    url('assets/un.jpg'); 

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* GRID MAIS BONITO */
#servicos .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.linkedin {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
}

.linkedin:hover {
    text-decoration: underline;
}

/* FOTO */
.foto-contato {
    width: 120px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* BOTÃO WHATSAPP ABAIXO DA FOTO */
#contato .cta {
    display: inline-block;
    margin-top: 10px;
}

#contato {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#orcamento {
    position: relative;
    background: linear-gradient(
        rgba(5,5,5,0.50),
        rgba(5,5,5,0.95)
    ),
    url('assets/hp.jpg'); 

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#contato {
    position: relative;
    background: linear-gradient(
        rgba(5,5,5,0.80),
        rgba(5,5,5,0.95)
    ),
    url('assets/logo.jpg'); 

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* MOBILE */
@media (max-width: 768px) {

    /* HERO */
    .hero {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    /* HEADER */
    header {
        flex-direction: column;
        padding: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 5px;
        font-size: 14px;
    }

    /* SEÇÕES */
    section {
        padding: 60px 20px;
    }

    /* BOTÕES PROJETOS */
    .projetos-buttons {
        gap: 10px;
    }

    .projetos-buttons button {
        width: 100%;
        max-width: 300px;
    }

    /* VIEWER */
    model-viewer {
        height: 300px;
    }

    /* CONTATO */
    .foto-contato {
        width: 120px;
        display: block;
        margin: 10px auto;
    }

    .cta {
        display: block;
        text-align: center;
        margin: 15px auto;
    }
}