/* Fonte Japonesa do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.fuji-parallax {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.fuji-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('imagens/fuji_sakura3.jpg') no-repeat center center / cover;
    animation: fujiKenBurns 30s ease-in-out alternate infinite;
    transform: translate(var(--mx,0), var(--my,0));
    will-change: transform;
}

@keyframes fujiKenBurns {
    from {transform: scale(1) translateY(0);}
    to {transform: scale(1.05) translateY(-2%);}
}

/* Responsividade do background */


/* Cabeçalho e Navegação */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(27, 10, 27, 0.164);
    color: #fff;
}

.header-content h1 {
    margin: 0;
    font-size: 2em; /* Aumentado para melhor visibilidade */
}

/* Estilos para o ícone do menu hambúrguer */
.hamburger-icon {
    display: none; /* Inicialmente escondido */
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2001;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
}

/* Responsividade: Estilos para telas menores */
@media (max-width: 768px) {
    .hamburger-icon {
        display: none; /* Mostra o ícone do hambúrguer */
    }

    .navigation {
        display: block;   
        align-items: center;
        background: rgba(27, 10, 27, 0.164);
        position: absolute;
        left: 0;
        width: 40%;
        padding: 30px 0;
    }


    .navigation a {
        padding: 10px;
        color: white;
        text-decoration: none;
        font-size: 1.2em;
    }

    
}

/* Animação de entrada do texto de boas-vindas */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}




/* Estilo para o link da ilha */

@keyframes sway {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Estilo base para os itens do menu */
.image-menu {
    position: absolute;
    cursor: pointer;
    display: inline-block;
    animation: sway 6s ease-in-out infinite; /* Ajuste a duração conforme desejado */
    transform-origin: top center; /* Ponto de origem da rotação */
    
}

.image-menu:hover  {
    transform: rotate(5deg);
}


/* Posicionando individualmente cada item do menu */
#navigation a:nth-child(1) {
    top: 31vh;
    left: 27vw;
    width: 60px;
}

#navigation a:nth-child(2) {
    top: 3vh;
    left: 33vw;
    width: 82px;
}
#navigation a:nth-child(3) {
    top: 24vh;
    left: 50vw;
    width: 82px;
}
#navigation a:nth-child(4) {
    top: 29vh;
    left: 62vw;
    width: 82px;
}
#navigation a:nth-child(5) {
    top: 42vh;
    left: 71vw;
    width: 68px;
}

@media (max-width: 480px){

    #navigation a:nth-child(1) {
        top: 34vh;
        left: 19vw;
        width: 38px;
    }

    #navigation a:nth-child(2) {
        top: 18vh;
        left: 27vw;
        width: 36px;
    }

    #navigation a:nth-child(3) {
        top: 32vh;
        left: 45vw;
        width: 35px;
    }

    #navigation a:nth-child(4) {
        top: 39vh;
        left: 57vw;
        width: 35px;
    }

    #navigation a:nth-child(5) {
        top: 45vh;
        left: 73vw;
        width: 39px;
    }


}


.image-menu img {
    width: 100%;
    height: auto;
}

.image-menu .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -4px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.image-menu:focus .tooltip,
.image-menu:hover .tooltip {
    opacity: 1;
}

.image-menu .menu-label {
    display: none;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .image-menu .menu-label {
        display: inline-block;
    }
}



/* Estilo geral dos Pop-ups */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-card {
    width: min(90vw, 960px);
    padding: 28px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.45);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    margin: 20px;
}
.modal-closing {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Responsividade (ajustar conforme necessário) */
@media (max-width: 768px) {
    .popup-projetos,
    .popup-experiencia {
        max-height: 100%; 
    }
}

/* Responsividade para o conteúdo do pop-up */
@media (max-width: 600px) {
    .popup-content {
        width: 90%;
        padding: 10px;
        max-height: 75vh;
    }
}

/* Títulos dentro do pop-up */
.popup-content h2 {
    color: white;
    font-size: 1.5em; 
    margin-bottom: 15px;
}

/* Parágrafos e listas dentro do pop-up */
.popup-content p,
.popup-content ul,
.popup-content .projeto {
    color: white; 
    line-height: 1.6; 
    text-align: justify; 
    white-space: pre-line;
}
@media (max-width: 768px) {
    .popup-content p,
    .popup-content ul,
    .popup-content .projeto {
        color: white; 
        line-height: 1.6; 
        text-align: center; 
        white-space: pre-line;
    }

}

/* Estilo para links e botões */
.popup-content a,
.close-popup {
    display: inline-block;
    margin-top: 10px;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.popup-content a:hover,
.close-popup:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Itens de lista dentro do pop-up */
.popup-content ul {
    padding-left: 20px; 
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.active .modal-card {
    animation: modalSlideIn 0.45s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-nav-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.popup-nav-buttons button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f34e57; 
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.popup-nav-buttons button:hover {
    background-color: #555; 
}

/* Botão de fechar ajustado para o estilo do pop-up */
.close-popup {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f34e57; 
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}



.projeto {
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.6); 
    padding: 15px;
    border-radius: 10px;
}

.projeto h3 {
    font-size: 1.2em;
    color: #FFC0CB; 
}

/* Rodapé */
.footer {
    background-color: rgba(27, 10, 27, 0.164);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Ajustes para responsividade em diferentes tamanhos de tela */
@media (max-width: 1024px) {
    /* Ajustes para tablets e telas menores */
    .header-content h1 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    /* Ajustes para smartphones */
    .header {
        flex-direction: column;
    }
    .welcome-text {
        font-size: 1.5em;
    }
    .popup-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .welcome-text {
        font-size: 1.2em;
    }
}

/* Ajustes nas pétalas */
.petal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.petal {
    position: absolute;
    background-color: #f34e57; 
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: fallingPetal linear infinite 10s; 
}

@keyframes fallingPetal {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(200vh) rotate(360deg);
    }
}


/* Tamanhos de tela médios (tablets, telas menores de laptop) */
@media (max-width: 1024px) {
    /* Ajustar tamanho e layout dos elementos principais */
    .header-content h1 {
        font-size: 1.5em;
    }

    /* Redimensionamento das ilhas e conteúdo */
    .island {
        flex-direction: column;
        align-items: flex-start;
    }

    .island-summary {
        margin-left: 0;
        margin-top: 10px;
    }

    .welcome-image {
        max-width: 60%;
    }
}



/* Tamanhos de tela muito pequenos */
@media (max-width: 480px) {
    /* Ajustes adicionais para telas muito pequenas */
    .welcome-text {
        font-size: 1.2em;
    }

    .island-link {
        font-size: 1.2em;
    }

    .popup-content {
        width: 95%;
        max-height: 70vh
    }
}

/* Estilo específico para o pop-up de projetos */


.descricao-jogo {
    color: white;
    margin-bottom: 20px; 
    padding: 10px; 
    border-radius: 10px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

.descricao-jogo h3 {
    font-size: 1.4em; 
    margin-bottom: 10px; 
}

.descricao-jogo p {
    font-size: 1em; 
    line-height: 1.5; 
    text-align: justify; 
}

@media (max-width: 480px) {

    .descricao-jogo p {
        font-size: 1em; 
        line-height: 1.5; 
        text-align: center; 
    }
}
/* Estilo base para contêiner do jogo */
.jogo-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin: 20px 0; 
}

/* Estilo para o iframe dentro de jogo-container */
.jogo-container iframe {
    width: 100%; 
    max-width: 800px; 
    height: auto; 
    border: none; 
}


.jogo-pong-container iframe {
    height: 370px;
    max-width: 800px; 
    aspect-ratio: 4 / 3; 
    margin-left: 140px;
}

.jogo-flappy-container iframe {
    max-width: 800px; 
    aspect-ratio: 4 / 3; 
}

/* Responsividade */
@media (max-width: 768px) {
    .jogo-container iframe {
        max-width: 100%; 
    }
}


#popup-habilidades ul {
    list-style: none; 
    padding: 0; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

#popup-habilidades ul li {
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

#popup-habilidades i {
    font-size: 40px; 
    color: #333; 
    transition: color 0.3s, transform 0.3s; 
}
#popup-habilidades i:hover {
    color: #f76a8c;
    transform: translateY(-5px);
}

.icone {
    width: 40px; 
    height: auto;
    transition: transform 0.3s; 
}

.icone:hover {
    transform: translateY(-5px); 
}
@media (max-width: 768px) {
    #popup-habilidades ul {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap; /* Permite que os itens se alinhem em várias linhas */
    }

    #popup-habilidades ul li {
        display: flex;
        align-items: center;
        justify-content: center;
        /* Ajuste a largura abaixo para controlar quantos itens aparecem por linha */
        width: calc(50% - 10px); /* Para dois itens por linha */
        /* width: calc(33.333% - 13.333px); Para três itens por linha */
    }

    .icone {
        width: 40px;
        height: 40px;
        transition: transform 0.3s;
        margin: 10px;
    }
    
    .icone:hover {
        transform: translateY(-5px); 
    }
}

.experiencia-item {
    margin-bottom: 20px;
}

.experiencia-item h3 {
    color: #f76a8c;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.experiencia-item p, .experiencia-item ul {
    font-size: 1em;
    line-height: 1.5;
}

.experiencia-item ul {
    list-style-type: disc;
    margin-left: 20px;
}

.informacao-contato {
    
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.informacao-contato p {
    font-size: 1em;
    line-height: 1.5;
    color: white
}

.informacao-contato a {
    color:white;
    text-decoration: none;
    transition: color 0.3s;
}

.informacao-contato a:hover {
    color: #f76a8c;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.pagina {
    animation: fadeIn 0.5s ease-in-out;
}

.hidden {
    animation: fadeOut 0.5s ease-in-out;
    animation-fill-mode: forwards; /* Mantém o estado final da animação */
}


.mensagem-dispositivo-movel {
    display: none;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .jogo-container {
        display: none; 
    }

    .mensagem-dispositivo-movel {
        display: block; 
    }
    .mensagem-dispositivo-movel.hidden {
        display: block; 
        animation: none; 
    }
}

button {
    background-color: #4CAF50;
    border: none; 
    padding: 10px 20px; 
    color: white; 
    cursor: pointer; 
    border-radius: 5px; 
  }
  
  /* Estilizar apenas o botão que está tocando */
  button.playing {
    background-color: #f34e57;

  }

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

#samurai-guide {
    position: fixed;
    bottom: 10px;
    right: 10px;
    transform: translateX(100%);
    animation: slideInRight 0.5s forwards;
    z-index: 2001;
    text-align: center;
}

#samurai-guide .samurai-bubble {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0 .75rem;
    border-radius: 8px;
    margin-top: 5px;
    font-size: .85rem;
    max-width: 260px;
}

#samurai-guide img {
    width: 72px;
    height: 72px;
}

#samurai-guide .samurai-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
