/* --- CSS Variables --- */
:root {
    --primary: #0a192f;
    --secondary: #1f2937;
    --accent: #64ffda;
    --bg: #f5f5f5;
    --text: #333;
    --light-text: #555;
    --white: #ffffff;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.2);
    --shadow-dark: rgba(0,0,0,0.3);
}

        /* Video Background */
        .video-background {
            position: fixed; /* Fixa o vídeo ao fundo */
            top: 50%; /* Centraliza verticalmente */
            left: 50%; /* Centraliza horizontalmente */
            min-width: 100%; /* Garante que o vídeo cubra toda a largura */
            min-height: 100%; /* Garante que o vídeo cubra toda a altura */
            width: auto;
            height: auto;
            z-index: -1; /* Coloca o vídeo atrás de outros elementos */
            opacity: 0.2;
            transform: translate(-50%, -50%); /* Centraliza o vídeo */
        }

/* --- Base Styles & Utilities --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

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

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    background: #47e1c2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* --- Header --- */
header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    color: var(--accent);
}

.main-nav {
    display: flex;
}

.main-nav a {
    color: var(--white);
    margin-left: 1.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.main-nav a.active {
    color: var(--accent);
}

/* --- Hamburger Menu (Mobile) --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    height: 3px;
    width: 25px;
    background: var(--accent);
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu-mobile {
    display: flex; /* Mudei de 'none' para 'flex' */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary);
    padding-top: 5rem;
    box-shadow: -5px 0 15px var(--shadow-dark);
    transition: transform 0.4s ease-in-out; /* Mudei de 'right' para 'transform' */
    transform: translateX(100%); /* Novo: esconde o menu para a direita */
    z-index: 999;
}

.nav-menu-mobile.open {
    transform: translateX(0); /* Novo: mostra o menu na tela */
}

.nav-menu-mobile a {
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu-mobile a:last-child {
    border-bottom: none;
}

.nav-menu-mobile a:hover,
.nav-menu-mobile a.active {
    background: var(--secondary);
    color: var(--accent);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 998;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1) rotate(10deg);
    background: #128C7E;
}

/* --- Sections --- */
section {
    padding: 80px 0;
    min-height: 50vh;
}

.hero {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 160px 2rem 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.hero::before {
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: rgba(100, 255, 218, 0.75);
}

.hero::after {
    bottom: -50px; right: -50px;
    width: 250px; height: 250px;
    background: rgba(100, 255, 218, 0.78);
    animation-delay: 1s;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out forwards;
    line-height: 1.2;
    max-width: 800px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 1.5s ease-out forwards;
    max-width: 700px;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero .button {
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 1s;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
    padding-top: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 10px;
}

/* --- Grids --- */
.grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* --- Cards --- */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideIn 1s ease-out forwards;
    opacity: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    background: var(--primary);
    padding: 1rem;
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card p {
    font-size: 1rem;
    color: var(--light-text);
}

/* --- Download Section --- */
#download {
    background: var(--secondary);
    color: var(--white);
}

.download-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.download-flex .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: 1.5rem;
}

.download-flex .section-title::after {
    margin-left: 0;
}

.download-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.download-buttons .button {
    background: var(--primary);
    color: var(--accent);
    border: 1px solid var(--accent);
    margin-right: 1rem;
}

.download-buttons .button:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.download-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-dark);
}

/* --- About Section --- */
.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial {
    background: var(--white);
    padding: 1.8rem;
    border-left: 5px solid var(--accent);
    font-style: italic;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    font-size: 1.05rem;
    color: var(--light-text);
}

.testimonial strong {
    display: block;
    margin-top: 0.8rem;
    font-style: normal;
    color: var(--primary);
    font-weight: 500;
}

/* --- FAQ --- */
.faq-list {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.faq-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--light-text);
}

/* --- Contact & Login Forms --- */
#area-cliente form,
#contato form {
    display: grid;
    gap: 1.2rem;
    max-width: 500px;
    width: 100%;
    margin: auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
}

#area-cliente label,
#contato label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

#area-cliente input,
#contato input,
#contato textarea {
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#area-cliente input:focus,
#contato input:focus,
#contato textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

#contato textarea {
    resize: vertical;
    min-height: 120px;
}

#area-cliente .button,
#contato .button {
    width: auto;
    justify-self: center;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.login-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.login-message.error {
    color: #ff4757;
}

.login-message.success {
    color: #2ed573;
}

/* --- Contact Info and Map --- */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.map-container {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-light);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
    margin-top: 3rem;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.05; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(0.95); opacity: 0.05; }
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .main-nav {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .download-flex {
        flex-direction: column;
        text-align: center;
    }
    .download-flex .section-title {
        color: var(--white);
        text-align: center;
    }
    .download-flex .section-title::after {
        margin-left: auto;
    }
    .download-image img {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    .logo {
        font-size: 1.6rem;
    }
    .logo i {
        font-size: 1.8rem;
    }
    .hero {
        padding: 120px 1.5rem 80px;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    section {
        padding: 60px 0;
    }
    .container {
        padding: 0 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .card {
        padding: 1.2rem;
    }
    .card i {
        font-size: 2.5rem;
        padding: 0.8rem;
    }
    .card h3 {
        font-size: 1.4rem;
    }
    .testimonial {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
    #area-cliente form,
    #contato form {
        padding: 1.5rem;
    }
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .card h3 {
        font-size: 1.3rem;
    }
    .grid {
        gap: 1.5rem;
    }
    .download-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .download-buttons .button {
        width: 100%;
        margin-right: 0;
    }
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 15px;
        right: 15px;
    }
}