/* --- Variáveis Globais --- */
:root {
    --bg-primary: #020323;
    --color-primary: #629BF0;
    --color-text-light: #F2F2F2;
    --bg-overlay: rgba(0, 0, 0, 0.6);
}

/* --- Ajustes Gerais e Tipografia --- */
body {
    font-family: 'Franklin Medium', 'Arial Narrow', Arial, sans-serif;
    overflow-x: hidden;
}

/* --- BARRA SOCIAL (Ícones em Linha) --- */

.top-social-bar {
    height: 60px; /* Altura fixa para ficar elegante */
    font-family: sans-serif;
    position: relative;
    z-index: 1031;
}

/* Container flexível para alinhar altura */
.top-social-bar .d-flex {
    height: 100%;
    padding-top: 4px;
}

/* --- Navbar --- */
.cabecalho-imagem {
    max-height: 40px;
    width: auto;
}

/* --- Parallax Base --- */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 80%, #000 100%);
    z-index: 1;
}

.parallax-1 {
    min-height: 90vh;
    background: url('/static/img/home/space.webp');
    background-repeat: repeat-x;
    background-size: cover;
    background-position: left top;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.parallax-2 {
    background-image: url('/static/img/home/ferro.webp');
    background-color: #333;
}

.parallax-3 {
    background-image: url('/static/img/home/distribuidora.png');
    background-color: #444;
}

.parallax-4 {
    background-image: url('/static/img/home/vendas.webp');
    background-color: #555;
}

/* Conteúdo sobre o Parallax */
.parallax-title {
    position: relative;
    z-index: 10;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
}

/* Hero Title Specifics (Topo) */
.hero-title {
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    margin-top: 10px;
    font-family: Gilroy;
    background-color: #5acf5f;
}

/* --- Botão Demo Personalizado --- */
.btn-demo {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: .75rem 2.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-demo:hover {
    background-color: #4a8ad8;
    box-shadow: 0px 7px 20px rgba(98, 155, 240, 0.4);
    transform: translateY(-2px);
}

/* Efeito de elevação nos cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* --- Ícones Sociais no Footer --- */
.social-icons img {
    transition: transform 0.2s;
    filter: invert(0.6);
}

.social-icons img:hover {
    transform: scale(1.1);
    filter: invert(0.2);
}

/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* =========================================
    ASTRONAUTA
   ========================================= */

/* Wrapper para isolar o estilo "Astro" e não quebrar o resto do site */
.central-body {
    padding: 15% 5% 10% 5%;
    text-align: center;
    position: relative;
    z-index: 20;
}

/* Objetos Espaciais */
.objects img {
    z-index: 10;
    pointer-events: none;
}

.object_rocket {
    z-index: 11;
    position: absolute;
    transform: translateX(-50px);
    top: 75%;
    width: 60px;
    height: 60px;
    pointer-events: none;
    animation: rocket-movement 200s linear infinite both running;
}

.object_earth {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 140px;
    height: 140px;
    z-index: 1;
    animation: spin-earth 100s infinite linear both;
}

.object_moon {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 40px;
    height: 40px;
    z-index: 0;
    animation: orbit-moon 120s linear infinite;
}

/* =========================================
   5. KEYFRAMES (ANIMAÇÕES)
   ========================================= */
@keyframes rocket-movement {
    100% {
        transform: translate(1200px, -600px);
    }
}

@keyframes spin-earth {
    100% {
        transform: rotate(-360deg);
        transition: transform 20s;
    }
}

/* Definindo a animação da Órbita */
@keyframes orbit-moon {
    0% {
        /* Gira o eixo, afasta a lua 140px e "desgira" a lua para ela ficar de pé */
        transform: rotate(0deg) translateX(140px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
}

@keyframes move-astronaut {
    100% {
        transform: translate(-160px, -160px);
    }
}

@keyframes rotate-astronaut {
    100% {
        transform: rotate(-720deg);
    }
}

@media only screen and (max-width: 768px) {
    .central-body {
        padding-top: 25%;
    }

    .object_rocket {
        transform: scale(0.7) translateX(-50px);
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* Limite de largura para o cartão de vídeo no topo */
.hero-video-card {
    max-width: 800px;
}

/* --- Banner com Botão Sobreposto --- */
.banner-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

/* A imagem em si */
.banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* O Botão flutuante */
.btn-overlay {
    position: absolute;
    bottom: 15%;
    left: 40%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

/* --- Ajustes para Celular (Mobile) --- */
@media (max-width: 768px) {
    .btn-overlay {
        bottom: 10%;
        left: 35%;
        font-size: 0.8rem;
        padding: 0.5rem 1.5rem !important;
    }
}

/* --- Efeitos Visuais --- */

/* Zoom suave nas imagens ao passar o mouse */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15) !important;
}

/* Filtro branco para ícones dentro de botões coloridos */
.filter-white {
    filter: brightness(0) invert(1);
}

/* Logos dos Clientes (Cinza -> Colorido) */
.grayscale-logos img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-height: 80px;
    width: auto;
}

.grayscale-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animação Pulsante do Botão */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}