/* =================================================================
   1. ESTILOS GERAIS E ANIMAÇÃO DO HEADER
   ================================================================= */
.vlt-header {
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.vlt-header.is-hidden-left {
    transform: translateX(-110%);
}

.vlt-header.is-prep-right {
    transition: none;
    transform: translateX(110%);
}

/* =================================================================
   2. ESTILOS DO MENU (MOBILE E DESKTOP)
   ================================================================= */

/* ESTILOS PARA MOBILE (<= 991.98px) */
@media (max-width: 991.98px) {
    .vlt-navbar--main .vlt-navbar-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .vlt-navbar-inner--right {
        display: none !important;
    }

    .vlt-default-menu {
        display: block !important;
    }

    .vlt-navbar-inner-center {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .vlt-navbar-inner-center .container {
        width: 100%;
        padding: 0 15px;
    }

    .menu-swiper-container {
        overflow: hidden;
        width: 100%;
        cursor: grab;
    }

    .menu-swiper-container:active {
        cursor: grabbing;
    }

    .menu-swiper-container .swiper-slide {
        width: auto;
        flex-shrink: 0;
        opacity: 0.7;
        transition: opacity 0.4s ease;
    }

    .menu-swiper-container .swiper-slide a {
        font-size: 12px;
        padding: 8px 12px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: block;
        text-align: center;
        color: #ffffff;
        transition: color 0.3s ease;
        border-radius: 20px;
    }

    .menu-swiper-container .swiper-slide-active,
    .menu-swiper-container .swiper-slide.active {
        opacity: 1;
    }
}

/* ESTILOS PARA DESKTOP (> 991.98px) */
@media (min-width: 992px) {
    .menu-swiper-container {
        overflow: visible !important;
    }

    .vlt-default-menu__navigation .sf-menu.swiper-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 15px;
        transform: none !important;
    }

    .vlt-default-menu__navigation .sf-menu > .swiper-slide {
        width: auto !important;
        flex-shrink: 0;
    }

    .vlt-default-menu__navigation .sf-menu > li > a {
        font-size: 12px;
        padding: 5px 10px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        color: #ffffff;
        border-radius: 20px;
        transition: background-color 0.3s, color 0.3s;
    }

    .vlt-default-menu__navigation .sf-menu > li.active > a,
    .vlt-default-menu__navigation .sf-menu > li.swiper-slide-active > a {
        background-color: #ff4b36;
        color: #ffffff;
        font-weight: bold;
    }
}

/* Estilo unificado para o item de menu ativo (sobrescreve para desktop e mobile) */
.swiper-slide.active > a,
.sf-menu > li.active > a,
.menu-swiper-container .swiper-slide-active > a,
.vlt-default-menu__navigation .sf-menu > li.active > a,
.vlt-default-menu__navigation .sf-menu > li.swiper-slide-active > a {
    color: #ff4b36 !important;
    background-color: #ff4a3600 !important;
    border-radius: 20px;
    font-weight: bold;
}

/* =================================================================
   3. ESTILOS DO PLAYER DE ÁUDIO (PÁGINAS ESPECÍFICAS)
   ================================================================= */
   
/* Player da página "Doar.html" */
.page-doar .story-audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 10px;
    max-width: 350px;
    margin: 20px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-doar .play-pause-button {
    display: flex;
    align-items: center;
    background-color: #ff4b36;
    border: none;
    border-radius: 50px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-doar .play-pause-button:hover {
    background-color: #e0412f;
}

.page-doar .play-pause-button svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 8px;
}

.page-doar .play-icon { display: block; }
.page-doar .pause-icon { display: none; }
.page-doar .story-audio-player.is-playing .play-icon { display: none; }
.page-doar .story-audio-player.is-playing .pause-icon { display: block; }

.page-doar .progress-wrapper {
    flex-grow: 1;
}

.page-doar .progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.page-doar .progress-bar {
    width: 0%;
    height: 100%;
    background-color: #ff4b36;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Player da página "Story.html" */
.page-story .story-audio-player {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.page-story .play-pause-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid #ff4b36;
    color: #ff4b36;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Gilroy', sans-serif;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-story .play-pause-button:hover {
    background-color: #ff4b36;
    color: #ffffff;
}

.page-story .play-pause-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.page-story .pause-icon { display: none; }
.page-story.is-playing .play-icon { display: none; }
.page-story .is-playing .pause-icon { display: block; }
.page-story.is-playing .play-pause-button { /* Mantém o ícone visível */ }

.page-story .progress-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.page-story .story-audio-player.is-playing .progress-wrapper {
    max-height: 50px;
    margin-top: 15px;
}

.page-story .progress-container {
    background-color: #222;
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.page-story .progress-bar {
    width: 0%;
    height: 100%;
    background-color: #ff4b36;
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* =================================================================
   4. CORREÇÃO RESPONSIVA PARA A PÁGINA BIO (VERSÃO 2)
   ================================================================= */
.bio-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.bio-links-container a {
    width: 100%; /* Ocupa toda a largura em telas muito pequenas */
    max-width: 350px; /* Define uma largura máxima para cada link */
    flex-shrink: 0;
}

.bio-links-container img {
    width: 100%; /* Faz a imagem preencher o link */
    height: auto;
}

/* =================================================================
   5. FUNDO DA SEÇÃO DE CONTATO PARA MOBILE
   ================================================================= */
@media (max-width: 767px) {
    /* Seleciona a seção de Contato pelo seu atributo data-anchor */
    .vlt-section[data-anchor="Contact"] .vlt-section__ken-burn-background {
        /* Esconde a imagem de fundo original do desktop */
        display: none;
    }

    .vlt-section[data-anchor="Contact"] > .vlt-section__vertical-align > .vlt-section__content {
        /* Aplica a nova imagem de fundo */
        background-image: url('../img/root/home-mobile.jpg'); /* CORRIGIDO: Adicionado .jpg e aspas */
        background-size: cover;
        background-position: center center;
    }
}

/* =================================================================
   6. ESTILOS ESPECÍFICOS PARA A PÁGINA DE PORTFÓLIO
   ================================================================= */

/* Categorias de Habilidades */
.skill-category {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-category-title {
    color: #ff4b36;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Gilroy', sans-serif;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-tag {
    background-color: rgba(255, 75, 54, 0.2);
    color: #ff4b36;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 75, 54, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: #ff4b36;
    color: white;
    transform: scale(1.05);
}

/* Itens de Treinamento */
.training-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.training-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.training-course {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
}

/* Cards de Projetos */
.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 30px;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    flex-grow: 1;
}

.project-content h4 {
    color: #ff4b36;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Gilroy', sans-serif;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: rgba(255, 75, 54, 0.15);
    color: #ff4b36;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 75, 54, 0.2);
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .project-image {
        width: 100px;
        height: 100px;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .training-item:hover {
        transform: translateX(0);
    }
}

/* Botão Call to Action */
.vlt-btn--lg {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.vlt-btn--lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 75, 54, 0.4);
}