* {
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: #007bff #111;
}
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 5px;
}

body {
    background-color: var(--color-black);
    text-rendering: optimizeLegibility; /* Melhora a legibilidade e suaviza as fontes */
}

html {
    scroll-behavior: smooth;
    font-smoothing: antialiased; /* Para navegadores como o Safari */
}

:root {
    --color-blue: #007bff;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-background: black;
    --color-text: white;
}

#menu {
    width: 100%;
    height: 5vh;
    z-index: 1000;
    opacity: 0; /* Inicialmente invisível */
    margin-top: 0;
    transform: translateY(-20px); /* Desloca o menu para cima */
    will-change: opacity, transform;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* Transições para animações suaves */
}

#menu.myShow {    
    opacity: 1; /* Torna o menu visível */
    transform: translateY(0); /* Move o menu de volta para sua posição original */
}

#menu.clicked {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none;
}

ul {
    display: flex;
    gap: 50px;
    justify-content: center;
    width: 100%;
    height: 5vh;
    align-items: center;
    background-color: rgb(0, 0, 0);
}

ul a {
    list-style: none;
    text-decoration: none;
    color: var(--color-white);
    font-family: "Sora", sans-serif;
    font-size: 14px;
}
html:lang(pt) ul a {
    font-size: 12px; /* tamanho reduzido para traduções */
}

ul a:hover {
    color: var(--color-blue);
    transition: 0.4s ease-in-out;
}

/* Estilo do botão de menu hamburguer */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 1100;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 25px;
    width: 25px;
    filter: blur(15px);
    transform: translateX(+100%);
    transition: all 2s cubic-bezier(0.42, 0, 0.58, 1);
}
#menu-toggle::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
    z-index: -1;
    border-radius: 12px; 
}
#menu-toggle.myShow {
    display: none;
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition: all 2s cubic-bezier(0.42, 0, 0.58, 1);
}

/* Quando o menu estiver aberto, transformar o hambúrguer em "X" */
#menu-toggle.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* Estilizar as linhas do hambúrguer */
#menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 6px;
}

/* Remove o espaço extra da última linha */
#menu-toggle span:last-child {
    margin-bottom: 0;
}

#my {
    width: 100%;
    height: 750px;
    margin: 0;
    border-top: 1px solid transparent;
    opacity: 0;
    clip-path: inset(0 20% 0 0); /* Efeito de entrada sem travar */
    transform: translateY(30px); /* Animação mais suave */
    will-change: opacity, transform;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out, clip-path 1.5s ease-out;
}
#my.myShow {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* Remove o efeito */
    transform: translateY(0);
}


#my h1 {
    margin-top: 150px;
    margin-left: 200px;
    font-family: "Sora", sans-serif;
    line-height: 40px;
    margin-bottom: 10px;
    color: var(--color-white);
}

.color-name {
    color: var(--color-blue);
}

#my p {
    list-style: none;
    margin-left: 200px;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    color: var(--color-white);
}

.movie {
    width: 470px;
    height: 470px;
    border-radius: 50%;
    mask-image: radial-gradient(circle, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 75%);
    overflow: hidden;
    object-fit: cover;
    float: right;
    margin-top: -130px;
    margin-right: 100px;
}

#about {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    opacity: 0;
    clip-path: inset(0 20% 0 0); /* Efeito de entrada sem travar */
    transform: translateY(30px); /* Animação mais suave */
    will-change: opacity, transform;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out, clip-path 1.5s ease-out;

}
#about.myShow {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* Remove o efeito */
    transform: translateY(0);
}

#about a {
    display: block;
    width: 200px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-family: sans-serif;
    text-decoration: none;
    color: var(--color-white);
    border: 1px solid #333;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    transition: all .35s;
}
#about a span{
    position: relative;
    z-index: 2;
  }
  
#about a:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1e9600;
    transition: all .35s
}
#about a:hover:after{
    width: 100%;
}
#about a:hover {
    color: rgb(255, 255, 255);
}
#about p {
    color: white;
    font-family: "Sora", sans-serif;
    width: 50%;
    height: 100px;
    font-size: 14px;
    margin-bottom: 20px;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

#loading-text {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-family: "Sora", sans-serif;
}

.dots {
    display: inline-block;
    opacity: 1;
    animation: dot-blink 2.5s infinite;
}

.dots:nth-child(1) { animation-delay: 0s; }
.dots:nth-child(2) { animation-delay: 0.75s; }
.dots:nth-child(3) { animation-delay: 1.5s; }

@keyframes dot-blink {
    0%, 20% { opacity: 1; }
    40%, 60% { opacity: 0; }
    80%, 100% { opacity: 1; }
}

.loading-bar-container {
    width: 60%;
    height: 8px;
    background-color: #444;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.loading-bar {
    height: 100%;
    width: 0;
    background-color: #2bff00;
    animation: loadAnimation 3s ease-in-out forwards;
}

#loading-percentage {
    margin-top: 10px;
    font-size: 14px;
    font-family: "Sora", sans-serif;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

#background-video {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 100%;
    mask-image: radial-gradient(circle, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 90%);
    margin-top: 20px;
}

#skills {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    clip-path: inset(0 20% 0 0); /* Efeito de entrada sem travar */
    transform: translateY(30px); /* Animação mais suave */
    will-change: opacity, transform;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out, clip-path 1.5s ease-out;
}

#skills.myShow {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* Remove o efeito */
    transform: translateY(0);
}

.container-skills {
    display: inline-block;
    margin: 10px;
}

.toggle-card {
    display: none;
}

.card {
    width: 200px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;   
    perspective: 1000px;
}

.container-skills:hover .card {
    transform: rotateY(180deg);
}

@media (min-width: 768px) {
    .container-skills:hover .card {
        transform: rotateY(180deg);
    }
}

@media (max-width: 767px) {
    .toggle-card:not(:checked) + .content .card {
        transform: rotateY(0deg);
    }
    
    .toggle-card:checked + .content .card {
        transform: rotateY(180deg);
    }
}

.card:not(:focus-within) input[type="checkbox"] {
    background-color: white;
  }

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    font-size: 20px;
    color: #fff;
    border-radius: 20px;
}

.front img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
}

.front {
    background-color: #303030;
    font-family: "Sora", sans-serif;
    display: flex;
    flex-direction: column;
    transform: rotateY(45deg);
    border: 2px solid rgb(0, 255, 64);
}

.front p {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.back {
    background-color: #303030;
    transform: rotateY(180deg);
    font-family: "Sora", sans-serif;
    font-size: 12px;
    text-align: center;
    border: 2px solid rgb(0, 255, 64);
}

.back p {
    width: 80%;
    height: 80%;
    font-size: 10px;
    align-items: center;
    display: flex;
}

#contact {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    opacity: 0;
    clip-path: inset(0 20% 0 0); /* Efeito de entrada sem travar */
    transform: translateY(30px); /* Animação mais suave */
    will-change: opacity, transform;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out, clip-path 1.5s ease-out;
}
#contact.myShow {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* Remove o efeito */
    transform: translateY(0);
}

.container {
    width: 900px;
    height: 500px;
    margin: auto;
    border-radius: 15px;
    display: flex;
}
.container p {
    color: white;
    margin-top: 35px;
    background-color: rgb(48, 48, 48);
    font-family: "Sora", sans-serif;
    width: 90%;
    height: 55%;
    font-size: 14px;
}
.box {
    display: flex; /* Ativa o flexbox */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    width: 90%;
    height: 90%;
    margin-top: 20px;
    margin-left: 20px;
    flex-direction: column; /* Garante que os itens sejam empilhados na coluna, não ao lado */
}

.box a {
    display: block;
    width: 200px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-family: sans-serif;
    text-decoration: none;
    color: var(--color-white);
    border: 1px solid #4d4d4d;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    transition: all .35s;
}

.box a span {
    position: relative;
    z-index: 2;
}

.box a:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1e9600;
    transition: all .35s;
}

.box a:hover:after {
    width: 100%;
}

.box a:hover {
    color: rgb(255, 255, 255);
}


#myLottiePlayer {
    width: 100%;
    height: 90%;
}
.container1 {
    width: 50%;
    height: 100%;
    background-color: rgb(48, 48, 48);
    border-radius: 15px 0 0 15px;
}

.container2 {
    width: 50%;
    height: 100%;
    background-color: rgb(48, 48, 48);
    border-radius: 0 15px 15px 0;
}

.container h1, .container p {
    color: white;
    margin-top: 30px;
    font-family: "Sora", sans-serif;
}

.cards {
    width: 100%;
    height: auto;
    display: flex;
    gap: 10px;
    background-color: rgb(48, 48, 48);
    margin-top: 30px;
}

.cards1, .cards2, .cards3, .cards4, .cards5 {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    transition: all 0.4s ease;
    align-items: center;
    display: flex;
    justify-content: center;
    background-color: var(--color-black);
    border: 2px solid transparent;
}

.cards1:hover { border-color: #C43093; }
.cards2:hover { border-color: #0C73B8; }
.cards3:hover { border-color: #F0DB4F; }
.cards4:hover, .cards5:hover { border-color: #376E9C; }


.custom-svg1, .custom-svg2, .custom-svg3, .custom-svg4 {
    width: 70%;
    height: 70%;
    display: flex;
    justify-content: center;
    border-radius: 15px;
}

/* Estilo para o modal */
.modalupgrade {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* O modal ficará escondido inicialmente */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#update-notes {
    color: black;
    margin-top:15px;
}


.modalupgradebox {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    height: auto;
}
.modalupgradebox h2 {
    font-family: "Sora", sans-serif;
    font-size: 17px;
    margin-bottom: 15px;
    margin-left: 25px;
}
.modalupgradebox p {
    font-family: "Sora", sans-serif;
    font-size: 13px;
    hyphens: auto;
    text-align: justify;
    word-spacing: normal;
    letter-spacing: normal;
    margin-bottom: 2px;
}

#update-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#update-btn:hover {
    background-color: #45a049;
}

/* Modal de Carregamento */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo semitransparente */
    display: none; /* Inicialmente invisível */
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 9999; /* Garantir que o modal fique acima de outros elementos */
}

.loading-box {
    text-align: center;
    padding: 20px;
    background-color: white; /* Fundo escuro para melhor contraste */
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    color: black;
    font-family: "Sora", sans-serif;
}

.loading-box h2 {
    font-size: 20px;
}

#loading-steps p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 10px;
}

.progress {
    padding-left: 5px; /* Pequeno espaço à esquerda */
    display: inline-block; /* Isso ajuda a manter o layout consistente */
    min-width: 40px; /* Ajuste o valor conforme necessário */
    text-align: right; /* Alinha o texto à direita */
}
.progress-success {
    color: green; /* Define a cor verde */
    font-weight: 600;
}


#loading-progress {
    font-size: 15px;
}

.success {
    color: #4CAF50; /* Cor verde para sucesso */
    margin-left: 10px;
}

#progress-percentage {
    font-weight: bold;
}

#privacy {
    width: 100%;
    height: 200px;
    justify-content: center;
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.151);
    opacity: 0;
    clip-path: inset(0 20% 0 0); /* Efeito de entrada sem travar */
    transform: translateY(30px); /* Animação mais suave */
    will-change: opacity, transform;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out, clip-path 1.5s ease-out;
}
#privacy.myShow {
    opacity: 1;
    clip-path: inset(0 0 0 0); /* Remove o efeito */
    transform: translateY(0);
}

#privacy img {
    width: 80px;
    height: 80px;
    margin-left: 150px;
    margin-top: 40px;
    
}
.map-page {
    margin-top: 20px;
    margin-left: 50px;
}
.map-page h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-family: "Sora", sans-serif;
    color: var(--color-text);
}
.map-page a {
    color: var(--color-text);
    font-family: "Sora", sans-serif;
    font-size: 11px;
    display: flex;
    margin-bottom: 10px;
    text-decoration: none;
    width: 45px;
    position: relative;
    width: fit-content;
}
.map-page a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--color-text); 
    width: 0;
    transition: width 0.5s ease;
}
.map-page a:hover::after {
    width: 100%;
}
.support {
    margin-top: 20px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
}
.support h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-family: "Sora", sans-serif;
    color: var(--color-text);
}
.support a {
    color: var(--color-text);
    font-family: "Sora", sans-serif;
    font-size: 11px;
    display: inline-block; 
    margin-bottom: 10px;
    text-decoration: none;
    position: relative;
    width: fit-content;
}

.support a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--color-text); 
    width: 0;
    transition: width 0.5s ease;
}

.support a:hover::after {
    width: 100%;
}

.redes-sociais {
    margin-top: 20px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.redes-sociais h3 {
    font-size: 14px;
    font-family: "Sora", sans-serif;
    color: var(--color-text);
}
.redes-sociais a {
    color: var(--color-text);
    font-family: "Sora", sans-serif;
    font-size: 11px;
    text-decoration: none !important; 
    position: relative;
    display: inline-block;
}

.redes-sociais a:hover {
    text-decoration: none !important;
}

.redes-sociais a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--color-text); 
    width: 0;
    transition: width 0.5s ease;
}

.redes-sociais a:hover::after {
    width: 100%;
}

.privacy-terms {
    margin-top: 20px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.privacy-terms h3 {
    font-size: 14px;
    font-family: "Sora", sans-serif;
    color: var(--color-text);
}
.privacy-terms a {
    color: var(--color-text);
    font-family: "Sora", sans-serif;
    font-size: 11px;
    display: inline-block;
    text-decoration: none;
    width: 90px;
    position: relative;
    width: fit-content;
}

.privacy-terms a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--color-text); 
    width: 0;
    transition: width 0.5s ease;
}

.privacy-terms a:hover::after {
    width: 100%;
}

/* Ícones SVG */
.icon-theme path {
    fill: var(--color-text); /* A cor do ícone será a cor do texto do tema */
}
/* Outros estilos para o SVG, caso necessário */
.icon-theme svg {
    transition: fill 0.3s ease; /* Adiciona uma transição suave para a mudança de cor */
}

.create-by {
    width: 100%;
    height: 15px;
    bottom: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.create-by p {
    font-size: 10px;
    color: var(--color-text);
    font-family: "Sora", sans-serif;
}



/* Estilo para o popup */
.popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.popup.show {
    display: flex;
    opacity: 1;
}

/* Estilo do conteúdo */
.popup-content {
    background: #fff;
    width: 100%;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Alinha os itens em coluna */
}

/* Wrapper para a descrição e botões */
.content-wrapper {
    display: flex; /* Alinha a descrição e os botões em linha */
    justify-content: space-between; /* Espaço entre a descrição e os botões */
    align-items: center; /* Alinha verticalmente ao centro */
}

.cookie {
    width: 30px;
    height: 25px;
}

/* Título */
.popup-content h2 {
    font-size: 16px;
    font-family: "Sora", sans-serif;
    margin-bottom: 10px;
}

/* Texto */
.popup-content p {
    font-size: 14px;
    margin: 0; /* Remove margem */
    color: #555;
    font-family: "Sora", sans-serif;
    flex: 1; /* Faz o parágrafo ocupar o espaço disponível */
    width: 50%;
}

/* Botões */
.buttons {
    display: flex;
    flex-direction: column; /* Alinha os botões em coluna */
    gap: 5px; /* Espaçamento entre os botões */
    margin-left: auto; /* Empurra os botões para a direita */
    position: absolute;
    right: 0;
    margin-right: 50px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    transition: 0.4s ease;
    box-shadow: 0px 2px 8px 0px rgba(60, 64, 67, 0.25);
    border: 1px solid #dfe1e5;
}

.btn-accept {
    color: black;
    font-size: 12px;
    background-color: white;
}

.btn-necessary {
    color: black;
    font-size: 12px;
    background-color: white;
}

.btn-deny {
    color: black;
    font-size: 12px;
    background-color: white;
}
.btn-opt {
    color: black;
    font-size: 12px;
    background-color: white;
}

/* Efeitos de hover */
.btn:hover {
    opacity: 0.9;
    box-shadow: 0px 4px 8px 0px rgba(60, 64, 67, 0.25);
}
.buttons a:hover {
    opacity: 0.9;
    box-shadow: 0px 4px 8px 0px rgba(60, 64, 67, 0.25);
}

/* Estilo da janela modal */
.modal {
    display: none; /* Inicialmente escondida */
    position: fixed; /* Fixa na tela */
    z-index: 1; /* Fica acima de outros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    justify-content: center; /* Alinha a janela no centro */
    align-items: center;
}

/* Conteúdo da modal */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    height: 500px;
    text-align: center;
}
.modal-content li {
    list-style: none;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    float: left;
    margin-bottom: 10px;
    font-weight: 500;
}
.modal-content p {
    list-style: none;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    float: left;
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.1em; 
    margin-bottom: 10px;
}

/* Estilo do botão de fechar */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content button {
    flex-direction: column;
    display: grid;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 10px;
}
.btn-accept2 {
    background-color: red;
    color: white;
}
.btn-deny2 {
    background-color: red;
    color: white;
}
.btn-accept2:hover {
    opacity: none;
    box-shadow: none;
}
.btn-deny2:hover {
    opacity: none;
    box-shadow: none;
}



@media screen and (min-width: 321px) and (max-width: 430px) {
    body { 
        overflow-x: hidden; 
    }
    ul a:hover {
        color: var(--color-white);
    }
    #menu-toggle {
        display: block; /* Exibir o botão hamburguer em telas pequenas */
    }

    /* Esconder o menu por padrão em dispositivos móveis */
    #menu {
        display: flex;
        gap: 25px;
        flex-direction: column;
        background-color: #1f1f1f;
        list-style: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 40%;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden; /* Menu começa invisível */
        transform: translateY(-50px); /* Começa fora da tela */
    }
    
    /* Quando o menu estiver ativo, ele aparece com animação */
    #menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        animation: slideDown 0.7s ease-out forwards;
    }
    
    /* Quando o menu fecha, ele some suavemente */
    #menu.closing {
        animation: slideUp 0.7s ease-in forwards;
    }
    #menu a {
        transition: opacity 0.5s ease-out;
    }
    #menu a.removed {
        opacity: 0;
    }
    /* Animação de entrada */
    @keyframes slideDown {
        0% {
            opacity: 0;
            transform: translateY(-50px);
        }
        100% {
            opacity: 1;
            transform: translateY(0) !important;
        }
    }
    
    /* Animação de saída */
    @keyframes slideUp {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(-50px);
            visibility: hidden;
        }
    }
    
    ul a {
        color: var(--color-white);
        font-family: "Sora", sans-serif;
        font-size: 16px;
    }

    /* Mostrar o menu quando estiver ativo */
    #menu.myShow {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    #menu-toggle.myShow {
        display: flex;
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
        transition: all 1s cubic-bezier(0.42, 0, 0.58, 1);
    }

    #my {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 550px;
        margin-bottom: 15px;
    }

    #my h1 {
        margin-left: 20px;
        margin-top: 40px;
        font-size: 20px;
        line-height: 23px;
    }

    #my p {
        margin-left: 20px;
        font-size: 12px;
        line-height: 15px;
        font-weight: lighter;
        margin-bottom: 20px;
    }

    .movie {
        width: 90%;
        height: 60%;
        margin-right: 5px;
        margin-top: 40px;
        margin: auto;
    }

    #skills {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        height: 760px;
        margin: 0;
        margin-top: 100px;
    }
    .card {
        width: 170px;
        height: 240px;
    }

    .container-skills {
        width: 100%;
        margin: 0;
        margin: auto;
        display: flex;
        justify-content: center;
    }

    #about {
        height: 200px;
        display: flex;
        
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    #about p { 
        font-size: 12px; 
        width: 90%;
        height: 90%;
    }

    #contact { 
        width: 100%; 
        height: 750px; 
        display: flex; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .container { 
        width: 100%; 
        flex-direction: column; 
        display: flex;
        margin: auto;
        align-items: center;
        justify-content: center;
        
    }
    .container1 { 
        width: 90%; 
        height: 300px;
        border-radius: 15px; 
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container h1 {
        text-align: center;
        font-size: 20px
    }
    .container p {
        width: 80%;
        text-align: center;
        margin: auto;
        margin-top: 15px;
        font-size: 12px
    }
    .container2 {
        width: 90%; 
        height: 100%;
        border-radius: 15px; 
    }
    .box {
        margin: auto;
        width: 90%; 
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cards { 
        width: 100%; 
        margin-top: 10px; 
        display: flex; 
        border-radius: 15px;
        justify-content: center;
        align-items: center;
    }
    
    .cards1, .cards2, .cards3, .cards4, .cards5 {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    .cards1 {
        border: 2px solid #C43093;
    }
    .cards2 {
        border: 2px solid #0C73B8;
    }
    .cards3 {
        border: 2px solid #F0DB4F;
    }
    .cards4 {
        border: 2px solid #015186;
    }
    .cards5 {
        border: 2px solid #5865F2;
    }
    .cards1:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards2:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards3:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards4:hover {
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards5:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .back p {
        width: 95%;
        height: 95%;
        font-size: 10px;
    }
    .front {
        background-color: #303030;
        font-family: "Sora", sans-serif;
        display: flex;
        flex-direction: column;
        transform: rotateX(0deg);
        border: 0px solid;
    }
    .instagram {
        width: 40px;
        height: 40px;
    }
    .linkedin {
        width: 40px;
        height: 40px;
    }
    .gmail {
        width: 40px;
        height: 40px;
    }
    .github {
        width: 40px;
        height: 40px;
    }
    .discord {
        width: 40px;
        height: 40px;
    }
    #about a:hover:after {
        width: 0%;
    }
    .box a {
        border: 1px solid #4e4e4e;
    }
    .box a:hover:after {
        width: 0%;
    }
    #privacy {
        width: 100%;
        height: auto;
        gap: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.151);
    }
    #privacy img {
        width: 50px;
        height: 50px;
        margin-left: 0px;
        display: flex;
        justify-content: center;
    }
    
    .map-page {
        margin-left: 0px;
        display: none;
    }
    .support {
        margin-left: 0;
    }
    .support h3 {
        font-size: 12px;
    }
    .redes-sociais {
        margin-left: 0;
    }
    .redes-sociais h3 {
        font-size: 12px;
    }
    .privacy-terms {
        margin-left: 0;
    }
    .privacy-terms h3 {
        font-size: 12px;
    }
    .popup {
        width: 100%;
        height: auto;
    }
    
    .popup-content {
        width: 100%;
        height: 280px;
        padding: 10px;
    }
    
    #popupTitle {
        width: 80%;
    }
    #popupDesc {
        font-size: 11px;
        width: 97%;
        height: auto;
        margin-bottom: 10px;
        text-align: justify;
        word-spacing: -0.1em; 
        font-family: "Sora", sans-serif;
    }
    .buttons {
        display: flex;
        position: relative;
        justify-content: center; /* Centraliza horizontalmente */
        align-items: center; /* Centraliza verticalmente */
        width: 100%;
        margin-bottom: 15px;
    }
    .btn-accept {
        width: 250px;
        height: 40px;
        padding: 5px;
        font-size: 12px;
        font-family: "Sora", sans-serif;
    }
    .btn-deny {
        width: 250px;
        height: 40px;
        padding: 5px;
        font-size: 12px;
        font-family: "Sora", sans-serif;
    }
    .btn-opt {
        width: 250px;
        height: 40px;
        padding: 5px;
        font-size: 11px;
        font-family: "Sora", sans-serif;
        border-radius: 0px;
        box-shadow: none;
        border: 0px solid black;
        text-decoration: underline;
    }
    .btn-opt:hover {
        opacity: none;
        box-shadow: none;
        border: 0px solid black;
    }
    .modal-content {
        width: 100%;
    }
    .modal-content h2 {
        font-size: 13px;
    }
    .modal-content li {
        font-size: 13px;
        text-align: left;
        width: 95%;
    }
    .modal-content p {
        font-size: 11px;
        text-align: justify;
        hyphens: auto;
        width: 95%;
        word-spacing: -0.1em; 
    }
    .modal {
        position: fixed; /* Fixa o modal em relação à viewport */
        bottom: 0; /* Posiciona o modal na parte inferior */
        left: 0; /* Garante que comece no canto esquerdo */
        width: 100%; /* Faz o modal ocupar toda a largura da tela */
        z-index: 9999; /* Garante que o modal esteja acima de outros elementos */
    }
    
}

@media screen and (min-width: 431px) and (max-width: 768px) {
    body { overflow-x: hidden; }

    #menu { 
        gap: 25px; 
        margin-top: 20px; 
    }
    ul a:hover {
        color: var(--color-white);
    }

    #my {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 550px;
        margin-bottom: 15px;
    }

    #my h1 {
        margin-left: 20px;
        margin-top: 40px;
        font-size: 20px;
        line-height: 23px;
    }

    #my p {
        margin-left: 20px;
        font-size: 12px;
        line-height: 15px;
        font-weight: lighter;
        margin-bottom: 20px;
    }

    .movie {
        width: 50%;
        margin-right: 5px;
        margin-top: 40px;
        margin: auto;
    }

    #skills {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 50%;
        height: 100%;
        margin: auto;
        margin-top: 100px;
    }
    .card {
        width: 170px;
        height: 240px;
    }

    .container-skills {
        width: 100%;
        margin: 0;
        margin: auto;
        display: flex;
        justify-content: center;
    }

    #about {
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    #about p { 
        font-size: 12px; 
        width: 90%;
        height: 90%;
    }

    #contact { 
        width: 100%; 
        height: 750px; 
        display: flex; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .container { 
        width: 100%; 
        
        flex-direction: column; 
        display: flex;
        margin: auto;
        align-items: center;
        justify-content: center;
        
    }
    .container1 { 
        width: 90%; 
        height: 300px;
        border-radius: 15px; 
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container h1 {
        text-align: center;
        font-size: 20px
    }
    .container p {
        width: 80%;
        text-align: center;
        margin: auto;
        margin-top: 15px;
        font-size: 12px
    }
    .container2 {
        width: 90%; 
        height: 100%;
        border-radius: 15px; 
    }
    .box {
        margin: auto;
        width: 90%; 
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cards { 
        width: 100%; 
        margin-top: 10px; 
        display: flex; 
        border-radius: 15px;
        justify-content: center;
        align-items: center;
    }
    
    .cards1, .cards2, .cards3, .cards4, .cards5 {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    .cards1 {
        border: 2px solid #C43093;
    }
    .cards2 {
        border: 2px solid #0C73B8;
    }
    .cards3 {
        border: 2px solid #F0DB4F;
    }
    .cards4 {
        border: 2px solid #015186;
    }
    .cards5 {
        border: 2px solid #5865F2;
    }
    .cards1:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards2:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards3:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards4:hover {
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards5:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .back p {
        width: 95%;
        height: 95%;
        font-size: 10px;
    }
    .front {
        background-color: #303030;
        font-family: "Sora", sans-serif;
        display: flex;
        flex-direction: column;
        transform: rotateX(0deg);
        border: 0px solid;
    }
    .instagram {
        width: 40px;
        height: 40px;
    }
    .linkedin {
        width: 40px;
        height: 40px;
    }
    .gmail {
        width: 40px;
        height: 40px;
    }
    .github {
        width: 40px;
        height: 40px;
    }
    .discord {
        width: 40px;
        height: 40px;
    }
    #about a:hover:after {
        width: 0%;
    }
    .box a {
        border: 1px solid #4e4e4e;
    }
    .box a:hover:after {
        width: 0%;
    }
    #privacy {
        width: 100%;
        height: auto;
        gap: 20px;
    }
    #privacy img {
        width: 50px;
        height: 50px;
        margin-left: 0px;
        display: flex;
        justify-content: center;
        display: none;
    }
    .my-logo {
        margin-left: 0px;
    }
    .map-page {
        margin-left: 0px;
        display: none;
    }
    .support {
        margin-left: 0;
    }
    .support h3 {
        font-size: 12px;
    }
    .redes-sociais {
        margin-left: 0;
    }
    .redes-sociais h3 {
        font-size: 12px;
    }
    .privacy-terms {
        margin-left: 0;
    }
    .privacy-terms h3 {
        font-size: 12px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    body { overflow-x: hidden; }

    #menu { 
        gap: 25px; 
        margin-top: 20px; 
    }
    ul a:hover {
        color: var(--color-white);
    }

    #my {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 550px;
        margin-bottom: 15px;
    }

    #my h1 {
        margin-left: 20px;
        margin-top: 40px;
        font-size: 20px;
        line-height: 23px;
    }

    #my p {
        margin-left: 20px;
        font-size: 12px;
        line-height: 15px;
        font-weight: lighter;
        margin-bottom: 20px;
    }

    .movie {
        
        height: 80%;
        margin-top: 20px;
        margin-right: 5px;
        margin-top: 40px;
        margin: auto;
    }

    #skills {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        width: 75%;
        height: auto;
        margin: auto;
        margin-top: 100px;
    }
    .card {
        width: 170px;
        height: 240px;
    }

    .container-skills {
        width: 100%;
    }

    #about {
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    #about p { 
        font-size: 12px; 
        width: 90%;
        height: 90%;
    }

    #contact { 
        width: 100%; 
        height: 750px; 
        display: flex; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .container { 
        width: 100%; 
        
        flex-direction: column; 
        display: flex;
        margin: auto;
        align-items: center;
        justify-content: center;
        
    }
    .container1 { 
        width: 90%; 
        height: 300px;
        border-radius: 15px; 
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container h1 {
        text-align: center;
        font-size: 20px
    }
    .container p {
        width: 80%;
        text-align: center;
        margin: auto;
        margin-top: 15px;
        font-size: 12px
    }
    .container2 {
        width: 90%; 
        height: 100%;
        border-radius: 15px; 
    }
    .box {
        margin: auto;
        width: 90%; 
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cards { 
        width: 100%; 
        margin-top: 10px; 
        display: flex; 
        border-radius: 15px;
        justify-content: center;
        align-items: center;
    }
    
    .cards1, .cards2, .cards3, .cards4, .cards5 {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    .cards1 {
        border: 2px solid #C43093;
    }
    .cards2 {
        border: 2px solid #0C73B8;
    }
    .cards3 {
        border: 2px solid #F0DB4F;
    }
    .cards4 {
        border: 2px solid #015186;
    }
    .cards5 {
        border: 2px solid #5865F2;
    }
    .cards1:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards2:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards3:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards4:hover {
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards5:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .back p {
        width: 95%;
        height: 95%;
        font-size: 10px;
    }
    .front {
        background-color: #303030;
        font-family: "Sora", sans-serif;
        display: flex;
        flex-direction: column;
        transform: rotateX(0deg);
        border: 0px solid;
    }
    .instagram {
        width: 40px;
        height: 40px;
    }
    .linkedin {
        width: 40px;
        height: 40px;
    }
    .gmail {
        width: 40px;
        height: 40px;
    }
    .github {
        width: 40px;
        height: 40px;
    }
    .discord {
        width: 40px;
        height: 40px;
    }
    #about a:hover:after {
        width: 0%;
    }
    .box a {
        border: 1px solid #4e4e4e;
    }
    .box a:hover:after {
        width: 0%;
    }
    #privacy {
        width: 100%;
        height: auto;
        gap: 20px;
    }
    #privacy img {
        width: 50px;
        height: 50px;
        margin-left: 0px;
        display: flex;
        justify-content: center;
    }
    .my-logo {
        margin-left: 0px;
    }
    .map-page {
        margin-left: 0px;
    }
    .support {
        margin-left: 0;
    }
    .support h3 {
        font-size: 12px;
    }
    .redes-sociais {
        margin-left: 0;
    }
    .redes-sociais h3 {
        font-size: 12px;
    }
    .privacy-terms {
        margin-left: 0;
    }
    .privacy-terms h3 {
        font-size: 12px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1200px) {
    body { overflow-x: hidden; }

    #menu { 
        gap: 25px; 
        margin-top: 20px; 
    }
    ul a:hover {
        color: var(--color-white);
    }

    #my {
        
        width: 100%;
        height: 550px;
        margin-bottom: 15px;
    }

    #my h1 {
        margin-left: 20px;
        margin-top: 40px;
        font-size: 20px;
        line-height: 23px;
    }

    #my p {
        margin-left: 20px;
        font-size: 12px;
        line-height: 15px;
        font-weight: lighter;
        margin-bottom: 20px;
    }

    .movie {
        display: flex;
        width: 40%;
        height: 80%;
    }

    #skills {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
        width: 60%;
        height: auto;
        margin: auto;
        margin-top: 100px;
    }
    .card {
        width: 170px;
        height: 240px;
    }

    .container-skills {
        width: 100%;
    }

    #about {
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    #about p { 
        font-size: 12px; 
        width: 90%;
        height: 90%;
    }

    #contact { 
        width: 100%; 
        height: 750px; 
        display: flex; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .container { 
        width: 100%; 
        
        flex-direction: column; 
        display: flex;
        margin: auto;
        align-items: center;
        justify-content: center;
        
    }
    .container1 { 
        width: 90%; 
        height: 300px;
        border-radius: 15px; 
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container h1 {
        text-align: center;
        font-size: 20px
    }
    .container p {
        width: 80%;
        text-align: center;
        margin: auto;
        margin-top: 15px;
        font-size: 12px
    }
    .container2 {
        width: 90%; 
        height: 100%;
        border-radius: 15px; 
    }
    .box {
        margin: auto;
        width: 90%; 
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cards { 
        width: 100%; 
        margin-top: 10px; 
        display: flex; 
        border-radius: 15px;
        justify-content: center;
        align-items: center;
    }
    
    .cards1, .cards2, .cards3, .cards4, .cards5 {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    .cards1 {
        border: 2px solid #C43093;
    }
    .cards2 {
        border: 2px solid #0C73B8;
    }
    .cards3 {
        border: 2px solid #F0DB4F;
    }
    .cards4 {
        border: 2px solid #015186;
    }
    .cards5 {
        border: 2px solid #5865F2;
    }
    .cards1:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards2:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards3:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards4:hover {
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .cards5:hover { 
        border-color: var(--color-black);
        border: 2px solid transparent;
    }
    .back p {
        width: 95%;
        height: 95%;
        font-size: 10px;
    }
    .front {
        background-color: #303030;
        font-family: "Sora", sans-serif;
        display: flex;
        flex-direction: column;
        border: 0px solid;
        transform: rotateY(0deg);
    }
    .instagram {
        width: 40px;
        height: 40px;
    }
    .linkedin {
        width: 40px;
        height: 40px;
    }
    .gmail {
        width: 40px;
        height: 40px;
    }
    .github {
        width: 40px;
        height: 40px;
    }
    .discord {
        width: 40px;
        height: 40px;
    }
    #about a:hover:after {
        width: 0%;
    }
    .box a {
        border: 1px solid #4e4e4e;
    }
    .box a:hover:after {
        width: 0%;
    }
    #privacy {
        width: 100%;
        height: auto;
        gap: 20px;
    }
    #privacy img {
        width: 50px;
        height: 50px;
        margin-left: 0px;
        display: flex;
        justify-content: center;
    }
    .my-logo {
        margin-left: 0px;
    }
    .map-page {
        margin-left: 0px;
    }
    .support {
        margin-left: 0;
    }
    .support h3 {
        font-size: 12px;
    }
    .redes-sociais {
        margin-left: 0;
    }
    .redes-sociais h3 {
        font-size: 12px;
    }
    .privacy-terms {
        margin-left: 0;
    }
    .privacy-terms h3 {
        font-size: 12px;
    }
}