/* Definições Gerais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    
    /* Define o caminho da imagem de fundo */
    background-image: url(img/fundo_escuro.jpeg);
    
    /* Garante que a imagem cobre todo o ecrã sem distorcer */
    background-size: cover;
    
    /* Centraliza a imagem na tela */
    background-position: center;
    
    /* Impede que a imagem se repita como um mosaico */
    background-repeat: no-repeat;
    
    /* Faz com que o fundo fique fixo enquanto o utilizador faz scroll */
    background-attachment: fixed;
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* Barra de Navegação e Logótipo */
.navbar {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

/* Contentor Principal (Hero) */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #111;
}

/* Cor de Destaque (Amarelo do Logo) */
.hero-content .accent {
    color: #f0c228; 
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffff;
    margin-bottom: 2.5rem;
}

/* Botões de Download Alinhados na Horizontal com efeito Glow */
.download-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.btn-download {
    display: flex;
    align-items: center;
    background-color: #111;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden; /* Necessário para o efeito de brilho interno */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    flex: 0 1 auto;
    white-space: nowrap;
}

.btn-download i {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    z-index: 2;
}

.btn-text {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.btn-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
}

.btn-text strong {
    font-size: 1rem;
    font-weight: 600;
}

/* Efeito Hover nos Botões: Sombra Amarela e Elevação */
.btn-download:hover {
    background-color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(240, 194, 40, 0.2);
}

/* Efeito de Brilho Corrediço (Shine) ao passar o rato */
.btn-download::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.btn-download:hover::after {
    left: 120%;
    transition: left 0.7s ease-in-out;
}

/* Mockup do Telemóvel com Efeito de Flutuação */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    border: 12px solid #111;
    border-radius: 40px;
    background-color: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Aplicação do efeito de levitação contínua */
    animation: floatAnimation 4s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Definição da Animação de Flutuação */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }
    50% {
        transform: translateY(-12px); /* Sobe 12 píxeis */
        box-shadow: 0 35px 60px rgba(0,0,0,0.1);  /* Aumenta a sombra no topo */
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }
}

/* Rodapé */
footer {
    padding: 2rem 5%;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
}

/* Responsividade */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .download-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-download {
        justify-content: center;
    }
}