:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --title-color: #000000;
    --text-muted: #555555;
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-main: 'Poppins', sans-serif;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: var(--font-main); 
    overflow-x: hidden; 
    height: 100vh; 
    transition: background-color 0.8s ease, color 0.8s ease;
}

/* --- DARK MODE (HOME) --- */
body.home-active {
    background-color: #050505;
    color: #ffffff;
    --title-color: #ffffff;
    --text-muted: #b0b0b0;
    --bg-color: #050505; 
}

body.home-active .primary-btn {
    background: #fff;
    color: #000;
}
body.home-active .primary-btn:hover {
    background: #ccc;
}
body.home-active .form-group input {
    background: #1a1a1a;
    color: #fff;
    border-color: #333;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

/* Cursor */
.cursor-dot, .cursor-dot-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot { width: 8px; height: 8px; background-color: #fff; }
.cursor-dot-outline { width: 40px; height: 40px; background: rgba(125, 125, 125, 0.2); border: 1px solid rgba(255,255,255,0.4); transition: 0.2s; }
body.hovering .cursor-dot-outline { width: 80px; height: 80px; background: rgba(255,255,255,0.1); backdrop-filter: blur(2px); }

/* Typography */
h1 { font-size: 4rem; line-height: 1; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -2px; color: var(--title-color); }

/* Título GIGANTE da Home */
.giant-title {
    font-size: 10vw; 
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -4px;
    margin: 0;
    color: var(--title-color);
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

h2 { font-size: 3.5rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -1px; color: var(--title-color); }
h3 { font-size: 1.8rem; font-weight: 500; margin-bottom: 1rem; color: var(--title-color); }

/* Descrições Padrão */
p { font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 400; }

.subtitle { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; display: inline-block; text-transform: uppercase; letter-spacing: 2px; padding-bottom: 5px; border-bottom: 1px solid rgba(125,125,125,0.3); }

/* Layout Geral */
.content-wrapper { position: relative; width: 100%; height: 100vh; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; min-height: 100%; display: flex; flex-direction: column; }
.page-flex { padding-top: 120px; }

/* Páginas SPA */
.page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); overflow-y: auto; background: transparent; }
.page.active { opacity: 1; visibility: visible; z-index: 10; }

/* Header Fixo */
.top-header { position: fixed; top: 0; left: 0; width: 100%; padding: 2rem 3rem; z-index: 5000; pointer-events: none; display: flex; justify-content: space-between; align-items: center; }
.top-header .logo { font-size: 1.8rem; font-weight: 700; color: var(--title-color); pointer-events: auto; letter-spacing: -1px; transition: color 0.8s; }

/* --- HOME INTERACTION (TITULO & HOVER) --- */
.home-center-flex {
    justify-content: flex-start; /* Mudado para permitir scroll do conteúdo */
    align-items: center;
    text-align: center;
    /* Removemos min-height fixa total para deixar o scroll natural */
    padding-bottom: 150px;
}

.title-interaction-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 80vh; /* O título ocupa a primeira "dobra" */
    width: 100%;
}

/* Container da descrição oculta */
.hidden-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 600px;
    margin-top: 1rem;
    pointer-events: none;
}
.hidden-description p { font-size: 1.4rem; color: #ccc; font-weight: 400; }
.contact-link { font-size: 1.2rem; color: #fff; text-decoration: none; border-bottom: 1px solid #777; padding-bottom: 2px; }

.title-interaction-wrapper:hover .hidden-description { opacity: 1; transform: translateY(0); pointer-events: auto; }
.title-interaction-wrapper:hover .giant-title { transform: scale(0.98); }


/* --- ABOUT MODULE (NA HOME) --- */
.home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.image-block img { box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* --- ABOUT PAGE (DEDICADA) --- */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: flex-start; /* Alinhamento ao topo por causa do texto longo */
    padding-bottom: 6rem;
}
.about-image-side .profile-img {
    width: 100%;
    border-radius: var(--radius-lg);
    filter: grayscale(100%);
    transition: 0.5s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-image-side .profile-img:hover { filter: grayscale(0%); }
.about-text-side h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.stats-block { display: flex; gap: 3rem; }
.stat-item { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }


/* --- PROJETOS (WORK) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    margin-bottom: 2rem;
}
.project-card {
    position: relative;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.project-card:hover img { transform: scale(1.1); }
.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.project-card:hover .card-overlay { opacity: 1; }
.card-overlay h3 { color: #fff; font-size: 2.5rem; }

/* --- FOOTER PROFISSIONAL --- */
.professional-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #000;
    color: #fff;
    padding: 8rem 2rem 3rem 2rem; /* Mais espaçamento no topo */
    position: relative;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    justify-content: space-between;
}

.footer-content-left {
    text-align: left;
    margin-bottom: 4rem;
}

/* Título do Rodapé */
.footer-giant-title {
    font-size: 7rem; /* Bem grande */
    line-height: 0.95;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 3rem;
    letter-spacing: -3px;
    font-weight: 700;
}

/* Área do Botão + Status */
.footer-action-row {
    display: flex;
    align-items: center;
    gap: 2rem; /* Espaço entre botão e texto */
    margin-bottom: 4rem;
}

/* Estilo específico do botão no footer (Branco) */
.footer-btn {
    background: #fff !important;
    color: #000 !important;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border: none;
}
.footer-btn:hover {
    background: #ccc !important;
    transform: scale(1.05);
}

/* Status "Available for Work" */
.availability-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bbb;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

/* Ponto Verde Pulsante */
.pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    position: relative;
}
.pulsing-dot::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; bottom: -5px; right: -5px;
    border-radius: 50%;
    border: 1px solid #2ecc71;
    animation: pulse 1.5s infinite;
    opacity: 0;
}
@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Links (LinkedIn e Email) */
.footer-links-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}
.social-link:hover {
    color: #888;
    border-color: #888;
    padding-left: 10px;
}

/* Rodapé inferior (Copyright) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.dev-credit strong { color: #fff; }

/* RESPONSIVO FOOTER */
@media (max-width: 900px) {
    .footer-giant-title { font-size: 13vw; }
    
    .footer-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- TOUCH PAGE (CONTACT) --- */
#contact .container { justify-content: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; width: 100%; }
.giant-contact-title { font-size: 6rem; line-height: 0.9; margin-bottom: 2rem; color: var(--title-color); }
.large-desc { font-size: 1.6rem; color: var(--text-muted); }
.contact-form { background: #f4f4f4; padding: 3rem; border-radius: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { background: #fff; border: 1px solid #ddd; padding: 1.2rem 1.5rem; border-radius: 50px; color: #333; width: 100%; font-family: var(--font-main); transition: 0.3s; font-size: 1rem; }
.form-group textarea { border-radius: 30px; resize: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #000; outline: none; box-shadow: 0 0 0 4px rgba(0,0,0,0.05); }
.submit-btn { background: #000; color: #fff; border: none; padding: 1.2rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem; width: 100%; cursor: none; transition: transform 0.3s; }
.submit-btn:hover { transform: scale(1.02); }

/* --- NAVIGATION --- */
.bottom-nav { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); padding: 0.8rem 1.5rem; border-radius: 50px; z-index: 1000; box-shadow: 0 20px 40px rgba(0,0,0,0.2); width: max-content; }
body.home-active .bottom-nav { background: rgba(30, 30, 30, 0.8); border: 1px solid rgba(255,255,255,0.1); }
.bottom-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.bottom-nav li { padding: 0.5rem 1rem; border-radius: 30px; color: #888; display: flex; align-items: center; gap: 10px; transition: 0.3s; font-weight: 500; }
.bottom-nav li .nav-text { display: inline-block; font-size: 0.9rem; }
.bottom-nav li.active { background: #000; color: #fff; }
body.home-active .bottom-nav li.active { background: #fff; color: #000; }
.bottom-nav li:hover:not(.active) { color: #000; }
body.home-active .bottom-nav li:hover:not(.active) { color: #fff; }

/* Botões Genéricos */
.primary-btn { background: #000; color: #fff; border: 1px solid #000; padding: 1rem 2.5rem; border-radius: 50px; font-size: 1rem; font-weight: 500; transition: 0.3s; display: inline-block; }
.primary-btn:hover { background: transparent; color: #000; }

/* Animações */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.8s ease forwards; }
.fade-in { animation: fadeIn 1s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* --- NOVOS ESTILOS PARA DETALHES DO PROJETO --- */

/* Estilo das imagens da galeria */
.detail-gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem; /* Espaço entre as imagens */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.detail-gallery-img:hover {
    transform: scale(1.02);
}

/* Ajuste de texto para leitura */
#detail-process-text, #detail-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .giant-title { font-size: 14vw; }
    .hidden-description p { font-size: 1.1rem; }
    
    .home-hero-grid { grid-template-columns: 1fr; margin-bottom: 2rem; gap: 2rem; } /* Layout About mobile */
    .about-content-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .giant-contact-title { font-size: 3.5rem; }
    .large-desc { font-size: 1.2rem; }
    
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-cta h2 { font-size: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
/* --- RESPONSIVIDADE DO MENU (MOBILE AJUSTADO) --- */

@media (max-width: 768px) {
    /* Container do Menu */
    .bottom-nav {
        width: 95%;           /* Ocupa 95% da tela */
        max-width: 100%;      /* Garante que não vaze */
        padding: 0.5rem;      /* Menos borda ao redor */
        bottom: 1rem;         /* Mais próximo do fundo */
        border-radius: 16px;  /* Bordas um pouco menos redondas para ganhar espaço */
    }

    /* Lista (ul) */
    .bottom-nav ul {
        gap: 0px;             /* Remove espaço extra entre botões, usa justify-content */
        justify-content: space-between; /* Espalha os botões igualmente */
        width: 100%;
    }
    
    /* Botões (li) */
    .bottom-nav li {
        padding: 0.5rem 0.4rem; /* Reduz muito o 'gordo' dos botões */
        flex-grow: 1;           /* Faz os botões esticarem para preencher o menu */
        justify-content: center;
        border-radius: 12px;
    }

    /* Texto (Home, Work, etc) */
    .bottom-nav .nav-text {
        font-size: 0.7rem;      /* Fonte bem menor (aprox 11px) */
        font-weight: 500;
        white-space: nowrap;    /* Impede que o texto quebre linha */
    }

    /* Ícones */
    .bottom-nav li i {
        font-size: 0.9rem;      /* Ícone um pouco menor */
        margin-right: 4px;      /* Aproxima o ícone do texto */
    }
}

/* Opcional: Se em telas MUITO pequenas (tipo iPhone antigo) ainda quebrar */
@media (max-width: 380px) {
    .bottom-nav .nav-text {
        display: none; /* Em telas minúsculas, volta a esconder o texto */
    }
    .bottom-nav li {
        padding: 0.8rem;
    }
}