/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --cor-fundo: #050510;
    --cor-fundo-alt: #0a0a1a;
    --cor-texto: #e0e6ed;
    --cor-texto-secundario: #94a3b8;

    /* Paleta Premium High-Tech */
    --neon-azul: #00f3ff;
    --neon-roxo: #bc13fe;
    --neon-verde: #0aff0a;
    --neon-gold: #ffd700;

    --gradiente-principal: linear-gradient(135deg, var(--neon-azul), var(--neon-roxo));

    /* Glassmorphism Refinado */
    --vidro-borda: rgba(255, 255, 255, 0.08);
    --vidro-fundo: rgba(20, 20, 35, 0.4);
    --vidro-blur: 16px;
    --sombra-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --fonte-titulo: 'Orbitron', sans-serif;
    --fonte-corpo: 'Share Tech Mono', monospace;
}

/* --- RESET E ESTILOS GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: var(--fonte-corpo);
    line-height: 1.7;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cor-fundo);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-azul);
}

/* Canvas de Fundo */
#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

section {
    padding: 120px 0;
    position: relative;
}

.titulo-secao {
    font-family: var(--fonte-titulo);
    color: var(--neon-azul);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 15px;
}

.titulo-secao::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--neon-azul);
    box-shadow: 0 0 10px var(--neon-azul);
}

h2 {
    font-family: var(--fonte-titulo);
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #fff;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CABEÇALHO --- */
header {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--vidro-borda);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-azul);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

header nav a {
    color: var(--cor-texto-secundario);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

header nav a:hover {
    color: var(--neon-azul);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--neon-azul);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-texto {
    flex: 1;
    max-width: 600px;
}

.hero-texto h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-family: var(--fonte-titulo);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.glitch-text {
    position: relative;
    color: #fff;
}

.hero-texto h2 {
    font-family: var(--fonte-corpo);
    font-size: 1.8rem;
    color: var(--neon-roxo);
    margin-bottom: 2rem;
    text-transform: none;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-texto p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 3rem;
    border-left: 1px solid var(--neon-azul);
    padding-left: 1.5rem;
}

.hero-foto {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.img-molde {
    width: 400px;
    height: 400px;
    position: relative;
}

#foto-perfil {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.img-molde::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--neon-azul);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    z-index: -1;
    transition: transform 0.3s ease;
}

.img-molde:hover #foto-perfil {
    filter: grayscale(0%);
}

.img-molde:hover::before {
    transform: translate(10px, 10px);
}

/* --- BOTÕES --- */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-azul);
    color: var(--neon-azul);
    font-family: var(--fonte-titulo);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}

.cta-button:hover {
    background: var(--neon-azul);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

.cta-button.outline {
    background: transparent;
    border: 1px solid var(--neon-azul);
    color: var(--neon-azul);
    box-shadow: none;
}

.cta-button.outline:hover {
    background: rgba(41, 151, 255, 0.1);
    box-shadow: 0 0 10px rgba(41, 151, 255, 0.3);
    color: #fff;
}

/* --- CARDS & GLASS --- */
.glass-card {
    background: var(--vidro-fundo);
    backdrop-filter: blur(var(--vidro-blur));
    border: 1px solid var(--vidro-borda);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--sombra-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: var(--neon-azul);
    transform: translateY(-5px);
}

/* --- PROJETOS GRIDS --- */
.grid-projetos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card-projeto {
    background: #0f0f1f;
    border: 1px solid #1f1f3f;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-projeto:hover {
    border-color: var(--neon-azul);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-imagem {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-projeto:hover .card-imagem img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.4rem;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-projeto {
    display: inline-flex;
    align-items: center;
    color: var(--neon-azul);
    text-decoration: none;
    font-family: var(--fonte-titulo);
    font-size: 0.9rem;
    gap: 10px;
    transition: padding 0.3s ease;
}

.link-projeto:hover {
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.project-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-actions .cta-button {
    flex: 1;
    padding: 12px 0;
    /* Reduced horizontal padding */
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    /* Ensure minimum click area */
}

/* --- FORMS --- */
.form-grupo {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-azul);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--vidro-borda);
    padding: 15px;
    color: #fff;
    font-family: var(--fonte-corpo);
    border-radius: 4px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--neon-azul);
    background: rgba(0, 243, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0;
    text-align: center;
    margin-top: 100px;
    color: #666;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-texto h1 {
        font-size: 3rem;
    }

    .hero-texto p {
        margin: 0 auto 2rem;
        border: none;
        padding: 0;
    }

    .img-molde {
        width: 300px;
        height: 300px;
        margin-bottom: 2rem;
    }

    header nav {
        display: none;
    }

    /* Add menu toggler later if needed */
}

/* Animation Classes from Script */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- PLACEHOLDER ZONE --- */
.placeholder-zone {
    border: 2px dashed #444;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    transition: all 0.3s ease;
}

.placeholder-zone:hover {
    border-color: var(--neon-azul);
    color: #fff;
    background: rgba(41, 151, 255, 0.05);
}

/* --- WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn img {
    width: 35px !important;
    height: auto;
}