/* Configurações Globais e Cores Escuras */
:root {
    --cor-fundo: #0a0a0a; 
    --cor-texto: #e0e0e0; 
    --cor-cinza-principal: #333; 
    --cor-flash: #ffffff; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    /* CORREÇÃO MÁXIMA PARA ROLAGEM: Usa 100vh e Oculta qualquer overflow */
    height: 100vh;
    min-height: 100vh;
    overflow: hidden; 
    
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-texto);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    
    /* FUNDO COM SUA IMAGEM (img/background.jpg) */
    background-image: url('img/background.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
}

/* Estrutura Principal da Landing Page - ESTILO CARTÃO DE VISITA */
.landing-page {
    text-align: center;
    max-width: 90%;
    
    /* Estilo do Cartão */
    background-color: rgba(0, 0, 0, 0.75); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 15px; 
    box-shadow: 0 0 50px rgba(0, 255, 127, 0.2); 
    
    /* COMPRESSÃO: Reduz o padding vertical */
    padding: 20px 40px; 
    
    margin: 10px auto; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Permite rolagem apenas dentro do cartão se necessário */
    max-height: 98vh; 
    overflow-y: auto; 
}

/* Estilo do Título (Nathalia Pereira) */
.titulo-profissional {
    font-family: 'Playfair Display', serif; 
    font-size: 3.5em; 
    font-weight: 700; 
    color: var(--cor-texto); 
    letter-spacing: 3px; 
    margin-bottom: 25px; /* COMPRESSÃO */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3); 
    opacity: 0.9; 
}

.cena-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px; 
    position: relative; 
}

/* Container da Câmera e Flash */
.pessoa-tirando-fotos {
    display: flex;
    align-items: center; 
    justify-content: center; 
    height: 300px; 
    width: 450px; 
    margin-bottom: 15px; 
    position: relative; 
}

/* Estilo da Câmera (img/cam.png) */
.imagem-camera {
    width: 200px; 
    height: auto;
    position: static; 
    transform: none;
    z-index: 6; 
}

/* Efeito do Flash */
.flash {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 400px; 
    height: 400px; 
    border-radius: 50%;
    background-color: var(--cor-flash);
    opacity: 0; 
    pointer-events: none; 
    z-index: 10; 
}

.flash.active {
    opacity: 1;
    transition: opacity 0.1s ease-in; 
}

/* Estilo do QR CODE */
.qrcode-container {
    margin-top: 20px; 
    margin-bottom: 0px; 
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-container p {
    font-size: 0.9em;
    color: var(--cor-texto);
    margin-bottom: 10px;
}

.qrcode-imagem {
    width: 120px; 
    height: auto;
    border: 3px solid var(--cor-texto); 
    border-radius: 5px; 
}

/* BOTÃO FLUTUANTE DE COMPARTILHAR */
.fab-share {
    position: fixed;
    bottom: 100px; 
    right: 30px;
    
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    background-color: var(--cor-cinza-principal); 
    color: var(--cor-texto); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000; 
    transition: background-color 0.3s, transform 0.2s;
}

.fab-share:hover {
    background-color: #555;
    transform: scale(1.1);
}

/* BOTÃO FLUTUANTE DE WHATSAPP */
.fab-whatsapp {
    position: fixed;
    bottom: 30px; 
    right: 30px;
    
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    background-color: #25D366; 
    color: white; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000; 
    transition: background-color 0.3s, transform 0.2s;
}

.fab-whatsapp:hover {
    background-color: #128C7E; 
    transform: scale(1.1); 
}

/* RESPONSIVIDADE (PARA TELAS MENORES) */
@media (max-width: 600px) {
    
    .landing-page {
        padding: 20px 15px; 
        max-height: 98vh;
    }
    
    .titulo-profissional {
        font-size: 2.2em; 
        margin-bottom: 15px; 
    }
    
    .pessoa-tirando-fotos {
        height: 180px; 
        margin-bottom: 10px;
    }
    
    .imagem-camera { 
        width: 110px; 
    }

    .qrcode-container {
        margin-top: 15px; 
        margin-bottom: 0px; 
    }
    
    .qrcode-imagem {
        width: 80px; 
    }
    
    /* Ajuste para os botões flutuantes em mobile */
    .fab-share {
        width: 50px;
        height: 50px;
        bottom: 80px; 
        right: 20px;
        font-size: 20px;
    }
    
    .fab-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}