:root {
    --dark-blue: #0a1a44;
    --accent-blue: #1e4bd1;
    --light-blue: #eef2ff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    overflow-x: hidden;
   
}

.nav{
    color: #1e4bd1;
    font-weight: bold;
}


/* Tipografia */
.text-dark-blue { color: var(--dark-blue); }
.tracking-widest { letter-spacing: 0.3em; font-size: 0.9rem; }

/* Botão Estilizado */ 
.btn-dark-blue {
    background-color: var(--dark-blue);
    color: white;
    border-radius: 5px;
    border-bottom: 4px solid #000;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Ativa a animação */
    animation: pulse-blue 2s infinite;
}

/* Efeito de Hover (Passar o mouse) */
.btn-dark-blue:hover {
    transform: scale(1.05);
    background-color: #004080; /* Um tom levemente mais claro */
    box-shadow: 0 0 20px rgba(0, 51, 102, 0.6);
    animation: none; /* Para a pulsação quando o usuário foca no botão */
}

/* Lógica da Pulsação */
@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(0, 51, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0);
    }
}










.hexagon-wrapper {
    position: relative;
    height: 600px;
}

.hex-main {
    width: 450px;
    height: 400px;
    right: 0;
    z-index: 1;

    /* Ativa animação ao carregar */
    animation: hexMainIn 1.6s ease-out forwards;
    animation: hexMainLoop 6s ease-in-out infinite;


}


/* O Segredo dos Hexágonos: Clip-Path */
.hex {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hex-sub {
    width: 320px;
    height: 300px;
    left: 5%;
    bottom: 0;
    border: 8px solid white; /* Simula a borda da imagem */
    z-index: 2;
    top:180px;
    padding: 5%;

    /* Ativa animação ao carregar */
    animation: hexSubIn 1.6s ease-out forwards;
    animation-delay: 0.15s; /* pequeno atraso pra dar sensação de entrelaçar */

     animation: hexSubLoop 6s ease-in-out infinite;
    animation-delay: 0.3s;

}






/* Ícones Sociais */
.icon-circle {
    width: 30px;
    height: 30px;
    background: #7696e0;
    color: rgb(243, 243, 244);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Responsividade */
@media (max-width: 992px) {
    .hexagon-wrapper {
        height: 400px;
        margin-top: 50px;
    }
    .hex-main { width: 300px; height: 350px; }
    .hex-sub { width: 200px; height: 230px; }
}

/* Customizando o cursor de digitação */
.typed-cursor {
    color: var(--accent-blue);
    font-size: 1.2em;
    font-weight: 300;
}

/* Garante que o texto não "pule" enquanto digita */
#typing-p {
    display: inline-block;
    min-height: 1.5em;
}

/* Impede a quebra de linha no título durante a digitação */
.display-3 {
    white-space: nowrap; 
    display: block;
    position: relative;
}

/* Estilo do cursor para não ocupar espaço físico no layout */
.typed-cursor {
    color: var(--accent-blue);
    font-size: 1em;
    font-weight: 300;
    position: absolute; /* O cursor flutua ao lado da letra sem empurrar */
    margin-left: 5px;
}

/* Ajuste responsivo para telas menores (Celular) */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem; /* Diminui o tamanho da fonte em celulares */
        white-space: normal; /* No celular, onde o espaço é crítico, permitimos a quebra se necessário */
    }
    .typed-cursor {
        position: static; /* Volta ao normal no celular para evitar sobreposição */
    }
}

@keyframes hexMainIn {
    0% {
        transform: translateX(200px) translateY(100px) scale(0.8) rotate(5deg);
        opacity: 0;
    }

    50% {
        transform: translateX(-60px) translateY(-30px) scale(1.05) rotate(-3deg);
        opacity: 1;
    }

    100% {
        transform: translateX(0) translateY(0) scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes hexSubIn {
    0% {
        transform: translateX(-200px) translateY(-120px) scale(0.8) rotate(-5deg);
        opacity: 0;
    }

    50% {
        transform: translateX(80px) translateY(40px) scale(1.05) rotate(3deg);
        opacity: 1;
    }

    100% {
        transform: translateX(0) translateY(0) scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes hexMainLoop {
    0% {
        transform: translate(80px, 60px) scale(0.95);
        opacity: 0;
    }

    20% {
        transform: translate(-30px, -20px) scale(1.02);
        opacity: 1;
    }

    50% {
        transform: translate(0, 0) scale(1);
    }

    80% {
        transform: translate(15px, -10px) scale(1.01);
    }

    100% {
        transform: translate(80px, 60px) scale(0.95);
        opacity: 0;
    }
}

@keyframes hexSubLoop {
    0% {
        transform: translate(-90px, -70px) scale(0.95);
        opacity: 0;
    }

    20% {
        transform: translate(40px, 30px) scale(1.03);
        opacity: 1;
    }

    50% {
        transform: translate(0, 0) scale(1);
    }

    80% {
        transform: translate(-10px, 15px) scale(1.01);
    }

    100% {
        transform: translate(-90px, -70px) scale(0.95);
        opacity: 0;
    }
}
