/* ==========================================================================
VARIÁVEIS E RESET
========================================================================== */
:root {
    --primary: #0038b1;
    --primary-dark: #1d4ed8;
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-light: #cbcbcb;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
/* ==========================================================================
ESTRUTURA GLOBAL
========================================================================== */
section {
    padding: 2rem 1rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding: 1rem;
}

h2::after {
    content: "";
    display: block;
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

h3 {
    font-weight: 600;
    letter-spacing: -0.3px;
    
}

p {
    color: var(--text-muted);
}

.i {
    
    width: 3rem;
    height: 3rem;
    stroke: var(--text-main);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/*=================================================================
MENU MOBILE
 ===================================================================*/
.menu-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}


/*=======================================================================
BOTÕES
========================================================================= */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: relative;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}


/* ==========================================================================
   3. HERO
   ========================================================================== */
#hero-container {
    display: flex;
    min-height: 90vh;
    align-items: center;
    background: linear-gradient(
    to right,
    rgba(1, 21, 52, 0.9) 0%,
    rgba(0, 32, 70, 0.2) 100%,
    rgba(10, 30, 60, 0.8) 100%
),
url('/Pictures/BG.jpg') no-repeat center;

background-size: cover;
}
.hero {
    
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 20px;
    text-align: center;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    color: var(--bg-light);
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 30px
}



/* ==========================================================================
   5. SOBRE
   ========================================================================== */

#sobre p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 2rem;
    text-align: justify;
}

/* ==========================================================================
   6. SERVIÇOS
   ========================================================================== */
#servicos-container {
    background-color: #111827; 
    padding: 1rem;
    max-width: 100vw;
}
#servicos-container h2 {
    color: var(--bg-light)
}
#servicos {
    width: 100%;
    max-width: calc(3 * 280px + 2 * 24px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 1rem 0;
    
}

#servicos div {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

#servicos div:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: transparent;
}

#servicos h3 {
    margin-bottom: 10px;
}

/* ==========================================================================
   7. PROJETOS
   ========================================================================== */
#projeto-container {
    max-width: 100vw;
    background-color: #0038b1;
}
#projetos {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.projeto {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.projeto:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.projeto .imagem {
    width: 100%;
    height: 200px;

    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6) ;
}
.projeto .imagem img {
    width: 100%;
}

.projeto h3 {
    margin: 20px 20px 10px;
}

.projeto p {
    margin: 0 20px 20px;
}

/* ==========================================================================
   8. CONTATO
   ========================================================================== */
/* FORMULÁRIO */
#contato-container {
    background-color: #111827;
    padding: 2rem 1rem;
    width: 100%;
}

#contato-container h2 {
    padding-bottom: 1.5rem;
    color: var(--bg-light);
    text-align: center;
}

#wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;

    max-width: 1000px;
    margin: 0 auto; /* centraliza */
}

#contato-form p {
    color: #cbcbcb;
}
form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* INPUTS */
input, textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    background: var(--white);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    min-height: 120px;
    resize: none;
    
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.98);
}

.contato-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 400px;
}

.contato-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-main);
}
.contato-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contato-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.contato-item span {
    font-size: 14px;
    color: var(--text-muted);
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    padding: 40px 20px;
    background: var(--text-main);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
}

#button-home { 
    display: none;
}
#button-home a > i {
    stroke: #e5e7eb;
    size: 30rem;
}
/* ==========================================================================
   10. ANIMAÇÕES
   ========================================================================== */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   11. RESPONSIVO
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
     .hero-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .menu-toggle {
        display: block;
        color: black;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 200px;
        z-index: 1000;
        display: none;
        
        flex-direction: column;
        align-items: flex-start;
        
        padding: 20px;
        border: 1px solid #e5e7eb;
        
        transform: translateX(100%);
        transition: 0.3s;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-links a {
        margin: 15px 0;
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    #wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    #projetos {
        display: flex;
        flex-wrap: wrap;
        justify-content: stretch;
        align-items: center;
    }
    .projeto .imagem {
        width: 100%;
        height: auto;
    }
    
    #button-home { 
    border: var(--bg-light) 1px solid;
    
    width: 5rem;
    height: 5rem;
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
}
    #icon-house {
        stroke:var(--bg-light);

    }
}