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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    background-color: #1d1d1d;
    color: #c8c8c8;
}

/* ===== FUNDO COM AS IMAGENS (do primeiro código) ===== */
.imagem1, .imagem2 {
    width: 50vw;
    height: 100vh;
    float: left;
    background-image: url('assets/ministry.webp');
    background-repeat: no-repeat;
    background-size: 1000px 1000px;
    position: fixed;
    top: 0;
}

.imagem1 {
    left: 0;
    background-position: -500px 0;
}

.imagem1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 40%
    );
    pointer-events: none;
}

.imagem2 {
    right: 0;
    background-position: 500px 0;
}

.imagem2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 40%
    );
    pointer-events: none;
}

/* ===== OVERLAY ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
    pointer-events: none;
}

.overlay .container {
    pointer-events: all;
    max-width: 1300px;
    width: 100%;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px 36px;
    border: 1px solid rgba(26, 26, 26, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    max-height: 98vh;
    overflow-y: auto;
}

/* ===== HEADER / MENU (estilo guardado) ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.8);
    margin-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
}

.logo-icon {
    color: #666;
    font-size: 1.2rem;
}

.logo-text {
    background: linear-gradient(135deg, #aaa, #555);
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #aaa;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: #ddd;
}

/* ===== TYPING TEXT ===== */
.typing-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    min-height: 28px;
}

.typing-text {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cursor {
    color: #888;
    margin-right: 4px;
}

#typed {
    color: #ddd;
}

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid #181818;
    margin: 14px 0 22px 0;
}

/* ===== MAIN ===== */
.main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

/* ===== LEFT PANEL ===== */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-wrapper {
    position: relative;
    width: fit-content;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid #222;
    object-fit: cover;
    display: block;
    filter: grayscale(30%);
}

.avatar-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 60, 60, 0.2), transparent 70%);
    z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.oath-badge-visual {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #121212;
    padding: 4px 14px 4px 10px;
    border-radius: 30px;
    border: 1px solid #2a2a2a;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #666;
    width: fit-content;
    text-transform: uppercase;
}

.oath-symbol {
    color: #555;
    font-size: 0.8rem;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: #eee;
    line-height: 1;
    margin-top: 2px;
}

.title .dot {
    color: #444;
}

.subtitle {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

.terminal-info {
    background: #0a0a0a;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #181818;
    font-size: 0.75rem;
    line-height: 1.8;
    margin-top: 2px;
}

.terminal-info .line {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}

.prompt {
    color: #555;
    width: 16px;
}

.key {
    color: #777;
    font-weight: 400;
}

.sep {
    color: #333;
}

.value {
    color: #aaa;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 2px;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: color 0.2s;
    line-height: 1;
}

.social:hover {
    color: #aaa;
}

.social-icon {
    font-size: 0.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.social svg {
    width: 13px;
    height: 13px;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    fill: currentColor;
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    background: rgba(13, 13, 13, 0.9);
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.oath-texture {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 18px 24px;
    padding: 20px 24px;
    opacity: 0.06;
    pointer-events: none;
    font-size: 1.4rem;
    color: #888;
    letter-spacing: 6px;
    z-index: 0;
}

.texture-symbol {
    display: inline-block;
}

.oath-content {
    position: relative;
    z-index: 1;
}

.oath-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ddd;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.oath-sub {
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    border-bottom: 1px solid #181818;
    padding-bottom: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    font-weight: 400;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #bbb;
}

.oath-description {
    background: #0a0a0a;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 2px solid #333;
    margin-bottom: 16px;
}

.oath-description p {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.7;
}

.oath-description strong {
    color: #ccc;
    font-weight: 600;
}

.oath-description em {
    color: #777;
    font-style: italic;
}

.quote {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #555;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* ===== STATS BARS - ESTILO NOTHING ===== */
.oath-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    width: 80px;
    text-align: right;
    font-weight: 300;
}

.stat-bar {
    flex: 1;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #555;
    /* Fallback */
}

/* ===== CORES NO ESTILO NOTHING (tons de cinza) ===== */
.stat-fill.java { background: #888; }
.stat-fill.go { background: #777; }
.stat-fill.node { background: #999; }
.stat-fill.csharp { background: #666; }
.stat-fill.html { background: #aaa; }
.stat-fill.css { background: #777; }
.stat-fill.bash { background: #888; }
.stat-fill.python { background: #999; }
.stat-fill.javascript { background: #aaa; }
.stat-fill.typescript { background: #777; }
.stat-fill.php { background: #888; }
.stat-fill.ruby { background: #999; }
.stat-fill.rust { background: #666; }
.stat-fill.cpp { background: #aaa; }
.stat-fill.c { background: #777; }
.stat-fill.swift { background: #888; }
.stat-fill.kotlin { background: #999; }
.stat-fill.dart { background: #666; }
.stat-fill.perl { background: #aaa; }
.stat-fill.lua { background: #777; }
.stat-fill.vue { background: #888; }
.stat-fill.react { background: #999; }

/* Gradiente sutil pro hover (opcional) */
.stat:hover .stat-fill {
    filter: brightness(1.3);
    transition: filter 0.3s ease;
}

.stat-percent {
    font-size: 0.65rem;
    color: #555;
    width: 35px;
    text-align: right;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.seal-text {
    font-size: 0.55rem;
    color: #444;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #3a3a3a;
    letter-spacing: 1px;
    padding-top: 14px;
    border-top: 1px solid #141414;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-symbol {
    color: #2a2a2a;
}

.footer-right {
    color: #3a3a3a;
}

/* ============================================================
   PROJECTS PAGE (ADICIONADO SEM MEXER NO FUNDO)
   ============================================================ */
.main-projects {
    padding: 4px 0;
}

.projects-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ddd;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.projects-sub {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border-bottom: 1px solid #181818;
    padding-bottom: 14px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 12px;
    padding: 20px 22px;
    border: 1px solid #1a1a1a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-status {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* CORES DOS STATUS USANDO AS CLASSES DO HTML */
.project-status.status-done { color: #4CAF50; }
.project-status.status-wip { color: #FFD700; }
.project-status.status-plan { color: #666; }

.project-icon {
    font-size: 1.2rem;
    opacity: 0.4;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tag {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    background: #121212;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #1a1a1a;
}

.project-links {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #161616;
}

.project-link {
    color: #666;
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.project-link:hover {
    color: #aaa;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .container {
        padding: 20px;
    }

    .title {
        font-size: 2.4rem;
    }

    .header {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .imagem1, .imagem2 {
        background-size: 800px 800px;
    }
}

@media (max-width: 500px) {
    .overlay .container {
        padding: 14px;
        border-radius: 12px;
        margin: 8px;
        max-height: 95vh;
    }

    .title {
        font-size: 1.8rem;
    }

    .right-panel {
        padding: 16px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }

    .terminal-info {
        font-size: 0.65rem;
        padding: 10px 12px;
    }

    .nav {
        gap: 16px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .imagem1, .imagem2 {
        background-size: 600px 600px;
    }

    .about-text {
        font-size: 0.85rem;
        line-height: 1.8;
        color: #aaa;
        margin-bottom: 18px;
        padding: 0 4px;
    }
}

/* ============================================================
   PAGE TRANSITION — overlay fecha e reabre já com a página carregada
   ============================================================ */
#page-container {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    will-change: opacity, transform;
}

#page-container.is-transitioning {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
    filter: blur(4px);
    pointer-events: none;
}

@media (max-width: 500px) {
    #page-container.is-transitioning {
        transform: scale(0.98) translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-container {
        transition: opacity 0.25s ease;
    }
    #page-container.is-transitioning {
        transform: none;
        filter: none;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.main-contact {
    padding: 4px 0;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ddd;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.contact-sub {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border-bottom: 1px solid #181818;
    padding-bottom: 14px;
}

.contact-terminal {
    background: #0a0a0a;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #181818;
    font-size: 0.75rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-terminal .line {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}

.contact-terminal .value a,
.contact-link {
    color: #aaa;
    text-decoration: none;
    font-weight: 300;
    border-bottom: 1px dotted transparent;
    transition: color 0.2s, border-color 0.2s;
}

.contact-terminal .value a:hover,
.contact-link:hover {
    color: #eee;
    border-color: #555;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.contact-card {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 12px;
    padding: 20px 22px;
    border: 1px solid #1a1a1a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}

.contact-card:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.contact-card-icon {
    font-size: 1.1rem;
    color: #666;
}

.contact-card-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.contact-card-value {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

@media (max-width: 500px) {
    .contact-title {
        font-size: 1.4rem;
    }
}