:root {
    --bg-base: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    --brand-blue: #3B82F6;
    --brand-green: #10B981;
    --brand-green-hover: #059669;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* =========================================
   ESTILOS DO MENU (NAVBAR)
   ========================================= */

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 32px; 
    margin: 14px auto; 
    max-width: 1320px; 
    width: 92%; 
    max-height: 60px;
    position: fixed;
    z-index: 100; 
    justify-self: center;
}

.logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav a:not(.btn) {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.fale-conosco {
    height: 35px;
    text-wrap: nowrap;
}

.navbar nav a:not(.btn):hover {
    color: var(--brand-blue);
}

#logo-menu{
    width: 30px;
    margin-right: 15px;
    margin-bottom: -6px;
}

/* FIM DO ESTILO MENU */

/* =========================================
   SEÇÃO DE PORTFÓLIO E CASOS DE SUCESSO
   ========================================= */

.portfolio-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

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

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.portfolio-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px); 
}

.card-tag {
    font-size: 0.875rem;
    color: var(--brand-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.portfolio-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.tech-details {
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--brand-blue);
}

.tech-details strong {
    color: var(--text-main);
}

.card-footer {
    margin-top: auto; 
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
}

.tech-badge {
    background: rgba(59, 130, 246, 0.15); 
    color: var(--brand-blue);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================================
   CARROSSEL DE IMAGENS
   ========================================= */

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow:hidden;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.2);
}


.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%; 
    width: 100%;
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
    scroll-snap-align: center; 
}

/* Botão de Tela Cheia */
.fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px; 
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease;
    z-index: 10;
}

.fullscreen-btn:hover {
    background: var(--brand-blue);
}

.carousel-container:fullscreen {
    background-color: #000; 
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center; 
}

.carousel-container:fullscreen .carousel-slide {
    object-fit: contain; 
}

/* =========================================
   EFEITO DE ZOOM NA TELA CHEIA
   =========================================

/* Transforma o mouse numa lupa apenas quando está em tela cheia */
.carousel-container:fullscreen .carousel-slide {
    cursor: zoom-in;
    transition: transform 0.2s ease-out; /* Animação suave para o zoom e o movimento */
}

/* A classe que será aplicada pelo JavaScript quando o cliente clicar */
.carousel-container:fullscreen .carousel-slide.zoomed {
    transform: scale(2.5); /* Aumenta a imagem em 2.5x */
    cursor: zoom-out; /* Muda a lupa para o ícone de 'diminuir' */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7); 
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--brand-blue);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

/* FIM CARROSSEL DE IMAGENS */

/* FIM SEÇÂO DE PORTIFOLIO */

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-base);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px); 
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
    background: var(--brand-blue);
    width: 50vw;
    height: 50vw;
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: var(--brand-green);
    width: 40vw;
    height: 40vw;
    bottom: -10%;
    right: -5%;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(20px) scale(1.05); }
}

a { text-decoration: none; }
ul { list-style: none; }

.liquid-glass {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); 
    border-radius: 16px; 
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { 
    line-height: 1.1; 
    letter-spacing: -0.02em;
}

.text-highlight {
    color: var(--brand-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-green);
    color: #022C22;
}

.btn-projeto {
    width: 180px;
}

.btn-primary:hover {
    background-color: var(--brand-green-hover);
    transform: translateY(-2px); 
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    width: 180px;
}

.btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

.hero h1 {
    /* Função clamp: Aumenta e diminui a fonte dinamicamente baseado na tela */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    max-width: 850px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap; 
}

/* =========================================
   SEÇÃO SERVIÇOS
   ========================================= */
.services-section {
    padding: 100px 20px;
}

.services-section .section-header {
    margin-bottom: 64px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 12px;
    padding: 40px 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px); 
    border-color: var(--brand-green); 
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.service-content {
    flex-grow: 1; 
    margin-bottom: 32px;
}

.problem-text {
    color: #ff6b6b; 
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.solution-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.solution-text strong {
    color: var(--brand-green); 
}

.btn-service {
    display: inline-block;
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.btn-service:hover {
    color: var(--text-main);
    padding-left: 8px; 
}

/* =========================================
   SEÇÃO DA EQUIPE (TEAM)
   ========================================= */

.team-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 800px; 
    margin: 0 auto;   
}

.team-card {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-blue);
    padding: 4px; 
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05); 
}

.team-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--brand-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.team-card .team-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */

.site-footer {
    background-color: #0b1120; /* Fundo super escuro para contraste */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Linha sutil separando o site do rodapé */
    padding-top: 64px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-brand h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-brand p {
    line-height: 1.6;
    max-width: 320px; 
}

.footer-links h3,
.footer-contact h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-green); 
}

.footer-contact p {
    margin-bottom: 12px;
}

.whatsapp-link {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.icon {
    width: 36px;
    height: 36px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-family: monospace;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background: var(--brand-blue);
    transform: translateY(-4px); 
}

.footer-bottom {
    text-align: center;
    padding: 24px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom .heart {
    color: var(--brand-green);
}

@media (min-width:641px) and (max-width: 992px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr); 
        }
}

@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

    .team-section {
        padding-top: 0px;
    }

    .navbar {
        padding: 6px 5px;
        margin: 14px auto;
        width: 98%;
        font-size: 1rem;
    }

    .navbar nav a:not(.btn) {
        font-size: 0.75rem;
    }

    .logo {
        font-size: 0.8rem;
    }

    .btn-projeto {
        padding: 10px;
        width: 130px;
    }

    .btn-outline {
        padding: 10px;
        width: 130px;
    }

    .fale-conosco {
        font-size: 0.75rem;
        padding: 4px;
        height: 25px;
    }

    .navbar nav {
        gap: 6px;
    }

    #logo-menu {
        width: 20px;
        margin-right: 5px;
        align-self: center;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero {
        padding-top: 10px;
    }

    .services-grid {
            grid-template-columns: 1fr; 
    }
    
    .service-card {
            padding: 32px 24px; 
    }

    .portfolio-card {
        padding: 10px;
    }

    .portfolio-card p {
        font-size: 0.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;         
        gap: 48px;
    }
    
    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }
}