/* --- RESET E VARIÁVEIS --- */
:root {
    --primary: #2563EB; /* Azul Tech */
    --primary-dark: #1E40AF;
    --secondary: #10B981; /* Verde (sucesso/whatsapp) */
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --google-yellow: #FBBC04; /* Added for Google Reviews */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* Espaço para o header fixo */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

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

.btn-whatsapp {
    background-color: var(--secondary);
    color: white;
}
.btn-whatsapp:hover { background-color: #059669; }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-container nav {
    display: contents;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: var(--dark); }

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

.nav-link {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.95rem;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 700; }

.mobile-toggle { display: none; font-size: 2rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--light) 0%, #EFF6FF 100%);
}

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

/* --- RESPONSIVE NAV (Global) --- */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-end;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1001;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 8px;
        text-align: right;
    }
    .btn-whatsapp {
        width: auto;
        justify-content: flex-end;
        align-self: flex-end;
    }
}
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    footer, .footer-component {
        display: none !important;
    }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-end;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1001;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 8px;
        text-align: right;
    }
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- SEÇÃO DE PRODUTOS --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.section-title p { color: var(--gray); font-size: 1.1rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-best { background: #FEF3C7; color: #D97706; }
.tag-new { background: #D1FAE5; color: #059669; }
.tag-integration { background: #DBEAFE; color: #2563EB; }
.tag-course { background: #F3E8FF; color: #7C3AED; }
.tag-matrix { background: #000000; color: #00FF41; }
.tag-ml { background: #FFE600; color: #1F2937; }

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

.card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.card-link:hover { gap: 10px; }

/* Hover Glow + Parallax */
.card {
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(300px 200px at 20% 20%, rgba(37,99,235,0.18), transparent 60%),
                radial-gradient(300px 200px at 80% 10%, rgba(6,182,212,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.card:hover::before {
    opacity: 1;
}
.card:hover .card-icon {
    transform: translateY(-3px);
    transition: transform 0.25s ease;
}
.products-grid {
    perspective: 600px;
}
.card:hover {
    transform: translateY(-6px) rotateX(1deg);
}

/* --- DEPOIMENTOS --- */
.testimonials {
    background: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rating-stars { color: #F59E0B; margin-bottom: 10px; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- STATS --- */
.stats-section {
    padding: 60px 0;
    background: var(--dark);
    color: white;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}
.stat-number { font-size: 3rem; font-weight: 800; color: var(--secondary); display: block; }
.stat-label { font-size: 1.1rem; opacity: 0.9; }

/* --- FOOTER --- */
footer, .footer-component {
    background: #0B1120;
    color: #94A3B8;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 { color: white; font-size: 1.5rem; margin-bottom: 15px; }
.footer-brand p { margin-bottom: 20px; }

.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.contact-info { margin-top: 10px; font-size: 0.9rem; }
.contact-info i { margin-right: 8px; color: var(--primary); }

.footer-component .copyright, footer .copyright {
    border-top: 1px solid #1E293B;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

/* --- GOOGLE REVIEWS STYLES (Added) --- */

.google-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.google-logo-svg {
    width: 34px;
    height: 34px;
}

.rating-summary {
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rating-stars-header {
    display: flex;
    gap: 2px;
    color: var(--google-yellow);
    font-size: 1.5rem;
}

.rating-count {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: center;
}

/* --- GRID DE DEPOIMENTOS (Reusing existing layout but refining) --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-top: 40px; /* Space from header */
}

/* --- CARD DE DEPOIMENTO --- */
.review-card {
    background: var(--white);
    border: 1px solid #dadce0; /* Borda estilo Google */
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.3s ease, opacity 0.5s ease; /* Added opacity transition */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    opacity: 1; /* Default visible */
}

.review-card.fade-out {
    opacity: 0;
}

.review-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #7c4dff; /* Cor aleatória padrão inicial */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.user-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

.stars {
    color: var(--google-yellow);
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    gap: 1px;
}

.review-text {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.google-icon-small {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: #1a73e8;
    border: 1px solid #dadce0;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 40px;
    font-size: 0.9rem;
}
.btn-google:hover {
    background-color: #f8f9fa;
    color: #174ea6;
}
