/* --- FUNDAMENTOS & VARIÁVEIS DE COR --- */

:root {
    /* Fundos */
    --bg-color: #08080c;
    --bg-secondary: #0c0c12;
    --card-bg: #101018;
    --card-hover: #161622;
    --nav-bg: #0d0d14;
    --tech-bg: #11111a;

    /* Texto */
    --text-primary: #e6e8ec;
    --text-secondary: #9da3ae;
    --text-tertiary: #626875;
    --text-on-accent: #ffffff;

    /* Destaque */
    --accent: #818cf8;
    --accent-hover: #818cf8;
    --border: #222630;

    /* Marca do Discord */
    --discord-brand: #818cf8;
    --discord-brand-hover: #818cf8;

    /* Arredondamento */
    --radius-lg: 10px;
    --radius-md: 6px;
    --radius-sm: 4px;

    /* Fontes */
    --fn-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --fn-code: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
}


/* --- RESET --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fn-main);
    -webkit-font-smoothing: antialiased;
}


/* --- HTML & BODY --- */

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
}


/* --- CONTAINER --- */

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- BOTÕES --- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    color: var(--accent);
    padding-left: 12px;
    padding-right: 12px;
}

.btn-secondary:hover {
    color: var(--accent-hover);
}


/* --- BARRA DE NAVEGAÇÃO --- */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.nav-bar .logo {
    font-family: var(--fn-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-bar nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-bar nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--fn-main);
    transition: color 0.2s;
}

.nav-bar nav a:not(.btn-nav):hover,
.nav-bar nav a.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-bar .btn-nav {
    background-color: var(--accent);
    color: var(--text-on-accent);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
}

.nav-bar .btn-nav:hover {
    background-color: var(--accent-hover);
}


/* --- SEÇÃO HERO --- */

.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 56px;
}

.avatar-hero {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-content .subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 400;
}

.hero-content .tagline {
    font-size: 19px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}


/* --- SEÇÃO PROJETOS --- */

.projects-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 60px;
    text-align: center;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.2s ease,
        background-color 0.2s,
        border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    background-color: var(--card-hover);
    border-color: var(--accent);
}

.project-icon {
    font-size: 32px;
    color: var(--accent);
    width: 60px;
    text-align: center;
}

.project-details {
    flex: 1;
}

.project-details h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-details p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-techs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-techs span {
    font-family: var(--fn-code);
    font-size: 11px;
    background-color: var(--tech-bg);
    color: var(--accent-hover);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.project-link {
    font-size: 24px;
    color: var(--text-tertiary);
    transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-link {
    color: var(--accent);
    transform: translateX(5px);
}


/* --- SEÇÃO SOBRE & COMUNIDADE --- */

.about-section,
.community-section {
    padding: 100px 0;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.discord-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.discord-logo {
    font-size: 60px;
    color: var(--discord-brand);
}

.discord-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.discord-info p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-discord {
    background-color: var(--discord-brand);
    color: var(--text-on-accent);
    white-space: nowrap;
}

.btn-discord:hover {
    background-color: var(--discord-brand-hover);
}


/* --- FOOTER & CONTATO --- */

.footer {
    padding: 100px 0 40px;
    text-align: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer h2 {
    font-size: 48px;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.footer p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

.social-links {
    display: flex;
    gap: 24px;
    font-size: 24px;
}

.social-links a {
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 40px;
}


/* --- EFEITO REVEAL NO SCROLL --- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVIDADE GERAL --- */

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content .subtitle {
        font-size: 19px;
    }

    .section-title {
        font-size: 32px;
    }

    .discord-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .project-icon {
        width: 100%;
        margin-bottom: 10px;
    }

    .project-techs {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-bar nav ul {
        gap: 12px;
    }

    .nav-bar nav a {
        font-size: 12px;
    }
}


/* =========================================
   TWEAKS PAGE
========================================= */

.tweaks-page {
    min-height: calc(100vh - 56px);
    padding: 130px 0 100px;
}

.tweaks-header {
    text-align: center;
    margin-bottom: 60px;
}

.tweaks-header h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -2px;
    margin: 20px 0 12px;
}

.tweaks-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent);
}


/* --- GRID --- */

.tweaks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}


/* --- CARD --- */

.tweak-card {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.tweak-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--card-hover);
}


/* --- PREVIEW --- */

.tweak-preview {
    width: 100%;
    height: 260px;
    background: #08080c;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.tweak-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tweak-card:hover .tweak-preview img {
    transform: scale(1.04);
}


/* --- PLACEHOLDER --- */

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-tertiary);
}

.preview-placeholder i {
    font-size: 40px;
    color: var(--accent);
}

.preview-placeholder span {
    font-size: 14px;
}


/* --- INFO --- */

.tweak-info {
    padding: 24px;
}

.tweak-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.tweak-title h2 {
    font-size: 23px;
    font-weight: 600;
}

.tweak-version {
    font-family: var(--fn-code);
    font-size: 11px;
    color: var(--accent);
    border: 1px solid var(--border);
    background: var(--tech-bg);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
}

.tweak-info > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
}


/* --- TAGS --- */

.tweak-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}

.tweak-tags span {
    font-family: var(--fn-code);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--accent);
    background: var(--tech-bg);
    border: 1px solid var(--border);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
}


/* --- ACTIONS --- */

.tweak-actions {
    display: flex;
    gap: 10px;
}

.tweak-actions .btn {
    font-size: 13px;
    padding: 9px 15px;
}


/* --- DESKTOP: CENTRALIZAR ÚLTIMO PROJETO --- */

@media (min-width: 769px) {

    .tweaks-grid .tweak-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 12px);
    }
}


/* --- MOBILE --- */

@media (max-width: 768px) {

    .tweaks-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .tweaks-header {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .tweaks-header h1 {
        font-size: 40px;
    }

    .tweaks-header p {
        font-size: 16px;
        line-height: 1.5;
    }

    .tweaks-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tweak-card {
        width: 100%;
    }

    .tweak-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .tweak-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tweak-info {
        padding: 20px;
    }

    .tweak-title {
        align-items: flex-start;
    }

    .tweak-title h2 {
        font-size: 21px;
    }

    .tweak-version {
        flex-shrink: 0;
    }

    .tweak-info > p {
        font-size: 14px;
    }

    .tweak-actions {
        width: 100%;
    }

    .tweak-actions .btn {
        width: 100%;
        text-align: center;
    }

    .tweaks-grid .tweak-card:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: auto;
        width: 100%;
    }
}