/* --- RESET E VARIÁVEIS --- */
:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --primary: #7000ff; /* Roxo vibrante */
    --secondary: #00d4ff; /* Azul Ciano */
    --text-light: #f0f0f0;
    --text-gray: #888888;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
}

/* Classe adicionada via JS ao rolar */
header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--secondary); }

.btn-contact {
    padding: 10px 25px;
    border: 1px solid var(--text-light);
    border-radius: 50px;
    transition: 0.3s;
}

.btn-contact:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

/* Gradiente de fundo sutil */
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(112,0,255,0.2) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span.typing-effect {
    color: var(--secondary);
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4);
}

/* --- PORTFOLIO --- */
.portfolio { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; text-align: center; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.card:hover { transform: translateY(-10px); }

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img { transform: scale(1.1); }

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.overlay span {
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.card:hover .overlay { opacity: 1; }

.card-content { padding: 25px; }
.card-content h3 { margin-bottom: 5px; }
.card-content p { color: var(--text-gray); font-size: 0.9rem; }

/* --- CONTACT --- */
.contact { padding: 100px 5%; background: #080808; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-text p { color: var(--text-gray); margin-bottom: 30px; }
.socials a {
    margin-right: 20px;
    font-weight: 700;
    color: var(--text-light);
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.socials a:hover { color: var(--primary); border-color: var(--primary); }

/* Form Styles Modernos */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { position: relative; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: white;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group textarea { resize: vertical; min-height: 100px; }

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-gray);
    pointer-events: none;
    transition: 0.3s ease;
}

/* Animação do Label do Input */
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom-color: var(--primary);
}

button[type="submit"] {
    padding: 15px;
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button[type="submit"]:hover { background: var(--primary); color: white; }

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* --- ANIMAÇÕES E CLASSES JS --- */
@keyframes blink { 50% { opacity: 0; } }

/* Estado inicial dos elementos animados (invisíveis) */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Curva fluida */
}

/* Estado final (visível) */
.show {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para efeito cascata */
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Simplificado para o exemplo */
    .menu-toggle { display: block; }
}

/* Centraliza a caixa do Captcha */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Estilo visual quando o botão está bloqueado */
button:disabled {
    background-color: #555 !important;
    color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.5;
}
