/* Variáveis e Configurações Globais */
:root {
    --bg-primary: #f8f8f5; /* Fundo off-white parecido com a imagem */
    --bg-secondary: #ffffff;
    --text-primary: #0f1115;
    --text-secondary: #4a4a4a;
    --accent: #2e2e2e;
    --highlight: #000000;
    --nav-height: 80px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .brand-name {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.03em;
}

/* Tipografia */
p {
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilitários Visuais */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

.gradient-text {
    background: linear-gradient(90deg, #000000 0%, #555555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Botoes */
.btn-primary {
    background-color: var(--highlight);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--highlight);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid var(--text-primary);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: #fff;
}

.w-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(248, 248, 245, 0.85); /* Glassmorphism light */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0 4%;
    background: rgba(248, 248, 245, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-weight: 800;
    font-size: 22px;
    transform: skewX(-10deg);
}
.logo-placeholder .highlight {
    color: #a0a0a0;
}

.brand-logo {
    max-height: 60px; /* Aumentado conforme solicitado */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Mais espaço para os gráficos */
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 5% 40px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 100% 0%, rgba(200,200,200,0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem; /* Leve aumento para imponência */
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Gráficos Abstratos */
.hero-graphics {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 800px;
}


/* Services */
.services-section {
    padding: 100px 5%;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card .icon svg {
    width: 30px;
    height: 30px;
    color: var(--highlight);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}


/* Contact Section */
.contact-section {
    padding: 100px 5%;
    background: #000;
    color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: #fff;
    margin: 0;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* Projects Section */
.projects-section {
    padding: 100px 5%;
    background-color: var(--bg-primary);
}

.carousel-container {
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
}

.projects-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: #000;
    aspect-ratio: 16/9;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    text-align: center;
    z-index: 20;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
    opacity: 0;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel-caption h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.carousel-caption p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 25px;
}

.btn-testar {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #000;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid #fff;
}

.btn-testar:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

.carousel-control-prev svg,
.carousel-control-next svg {
    width: 24px;
    height: 24px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 10px;
}

/* WhatsApp Button */
.whatsapp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    width: 100%;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #25D366;
    color: #fff !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    background-color: #20BA5A;
}

.btn-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}


/* Footer */
footer {
    background: #000;
    padding: 40px 5%;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: bold;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .contact-container {
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-content {
        margin: 0 auto;
        order: 1;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-graphics {
        order: 2;
        min-height: 400px;
        margin-top: 40px;
    }
    
    #hero-canvas {
        max-width: 500px;
        max-height: 500px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: rgba(248, 248, 245, 0.98);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding: 40px 5%;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        align-items: flex-start;
        gap: 20px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
    
    .nav-links .btn-primary {
        text-align: center;
        margin-top: 20px;
    }

    .hamburger {
        display: flex;
    }
    
    .hamburger.active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(-45deg) translate(7px, -8px); }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projects-carousel {
        aspect-ratio: 4/3;
    }

    .carousel-caption {
        padding: 40px 20px 30px;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .btn-whatsapp {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}
