/* Variáveis CSS */
:root {
    --primary-color: #4CAF50;
    /* Verde médio */
    --secondary-color: #81C784;
    /* Verde claro */
    --background-color: #F1F8E9;
    /* Verde muito claro */
    --text-primary-color: #2E7D32;
    /* Verde escuro */
    --text-secondary-color: #555555;
    --white-color: #FFFFFF;
    --gradient-bg: linear-gradient(135deg, #388E3C 0%, #2E7D32 50%, #1B5E20 100%);
    --font-inter: 'Inter', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text-secondary-color);
    background-color: var(--background-color);
    background-image: linear-gradient(rgba(241, 248, 233, 0.65), rgba(241, 248, 233, 0.75)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Container para centralizar conteúdo */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tipografia */
h1,
h2,
h3 {
    font-family: var(--font-poppins);
    color: var(--text-primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--text-primary-color);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-bg);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.btn-secondary {
    background-color: #388E3C;
    color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* HEADER */
.main-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.sticky {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo a {
    font-family: var(--font-poppins);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary-color);
}

.main-nav .nav-list {
    list-style: none;
    display: none;
    /* Escondido por padrão no mobile */
}

.main-nav .nav-list li {
    margin-left: 1.5rem;
}

.main-nav .nav-list a {
    color: var(--text-secondary-color);
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after {
    width: 100%;
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary-color);
    cursor: pointer;
    display: block;
    /* Visível por padrão no mobile */
}

/* Menu mobile aberto */
.main-nav.active .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.main-nav.active .nav-list li {
    margin: 0;
    text-align: center;
    padding: 0.8rem 0;
}

.main-nav.active .nav-list a {
    display: block;
    width: 100%;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(rgba(241, 248, 233, 0.4), rgba(241, 248, 233, 0.6)), url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    text-align: center;
    padding: 4rem 0;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-section .hero-title {
    font-size: 2.2rem;
    color: var(--text-primary-color);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-illustration {
    margin-top: 3rem;
    max-width: 100%;
}

/* ANIMAÇÃO REALISTA HERÓI */
.tech-anim-container {
    position: relative;
    width: 600px;
    height: 350px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tech-anim-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    animation: techKenBurns 20s infinite alternate ease-in-out;
    filter: contrast(1.1) brightness(0.9);
}

.tech-anim-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(0, 0, 0, 0.5));
    mix-blend-mode: overlay;
}

.tech-anim-scanner {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(76, 175, 80, 0.8), transparent);
    box-shadow: 0 0 15px 5px rgba(76, 175, 80, 0.5);
    animation: techScan 4s infinite linear;
    z-index: 2;
}

.tech-anim-data {
    position: absolute;
    width: 4px;
    height: 40px;
    background: #81C784;
    box-shadow: 0 0 10px #4CAF50;
    opacity: 0;
    z-index: 3;
    border-radius: 2px;
}

.data-1 {
    left: 20%;
    animation: techDataFlow 3s infinite 0.5s;
}

.data-2 {
    left: 50%;
    animation: techDataFlow 2.5s infinite 1s;
}

.data-3 {
    left: 80%;
    animation: techDataFlow 4s infinite 0.2s;
}

@keyframes techKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, 2%);
    }
}

@keyframes techScan {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes techDataFlow {
    0% {
        top: 100%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: -20%;
        opacity: 0;
    }
}

/* SEÇÕES GERAIS */
section {
    padding: 4rem 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
}

/* SEÇÃO "NOSSOS PRODUTOS" */
.products-section {
    background-color: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 coluna no mobile */
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: rgba(241, 248, 233, 0.85);
    /* var(--background-color) com transparência */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-icon {
    margin-bottom: 1rem;
}

.product-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary-color);
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    margin-bottom: 1.5rem;
    min-height: 60px;
    /* Garante altura mínima para cards com descrições curtas */
}

/* SEÇÃO DE CONTATO */
.contact-section {
    background: transparent;
    color: var(--text-secondary-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-inter);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.contact-info {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-info .whatsapp-number {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary-color);
}

.contact-info .whatsapp-number i {
    color: #25D366;
    /* Cor do WhatsApp */
    margin-right: 0.5rem;
}

/* FOOTER */
.main-footer {
    background-color: var(--text-primary-color);
    /* Verde escuro para o footer */
    color: var(--white-color);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo a {
    font-family: var(--font-poppins);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white-color);
}

.footer-links h4,
.footer-social h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Ícone flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    /* Cor do WhatsApp */
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: none;
    /* Para a animação ao passar o mouse */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animação de Fade-in ao scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MEDIA QUERIES */

/* Breakpoint: 480px (Mobile Landscape) */
@media (min-width: 480px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .hero-section {
        padding: 6rem 0;
    }
}

/* Breakpoint: 768px (Tablet) */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
        /* Esconde o hamburger no tablet e desktop */
    }

    .main-nav .nav-list {
        display: flex;
        /* Mostra o menu de navegação */
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        border-top: none;
    }

    .main-nav.active .nav-list {
        display: flex;
        /* Garante que continue visível se a classe 'active' for mantida */
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        border-top: none;
    }

    .main-nav .nav-list li {
        margin-left: 2rem;
        padding: 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 8rem 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas no tablet */
    }

    .contact-content {
        flex-direction: row;
        text-align: left;
    }

    .contact-form,
    .contact-info {
        flex: 1;
    }

    .contact-info {
        text-align: left;
        padding-left: 2rem;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Breakpoint: 1024px (Desktop) */
@media (min-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 10rem 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 colunas no desktop */
    }
}

/* Breakpoint: 1200px (Large Desktop) */
@media (min-width: 1200px) {
    .container {
        padding: 0;
        /* Remove padding lateral em telas muito grandes */
    }
}