:root {
    /* Palette */
    --color-blue-dark: #0a1e3b;            /* Deep blue from logo */
    --color-blue-primary: #0066cc;         /* Primary logo blue */
    --color-blue-light: #4da6ff;           /* Light blue accent */
    --color-cyan: #00e5ff;                 /* Innovation accent */

    --color-gray-warm-light: #f5f5f7;      /* Background light */
    --color-gray-warm-medium: #e1e1e6;     /* Borders/Separators */
    --color-gray-text: #86868b;            /* Secondary text */
    --color-text-dark: #1d1d1f;            /* Primary text */
    --color-white: #ffffff;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(10, 30, 59, 0.9) 0%, rgba(0, 102, 204, 0.85) 100%);
    --gradient-text: linear-gradient(90deg, var(--color-blue-primary), var(--color-cyan));

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}



/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

p {
    font-size: 1.1rem;
    color: var(--color-gray-text);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--color-blue-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-blue-primary);
    color: var(--color-blue-primary);
}

.btn-secondary:hover {
    background: var(--color-blue-primary);
    color: var(--color-white);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    display: flex;
    align-items: center;
}

/* Blue dot before menu items */
.nav-link::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-blue-primary);
    border-radius: 50%;
    margin-right: 8px;
}

.nav-link:hover {
    color: var(--color-blue-primary);
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-blue-primary);
    color: var(--color-text-dark);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.lang-btn:hover {
    background-color: var(--color-blue-primary);
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: 0.3s;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
    background: #0c2f62 !important;   /* fundo azul escuro */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.55;
    z-index: -1 !important;
}

.hero #bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;          /* atrás do overlay/texto */
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

/* ---------------- SECÇÕES COM FUNDO ANTERIOR ---------------- */
.values,
.services,
.clients,
.about {
    background-color: #f5f7fa;
    background-image: url('../img/bg-lines.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* Values Section */
.values {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--color-white);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--color-blue-primary);
    margin-bottom: 20px;
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    border-color: rgba(0, 102, 204, 0.2);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.12);
    transform: translateY(-5px);
}

.service-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 25px;
    border-radius: 16px;
    display: block;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-blue-dark);
    width: 100%;
    text-align: left;
}

.service-card p {
    padding: 0;
    width: 100%;
    text-align: left;
    color: var(--color-gray-text);
}

/* Clients Section */
.clients {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
    position: relative;
}

.clients::before,
.clients::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients::before {
    left: 0;
    background: linear-gradient(to right, #f5f7fa 0%, rgba(245, 247, 250, 0) 100%);
}

.clients::after {
    right: 0;
    background: linear-gradient(to left, #f5f7fa 0%, rgba(245, 247, 250, 0) 100%);
}

.slider {
    height: 150px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 50px;
}

.slide-track {
    display: flex;
    width: calc(250px * 14);
    animation: scroll 40s linear infinite;
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}

.slide img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    -webkit-box-reflect: below 5px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.2));
}

.slide:hover img {
    filter: grayscale(100%);
    opacity: 0.6;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
}

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

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: var(--color-blue-dark);
}

/* Final CTA / Contact Form */
.final-cta {
    padding: var(--spacing-xl) 0;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 30, 59, 0.95);
    backdrop-filter: blur(5px);
}

.final-cta h2 {
    color: var(--color-white);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue-light);
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.main-footer {
    background-color: #051020;
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-center {
    flex: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
}

.footer-contact-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-blue-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-gray-text);
}

.close-modal:hover {
    color: var(--color-text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 40px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .about-container {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        flex: auto;
    }
}

/* SECÇÕES COM FUNDO ANTERIOR */
.values,
.services,
.clients,
.about {
    background: linear-gradient(to bottom, #f7f8fa 0%, #eceef1 100%);
}

/* final-cta e footer escuros */
.final-cta {
    padding: var(--spacing-xl) 0;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 30, 59, 0.95);
    backdrop-filter: blur(5px);
}

.main-footer {
    background-color: #051020;
    color: #fff;
}

#hero-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}