/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --primary-color: #8b5cf6;
    /* Roxo vibrante */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   NAVEGAÇÃO (Sticky Glassmorphism)
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.logo span {
    color: var(--primary-color);
}

.logo a {
    text-decoration: none;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.purple {
    color: var(--primary-color);
}

#hero p {
    max-width: 650px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(161, 161, 170, 0.4);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

/* ==========================================================================
   SECTIONS GERAIS
   ========================================================================== */
section {
    padding: 100px 10%;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   SOBRE MIM & STACKS
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.profile-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.profile-text p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.experience-box {
    margin-top: 2.5rem;
    display: flex;
    gap: 3rem;
}

.exp-item span {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.stacks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stack-card {
    background: var(--card-bg);
    padding: 2.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    color: var(--text-muted);
}

.stack-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ==========================================================================
   PROJETOS (Ajustado para Estilo Profissional)
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

/* Criamos um pseudo-elemento para a imagem para podermos dar zoom sem sair do card */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.6);
    /* Imagem discreta por padrão */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    z-index: 1;
}

/* Caminhos das imagens - Aplicados no pseudo-elemento */
.project-1::before {
    background-image: url('../img/projeto-advocacia.png');
}

.project-2::before {
    background-image: url('../img/projeto-ps5.png');
}

.project-3::before {
    background-image: url('../img/projeto-clinica.png');
}

.project-overlay {
    position: relative;
    z-index: 2;
    /* Fica acima da imagem */
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 15%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    transition: background 0.4s ease;
}

/* Efeito ao passar o mouse no CARD */
.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.project-card:hover::before {
    transform: scale(1.1);
    /* Zoom suave na imagem */
    filter: grayscale(0%) brightness(0.7);
    /* Volta a cor */
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(139, 92, 246, 0.7) 5%, rgba(0, 0, 0, 0.6) 60%);
}

.project-overlay h3 {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 800;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.project-overlay p {
    color: #d1d1d6;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.4;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.project-card:hover h3,
.project-card:hover p {
    transform: translateY(0);
    /* Sobe um pouquinho no hover */
}

.view-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
    transition: all 0.3s ease;
}

.view-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card:hover {
    background: #1a1a1a;
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--primary-color);
    /* Destaque no topo para diferenciar dos projetos */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: #1a1a1a;
    border-color: var(--primary-color);
}

.testimonial-card i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    flex-grow: 1;
    /* Garante que o texto ocupe o espaço e alinhe o rodapé */
}

.client-info {
    margin-top: 2rem;
}

.client-info strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.client-info span {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   FORMULÁRIO DE CONTATO
   ========================================================================== */
/* Remove o fundo branco do preenchimento automático (Autofill) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0d0d0d inset !important;
    /* Mesma cor do seu input original */
    -webkit-text-fill-color: white !important;
    /* Garante que o texto continue branco */
    transition: background-color 5000s ease-in-out 0s;
}

/* Ajuste específico para o seletor (select) que apareceu com borda branca no print */
select:focus {
    border-color: var(--primary-color);
    background: #0d0d0d;
}

.contact-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: #0d0d0d;
    border: 1px solid #222;
    color: white;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

textarea {
    resize: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: #111;
}

#contact-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Garante que o select tenha a mesma aparência dos inputs */
select option {
    background: #141414;
    color: white;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 4rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.socials {
    margin-bottom: 1.5rem;
}

.socials a {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin: 0 15px;
    transition: var(--transition);
}

/* Cores específicas no Hover para dar um toque profissional */
.socials a .fa-whatsapp:hover {
    color: #25d366;
    /* Verde do Zap */
}

.socials a .fa-instagram:hover {
    color: #e4405f;
    /* Rosa do Insta */
}

/* Ajuste no efeito de escala que já tínhamos */
.socials a {
    display: inline-block;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

footer p {
    color: #555;
    font-size: 0.9rem;
}

/* ==========================================================================
   ESTILOS PÁGINA DE PRIVACIDADE
   ========================================================================== */
.privacy-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    transition: var(--transition);
    opacity: 0.6;
}

.privacy-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.privacy-main {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.privacy-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.privacy-card ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.privacy-card li {
    margin-bottom: 0.8rem;
}

.privacy-card strong {
    color: var(--text-main);
}

.privacy-contact {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    section {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Ideal implementar menu hambúrguer */
    .form-row {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        padding: 2rem;
    }

    .experience-box {
        flex-direction: column;
        gap: 1rem;
    }
}