/* Variáveis CSS para fácil manutenção */
:root {
    --bg-dark: #000000;
    --neon-green: #00FF00;
    --text-light: #F0F0F0;
    --text-muted: #AAAAAA;
    --font-heading: 'Montserrat', sans-serif; /* Use Google Fonts */
    --font-body: 'Lato', sans-serif; /* Use Google Fonts */
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden; /* Evita scroll horizontal */
}

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

/* Tipografia Geral */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--neon-green);
    margin-bottom: 20px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

/* Botões */
.btn {
    display: inline-block;
    background-color: var(--neon-green);
    color: var(--bg-dark); /* Texto preto no botão verde */
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--text-light); /* Fica branco no hover */
    color: var(--neon-green); /* Texto verde no hover */
    transform: translateY(-3px); /* Leve efeito 3D */
}

.btn-project {
    background-color: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 3px;
}
.btn-project:hover {
    background-color: var(--neon-green);
    color: var(--bg-dark);
}


/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.8); /* Fundo semi-transparente */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1); /* Sombra neon sutil */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Ajuste o tamanho da sua logo */
    filter: drop-shadow(0 0 5px var(--neon-green)); /* Efeito glow na logo */
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: var(--text-light);
    font-weight: bold;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--neon-green);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--neon-green);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Seções Gerais */
section {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

section h2 {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: var(--neon-green);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-green); /* Glow */
}


/* Seção Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Adicione uma imagem ou gradiente de fundo dinâmico aqui */
    background: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(10, 20, 20, 0.9) 100%);
    position: relative;
    overflow: hidden; /* Para partículas ou background animado */
    padding-top: 80px; /* Espaço para o header fixo */
}

/* Efeito de partícula de fundo (exemplo simples com CSS puro, JS seria melhor) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 60s linear infinite;
    opacity: 0.2;
}

@keyframes moveGrid {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; } /* Mova em um ciclo para parecer infinito */
}


.hero-title {
    font-size: 4.5em;
    margin-bottom: 10px;
    color: var(--text-light); /* Título principal mais suave */
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.5); /* Glow sutil */
}

.hero-subtitle {
    font-size: 1.8em;
    color: var(--neon-green);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

/* Seção Sobre Mim */
.about-section {
    background-color: #0A0A0A; /* Um tom ligeiramente mais claro para seções secundárias */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); /* Glow */
    filter: grayscale(80%) brightness(80%); /* Foto com filtro para combinar */
    transition: all 0.5s ease;
}

.about-image img:hover {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--neon-green);
}

.about-text {
    flex: 2;
}

.about-text p {
    font-size: 1.1em;
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    text-align: center;
    background-color: #1A1A1A;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-green);
}

.skill-item span {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--neon-green);
    font-size: 1.1em;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--neon-green);
    border-radius: 5px;
    animation: fillSkill 1.5s ease-out forwards;
}

@keyframes fillSkill {
    from { width: 0%; }
    to { /* será definido inline */ }
}


/* Seção Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #1A1A1A;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--neon-green);
}

.service-card .service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.service-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* Seção Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: #1A1A1A;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--neon-green);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.project-techs {
    margin-bottom: 15px;
}

.project-techs span {
    display: inline-block;
    background-color: rgba(0, 255, 0, 0.1);
    color: var(--neon-green);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Seção Depoimentos */
.testimonials-section {
    background-color: #0A0A0A;
}

.testimonial-carousel {
    display: flex;
    justify-content: center; /* Centraliza os cards */
    gap: 30px;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
}

.testimonial-card {
    background-color: #1A1A1A;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    max-width: 450px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--neon-green);
}

.testimonial-card::before { /* Efeito de citação */
    content: "“";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 8em;
    color: rgba(0, 255, 0, 0.05);
    z-index: 0;
}

.testimonial-card p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative; /* Para ficar acima do "before" */
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.client-info h4 {
    margin: 0;
    color: var(--neon-green);
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Seção Contato */
.contact-section {
    background-color: var(--bg-dark);
}

.contact-subtitle {
    font-size: 1.2em;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background-color: #1A1A1A;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-green);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-green);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.1em;
    padding: 10px 15px;
    border: 1px solid var(--neon-green);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 3px var(--neon-green));
}

.social-links a:hover {
    background-color: var(--neon-green);
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 0 8px var(--neon-green));
}

/* Footer */
.footer {
    background-color: #0A0A0A;
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
}

/* Responsividade */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none; /* Esconde a navbar padrão */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Abaixo do header */
        left: 0;
        background-color: var(--bg-dark);
        border-top: 1px solid rgba(0, 255, 0, 0.2);
        box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
    }
    .navbar.active {
        display: flex;
    }
    .navbar ul {
        flex-direction: column;
        padding: 20px;
    }
    .navbar ul li {
        margin: 15px 0;
    }
    .menu-toggle {
        display: flex;
    }

    h1 { font-size: 3em; }
    h2 { font-size: 2em; }
    .hero-subtitle { font-size: 1.4em; }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    .hero-subtitle { font-size: 1.2em; }
    .hero-description { font-size: 1em; }

    .service-card, .portfolio-item, .testimonial-card {
        padding: 20px;
    }
    .contact-form {
        padding: 25px;
    }
}

/* Adicionando Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;600;700&display=swap');