/* =========================================
   1. VARIÁVEIS & RESET
   ========================================= */
:root {
    
    --primary: #4f46e5; 
    --primary-dark: #4338ca; 
    --secondary: #0f172a; 
    --accent: #06b6d4; 
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #1e293b;
    
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    
    /* Espaçamentos */
    --container-padding: 1.25rem;
    --section-spacing: 6rem; /* Mais respiro entre seções */
    --border-radius: 16px; /* Bordas levemente mais arredondadas */
    
    /* Fontes */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Tamanhos de Fonte Fluidos */
    --h1-size: clamp(2.5rem, 5vw + 1rem, 4rem); /* Títulos maiores */
    --h2-size: clamp(1.75rem, 4vw, 2.5rem);
    --h3-size: 1.25rem;
    --body-size: 1rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(79, 70, 229, 0.15); /* Glow sutil com a cor primária */
    --shadow-hover: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
    
    /* Transições */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Curva mais suave */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base 16px */
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em; /* Kerning moderno */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. COMPONENTES GERAIS
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: left; 
    margin-bottom: 3rem;
    max-width: 800px;
}

.section-title {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
}

.highlight {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
    font-weight: 800;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
}
.btn-secondary:hover {
    background-color: #e0e7ff;
}

.full-width {
    width: 100%;
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    height: 70px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    height: 60px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.navbar-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-symbol {
    color: var(--primary);
    font-weight: 800;
}

.navbar-menu {
    display: none; /* Mobile first: oculto */
}

.navbar-toggler {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Menu Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
}

.mobile-cta {
    color: var(--primary) !important;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding-top: 140px; /* Espaço para o header fixo */
    padding-bottom: 4rem;
    background: radial-gradient(circle at 80% 20%, rgba(238, 242, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%), linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: center;
}

.badge {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.1);
}

.hero-title {
    font-size: var(--h1-size);
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.tech-stack-mini {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.blob-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
    animation: pulse 3s infinite;
    filter: blur(20px);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =========================================
   5. SERVIÇOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: #f0fdf4; 
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e0e7ff;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* =========================================
   6. PROJETOS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* =========================================
   7. SOBRE
   ========================================= */
.about-section {
    background-color: white;
}

.about-container {
    display: grid;
    gap: 3rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat strong {
    font-size: 1.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-grid span {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* =========================================
   9. CONTATO & FOOTER (Refined)
   ========================================= */
.contact-section {
    background: var(--secondary);
    color: white;
}

.contact-section .section-title,
.contact-section .section-description {
    color: white;
}

.contact-section .section-description {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: white;
    color: var(--secondary);
}

.footer {
    background: #020617;
    color: var(--text-light);
    padding: 2rem 0;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand span {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
}

/* =========================================
   10. PÁGINA DE POLÍTICA DE PRIVACIDADE
   ========================================= */
.privacy-policy-section {
    padding-top: 120px;
    padding-bottom: 4rem;
    background-color: var(--bg-white);
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.privacy-container h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.25rem;
}

.privacy-container ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-container li {
    margin-bottom: 0.5rem;
}

/* =========================================
   11. MEDIA QUERIES (TABLET & DESKTOP)
   ========================================= */
@media (min-width: 768px) {
    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-text {
        max-width: 50%;
        text-align: left;
    }

    .hero-actions {
        flex-direction: row;
        width: auto;
    }

    .hero-image-wrapper {
        width: 400px;
        height: 400px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 2rem;
    }

    .navbar-menu {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-link {
        font-weight: 500;
        color: var(--text-main);
        font-size: 0.95rem;
    }

    .nav-link:hover {
        color: var(--primary);
    }

    .btn-nav-cta {
        background: var(--primary);
        color: white;
        padding: 0.5rem 1.25rem;
        border-radius: 6px;
        font-weight: 600;
        transition: var(--transition);
        text-decoration: none;
    }

    .btn-nav-cta:hover {
        background: var(--primary-dark);
    }

    .navbar-toggler {
        display: none;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* =========================================
   12. FAQ SECTION
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   13. NOTIFICAÇÃO DE COOKIES
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%; 
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 1.5rem var(--container-padding);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

.cookie-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding: 1rem 2rem;
    }
    
    .cookie-banner p {
        max-width: 600px;
        text-align: left;
    }
}

/* =========================================
   14. PROCESSO (PROCESS STEPS)
   ========================================= */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.process-step {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--bg-light); /* Contorno sutil */
    position: absolute;
    top: -10px;
    right: 10px;
    opacity: 0.5;
    z-index: 0;
}

.process-step h3, 
.process-step p {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   15. WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    animation-play-state: paused;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   16. DEPOIMENTOS (TESTIMONIALS)
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}