:root {
    --primary: #0056b3;
    --secondary: #28a745;
    --active-orange: #ff8c00; 
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --guama: #004a87;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Modal de Geotecnologias */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow);
}

.modal-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 25px auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.close-modal {
    position: absolute;
    right: 25px; top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
}
.modal-content h2 { color: var(--primary); margin-bottom: 20px; border-left: 5px solid var(--secondary); padding-left: 15px; }
.modal-content h3 { color: var(--secondary); margin: 20px 0 10px; font-size: 1.1rem; }
.modal-content p { font-size: 0.95rem; line-height: 1.7; color: #475569; margin-bottom: 15px; }

#installApp {
    display: none;
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 9999;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    font-weight: 700;
    align-items: center;
    gap: 10px;
}

.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 90px; right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #FFF; }

header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-header { height: 60px; width: auto; display: block; }

nav ul { display: flex; list-style: none; align-items: center; gap: 45px; }
        
nav ul li a { 
    text-decoration: none; 
    color: #64748b; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: 0.3s; 
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

nav ul li a.active { color: var(--active-orange); }

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background-color: var(--active-orange);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn { from { width: 0; } to { width: 100%; } }

.btn-main {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white !important; box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2); }
.btn-guama { background: var(--guama); color: white !important; cursor: pointer; border: none; }

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 340px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1100;
    top: 100%; left: 0;
    border: 1px solid #eee;
    padding: 10px 0;
    margin-top: 10px;
}
.dropdown-content.show { display: block; animation: fadeIn 0.3s ease; }
.dropdown-content a { color: var(--dark) !important; padding: 12px 20px; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 0.85rem; transition: 0.2s; font-weight: 500; }
.dropdown-content a i { width: 25px; color: var(--secondary); font-size: 1.1rem; text-align: center; }
.dropdown-content a:hover { background-color: #f1f5f9; color: var(--primary) !important; padding-left: 25px; }

/* RESPONSIVIDADE PARA O HEADER */
@media (max-width: 950px) {
    header { 
        flex-direction: column; 
        padding: 1rem 5%; 
        gap: 10px;
    }
    .logo-header { height: 35px; }
    nav { width: 100%; }
    nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px; 
    }
    nav ul li a { font-size: 0.85rem; }
    .btn-main { padding: 6px 12px; font-size: 0.8rem; }
    .dropdown-content { position: fixed; left: 5%; right: 5%; width: auto; min-width: unset; top: 160px; }
    
    /* Ajuste para o conteúdo não ficar embaixo do header no mobile */
    section#home { padding-top: 180px !important; }
}

section { padding: 120px 8% 60px; min-height: 80vh; }

#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--primary); margin-bottom: 1rem; line-height: 1.2; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 30px; }
.product-card { background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow); transition: 0.3s; border: 1px solid #e2e8f0; }
.product-card:hover { transform: translateY(-5px); border-color: var(--secondary); }
.product-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 1rem; display: block; }
.product-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.2rem; }
.product-card p { font-size: 0.9rem; color: #475569; line-height: 1.6; }

#clientes {
    position: relative;
    padding: 80px 8%;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.clientes-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(15, 23, 42, 0.75); z-index: 1; }
.clientes-content { position: relative; z-index: 2; width: 100%; text-align: center; color: white; }
.carousel-container { display: flex; align-items: center; justify-content: center; margin-top: 40px; gap: 20px; }
.carousel-track-container { overflow: hidden; width: 100%; max-width: 600px; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.client-slide { min-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.client-slide img { max-width: 320px; height: auto; margin-bottom: 25px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); }
.client-slide .btn-webgis { background: var(--secondary); color: white; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.client-slide .btn-webgis:hover { transform: scale(1.05); background: #1e7e34; }
.nav-btn { background: rgba(255,255,255,0.15); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.nav-btn:hover { background: var(--primary); }

.contact-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.info-card { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; text-decoration: none; color: inherit; transition: 0.3s; }
.contact-item:hover { transform: translateX(5px); }
.contact-item i { width: 50px; height: 50px; background: #f0fdf4; color: var(--secondary); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.3rem; }
.contact-item div p { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.contact-item div span, .contact-item div a { text-decoration: none; color: inherit; font-weight: 600; font-size: 1.1rem; }
.map-box { height: 400px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eee; }

footer { background: var(--dark); color: white; padding: 4rem 2rem; text-align: center; }