:root {
    /* Paleta Cósmica / Deep Space */
    --bg-cosmos: #05070f;
    --surface-space: rgba(13, 16, 31, 0.6);
    --border-cosmos: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(147, 51, 234, 0.3);

    /* Tipografia */
    --text-lunar: #f1f5f9;
    --text-starlight: #94a3b8;
    --text-dark-nebula: #475569;

    /* Acentos Cósmicos */
    --nebula-violet: #8b5cf6;
    --nebula-cyan: #06b6d4;
    --starlight-amber: #f59e0b;
    --supernova-glow: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.05) 50%,
        rgba(5, 7, 15, 0) 100%
    );

    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Cursor personalizado Awwwards */
}

body {
    background-color: var(--bg-cosmos);
    color: var(--text-lunar);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding: 40px 24px;
}

/* Canvas de Fundo (Poeira Estelar / Starfield Canvas) */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Glow de Nébula no Fundo */
.nebula-glow {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: var(--supernova-glow);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
}

/* Custom Cursor Experimental */
#custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--text-lunar);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
        transform 0.1s ease,
        width 0.3s ease,
        height 0.3s ease,
        background-color 0.3s ease;
    mix-blend-mode: difference;
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition:
        transform 0.18s ease-out,
        border-color 0.3s ease;
}

/* Layout Grid Experimental Assimétrico */
.layout-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

/* Sidebar Glassmorphism */
.sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
    background: var(--surface-space);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-cosmos);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--nebula-violet);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    position: relative;
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.4s ease;
}

.sidebar:hover .avatar-wrap img {
    filter: grayscale(0%);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-lunar);
    margin-bottom: 4px;
}

.profile-role,
.profile-role a,
.profile-role a:hover {
    font-size: 0.85rem;
    color: var(--text-starlight);
    line-height: 1.4;
    text-decoration: none;
}

.profile-role a {
    display: block;
}

.profile-role a:hover {
    cursor: pointer;
}

.badge-orbit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nebula-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.orbit-dot {
    width: 6px;
    height: 6px;
    background-color: var(--nebula-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--nebula-cyan);
    animation: pulse-orbit 2s infinite ease-in-out;
}

@keyframes pulse-orbit {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border-cosmos);
    padding-top: 24px;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-starlight);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        color 0.3s ease,
        transform 0.2s ease;
}

.nav-link:hover {
    color: var(--text-lunar);
    transform: translateX(4px);
}

/* Content Main */
.content {
    display: flex;
    flex-direction: column;
    gap: 88px;
}

/* Hero Editorial Typography */
.hero-statement {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-lunar);
}

.hero-statement span {
    color: var(--text-dark-nebula);
    font-weight: 500;
    transition: color 0.5s ease;
}

.hero-statement:hover span {
    color: var(--text-starlight);
}

.highlight-text {
    background: linear-gradient(
        135deg,
        var(--nebula-violet),
        var(--nebula-cyan)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Label */
.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--nebula-violet);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-cosmos);
}

/* Pillars Grid (Cards de Alta Precisão) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    background: var(--surface-space);
    border: 1px solid var(--border-cosmos);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition:
        border-color 0.4s ease,
        transform 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.pillar-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--nebula-cyan);
    margin-bottom: 12px;
    font-weight: 700;
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-lunar);
}

.pillar-card p {
    font-size: 0.85rem;
    color: var(--text-starlight);
    line-height: 1.5;
}

/* Interactive Projects Editorial List */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 180px 40px;
    align-items: center;
    padding: 28px 12px;
    border-bottom: 1px solid var(--border-cosmos);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition:
        padding-left 0.3s ease,
        border-color 0.3s ease;
}

.project-item:first-child {
    border-top: 1px solid var(--border-cosmos);
}

.project-item:hover {
    padding-left: 20px;
    border-color: rgba(139, 92, 246, 0.4);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-lunar);
    transition: color 0.3s ease;
}

.project-item:hover .project-title {
    color: var(--nebula-cyan);
}

.project-cat {
    font-size: 0.85rem;
    color: var(--text-starlight);
}

.project-arrow {
    font-size: 1.1rem;
    color: var(--text-dark-nebula);
    text-align: right;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.project-item:hover .project-arrow {
    color: var(--text-lunar);
    transform: translateX(4px);
}

/* Hover Image Preview Modal Floating */
#project-preview {
    position: fixed;
    left: 0;
    top: 0;
    width: clamp(260px, 28vw, 400px);
    aspect-ratio: 2 / 1;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: #000;
}

#project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cosmic Contact Box */
.contact-box {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.08),
        rgba(6, 182, 212, 0.04)
    );
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 48px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-starlight);
}

.btn-orbit {
    background: var(--text-lunar);
    color: var(--bg-cosmos);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-display);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    white-space: nowrap;
}

.btn-orbit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(241, 245, 249, 0.4);
}

/* ==========================================================
   RESPONSIVIDADE (APENAS PARA MOBILE - ATÉ 900px)
   ========================================================== */
@media (max-width: 900px) {
    body {
        padding: 20px 16px;
    }

    .layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Sidebar vira um card horizontal organizado exclusivamente no mobile */
    .sidebar {
        position: relative;
        top: 0;
        padding: 18px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        background: var(--surface-space);
        border-radius: 14px;
    }

    /* Foto fixa à esquerda */
    .avatar-wrap {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        margin-bottom: 0;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Bloco unificado do nome e descrição à direita da imagem */
    .sidebar-profile-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .profile-name {
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 2px;
        color: var(--text-lunar);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-role,
    .profile-role a {
        font-size: 0.78rem;
        line-height: 1.35;
        color: var(--text-starlight);
        margin-bottom: 0;
        display: block;
    }

    /* Oculta elementos desnecessários no mobile */
    .badge-orbit,
    .sidebar-nav {
        display: none !important;
    }

    /* Ajustes gerais de espaçamento no mobile */
    .content {
        gap: 48px;
    }

    .hero-statement {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 18px 8px;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .project-cat {
        font-size: 0.8rem;
        color: var(--text-starlight);
    }

    .project-arrow {
        display: none;
    }

    .contact-box {
        padding: 28px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-info h3 {
        font-size: 1.35rem;
    }

    .btn-orbit {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    * {
        cursor: auto !important;
    }

    #custom-cursor,
    #cursor-follower {
        display: none;
    }
}
