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

html {
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none;  /* Para Internet Explorer e Edge legado */
}

html::-webkit-scrollbar {
    display: none; /* Para Chrome, Safari e outros navegadores WebKit */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #212121;
    color: #f0f0f0;
    overflow-x: hidden;
}



section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.content {
    text-align: center;
}

h1 {
    font-size: 10vw;
    font-weight: 700;
    letter-spacing: -2px;
}

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

html {
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none;  /* Para Internet Explorer e Edge legado */
}

html::-webkit-scrollbar {
    display: none; /* Para Chrome, Safari e outros navegadores WebKit */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #212121;
    color: #f0f0f0;
    overflow-x: hidden;
}

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.content {
    text-align: center;
}

h1 {
    font-size: 10vw;
    font-weight: 700;
    letter-spacing: -2px;
}

h2 {
    font-size: 8vw;
    font-weight: 400;
}

.arrow {
    position: absolute;
    right: 40px;
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 0;
    border-left: 0;
    cursor: pointer;
}

.arrow-down {
    bottom: 30px;
    transform: rotate(45deg);
    animation: bounce-down 2s infinite;
}

.arrow-up {
    top: 30px;
    transform: rotate(-135deg);
    animation: bounce-up 2s infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes bounce-up {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-135deg);
    }
    40% {
        transform: translateY(10px) rotate(-135deg);
    }
    60% {
        transform: translateY(5px) rotate(-135deg);
    }
}

.section-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Estilos para o seletor de idioma (bandeira do Brasil vazada) */
.lang-selector {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 20;
}

.lang-toggle {
    width: 56px;
    height: 34px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    opacity: 0.95;
}

/* animação curta ao ativar */
.lang-toggle.animate {
    animation: pop 300ms ease;
}

@keyframes pop {
    0% { transform: scale(0.96); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Garante que o SVG use traços visíveis em fundos escuros */
.lang-toggle svg { filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6)); width: 96px; height: 64px; }

.section-nav ul {
    list-style: none;
}

.section-nav li {
    margin: 10px 0;
    position: relative; /* Necessário para o tooltip */
    cursor: pointer;
    padding: 5px 10px; /* Aumenta a área de hover/clique */
}

.section-nav li a {
    display: block;
    width: 2px;
    height: 25px;
    background-color: #555;
    transition: background-color 0.3s ease;
}

.section-nav li::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 30px; /* Ajustado para a nova área de padding */
    transform: translateY(-50%);
    background-color: #333;
    color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Garante que o tooltip não interfira no hover */
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.section-nav li:hover::after {
    opacity: 1;
    visibility: visible;
}

.section-nav li.active a {
    background-color: #f0f0f0;
}

/* Estilos para a seção de Links */
#links .content {
    width: 100%;
    padding: 0 20px;
}

.link-groups-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px; /* Espaço entre os grupos de links (aumentado) */
    width: 100%;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os links no mesmo grupo */
    min-width: 220px; /* Largura mínima para os grupos */
}

/* Títulos dos grupos */
.group-title {
    font-size: 18px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 6px;
    text-align: center;
}

/* Aparência dos links: linha fina abaixo */
.link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 20px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08); /* linha fina abaixo */
}

/* Linha vermelha para links do YouTube */
.link-youtube {
    border-bottom-color: #ff0000 !important;
}

/* Linha roxa para link da Twitch */
.link-twitch {
    border-bottom-color: #673ab7 !important;
}

.link-x {
    border-bottom-color: #ffffff !important;
}

/* TikTok: linha só na cor #25F4EE */
.link-tiktok {
    border-bottom-color: #25F4EE !important;
}

.link i {
    font-size: 20px;
    margin-right: 15px; /* Espaço entre o ícone e o texto */
    width: 25px; /* Alinha os ícones */
    text-align: center;
}

/* Responsividade: empilha as colunas em telas pequenas */
@media (max-width: 800px) {
    .link-groups-container {
        flex-direction: column;
        align-items: center;
    }

    .link-group {
        width: 100%;
        max-width: 520px;
    }
}

.email-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

#email-link {
    color: #f0f0f0;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

#email-link:hover {
    color: #aaa;
}

/* Estilos para a seção de Vídeos Minimalista */
#midia .content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.live-on-container {
    margin-bottom: 20px;
}

.live-on-text {
    font-size: 24px;
    font-weight: bold;
    color: #f0f0f0;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.live-on-line {
    border: 0;
    height: 1px;
    background: #ff0000;
    width: 100px;
    margin: 0 auto;
}

.videos-container {
    position: relative;
    width: 90%;
    max-width: 930px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* 16:9 aspect ratio */
}

.twitch-player-container,
.youtube-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.twitch-player-container iframe,
.youtube-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Larger screens (laptops/desktops) */
@media (min-width: 993px) {
    .videos-container {
        width: 780px;
        height: 438px;
        padding-top: 0; /* Reset padding-top */
    }
}

/* Extra large screens */
@media (min-width: 1201px) {
    .videos-container {
        width: 930px;
        height: 523px;
    }
}

/* Specific styling for 9:16 portrait mobile screens */
@media (max-width: 480px) and (aspect-ratio: 9/16) {
    h1 {
        font-size: 16vw;
    }

    .videos-container {
        padding-top: 100%; /* Make video taller on 9:16 screens */
    }

    .link-groups-container {
        gap: 20px;
    }
}

/* Force smaller video size on mobile devices to ensure it renders */
@media (max-width: 768px) {
    .videos-container {
        width: 90%;
        max-width: 360px !important; /* Force a smaller max-width */
    }
}



.twitch-player-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 5px);
    height: 2px;
    background-color: rgba(255,255,255,0.08);
}

.twitch-player-container::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 2px;
    height: calc(100% + 5px);
    background-color: rgba(255,255,255,0.08)
}





/* Estilos para a seção de Projetos */
#projetos .content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.projetos-container {
    display: flex;
    justify-content: center; /* Centraliza os itens na linha */
    flex-wrap: wrap; /* Permite que quebrem para a próxima linha */
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.projeto-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #f0f0f0;
    height: 100%;
    transition: background-color 0.2s ease;
    width: 250px; /* Largura fixa que definimos anteriormente */
}

.projeto-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.projeto-title {
    font-size: 22px;
    font-weight: 600;
    padding: 20px 20px 15px 20px;
    border-top: 2px solid transparent; /* Make it transparent by default */
}

.projeto-description {
    font-size: 16px;
    color: #ccc;
    padding: 15px 20px 20px 20px;
    padding: 20px;
    border-top: 1px solid #555; 
    flex-grow: 1;
}

.hidden {
    display: none;
}

/* Estilos para o indicador de LIVE */
.live-indicator {
    display: none; /* Escondido por padrão */
    margin-left: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #ff0000;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.link-twitch.live .live-indicator {
    display: inline-block; /* Mostra o indicador quando a classe .live está presente */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.youtube-player-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.youtube-player-container iframe {
    width: 100%;
    height: 100%;
}

.youtube-player-container::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: calc(100% + 5px);
    height: 2px;
    background-color: rgba(255,255,255,0.08);
}

.youtube-player-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 2px;
    height: calc(100% + 5px);
    background-color: rgba(255,255,255,0.08);
}

.projeto-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.status-planejamento {
    background-color: #1E09FF;
}

.status-iniciado {
    background-color: #FFD700;
}

.status-parcial {
    background-color: #9370DB;
}

.status-parado {
    background-color: #FF4500;
}

.status-concluido {
    background-color: #32CD32;
}
.lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    border-radius: 4px;
    padding: 5px;
}

.lang-option {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}
.link-reddit {
    border-bottom-color: #FF4500 !important;
}

.link-github {
    border-bottom-color: #181717 !important;
}

/* --- Media Queries for Responsiveness --- */

/* Extra small devices (phones, 600px and down) */
@media (max-width: 600px) {
    h1 {
        font-size: 18vw; /* Larger font on very small screens */
        letter-spacing: -1px;
    }

    .section-nav {
        display: none; /* Hide side nav on mobile */
    }

    .arrow {
        right: 20px;
        width: 15px;
        height: 15px;
    }
    
    .arrow-down {
        bottom: 75px;
    }

    .arrow-up {
        top: 20px;
    }

    .link-groups-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .link-group {
        width: 90%;
        max-width: 380px;
    }

    .projetos-container {
        gap: 20px;
        justify-content: center;
    }

    .projeto-item {
        width: 90%;
        max-width: 320px;
    }

    .email-container {
        bottom: 20px;
        font-size: 14px;
    }

    .lang-selector {
        top: 10px;
        left: 10px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media (min-width: 601px) and (max-width: 768px) {
    h1 {
        font-size: 15vw;
    }

    .section-nav {
        display: none; /* Hide side nav on tablets */
    }

    .link-groups-container {
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }
    
    .link-group {
        width: 80%;
        max-width: 450px;
    }
}

/* Adjust #links section for mobile to make all content visible */
@media (max-width: 768px) {
    #links {
        align-items: flex-start;
        padding-top: 10vh; /* Reduced padding */
    }

    #links .link-groups-container {
        gap: 25px; /* Reduced gap between groups */
    }

    #links .link-group {
        gap: 12px; /* Reduced gap within groups */
    }

    #links .email-container {
        position: relative; /* Change positioning */
        bottom: auto;
        margin-top: 30px; /* Add margin to space it from links */
    }
}

/* Oculta as setas em telas móveis e exibe apenas na seção ativa */
@media (max-width: 768px) {
    .arrow {
        display: none;
    }

    section.active .arrow {
        display: block;
    }
}
