/* --- GERAL E VARIÁVEIS --- */
:root {
    --bg-dark: #0a0f1e;
    --bg-light: #1c2333;
    --primary-blue: #3a7dff;
    --primary-purple: #9b59b6;
    --text-light: #f5f5f5;
    --text-muted: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
    --shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%231c2333' fill-opacity='0.4'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- ANIMAÇÃO DE ENTRADA --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: var(--nav-height) 8% 0 8%;
    gap: 2rem;
}

.hero-content { flex-basis: 55%; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.gradient-text { background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 550px; }
.hero-buttons { display: flex; gap: 1rem; align-items: center; }
.cta-button, .secondary-button, .whatsapp-button, .submit-button { padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.cta-button, .submit-button { background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple)); color: white; box-shadow: 0 4px 15px rgba(58, 125, 255, 0.3); text-decoration: none; }
.cta-button:hover, .submit-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(155, 89, 182, 0.4); }
.secondary-button { background: transparent; color: var(--text-light); border: 1px solid var(--border-color); text-decoration: none; }
.secondary-button:hover { background-color: var(--border-color); color: white; }
.hero-image-container { flex-basis: 40%; display: flex; justify-content: center; align-items: center; }
.hero-image-wrapper { position: relative; padding: 1rem; border-radius: 50%; background: linear-gradient(145deg, var(--primary-blue), var(--primary-purple)); }
.hero-image-wrapper img { width: clamp(250px, 30vw, 380px); height: clamp(250px, 30vw, 380px); border-radius: 50%; object-fit: cover; border: 5px solid var(--bg-dark); }

/* --- SEÇÕES GERAIS --- */
main { padding: 0 8%; }
.solutions-section, .experience-section, .tech-stack-section, .testimonial-section { padding: 80px 0; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto 4rem auto; font-size: 1.1rem; }

/* --- SOLUTIONS CARDS --- */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.solution-card { background: rgba(28, 35, 51, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; text-align: left; transition: all 0.3s ease; }
.solution-card:hover { transform: translateY(-10px); border-color: var(--primary-blue); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.card-icon { font-size: 2rem; margin-bottom: 1.5rem; width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)); color: white; }
.solution-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
.solution-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --- EXPERIENCE TIMELINE --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border: 3px solid var(--bg-dark);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }
.timeline-content {
    padding: 2rem;
    background: rgba(28, 35, 51, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    text-align: left;
}
.timeline-content h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-light); }
.timeline-content h4 { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; color: var(--primary-blue); }
.timeline-content p { color: var(--text-muted); font-size: 0.95rem; }

/* --- TECH STACK --- */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.tech-grid span {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tech-grid span:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* --- TESTIMONIAL --- */
.testimonial-content {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.quote-icon {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: rgba(58, 125, 255, 0.2);
    z-index: 0;
}
.testimonial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin: 0;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
}
.testimonial-content footer {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: right;
}


/* --- WHATSAPP CTA --- */
.whatsapp-cta-section { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 16px; padding: 4rem; margin: 80px 0; text-align: center; }
.whatsapp-cta-section h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.whatsapp-cta-section p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem auto; }
.whatsapp-button { background-color: #25D366; color: white; text-decoration: none; }
.whatsapp-button:hover { background-color: #1DA851; transform: scale(1.05); }


/* --- MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 15, 30, 0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-light); border-radius: 16px; padding: 2.5rem; width: 90%; max-width: 500px; border: 1px solid var(--border-color); box-shadow: var(--shadow); position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1); }
.close-button { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; }
.modal-content h3 { text-align: center; font-size: 1.8rem; margin-bottom: 1rem; }
.modal-content p { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-light); }
.input-group input { width: 100%; padding: 12px 15px; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-light); font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s; }
.input-group input:focus { outline: none; border-color: var(--primary-blue); }
.form-message { text-align: center; margin-top: 1rem; font-size: 0.9rem; padding: 10px; border-radius: 8px; display: none; }
.form-message.success { background-color: rgba(37, 211, 102, 0.1); color: #25D366; display: block; }
.form-message.error { background-color: rgba(255, 77, 77, 0.1); color: #ff4d4d; display: block; }


/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: calc(var(--nav-height) + 40px); min-height: auto; }
    .hero-content { order: 2; }
    .hero-image-container { order: 1; margin-bottom: 3rem; }
    .hero-content p { margin: 0 auto 2.5rem auto; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 3rem;
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        display: block;
    }
    .timeline::after { left: 20px; margin-left: -1px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 1rem; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-dot { left: 12px; }
    
}

@media (max-width: 576px) {
    main { padding: 0 5%; }
    .nav-container { padding: 0 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .cta-button, .secondary-button { width: 100%; }
    .whatsapp-cta-section { padding: 2.5rem 1.5rem; }
}