/*!
 *
 * Copyright (c) 2026 - Alessandro R. Fleck
 *
 */

@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,800&display=swap');

:root {
    --primary-pink: #c70039;
    --gold-text: #AFA079;
    --bg-black: #101010;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-black);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Mantém a elegância da single page */
}

/* LOADER */
#loader {
    position: fixed;
    width: 100%; height: 100vh;
    background: #000;
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
}

/* NAVEGAÇÃO E LOGO | FICAR CLICÁVEL */
#navigation-bar {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 30px 50px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000; /* Acima do header */
}

.mf-logo-img {
    height: 80px; /* Tamanho real da logo */
    transition: transform 0.5s ease-in-out;
}

.mf-logo-img:hover {
    transform: rotate(360deg) scale(1.1); /* Ela gira e cresce no hover */
}

/* MENU HAMBURGUER (ESTILIZAÇÃO) */
.menubar { cursor: pointer; }
.menubar span {
    display: block; width: 35px; height: 2px;
    background: #fff; margin: 6px 0;
    transition: 0.4s;
}

/* CORES ESPECÍFICAS DO TÍTULO */
.name-blue  { color: #6D91C4; }
.name-gold  { color: #AFA079; }
.name-white { color: #FFFFFF; }

/* REDES SOCIAIS (LADO ESQUERDO) - SEMPRE CLICÁVEIS */
.social-media-links {
    position: fixed;
    left: 40px; 
    top: 50%;
    transform: translateY(-50%);
    display: flex; 
    flex-direction: column;
    gap: 25px; 
    z-index: 999; /* Valor alto para ficar acima de tudo */
}

.social-media-links a {
    display: inline-block;
    pointer-events: auto; /* Garante que o link aceite o clique */
}

.social-media {
    width: 22px; 
    filter: brightness(0) invert(1); /* Força o ícone a ser branco */
    transition: all 0.3s ease;
    opacity: 1; /* Removido a transparência para ser branco fixo */
}

.social-media:hover { 
	filter: none; /* Remove o filtro de branco */
    filter: invert(36%) sepia(94%) saturate(4614%) hue-rotate(10deg) brightness(101%) contrast(106%); /* Como imagens PNG coloridas não mudam de cor via CSS facilmente, há um filtro de matriz de cor para simular o #FF4500 no hover */
    transform: scale(1.2); 
}

/* CONTAINER PRINCIPAL */
#header {
    height: 100vh;
    width: 100%;
    display: flex; align-items: center;
}

.header-container { /* Estrutura do header (proteção da imagem) */
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    position: relative; /* Base para sobreposição */
}

/* TEXTO CENTRALIZADO */
.header-content {
    flex: 1;
    padding-left: 10%;
    padding-right: 5%; /* Espaço de segurança antes da imagem */
    z-index: 10; /* Garante que o texto fique SEMPRE na frente */
}

.firstline {
    font-size: 70px;
    font-weight: 800;
    line-height: 1;
    text-transform: none;
}

.name-pink { color: var(--primary-pink); }
.name-white { color: #fff; }

.secondline {
    margin-top: 30px;
    font-size: 20px;
	line-height: 1.6;
    /*font-weight: 300;
    max-width: 600px;*/
}

/* AJUSTE DO TEXTO (LETREIRO) DE DIGITAÇÃO (CSS SIMPLIFICADO PARA O JS ATUAR) */
.typewriter-fixa {
    color: #AFA079 !important; /* Força a cor dourada */
}

.typewriter-text {
    color: #FFFFFF !important; /* Força a cor branca */
    display: inline !important; /* Garante visibilidade */
    visibility: visible !important;
    word-wrap: break-word;
}

/*.typewriter {
    color: #AFA079;
    display: inline-block;
    overflow: hidden; /* Garante que o texto não apareça antes da hora */
    /*white-space: nowrap; /* Mantém o texto em uma linha enquanto digita */
    /*border-right: none; /* O cursor será um elemento separado */
    /*width: 0; /* Começa vazio */
    /*animation: typing 4s steps(60, end) forwards;
}*/

/* ANIMAÇÃO DO CURSOR PISCANTE */
.cursor-blink {
    color: #FF4500;
    font-size: 24px;
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

/* KEYFRAMES PARA DIGITAÇÃO */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typing-flexible {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.color { color: var(--gold-text); }

/* PAINEL DA DIREITA (Alocação da imagem) */
.header-image-panel {
    position: absolute; /* A imagem não "empurra" mais o texto */
    right: 0;
    top: 0;
    width: 45%; /* Largura fixa da área da imagem */
    height: 100%;
    z-index: 1; /* Fica atrás do texto se eles se cruzarem */
}

.header-image-panel img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Opacidade para garantir leitura se o texto sobrepor */
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0)); 
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
}

/* COPYRIGHT */
.footer-copyright {
    position: absolute;
    bottom: 30px;
    left: 10%;
    z-index: 10;
}

.footer-copyright a {
    color: #FFFFFF; /* Branco fixo */
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-copyright a:hover { 
	color: #FF4500; /* Dark Orange no hover */
}

/* CORREÇÃO DE CLIQUES E ESTRUTURA */
#all {
    position: relative;
    z-index: 1;
}

/* GARANTE QUE AS PARTÍCULAS FIQUEM AO FUNDO E NÃO BLOQUEIEM CLIQUES */
#particles {
    position: absolute;
    width: 100%; 
    height: 100%;
    z-index: 0; 
    pointer-events: none; /* Cliques passam através das partículas */
}

/* RESPONSIVIDADE TOTAL */
@media (max-width: 1200px) {
    .firstline { font-size: 50px; }
}

@media (max-width: 1024px) {
    .header-content {
        padding-right: 10%; /* No tablet, o texto ganha mais espaço */
    }
    .header-image-panel {
        width: 60%; /* Imagem expande por trás do texto */
        opacity: 0.4; /* Aumenta transparência para não atrapalhar leitura */
    }
}

@media (max-width: 992px) {
    .header-image-panel { display: none; } /* Esconde a lateral em telas pequenas */
    .header-content { width: 100%; padding: 0 40px; text-align: center; }
    .footer-copyright { left: 0; width: 100%; text-align: center; }
	.typewriter { /* Ajuste para o letreiro não quebrar em telas menores */
        white-space: normal; /* No mobile, permite quebra de linha */
        width: 100%; /* Desativa o efeito de linha única se a tela for pequena */
        animation: none; 
    }
}

@media (max-width: 768px) {
    .header-content {
        text-align: center;
        padding: 0 20px;
    }
    .header-image-panel {
        width: 100%; /* Imagem vira o fundo total no mobile */
        opacity: 0.2;
    }
}

@media (max-width: 600px) {
    .mf-logo-img { height: 50px; }
    .firstline { font-size: 35px; }
    .social-media-links { left: 15px; }
}