/* RESET E CONFIGURAÇÕES GLOBAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #101b27;
    --secondary-color: #03ad46;
    --text-color: #f0f0f0;
    --bg-light: #1a2938;
    --font-title: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-title2:'Orbitron', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

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

section {
    padding: 6rem 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}


/* CABEÇALHO E NAVEGAÇÃO */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(16, 27, 39, 0.9);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
}

.logo:hover {
    color: var(--secondary-color);
    transition: color 0.3s;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-contact-btn {
    border: 1px solid var(--secondary-color);
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.nav-contact-btn:hover::after { width: 0; }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text-color); }


/* HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #b0c4de;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(3, 173, 70, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

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


/* SOBRE SECTION */
.about-section {
    background-color: var(--bg-light);
}
.about-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-content { flex: 1; }
.about-content h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.about-content p {
    color: #b0c4de;
    margin-bottom: 1.5rem;
}
.about-content blockquote {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
}
.about-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.tech-lizard {
    width: 250px;
    height: 250px;
    background: url('https://www.svgrepo.com/show/379632/lizard.svg') no-repeat center center;
    background-size: contain;
    filter: invert(1) drop-shadow(0 0 15px var(--secondary-color));
    opacity: 0.7;
}


/* SOLUÇÕES SECTION */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.solution-card {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.solution-card i {
    color: var(--secondary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}
.solution-card h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.solution-card p {
    color: #b0c4de;
    margin-bottom: 1.5rem;
}
.solution-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}


/* PORTFÓLIO SECTION */
.portfolio-section {
    background-color: var(--bg-light);
}

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

/* --- Ajuste principal --- */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1; /* força todos os blocos a terem a mesma proporção quadrada */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f1823; /* cor de fundo neutra para bordas */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

/* Hover suave */
.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 27, 39, 0.95), rgba(16, 27, 39, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: opacity 0.4s ease;
}

.overlay-content {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.overlay-content h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
}

.overlay-content p {
    color: var(--secondary-color);
}



/* CTA SECTION */
.cta-section {
    background: linear-gradient(45deg, var(--secondary-color), #04d456);
    text-align: center;
}
.cta-section h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.btn-cta {
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-cta:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
}
.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-links a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #fff;
}
.social-links i {
    width: 32px;
    height: 32px;
}


/* RODAPÉ */
.footer {
    background-color: var(--primary-color);
    padding: 4rem 0 2rem 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--bg-light);
}
.footer-brand .logo { font-size: 1.8rem; }
.footer-brand p { color: #b0c4de; margin-top: 0.5rem; }
.footer h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #b0c4de; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--secondary-color); }
.footer-contact p { color: #b0c4de; }
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: #b0c4de;
    font-size: 0.9rem;
}


/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .about-section .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { padding: 1rem 0; }
    .nav-contact-btn {
        border: none;
        padding: 8px 16px;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 0.5rem; align-items: center;}
    .btn { width: 80%; }
    
    .section-title { font-size: 2rem; }
    section { padding: 4rem 0; }
    .cta-section h2 { font-size: 2.2rem; }
}

/* ESTILIZAÇÃO DO FORMULÁRIO DE CONTATO - REFINADO */
.contact-form {
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    /* Fundo semi-transparente elegante */
    background-color: rgba(16, 27, 39, 0.9); 
    padding: 3rem; /* Aumenta o padding para mais espaço */
    border-radius: 12px;
    /* Sombra interna sutil para profundidade */
    box-shadow: inset 0 0 15px rgba(3, 173, 70, 0.05);
    border: 1px solid rgba(102, 51, 51, 0.1); /* Borda muito sutil verde */
}

.form-group {
    margin-bottom: 1.5rem; /* Mais espaço entre os campos */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 14px; /* Aumenta um pouco o padding */
    background-color: var(--primary-color);
    /* Borda muito sutil, quase invisível */
    border: 1px solid #334455; 
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-title);
    transition: all 0.3s ease;
}

.contact-form input::placeholder {
    color: #778899; /* Cor das letras mais discreta */
    font-weight: 300;
}

.contact-form input:focus {
    outline: none;
    /* Efeito NEOGLOW: Borda verde mais forte + Sombra de luz */
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(3, 173, 70, 0.6); /* Sombra externa verde */
    background-color: #0d1620; /* Fundo ligeiramente mais escuro ao focar */
}

/* O botão CTA já tem um ótimo estilo. */
.contact-form .btn-cta {
    width: 100%;
    margin-top: 2rem; /* Mais espaço acima do botão */
    padding: 15px 35px; /* Deixa o botão maior */
}

.form-hint {
    color: #99aabf;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* Ajuste do Título da Seção CTA (Seção em fundo verde) */
.cta-section h2 {
    color: var(--primary-color); /* Garante que o texto seja AZUL ESCURO no fundo verde */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Melhoria no visual dos links sociais na seção CTA */
.social-links a {
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}


.btn-cta {
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-title);
}
.btn-cta:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
}