/* ==================== VARIÁVEIS ==================== */

:root {
    /*CORES*/
    --bg-color: #0a0a0c;
    --neon-pink: #FF00FF;
    --neon-cyan: #00FFFF;
    --neon-purple: #BC13FE;
    --text-main: #aaa;
    /*FONTES*/
    --font-display: 'Meow Script', cursive;
    --font-sub: 'Rajdhani', sans-serif;
    --font-corpo: 'montserrat', sans-serif;

    --transition-duration: 0.35s;
    --footer-offset: 56px;
}

/* ==================== RESET E BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    color: var(--bg-color);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* ==================== FOCO VISÍVEL ==================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* ==================== ACESSIBILIDADE ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-corpo);
    line-height: 1.6;
    height: 100%;
}

/* ==================== EFEITOS VISUAIS DE FUNDO ==================== */
.bg-overlay {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: left;
    z-index: -2;
    transition: background-image 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.bg-overlay.default-bg {
    background: 
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 75%), 
        url('images/fundo-desktop.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.bg-overlay.alt-bg {
    background-size: cover;
    background-position: center;
}



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAV - MENU SUPERIOR ==================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 0, 255, 0.1);
    font-size: 15px;
}

.logo {
    color: var(--neon-cyan);
    font-family: var(--font-sub);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 201;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

.nav-links a.active-link {
    color: var(--neon-pink);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Botão de Menu (Desktop default: hidden) */
.menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-icon .material-symbols-outlined {
    font-size: 30px !important;
    font-variation-settings: 'wght' 100;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    display: block;
}

/* ==================== ESTRUTURA E TRANSIÇÃO ==================== */
.page {
    position: fixed;
    inset: 0; /* inicialmente invisível via visibility/opacity */
    visibility: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: auto;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity var(--transition-duration) ease-out, transform var(--transition-duration) ease-out, visibility 0s linear var(--transition-duration);
}

.page.active {
    visibility: visible;
    transition-delay: 0s;
    z-index: 50;
    opacity: 1;
    transform: scale(1);
}

.section-title {
    font-size: 1.7rem;
    font-family: var(--font-corpo);
    font-weight: 100;
    color: var(--neon-pink);
    border-left: none;
    padding-left: 0;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(188, 19, 254, 0.5);
    width: 100%;
}

/* ==================== HOME ==================== */
#home {
    justify-content: center;
    align-items: stretch;
    padding: 0 20px;
    min-height: 100dvh;
}

.home-inner {
    width: min(100%, 1200px);
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding-top: clamp(80px, 10vh, 110px);
    padding-bottom: clamp(110px, 16vh, 150px);
}

.sign-container {
    align-self: flex-start;
}

.neon-text {
    font-family: var(--font-display);
    font-size: clamp(5rem, 9vw, 7.5rem);
    color: #333;
    opacity: 0.3;
    line-height: 1;
    transform: rotate(-5deg);
    display: block;
    text-align: left;
    font-weight: normal;
}

.neon-text:focus,
.neon-text:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.subtitle {
    font-family: var(--font-sub);
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    letter-spacing: clamp(0.14em, 0.28vw, 0.22em);
    text-transform: uppercase;
    color: #555;
    font-weight: 300;
    opacity: 0.6;
    margin-top: 4px;
    text-align: left;
}

/* NEON ON EFFECTS */
.neon-on .neon-text {
    color: #fff;
    opacity: 1;
    text-shadow:
        0 0 5px #fff, 0 0 10px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        0 0 80px var(--neon-pink);
}

.neon-on .subtitle {
    color: var(--neon-cyan);
    opacity: 1;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.flicker-effect {
    opacity: 0.5 !important;
    text-shadow: none !important;
    color: #666 !important;
}

/* CONTAINER DO BOTÃO LIGA/DESLIGA - DESKTOP */
.power-control-wrapper {
    position: fixed;
    bottom: 50px;
    left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.control-label {
    font-family: var(--font-sub);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* INTERRUPTOR MINIMALISTA */
.switch-industrial {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 20px;
}

.switch-industrial input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    transition: .3s;
    border-radius: 2px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: #333;
    transition: .3s;
    border-radius: 1px;
}

input:checked+.slider:before {
    transform: translateX(20px);
    background: #2e7d32;
}

/* ==================== SOBRE MIM ==================== */
#sobre-mim .section-text {
    margin: 10px auto 0;
    font-family: var(--font-corpo);
    color: var(--text-main);
    max-width: 800px;
    text-align: center;
}

.about-grid {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about-header-block {
    width: 100%;
    padding: 0;
}

.about-card {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    border-radius: 20px;
}

.left-card {
    border-left: 3px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.25), inset 0 0 5px rgba(0, 255, 255, 0.1);
}

.right-card {
    border-right: 3px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.25), inset 0 0 5px rgba(255, 0, 255, 0.1);
}

.card-title {
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.2);
    font-family: var(--font-sub);
}

.right-card .card-title {
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    border-bottom: 1px dashed rgba(255, 0, 255, 0.2);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 100;
    line-height: 1.4;
    opacity: 0.9;
    transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.feature-list li::before {
    content: '>>';
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.left-card .feature-list li::before {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.right-card .feature-list li::before {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.feature-list li:hover {
    color: var(--text-main);
    opacity: 1;
    transform: translateX(5px);
}

/* ==================== PROJETOS ==================== */
#projetos .project-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.project-card {
    flex: 1;
    max-width: 450px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), inset 0 0 8px rgba(255, 0, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), inset 0 0 12px rgba(255, 0, 255, 0.3);
}

.project-icon .material-symbols-outlined {
    font-size: 3.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
    transition: all 0.3s ease;
}


.project-title {
    font-family: var(--font-corpo);
    font-size: 1.15rem;
    font-weight: 200;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-desc {
    font-family: var(--font-corpo);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.project-button-pill {
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 35px;
    border-radius: 50px;
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-button-pill:hover {
    box-shadow: 0 0 5px var(--neon-cyan);
    transform: scale(1.05);
}

/* ==================== CONTATO ==================== */
.contact-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 650px;
    margin: 30px auto 0;
    font-style: normal;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25), inset 0 0 5px rgba(0, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--neon-pink);
    width: 30px;
    text-align: center;
}

.contact-link {
    font-family: var(--font-corpo);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-main);
    text-decoration: none;
    flex-grow: 1;
}

.btn-copy-pill {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--neon-cyan);
    padding: 6px 15px;
    border-radius: 50px;
    font-family: var(--font-corpo);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-copy-pill i {
    font-size: 0.8rem;
    width: auto;
    color: inherit;
}

.btn-copy-pill:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-copy-pill.copied {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ============== TECH STACK (quadradinhos hard skills) ============== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-badge {
    display: inline-block;
    padding: 8px 14px;
    background-color: rgba(0, 255, 255, 0.08);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    border-radius: 4px;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    font-weight: 500;
    transition: all 0.2s;
    font-family: var(--font-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-badge:hover {
    background-color: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tech-badge.advanced {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    background-color: rgba(255, 0, 255, 0.08);
}

.tech-badge.advanced:hover {
    background-color: rgba(255, 0, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.25);
}

.tech-badge-level {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* ==================== FOOTER ==================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 8px;
    font-family: var(--font-corpo);
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.4);
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(4px);
    z-index: 100;
    border-top: 1px solid rgba(0, 255, 255, 0.05);
}

/* ==================== RESPONSIVIDADE ==================== */

/* ==================== NOTEBOOK ==================== */
@media (max-width: 1600px) {

    .bg-overlay.default-bg {
        background:
            linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%),
            url('images/fundo-notebook.webp');

        background-size: cover;
        background-position: bottom;
    }

    .home-inner {
        width: min(100%, 1000px);
        padding-top: clamp(76px, 9vh, 100px);
        padding-bottom: clamp(100px, 15vh, 140px);
    }

    .neon-text {
        font-size: clamp(4.6rem, 8.6vw, 6.8rem);
    }

    .subtitle {
        font-size: clamp(0.92rem, 1.4vw, 1.05rem);
        letter-spacing: clamp(0.14em, 0.26vw, 0.2em);
    }

    
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    .bg-overlay.default-bg {
    background: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%), 
        url('images/fundo-mobile.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

    .logo {
        font-size: 0.8rem;
    }

   .neon-text {
        font-size: clamp(3.9rem, 18vw, 5rem);
        transform: rotate(-4deg);
        text-align: center;
        line-height: 0.92;
        margin-bottom: 10px;
    }

    .subtitle {
        margin-top: 0;
        text-align: center;
    
        font-size: clamp(0.78rem, 3.7vw, 0.95rem);
        letter-spacing: clamp(0.1em, 0.42vw, 0.16em);
    }

    /* HOME */
     #home {        
        padding: 0; 
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;     
        height: 100dvh;          
        width: 100%;
        padding-top: 20vh; 
        overflow: hidden; /* Remove o scroll apenas na home */
    }

    .home-inner {
        min-height: 100dvh;
        width: 100%; 
        margin: 0;
        padding-top: clamp(74px, 12vh, px); 
        padding-bottom: calc(var(--footer-offset) + 10px + env(safe-area-inset-bottom)); 
        align-items: center; /** Centraliza horizontalmente o conteúdo */
        justify-content: center; /* Centraliza verticalmente o conteúdo */
    }

    .sign-container {
        margin-top: 0 !important; 
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }



    /* BOTÃO MOBILE*/
    #home .power-control-wrapper {
        position: fixed;
        bottom: calc(var(--footer-offset) + 18px + env(safe-area-inset-bottom));      
        margin: 0;    
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        z-index: 1001;

    }

    /*SOBRE MIM*/
    #sobre-mim .about-card {
        flex: 1 1 100%;        
        width: 50%;        
        padding: 25px;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
        margin: 0;        
    }

    .about-header-block .section-title {
        font-size: 1.8rem;
    }

    /* PROJETOS */
    #projetos .project-grid {
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
        grid-template-columns: 1fr !important;
    }

    .project-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 25px;
    }

    /* CONTATO */
    .contact-block {
        max-width: 100%;
        padding: 25px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding-bottom: 10px;
        text-align: center;
    }

    .contact-link {
        align-self: center;
    }

    /* Tech Stack */
    .tech-stack {
        justify-content: center;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    /* GERAL */
    .page {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .section-title {
        font-size: 2rem;
        margin-left: 0;
        text-align: center;
        align-self: center;
    }

    /* Menu Mobile Ícone e Lista */
    .menu-icon {
        display: flex;
    }
    .menu-icon .material-symbols-outlined {
        color: var(--neon-pink) !important;
        text-shadow: 0 0 5px var(--neon-pink);
        transition: all 0.1s ease;
        display: block;
    }

    .menu-icon.active .material-symbols-outlined {
        color: var(--neon-cyan) !important;
        text-shadow: 0 0 8px var(--neon-cyan);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        right: 20px;
        width: 200px;
        flex-direction: column;
        background: #151517;
        border-radius: 8px;
        padding: 10px 0;
        border: 1px solid rgba(0, 255, 255, 0.2);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        font-size: 0.85rem;
        padding: 15px;
        text-align: center;
        width: 100%;
        color: #ccc;
    }
}