:root {
    --bg-dark: #050308; /* Preto arroxeado profundo */
    --bg-card: #0d0914; /* Roxo escuro para os blocos */
    --purple: #8B5CF6;  /* Roxo tático principal (estilo HUD/Agente) */
    --purple-rgb: 139, 92, 246;
    --white: #ffffff;
    --gray: #a0a0a0;
    --font-main: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Fundo Profissional com Grid e Brilho Radial Roxo */
body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-attachment: fixed;
    color: var(--white);
    font-family: var(--font-main);
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: rgba(5, 3, 8, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(var(--purple-rgb), 0.2);
}

.logo, .footer-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span, .footer-logo span {
    color: var(--purple);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--purple);
}

section {
    padding: 140px 8% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 3.5rem;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 50px;
    border-left: 4px solid var(--purple);
    padding-left: 20px;
    letter-spacing: 2px;
}

/* Ajustes da Seção Hero para Dois Lados (Texto + Imagem) */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative; /* Necessário para segurar o vídeo no fundo */
    overflow: hidden;   /* Evita que o vídeo vaze da seção */
}

/* Comportamento do Vídeo (O "Falso GIF") */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo preencher a tela sem distorcer e sem vazar */
    z-index: -2;
    opacity: 0.35; 
    filter: grayscale(80%) sepia(20%) hue-rotate(220deg);
}
/* Camada escura por cima do vídeo para o texto não sumir */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-dark) 20%, transparent 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: 1px;
    min-height: 100px;
}

.hero p {
    font-size: 1.6rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 45px;
}

/* Estilização Avançada da Imagem na Hero */
.hero-image-container {
    position: relative;
    justify-self: center;
}

.hero-image-frame {
    width: 320px;
    height: 400px;
    background-color: var(--bg-card);
    border: 1px solid rgba(var(--purple-rgb), 0.3);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 85% 100%, 0 100%); /* Recorte angular tático inferior */
    overflow: hidden;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.hero-image-container:hover .hero-img {
    filter: grayscale(0%) contrast(1);
}

/* Detalhe estético flutuante estilo HUD de games */
.hero-image-container::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid var(--purple);
    border-right: 2px solid var(--purple);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 85% 100%, 0 100%);
    opacity: 0.6;
}

.hero-image-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background-color: var(--purple);
    color: var(--bg-dark);
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Botão Roxo com Recorte Angular */
.btn {
    display: inline-block;
    padding: 15px 45px;
    background-color: var(--purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: var(--white);
    color: var(--bg-dark);
    transform: translateX(5px);
}

.sobre-conteudo p {
    font-size: 1.4rem;
    color: var(--gray);
    max-width: 850px;
    margin-bottom: 25px;
}

/* Vertentes / Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.servico-box {
    background: rgba(13, 9, 20, 0.7);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    position: relative;
    backdrop-filter: blur(5px);
    transition: 0.3s ease;
}

.servico-box:hover {
    border-color: var(--purple);
    background: rgba(13, 9, 20, 0.9);
}

.servico-detalhe {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--purple);
    border-right: 2px solid var(--purple);
    opacity: 0.5;
}

.servico-box h3 {
    font-size: 2.2rem;
    color: var(--purple);
    margin-bottom: 15px;
}

.servico-box p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid #1c1526;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.card.destaque {
    border-color: rgba(var(--purple-rgb), 0.4);
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--purple);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--purple);
    letter-spacing: 1px;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.card-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card-link span {
    color: var(--white);
}

.card-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--purple), transparent);
    opacity: 0;
    transform: translateY(-10px);
}

.card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.card:hover .card-scanner {
    animation: scanEffect 1.5s infinite linear;
}

@keyframes scanEffect {
    0% { top: 0%; opacity: 1; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0%; opacity: 0; }
}

/* Fotografia */
.sub-section {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.photo-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    border: 1px solid #1c1526;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.photo-item:hover {
    filter: grayscale(0%) contrast(1);
    border-color: var(--purple);
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    z-index: 10;
    position: relative;
}

/* Rodapé */
footer {
    background-color: #030205;
    padding: 80px 8% 40px;
    border-top: 1px solid #120e1a;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--purple);
}

.footer-line {
    width: 60px;
    height: 2px;
    background-color: var(--purple);
    margin: 10px 0;
}

.copyright {
    color: #443c4d;
    font-size: 1rem;
    letter-spacing: 1px;
}

.copyright span {
    color: var(--gray);
}

/* Animações Scroll Reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================
   BOTÃO FLUTUANTE DO WHATSAPP (ESTILO RADAR)
   ======================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial do WhatsApp */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999; /* Garante que fique por cima de absolutamente tudo */
    transition: all 0.3s ease;
    animation: radar-pulse 2s infinite; /* Chama a animação do radar */
}

/* O ícone SVG dentro do botão */
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse */
.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #20b858;
}

.whatsapp-float:hover svg {
    transform: scale(1.1);
}

/* Animação de pulso tático */
@keyframes radar-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsividade Básica para Celulares */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 160px;
        gap: 40px;
    }
    .hero-text {
        order: 2;
    }
    .hero-image-container {
        order: 1;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .servicos-grid {
        grid-template-columns: 1fr;
    }
}
/* =======================================================
   RESPONSIVIDADE TÁTICA (TABLETS E SMARTPHONES)
   ======================================================= */

/* Breakpoint para Tablets e telas menores (abaixo de 992px) */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    /* Inverte a ordem no celular: Imagem primeiro, depois o texto de impacto */
    .hero-text {
        order: 2;
    }
    .hero-image-container {
        order: 1;
    }
    
    .hero p {
        margin: 0 auto 40px; /* Centraliza o parágrafo abaixo do H1 */
    }
}

/* Breakpoint Principal para Smartphones (abaixo de 768px) */
@media (max-width: 768px) {
    
    /* 1. Header e Navegação */
    header {
        flex-direction: column;
        padding: 15px 5%;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.95rem; /* Fonte um pouco menor para caber na tela */
    }

    /* 2. Espaçamentos Globais e Tipografia */
    section {
        /* Aumenta o padding superior para compensar o header que ficou mais alto */
        padding: 140px 5% 60px; 
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        border-left: 3px solid var(--purple);
        padding-left: 15px;
    }

    /* Reduzindo todos os textos corridos para não cansar a leitura */
    p, .sobre-conteudo p, .servico-box p, .card p, .hero p {
        font-size: 1.1rem;
    }

    /* 3. Seção Inicial (Hero) */
    .hero h1 {
        font-size: 2.8rem;
        min-height: auto;
        margin-bottom: 15px;
    }

    .hero-image-frame {
        width: 250px;
        height: 320px; /* Reduz a proporção da foto de perfil para não ocupar a tela toda */
    }

    /* 4. Grids de Serviços e Portfólio (1 Coluna) */
    .servicos-grid, 
    .portfolio-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .servico-box, 
    .card {
        padding: 25px;
    }

    /* 5. Galeria de Fotos (2 Colunas no Celular) */
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .photo-item {
        height: 180px; /* Altura reduzida para montar um grid simétrico */
    }

    /* 6. Rodapé */
    footer {
        padding: 60px 5% 30px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .copyright {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 10px;
    }
}