/* =========================================================
   IMPORTAÇÃO DE FONTES PERSONALIZADAS
   ========================================================= */

/* Define a fonte "Artega Sans" normal */
@font-face {
    font-family: 'Artega Sans';
    src: url('../fonts/ArtegraSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Define a variação em negrito da fonte */
@font-face {
    font-family: 'Artega Sans Bold';
    src: url('../fonts/ArtegraSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Classe utilitária para aplicar a fonte em negrito */
.font-bold {
    font-family: 'Artega Sans Bold', sans-serif;
}

/* Define altura mínima da área hero (seção inicial da página) */
.hero-content {
    min-height: 90vh;
}


/* =========================================================
   RESET E CONFIGURAÇÕES GERAIS DO SITE
   ========================================================= */

/* Remove margens e paddings padrão dos elementos */
* {
    margin: 0;
    padding: 0;

    /* Faz o cálculo de largura/altura incluir borda e padding */
    box-sizing: border-box;

    /* Define fonte padrão do site */
    font-family: 'Artega Sans', sans-serif;
}

/* Estilo geral do body */
body {
    background-color: #f2f2f2; /* Fundo cinza claro */
    margin: 0;
    overflow-x: hidden; /* Evita scroll horizontal */
}


/* =========================================================
   LADO ESQUERDO DA HERO: IMAGEM COM ANIMAÇÃO
   ========================================================= */

.hero-image-wrapper {
    flex: 1;
    height: 100vh;
    position: relative;

    /* Gradiente que cria um efeito de fade na borda da imagem */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);

    /* Estado inicial da animação (fora da tela à esquerda) */
    transform: translateX(-100%);
    opacity: 0;

    /* Transições suaves da animação */
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
    -webkit-transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
    -moz-transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
    -ms-transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
    -o-transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
}

/* Classe adicionada via JavaScript para disparar a animação */
.hero-image-wrapper.deslizar {
    opacity: 1;
    transform: translateX(0);
}

/* Configuração da imagem dentro da hero */
.hero-image-wrapper img {
    width: 100%;
    height: 100%;

    /* Faz a imagem preencher o espaço corretamente */
    object-fit: cover;

    /* Alinha a imagem no topo */
    object-position: top center;

    /* Aplica preto e branco */
    filter: grayscale(100%);
}


/* =========================================================
   LADO DIREITO DA HERO: TEXTOS E CONTEÚDO
   ========================================================= */

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Subtítulo acima do título principal */
.subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: -5px;
    font-weight: 400;
    text-align: center;
}

/* Título principal */
.title {
    font-size: 4rem;
    font-weight: bold;
    color: #000;

    /* Reduz o espaçamento entre letras */
    letter-spacing: -1px;

    margin-bottom: 10px;

    /* Impede quebra de linha */
    white-space: nowrap;

    font-family: 'Artega Sans Bold', sans-serif;
    text-align: center;
}


/* =========================================================
   LINHA DECORATIVA VERMELHA COM PONTOS
   ========================================================= */

.red-line-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 30px;
    width: 100%;
    justify-content: center;
}

/* Pontos laterais da linha */
.dot {
    width: 8px;
    height: 8px;
    background-color: #e92b2b;
    border-radius: 50%;
}

/* Linha vermelha central */
.line {
    height: 8px;
    width: 100%;
    max-width: 250px;
    background-color: #e92b2b;
    border-radius: 10px;
}


/* =========================================================
   BOTÕES E AÇÕES
   ========================================================= */

.actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Botões padrão */
.icon-btn,
.text-btn {
    background-color: #000;
    color: #fff;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    /* Animação no hover */
    transition: transform 0.2s, background-color 0.2s;
}

/* Botão circular com ícone */
.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Botão com texto */
.text-btn {
    height: 50px;
    padding: 0 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    gap: 10px;
}

/* Efeito hover dos botões */
.icon-btn:hover,
.text-btn:hover {
    transform: scale(1.05);
    background-color: #333;
}


/* =========================================================
   RESPONSIVIDADE (TELAS MENORES)
   ========================================================= */

@media (max-width: 900px) {

    /* Layout vira coluna */
    .container {
        flex-direction: column;
    }

    /* Gradiente muda direção no mobile */
    .hero-image-wrapper {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);

        /* Animação passa a vir de cima */
        transform: translateY(-50%);
    }

    .hero-image-wrapper.deslizar {
        transform: translateY(0);
    }

    /* Ajuste do conteúdo */
    .hero-content {
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    /* Título menor em telas pequenas */
    .title {
        font-size: 2.5rem;
        white-space: normal;
    }
}


/* =========================================================
   BOTÃO EXPANSÍVEL (ÍCONE → TEXTO)
   ========================================================= */

.btn-expand {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 45px;
    min-width: 45px;

    padding: 0 10px;

    border: none;

    overflow: hidden;
    white-space: nowrap;

    /* Transição suave da expansão */
    transition: all 0.8s ease-in-out;
}

/* Texto escondido inicialmente */
.btn-expand span {
    max-width: 0;
    opacity: 0;

    display: inline-block;
    font-weight: 600;

    overflow: hidden;

    transition: all 0.8s ease-in-out;
}

/* Hover do botão */
.btn-expand:hover,
.btn-expand:focus {
    padding: 0 15px;
}

/* Texto aparece ao passar o mouse */
.btn-expand:hover span,
.btn-expand:focus span {
    max-width: 150px;
    opacity: 1;
    padding-left: 8px;
}

/* Ícone centralizado */
.btn-expand i {
    min-width: 20px;
    text-align: center;
}


/* =========================================================
   IMAGENS EM PRETO E BRANCO
   ========================================================= */

.grayscale-img {
    filter: grayscale(100%);
    transition: filter 0.5s;
}

/* Remove o P&B ao passar o mouse */
.grayscale-img:hover {
    filter: grayscale(0%);
}


/* =========================================================
   BARRA DECORATIVA
   ========================================================= */

.red-bar {
    width: 18%;
    height: 5px;
    background-color: #e92b2b;
    margin-top: 10px;
    border-radius: 25px;
}


/* =========================================================
   SEÇÃO SOBRE
   ========================================================= */

.sobre-image-wrapper {
    height: 100vh;
}


/* =========================================================
   CARDS (FORMAÇÃO E EXPERIÊNCIA)
   ========================================================= */

/* Animação ao passar o mouse */
.card-formacao:hover,
.card-experiencia:hover {
    transform: translateY(-10px);
}

/* Ajuste das imagens nos cards */
.card-formacao img {
    height: 192px;
    object-fit: contain;
}

.card-experiencia img {
    height: 150px;
    object-fit: contain;
}

/* Linha separadora branca */
.border-line {
    width: 100%;
    height: 2px;
    background-color: #fff;
}

/* Texto dinâmico limitado a 6 linhas */
.dynamic-text {
    font-size: clamp(12px, 1vw, 16px);

    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* Padding específico dos cards */
.card-experiencia {
    padding: 40px 15px 0 15px;
}

.card-formacao {
    padding: 20px 15px;
}

/* Estilo base dos cards */
.card-experiencia,
.card-formacao {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    height: 100%;

    background-color: #1f1f1f;

    border-radius: 20px;
    border: 1px solid #1f1f1f;

    /* Sombra leve */
    box-shadow: #00000033 0px 4px 8px;

    transition: transform 0.3s ease, border-color 0.3s ease;

    color: #fff;
}


/* =========================================================
   AJUSTES PARA TELAS GRANDES
   ========================================================= */

@media(min-width: 1200px) {

    .text-lg {
        font-size: 17.6px;
    }

    .text-xl {
        font-size: 21px;
    }

    .hero-content {
        flex: 1;
        padding: 40px 80px 40px 40px;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* =========================================================
   AJUSTES PARA TELAS MENORES
   ========================================================= */

@media(max-width: 1200px) {

    #formacao h2,
    #experiencias h2 {
        text-align: center;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .red-bar {
        width: 80%;
    }

    /* Fundo gradiente */
    .gradient-bg {
        background: linear-gradient(180deg, #f2f2f2 63%, #e92b2b61 100%);
    }

    #sobre {
        padding-top: 30px;
        background: linear-gradient(180deg, #e92b2b61 0%, #f2f2f2 100%);
    }
}


/* =========================================================
   UTILITÁRIOS
   ========================================================= */

.bg-dark {
    background-color: #1f1f1f;
}

/* Borda lateral apenas em desktop */
@media (min-width: 1200px) {
    .border-start-md {
        border-left: 3px solid rgb(255, 255, 255) !important;
        padding-left: 3rem;
    }
}


/* =========================================================
   BOTÕES DE CONTATO
   ========================================================= */

.contact-btn {
    color: #000 !important;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

/* Ícone dentro do botão */
.contact-btn i {
    font-size: 30px;
}

/* Texto do botão */
.contact-btn p {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 0;
}

/* Hover do botão */
.contact-btn:hover {
    background-color: #d82b33 !important;
    color: #fff !important;
}

/* Classe utilitária para vermelho */
.text-danger {
    color: #d82b33 !important;
}

/* Remove margem da row (bootstrap) */
.row {
    margin: 0;
}


/* =========================================================
   IMAGEM DO SOBRE NO MOBILE
   ========================================================= */

#about-mobile-img {
    width: 200px;
    height: 200px;

    object-fit: cover;
    object-position: top center;

    filter: grayscale(100%);

    margin: 20px auto;

    box-shadow: #21252938 0 0 8px 6px;
}

/* =========================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #dc3545;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #b02a37;
    transform: translateY(-3px);
}

/* Estilo extra para o CTA Retangular */
.bg-dark.text-center {
    border-bottom: 3px solid #e92b2b !important;
    transition: transform 0.3s ease;
    
}

.bg-dark.text-center:hover {
    transform: scale(1.02); /* Leve pulso ao passar o mouse */
}