/* #region Variáveis & Base */
:root {
    --bg-dark: #0b0f14;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #0b0f14;
    --primary: #00e0ff;
    --color-two: rgb(85, 235, 255);
    /* Adicionei variaveis que estavam sendo usadas mas não declaradas no root, 
       ajuste as cores se necessário, ou o código vai buscar o fallback */
    --bk: #111;
    /* Exemplo de cor de fundo de containers */
    --popp: 'Poppins', sans-serif;
    --raleway: 'Raleway', sans-serif;
    --quick: 'Quicksand', sans-serif;
}

* {

    padding: 0;
    margin: 0;
    /* Adicionei margin 0 para garantir reset */
    box-sizing: border-box;
    /* Importante para o layout não quebrar */

}

span {
    color: var(--color-two);
    filter: var(--sat);
    text-shadow: var(--shadow-two);

}


body {
    font-family: system-ui, sans-serif;
    transition: background 0.3s, color 0.3s;
    padding-top: 100px;
}

/* DARK / LIGHT MODES */
body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}

.brand-color {
    color: var(--color-two);
}

.section {
    padding: 80px 0;
}

/* #endregion */

/* #region Navbar */
/* NAVBAR FLUTUANTE (STYLE IPHONE) */
.navbar {
    position: fixed;
    top: 18px;

    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 1100px;

    background: white;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 999px;
    padding: 10px 26px;

    border: 1px solid rgba(0, 224, 255, 0.35);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);

    transition: all 0.3s ease;
    z-index: 9999;
}

.navbar .nav-link {
    color: #e6faff !important;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.navbar .nav-link:hover {
    background: rgba(0, 224, 255, 0.15);
    color: #00fff2 !important;
}

.navbar-nav {
    align-items: center;
}

/* Dark Mode Específico da Navbar */
body.dark .navbar {
    background-color: #0b1f24;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

body.dark .navbar .navbar-brand,
body.dark .navbar .nav-link {
    color: #e6faff !important;
}

body.dark .navbar .nav-link:hover {
    color: #00fff2 !important;
}

body.dark .navbar-toggler {
    border-color: rgba(0, 255, 242, 0.4);
}

body.dark .navbar-toggler-icon {
    filter: invert(1);
}

/* Toggle Switch */
.theme-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.3rem;
    cursor: pointer;
    background-color: black
}


/* Responsivo Navbar */
@media (max-width: 991px) {
    .navbar {
        padding: 12px 18px;
        border-radius: 22px;
    }

    .navbar-collapse {
        margin-top: 15px;
    }
}

/* #endregion */

/* #region Home */
#home {

    padding-top: 10px !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#home .row {
    align-items: center;
}

/* Texto à esquerda */
#home .col-lg-7 {
    text-align: left;
}

/* Subtitle */
.subtitle {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Social Links */
.social-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-top {
    display: flex;
    gap: 18px;
}

.social-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;

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

    color: var(--color-two);
    font-size: 1.4rem;

    background: transparent;
    box-shadow: 0 0 18px rgba(0, 224, 255, 0.35);

    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-two);
    color: white;
    transform: translateY(-4px);
}

.social-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 26px;
    border-radius: 999px;

    font-weight: 600;
    font-size: 0.95rem;

    color: var(--color-two);
    text-decoration: none;

    box-shadow: 0 0 25px rgba(0, 224, 255, 0.35);
    transition: all 0.25s ease;
}

.social-contact:hover {
    background: var(--color-two);
    color: white;
    transform: translateY(-3px);
}

/* Skills */
.skills {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
    animation: flutuar 8s ease-in-out infinite;

}

.skills img {
    width: 55px;
    height: auto;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.skills img:hover {
    transform: translateY(-6px);

}

/* Foto Home */
.photo {
    width: 520px;
    height: 520px;

    object-fit: cover;
    border-radius: 50%;

    box-shadow:
        0 0 30px rgba(0, 224, 255, 0.4),
        0 0 80px rgba(0, 224, 255, 0.2);
    animation: flutuar 3s ease-in-out infinite;

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo:hover {
    transform: scale(1.04);
}

/* Responsivo Home */
@media (max-width: 991px) {
    #home .col-lg-7 {
        text-align: center;
    }

    .social-links,
    .social-top,
    .skills {
        justify-content: center;
        align-items: center;
    }

    .photo {
        margin: 40px auto 0;
        display: block;
    }
}

/* #endregion */

/* #region About (Sobre) */
#about {
    padding-top: 80px;
    margin-top: 0;
    padding-bottom: 120px;
}

.box-about {
    text-align: center;
}

.box-about h1 {
    font-family: var(--popp);
    font-size: 2em;
    gap: 15px;
}

.box-about span {
    color: var(--color-two);
    filter: var(--sat);
    text-shadow: var(--shadow-two);
}

.box-about:hover span {
    filter: saturate(100%);
}

.box-title-about {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.box-info-about {
    display: flex;
    justify-content: center;
    gap: 8em;
    padding: 0 8%;
    margin-top: 100px;
    cursor: default;
}

.box-info-about p {
    color: rgb(165, 165, 165);
}

/* Cards Sobre */
.info-about {
    width: 400px;
    background-color: var(--bk);
    padding: 40px;
    border-radius: 2em;
    box-shadow: 1px 1px 20px rgb(0, 99, 99);
}

.info-about p {
    font-size: 1em;
}

.info-about:hover {
    box-shadow: -15px 10px 30px rgb(65, 165, 165);
    border-radius: 2.4em;
    padding-right: 20px;
    transition: 1s;
}

.info-about:hover p {
    color: #fff;
}

.info-about:hover p span {
    color: rgb(127, 240, 255);
}

.info-about:hover p #html {
    color: rgb(255, 200, 127);
}

.info-about:hover p #css {
    color: rgb(127, 255, 185);
}

.info-about:hover p #js {
    color: rgb(246, 255, 127);
}

/* #endregion */

/* #region Projects */
#projects {
    padding: 60px 20px;
    width: 100%;
    background-color: rgb(19, 23, 27);
    text-align: center;
}

.title-projects {
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#projects h1 {
    font-size: 2.5em;
    font-family: var(--popp);
    color: #fff;
    margin-bottom: 15px;
}

#projects span {
    color: var(--color-two);
    text-shadow: var(--shadow-two);
}

#projects p {
    color: #ccc;
    line-height: 1.6;
}

/* Galeria Flexível */
.gallery-projects {
    display: flex;
    flex-wrap: wrap; /* Isso permite que os cards quebrem linha sozinhos */
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Individual */
.project {
    flex: 1 1 300px; /* Largura mínima de 300px, cresce se houver espaço */
    max-width: 380px;
    height: 280px;
    background-color: #111;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

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

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

/* Overlay de Informações */
.info-project {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95) 70%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.info-project h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--raleway);
}

/* Botões Estilizados */
.btn-project {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-link {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--quick);
    transition: 0.3s;
}

.btn-link.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.btn-link.active:hover {
    background-color: var(--color-two);
    transform: scale(1.05);
}

.btn-link.inactive {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

/* Faixa de "Em Produção" */
.faixa { 
    position: absolute;
    z-index: 10;
    top: 20px;
    right: -35px;
    width: 150px;
    background: #ffeb3b;
    color: #000;
    font-weight: bold;
    transform: rotate(45deg);
    font-size: 12px;
    padding: 5px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ==========================================
   LIGHTBOX GALERIA VERTICAL (ESTILO REVISTA DARK LUXURY)
   ========================================== */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox.hidden { display: none; }

/* Fundo Elegante (Dark Theme) */
.lightbox-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #0f1115; 
    z-index: 1;
}

/* Área de Rolagem */
.lightbox-scroll-area {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5rem;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ==========================================
   A MÁGICA DAS IMAGENS (Sem distorcer, sem vazar)
   ========================================== */
.lightbox-gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    max-width: 1400px;
}

.lightbox-gallery-container img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin-top: 5vh;
    margin-bottom: 5vh; 
    display: block;
    object-fit: contain;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* ==========================================
   BOTÃO VOLTAR (Canto Esquerdo)
   ========================================== */
.btn-voltar-projetos {
    position: fixed; top: 2rem; left: 2rem; z-index: 10;
    display: flex; align-items: center; gap: 0.5rem;
    background: transparent; border: none;
    color: #fff;
    font-family: var(--popp), sans-serif;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.15em;
    cursor: pointer; transition: transform 0.3s ease;
}
.btn-voltar-projetos:hover { transform: translateX(-5px); color: var(--color-two); }

/* ==========================================
   BOTÃO DETALHES VERTICAL (Na borda direita) - CORRIGIDO
   ========================================== */
.btn-aba-detalhes {
    position: fixed; top: 50%; right: 0; z-index: 9;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    padding: 1.2rem 0.5rem;
    font-family: var(--popp), sans-serif; 
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.25em;
    background: #1a1d24;
    color: #ffffff !important; /* Garante que escrito "DETALHES" fique branco */
    border: none; cursor: pointer;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.lightbox:not(.info-active) .btn-aba-detalhes:hover { 
    background: var(--color-two); 
    color: #000000 !important; 
}

/* Quando o painel abre, o botão vira "FECHAR" */
.lightbox.info-active .btn-aba-detalhes {
    right: 450px; 
    background: var(--color-two) !important; /* Fundo ciano */
    color: #000000 !important; /* Letra PRETA pra dar contraste e não sumir */
}

/* ==========================================
   CONSERTO DO TEXTO DO BOTÃO (HOVER E ABERTO)
   ========================================== */
/* 1. Quando o botão está NORMAL (fundo escuro) */
.btn-aba-detalhes span {
    color: #ffffff !important;
    text-shadow: none !important;
    filter: none !important;
}

/* 2. Quando passa o mouse (HOVER) no botão "DETALHES" (fundo ciano) */
.lightbox:not(.info-active) .btn-aba-detalhes:hover span {
    color: #000000 !important; 
}

/* 3. Quando o painel está ABERTO ("FECHAR" com fundo ciano) */
.lightbox.info-active .btn-aba-detalhes span {
    color: #000000 !important; 
    text-shadow: none !important; 
    filter: none !important;
}

/* ==========================================
   PAINEL FICHA TÉCNICA & LISTA (ALINHAMENTO E CORES CORRIGIDOS)
   ========================================== */
.lightbox-info-panel {
    position: fixed; top: 0; right: 0; 
    width: 450px; max-width: 100vw; height: 100%;
    background-color: #1a1d24;
    padding: 6rem 3rem 3rem 3rem;
    z-index: 8; transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    text-align: left !important; /* MATA A CENTRALIZAÇÃO DO #PROJECTS AQUI */
}

.lightbox.info-active .lightbox-info-panel { transform: translateX(0); }

/* Título */
.lightbox-info-panel h2 { 
    font-family: var(--popp); font-size: 1.5rem; font-weight: 500; 
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; 
    color: #ffffff !important; 
    text-align: left !important;
}

.info-divider { 
    width: 40px; height: 2px; 
    background-color: var(--color-two); 
    margin-bottom: 2rem; 
}

/* Descrição Principal (100% Branca) */
.lightbox-info-panel p, #info-desc, #info-desc span { 
    font-family: var(--raleway); font-size: 0.95rem; line-height: 1.7; 
    color: #ffffff !important; 
    font-weight: 300; 
    text-align: left !important;
    text-shadow: none !important; /* Mata o brilho global do span */
    filter: none !important;
}

/* Botão Ler Mais no meio do texto */
#info-desc #btn-ler-mais-inline {
    color: var(--color-two) !important;
    text-shadow: var(--shadow-two) !important; /* Devolve o brilho só pro botão */
    filter: var(--sat) !important;
}

/* ==========================================
   A LISTA ALINHADA NA ESQUERDA
   ========================================== */
.info-list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 2rem 0 0 0 !important; 
    width: 100% !important;
    display: block !important;
}

/* Força cada item pra esquerda */
.info-list li { 
    font-family: var(--raleway); 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: flex-start !important; /* Fica no canto esquerdo */
    margin-bottom: 1.5rem !important; 
    width: 100% !important;
    text-align: left !important;
}

/* Títulos (TIPOLOGIA, STACK, etc) no Azul/Ciano */
.info-list li strong { 
    font-family: var(--popp); 
    color: var(--color-two) !important; 
    font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.4rem !important; 
    font-size: 0.75rem; text-transform: uppercase; 
    display: block !important;
}

/* Respostas em Branco */
.info-list li span { 
    font-size: 0.85rem !important; 
    line-height: 1.6 !important; 
    color: #ffffff !important; /* Força o branco */
    text-shadow: none !important; /* Mata o brilho do span global aqui também */
    filter: none !important;
    text-align: left !important;
}

/* ==========================================
   AVISO SCROLL (Minimalista no rodapé)
   ========================================== */
.scroll-down-hint {
    position: fixed; bottom: 3vh; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    color: #fff !important; font-family: var(--popp); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em;
    animation: bounceUpDown 2s infinite; pointer-events: none; transition: opacity 0.4s ease;
}

.scroll-down-hint.escondido { opacity: 0 !important; }
.scroll-down-hint svg { stroke: #fff !important; width: 16px !important; height: 16px !important; }

@keyframes bounceUpDown { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ==========================================
   BOTÃO PRÓXIMO PROJETO
   ========================================== */
.btn-proximo-projeto {
    position: fixed; bottom: 3vh; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; align-items: center; gap: 0.5rem;
    background: transparent; color: #fff !important; border: none;
    font-family: var(--popp); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
    cursor: pointer; transition: opacity 0.4s ease, transform 0.3s ease; opacity: 1;
}

.btn-proximo-projeto svg { stroke: #fff !important; transition: transform 0.3s ease; }
.btn-proximo-projeto:hover svg { transform: translateX(5px); }
.btn-proximo-projeto.escondido { opacity: 0 !important; pointer-events: none; }

/* Responsividade Mobile */
@media (max-width: 768px) {
    .lightbox-gallery-container { width: 95%; }
    .btn-voltar-projetos { top: 1rem; left: 1rem; }
    .lightbox-info-panel { width: 100%; padding: 5rem 2rem 2rem 2rem; }
    .lightbox.info-active .btn-aba-detalhes { right: calc(100% - 30px); }
}
/* ==========================================
   HINT: DESÇA A PÁGINA (Com animação)
========================================== */
.scroll-down-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--popp), sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    z-index: 9999999;
    animation: bounce 2s infinite; /* Efeito do vídeo */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ==========================================
   ESCONDER A NAVBAR FORÇADO (Opcional via CSS)
========================================== */
/* Quando o JS adicionar essa classe no body, qualquer header some */
body.esconde-nav header,
body.esconde-nav nav {
    display: none !important;
}


/* #endregion */

/* #region Contact */
#contact {
    padding-top: 160px;
    margin-top: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 160px;

}

.form-contact {
    background-color: var(--bk);
    width: 52em;
    height: auto;
    text-align: center;
    border-radius: 1.4em;
    box-shadow: 0px 0px 50px rgb(0, 221, 221);
}

.form-contact:hover {
    box-shadow: 0px 0px 50px rgb(0, 95, 95);
}

.form-contact h1 {
    margin: 60px;
    font-size: 2em;
    font-family: var(--popp);
}

.form-contact span {
    color: var(--color-two);
    filter: var(--sat);
    text-shadow: var(--shadow-two);
}

.box-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-contact .campo-form {
    background-color: rgb(32, 32, 32);
    border: 1px solid rgb(28, 28, 28);
    font-family: var(--quick);
    border-radius: 10px;
    padding: .8rem;
    outline: none;
    color: #fff;
    font-size: 1em;
    margin-bottom: 1em;
    resize: none;
    width: 700px;
}

.box-contact .campo-form:focus {
    border: 1px solid var(--color-two);
    box-shadow: var(--shadow-two);
}

/* Placeholder fix se precisar */
.campo-form-two::placeholder {
    margin-top: 20px;
}

.form-contact button {
    font-family: var(--quick);
    background-color: transparent;
    font-size: 1.1em;
    color: var(--color-two);
    border: 1px solid var(--color-two);
    border-radius: 40px;
    width: 280px;
    height: 60px;
    cursor: pointer;
    filter: var(--sat);
    margin: 30px;
}

.form-contact button:hover {
    box-shadow: var(--shadow-two);
    color: #000000;
    background-color: var(--color-two);
    border: none;

    transition: all 0.25s ease;
}

/* #endregion */

/* #region Outros / Animações */



.animation.active {
    color: var(--color);
    text-align: var(--shadow);
}

/* #endregion */



