/* =========================================
   PORTFÓLIO — PRETO, BRANCO E VERMELHO
========================================= */


/* =========================================
   VARIÁVEIS
========================================= */

:root {

    --primary: #e50914;
    --primary-light: #ff3333;
    --primary-dark: #b20710;

    --background: #050505;
    --background-secondary: #0d0d0d;

    --card: #111111;

    --text: #ffffff;
    --text-secondary: #b3b3b3;

    --border: #242424;

    --shadow:
        0 20px 45px rgba(0, 0, 0, 0.55);

}


/* =========================================
   LIGHT MODE
========================================= */

body.light {

    --background: #f5f5f5;
    --background-secondary: #ebebeb;

    --card: #ffffff;

    --text: #111111;
    --text-secondary: #555555;

    --border: #dcdcdc;

    --shadow:
        0 20px 40px rgba(0, 0, 0, 0.12);

}


/* =========================================
   RESET
========================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);

    transition:
        background 0.3s ease,
        color 0.3s ease;

}


a {

    color: inherit;

    text-decoration: none;

}


button {

    border: none;

    cursor: pointer;

    font-family: inherit;

}


img {

    max-width: 100%;

    display: block;

}


/* =========================================
   HEADER
========================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 75px;

    padding:
        0 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background:
        rgba(5, 5, 5, 0.88);

    backdrop-filter:
        blur(15px);

    border-bottom:
        1px solid var(--border);

    z-index: 1000;

}


body.light .header {

    background:
        rgba(245, 245, 245, 0.88);

}


/* LOGO */

.logo {

    font-size:
        1.25rem;

    font-weight:
        800;

    color:
        var(--primary);

    letter-spacing:
        0.5px;

    transition:
        color 0.3s;

}


.logo:hover {

    color:
        var(--primary-light);

}


/* NAVBAR */

.navbar {

    display:
        flex;

    align-items:
        center;

    gap:
        28px;

}


.navbar a {

    position:
        relative;

    font-size:
        0.9rem;

    font-weight:
        500;

    color:
        var(--text-secondary);

    transition:
        color 0.3s;

}


.navbar a::after {

    content: "";

    position:
        absolute;

    left: 0;
    bottom: -7px;

    width: 0;

    height: 2px;

    background:
        var(--primary);

    transition:
        width 0.3s;

}


.navbar a:hover {

    color:
        var(--text);

}


.navbar a:hover::after {

    width:
        100%;

}


/* HEADER ACTIONS */

.header-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

}


.theme-button,
.menu-button {

    width:
        42px;

    height:
        42px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        10px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    color:
        var(--text);

    transition:
        0.3s;

}


.theme-button:hover,
.menu-button:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

}


.menu-button {

    display:
        none;

}


/* =========================================
   SEÇÕES
========================================= */

.section {

    min-height:
        100vh;

    padding:
        110px 10% 80px;

}


.alternative-section {

    background:
        var(--background-secondary);

}


/* TÍTULO */

.section-title {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    margin-bottom:
        50px;

}


.section-title span {

    color:
        var(--primary);

    font-family:
        monospace;

    font-size:
        1.1rem;

    font-weight:
        700;

}


.section-title h2 {

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height:
        1.1;

}


/* =========================================
   HERO
========================================= */

.hero {

    min-height:
        100vh;

    padding:
        120px 10% 80px;

    display:
        grid;

    grid-template-columns:
        1.2fr 0.8fr;

    align-items:
        center;

    gap:
        80px;

}


/* TEXTO */

.hero-tag {

    color:
        var(--primary);

    font-family:
        monospace;

    font-size:
        1rem;

    margin-bottom:
        14px;

}


.hero h1 {

    font-size:
        clamp(3rem, 7vw, 6.5rem);

    line-height:
        0.95;

    letter-spacing:
        -3px;

}


.hero h1 span {

    color:
        var(--primary);

}


.hero h2 {

    margin-top:
        18px;

    color:
        var(--text-secondary);

    font-size:
        clamp(1.5rem, 3vw, 2.5rem);

    line-height:
        1.2;

}


.hero-description {

    max-width:
        650px;

    margin:
        30px 0;

    color:
        var(--text-secondary);

    line-height:
        1.8;

    font-size:
        1rem;

}


/* BOTÕES */

.hero-buttons {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        15px;

}


/* =========================================
   BOTÕES
========================================= */

.button {

    padding:
        14px 24px;

    border-radius:
        10px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        9px;

    font-weight:
        700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;

}


.button:hover {

    transform:
        translateY(-3px);

}


/* BOTÃO PRINCIPAL */

.primary-button {

    background:
        var(--primary);

    color:
        #ffffff;

}


.primary-button:hover {

    background:
        var(--primary-dark);

    box-shadow:
        0 10px 25px
        rgba(229, 9, 20, 0.3);

}


/* BOTÃO SECUNDÁRIO */

.secondary-button {

    background:
        transparent;

    color:
        var(--text);

    border:
        1px solid var(--primary);

}


.secondary-button:hover {

    background:
        var(--primary);

    color:
        #ffffff;

}


/* =========================================
   REDES SOCIAIS DO HERO
========================================= */

.hero-socials {

    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    margin-top:
        30px;

}


.hero-socials a {

    font-size:
        1.7rem;

    color:
        var(--text-secondary);

    transition:
        color 0.3s,
        transform 0.3s;

}


.hero-socials a:hover {

    color:
        var(--primary);

    transform:
        translateY(-4px);

}


/* =========================================
   FOTO DE PERFIL
========================================= */

.hero-image {

    display:
        flex;

    justify-content:
        center;

}


.profile-border {

    width:
        min(360px, 80vw);

    aspect-ratio:
        1;

    padding:
        8px;

    border-radius:
        50%;

    background:
        linear-gradient(
            135deg,
            #e50914,
            #ffffff,
            #e50914
        );

    box-shadow:
        0 0 45px
        rgba(229, 9, 20, 0.25);

}


.profile-border img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    border-radius:
        50%;

    border:
        5px solid #050505;

}


body.light .profile-border img {

    border-color:
        #ffffff;

}


/* =========================================
   SOBRE
========================================= */

.about-grid {

    display:
        grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap:
        70px;

}


.about-text p {

    color:
        var(--text-secondary);

    line-height:
        1.9;

    margin-bottom:
        20px;

}


.about-text .button {

    margin-top:
        15px;

}


/* INFORMAÇÕES */

.about-info {

    display:
        flex;

    flex-direction:
        column;

    gap:
        15px;

}


.info-card {

    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    padding:
        22px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        15px;

    transition:
        0.3s;

}


.info-card:hover {

    border-color:
        var(--primary);

    transform:
        translateX(5px);

}


.info-card i {

    color:
        var(--primary);

    font-size:
        1.5rem;

    min-width:
        25px;

}


.info-card span {

    display:
        block;

    color:
        var(--text-secondary);

    font-size:
        0.8rem;

    margin-bottom:
        4px;

}


/* =========================================
   QUALIFICAÇÕES
========================================= */

.skills-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        20px;

}


.skill-card {

    background:
        var(--card);

    border:
        1px solid var(--border);

    padding:
        30px;

    border-radius:
        15px;

    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;

}


.skill-card:hover {

    transform:
        translateY(-8px);

    border-color:
        var(--primary);

    box-shadow:
        0 15px 35px
        rgba(229, 9, 20, 0.1);

}


.skill-card i {

    display:
        inline-block;

    font-size:
        2.3rem;

    color:
        var(--primary);

    margin-bottom:
        20px;

}


.skill-card h3 {

    margin-bottom:
        10px;

}


.skill-card p {

    color:
        var(--text-secondary);

    line-height:
        1.6;

}


/* =========================================
   CERTIFICAÇÕES / HONRAS
========================================= */

.timeline {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.timeline-item {
    min-width: 0;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.08);
}

.timeline-icon {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

/* A prévia é parte do card e não é clicável. */
.certificate-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.certificate-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.timeline-item:hover .certificate-preview img {
    transform: scale(1.025);
}

.timeline-item:hover .certificate-preview::after {
    opacity: 1;
}

.timeline-content {
    flex: 1;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.timeline-content span {
    color: var(--primary);
    font-size: 0.85rem;
    font-family: monospace;
}

.timeline-content h3 {
    margin: 8px 0;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-content a {
    margin-top: auto;
    color: var(--primary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.timeline-content a:hover {
    color: var(--primary-light);
}

/* =========================================
   PROJETOS
========================================= */

.projects-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        25px;

}


.project-card {

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        18px;

    overflow:
        hidden;

    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;

}


.project-card:hover {

    transform:
        translateY(-8px);

    border-color:
        var(--primary);

    box-shadow:
        var(--shadow);

}


/* IMAGEM */

.project-image {

    height:
        220px;

    overflow:
        hidden;

    background:
        #080808;

}


.project-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 0.4s ease;

}


.project-card:hover
.project-image img {

    transform:
        scale(1.06);

}


/* CONTEÚDO */

.project-content {

    padding:
        25px;

}


.project-type {

    color:
        var(--primary);

    font-family:
        monospace;

    font-size:
        0.8rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.5px;

}


.project-content h3 {

    margin:
        10px 0;

    font-size:
        1.4rem;

}


.project-content p {

    color:
        var(--text-secondary);

    line-height:
        1.6;

}


/* TECNOLOGIAS */

.project-technologies {

    display:
        flex;

    gap:
        8px;

    flex-wrap:
        wrap;

    margin:
        20px 0;

}


.project-technologies span {

    background:
        rgba(229, 9, 20, 0.12);

    color:
        var(--primary-light);

    border:
        1px solid
        rgba(229, 9, 20, 0.2);

    padding:
        6px 10px;

    border-radius:
        6px;

    font-size:
        0.75rem;

}


/* LINKS */

.project-links {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        15px;

}


.project-links a,
.details-button {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    color:
        var(--text);

    background:
        none;

    font-size:
        0.9rem;

    transition:
        color 0.3s;

}


.project-links a:hover,
.details-button:hover {

    color:
        var(--primary);

}


/* =========================================
   ÁREA DE LINKS
========================================= */

.links-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        20px;

}


.link-card {

    padding:
        30px;

    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        15px;

    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;

}


.link-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--primary);

    box-shadow:
        0 10px 30px
        rgba(229, 9, 20, 0.08);

}


.link-card > i {

    font-size:
        2.3rem;

    color:
        var(--primary);

}


.link-card h3 {

    margin-bottom:
        5px;

}


.link-card p {

    color:
        var(--text-secondary);

    line-height:
        1.5;

}


/* =========================================
   CONTATO
========================================= */

.contact-section {

    min-height:
        70vh;

    display:
        grid;

    place-items:
        center;

    text-align:
        center;

}


.contact-content {

    max-width:
        700px;

}

.contact-content span {

    color:
        var(--primary);
        
}


.contact-label {

    color:
        var(--primary);

    font-family:
        monospace;

}


.contact-content h2 {

    margin:
        15px 0;

    font-size:
        clamp(2.5rem, 6vw, 5rem);

    line-height:
        1;

}


.contact-content p {

    color:
        var(--text-secondary);

    line-height:
        1.8;

    margin-bottom:
        30px;

}


/* =========================================
   FOOTER
========================================= */

footer {

    padding:
        30px;

    text-align:
        center;

    color:
        var(--text-secondary);

    border-top:
        1px solid var(--border);

    line-height:
        1.8;

}


footer span {

    color:
        var(--primary);

}


/* =========================================
   MODAL
========================================= */

.modal {

    position:
        fixed;

    inset:
        0;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    background:
        rgba(0, 0, 0, 0.8);

    backdrop-filter:
        blur(8px);

    z-index:
        2000;

}


.modal.active {

    display:
        flex;

}


.modal-content {

    position:
        relative;

    width:
        min(700px, 100%);

    max-height:
        85vh;

    overflow-y:
        auto;

    padding:
        35px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-top:
        3px solid var(--primary);

    border-radius:
        18px;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.5);

}


.modal-close {

    position:
        absolute;

    top:
        20px;

    right:
        20px;

    width:
        38px;

    height:
        38px;

    display:
        grid;

    place-items:
        center;

    background:
        transparent;

    color:
        var(--text);

    border-radius:
        8px;

    font-size:
        1.3rem;

    transition:
        0.3s;

}


.modal-close:hover {

    color:
        var(--primary);

    background:
        rgba(229, 9, 20, 0.1);

}


.modal-label {

    color:
        var(--primary);

    font-family:
        monospace;

    text-transform:
        uppercase;

    font-size:
        0.8rem;

}


.modal-content h2 {

    margin:
        10px 0 25px;

    font-size:
        2rem;

}


.modal-content h3 {

    margin:
        25px 0 8px;

}


.modal-content p {

    color:
        var(--text-secondary);

    line-height:
        1.8;

}


/* =========================================
   ANIMAÇÃO DE REVELAÇÃO
========================================= */

.reveal {

    opacity:
        0;

    transform:
        translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

}


.reveal.active {

    opacity:
        1;

    transform:
        translateY(0);

}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {

    width:
        10px;

}


::-webkit-scrollbar-track {

    background:
        #050505;

}


::-webkit-scrollbar-thumb {

    background:
        #333333;

    border-radius:
        10px;

}


::-webkit-scrollbar-thumb:hover {

    background:
        var(--primary);

}


/* =========================================
   SELEÇÃO DE TEXTO
========================================= */

::selection {

    background:
        var(--primary);

    color:
        #ffffff;

}


/* =========================================
   RESPONSIVIDADE — TABLET
========================================= */

@media (max-width: 1000px) {

    /* MENU */

    .navbar {

        position:
            absolute;

        top:
            75px;

        left:
            0;

        width:
            100%;

        display:
            none;

        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            20px;

        padding:
            30px;

        background:
            var(--background);

        border-bottom:
            1px solid var(--border);

    }


    .navbar.active {

        display:
            flex;

    }


    .menu-button {

        display:
            grid;

    }


    /* HERO */

    .hero {

        grid-template-columns:
            1fr;

        text-align:
            center;

        gap:
            50px;

    }


    .hero-content {

        order:
            2;

    }


    .hero-image {

        order:
            1;

    }


    .hero-description {

        margin:
            30px auto;

    }


    .hero-buttons,
    .hero-socials {

        justify-content:
            center;

    }


    /* SOBRE */

    .about-grid {

        grid-template-columns:
            1fr;

    }


    /* SKILLS */

    .skills-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    /* PROJETOS */

    .projects-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    /* CERTIFICAÇÕES / HONRAS */

    .timeline {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    /* LINKS */

    .links-grid {

        grid-template-columns:
            1fr;

    }

}


/* =========================================
   RESPONSIVIDADE — CELULAR
========================================= */

@media (max-width: 650px) {

    /* HEADER */

    .header {

        padding:
            0 5%;

    }


    /* SEÇÕES */

    .section {

        padding:
            100px 6% 70px;

    }


    /* HERO */

    .hero {

        padding:
            110px 6% 70px;

    }


    .hero h1 {

        font-size:
            3rem;

        letter-spacing:
            -1.5px;

    }


    .hero h2 {

        font-size:
            1.5rem;

    }


    /* SKILLS */

    .skills-grid {

        grid-template-columns:
            1fr;

    }


    /* PROJETOS */

    .projects-grid {

        grid-template-columns:
            1fr;

    }


    /* CERTIFICAÇÕES / HONRAS */

    .timeline {

        grid-template-columns:
            1fr;

        gap:
            18px;

    }


    .timeline-icon {

        width:
            38px;

        height:
            38px;

        top:
            12px;

        left:
            12px;

    }


    .timeline-content {

        min-height:
            165px;

        padding:
            20px;

    }


    /* BOTÕES */

    .hero-buttons {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    .button {

        width:
            100%;

    }


    /* PERFIL */

    .profile-border {

        width:
            min(280px, 80vw);

    }


    /* MODAL */

    .modal-content {

        padding:
            28px 22px;

    }

}
