:root {
    /* Color Palette - Updated Brand Colors */
    --primary: #284A8E;
    --primary-light: #5DA8DC;
    --primary-dark: #1e366b;
    --secondary: #53A654;
    --secondary-light: #76c777;
    --secondary-dark: #3a753b;
    --accent: #ffeb3b;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --glass: rgba(196, 196, 196, 0.01);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
#main-header {
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Espaçamento para o conteúdo não ficar por baixo do header fixo */
body {
    padding-top: var(--header-height);
}

#main-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

#main-logo {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

#main-logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

#navbar ul {
    display: flex;
    gap: 30px;
}

#navbar ul li {
    position: relative;
}

#navbar ul li a {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

#navbar ul li a:hover {
    color: var(--secondary);
}

/* Dropdown Sub-menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.8);
    /* Cinza Liquid Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 260px;
    border-radius: var(--radius);
    padding: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1002;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown li {
    width: 100%;
    margin: 0 !important;
}

.dropdown li a {
    padding: 12px 25px !important;
    font-size: 0.85rem !important;
    color: var(--primary-dark) !important;
    display: block !important;
    transition: all 0.2s ease !important;
}

.dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary) !important;
    padding-left: 30px !important;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 77, 64, 0.4);
}

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

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

/* Hero Section */
#hero {
    padding: 100px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(0, 172, 193, 0.05), transparent);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Header Logo Footer */
.logo-footer {
    display: block;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s ease;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-3px);
}


.badge {
    background: rgba(0, 172, 193, 0.1);
    color: var(--secondary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.glass-box {
    background: var(--white);
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-visual .glass-box {
    border: none;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(40, 74, 142, 0.25), 0 10px 20px -5px rgba(40, 74, 142, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.hero-visual .glass-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px -15px rgba(40, 74, 142, 0.35), 0 20px 40px -10px rgba(40, 74, 142, 0.2);
}

.glass-box img,
#hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
    border-radius: 2px;
}

#sobre {
    position: relative;
    background-image: url('../assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--primary-dark);
    overflow: hidden;
}


#sobre .container {
    position: relative;
    z-index: 2;
}

#sobre h2,
#sobre h3,
#sobre p {
    color: var(--primary-dark);
}

#sobre .section-header h2,
#sobre .stat-item h3,
#sobre .stat-item p {
    color: var(--primary-dark);
}

#sobre .line {
    background: var(--secondary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary);
}

.stat-item p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 2rem;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    display: block;
}

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

.product-img {
    height: 250px;
    background: #eee;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-text {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-box {
    background: var(--primary-dark);
    border-radius: var(--radius);
    padding: 60px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    /* Reduzido de 20px para alinhar o texto acima mais próximo */
    color: var(--white) !important;
}

.contact-info p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Contact Form Updates */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item .text strong {
    display: block;
    font-size: 1.1rem;
}

.info-item .text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    width: 100%;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px;
    margin-top: 50px;
}

.partner-logo {
    max-width: 180px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-logo img {
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 40px;
    }

    .partner-logo {
        max-width: 140px;
    }
}

/* Footer Section */

/* Footer */
#main-footer {
    background: var(--primary);
    /* Azul da marca */
    color: var(--white);
    padding: 40px 0 20px;
    /* Reduzido verticalmente */
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    /* 4 colunas */
    gap: 40px;
    margin-bottom: 30px;
    /* Reduzido */
    align-items: start;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-icon .fa-linkedin-in {
    color: #0077b5;
}

.social-icon .fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Ensure the gradient is visible on the icon */
    display: inline-block;
}

.social-icon:hover .fa-linkedin-in {
    filter: brightness(1.2);
}

.social-icon:hover .fa-instagram {
    filter: brightness(1.1);
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--secondary-light);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--white) !important;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.footer-contact ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background: #1eb956;
    color: white;
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    /* Reduzido */
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.75rem;
    /* Menor */
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Page Helpers */
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.active {
    color: var(--secondary) !important;
    position: relative;
}

.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

.mobile-only {
    display: none;
}

/* Media Queries Responsividade */
@media (max-width: 992px) {
    #navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    #navbar.active {
        right: 0;
    }

    #navbar ul {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        /* Reduzido para caber o dropdown */
        width: 100%;
        padding: 20px 0;
    }

    #navbar ul li {
        width: 100%;
    }

    #navbar ul li a {
        font-size: 1.1rem;
        justify-content: center;
    }

    #navbar .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        min-width: 100%;
        padding: 5px 0;
        display: none;
        /* Escondido por padrão no mobile */
    }

    #navbar .has-dropdown:hover .dropdown {
        display: block;
    }

    #navbar .dropdown li a {
        font-size: 0.9rem !important;
        color: var(--text-muted) !important;
        padding: 8px 0 !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .cta {
        display: none;
        /* Hide desktop CTA on mobile or move to menu */
    }

    /* Transform burger to X when active */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .products-grid,
    .card-grid,
    .card-grid-2,
    .about-grid,
    #hero .container {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 40px;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

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

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .section-padding {
        padding: 60px 0;
    }

    .contact-box {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    #main-logo {
        height: 38px;
    }
}

/* SECTION MENU - APLICACOES */
.section-menu {
    padding: 100px 20px;
    text-align: center;
}

.section-menu h1 {
    font-size: 36px;
    color: var(--primary-dark);
}

.section-menu p {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.app-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.8s ease;
}

.app-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
    text-align: left;
}

.app-card span {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(40, 74, 142, 0.2);
}

.app-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

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

    .app-card {
        height: 250px;
    }
}