﻿
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Lexend:wght@400;500&family=Open+Sans:wght@400;600&display=swap');

/* TOKENS */
:root {
    --header-h: 62px;
    --laranja-1: #c4622d;
    --laranja-btn-1: #f4804a;
    --laranja-btn-2: #ff9d66;
    --vermelho-escuro: #a00000;
    --oliva: #5b5d42;
    --azul-neon: #8fcaff;
    --verde-neon: #6dff7a;
    --texto-claro: #ffffff;
    --fonte-titulo: 'Lexend', 'Segoe UI', sans-serif;
    --fonte-sub: 'DM Sans', 'Segoe UI', sans-serif;
    --fonte-texto: 'Open Sans', 'Segoe UI', sans-serif;
    --fonte-ui: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--fonte-texto);
    color: var(--texto-claro);
    background: #2d3a20;
}

button {
    font-family: var(--fonte-ui);
    cursor: pointer;
    border: 0;
}

    
    button:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 3px;
    }

/*  CABEÇALHO  */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--laranja-1) 0%, #b0301a 50%, var(--vermelho-escuro) 100%);
}

    /* Botão "Zynsk" */
    header > button:nth-of-type(1) {
        background: none;
        color: #fff;
        padding: 0 6px 0 30px;
        height: 100%;
        font-size: 1.65rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* Raposa */
    header > img {
        height: 34px;
        width: auto;
        display: block;
    }

    /* Botão "Sobre Mim" */
    header > button:nth-of-type(2) {
        margin-left: auto;
        background: none;
        color: #fff;
        height: 100%;
        padding: 0 24px;
        font-size: 1.1rem;
        font-weight: 700;
        transition: opacity 0.2s;
    }

        header > button:nth-of-type(2):hover {
            opacity: 0.8;
        }

/* Botão do GitHub */
#github-button {
    height: 100%;
    background: none;
    border-left: 3px solid #fff;
    padding: 0 130px 0 10px;
    display: flex;
    align-items: center;
}

    #github-button img {
        width: 50px;
        height: 50px;
        display: block;
        border-radius: 50%;
        transition: transform 0.2s;
    }

    #github-button:hover img {
        transform: scale(1.08);
    }

/* CONTEÚDO PRINCIPAL (primeiro <div> direto do body) */

body > div:first-of-type {
    position: relative;
    isolation: isolate;
    flex: 1;
    min-height: calc(100vh - var(--header-h) - 104px);
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 224px)) 1fr; 
    justify-content: stretch; 
    align-content: center;
    column-gap: clamp(10px, 2vw, 43px);
    row-gap: 28px;
    padding: clamp(30px, 6vw, 80px) clamp(20px, 6vw, 80px);
}

/* Imagem de fundo */
#Background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

    #Background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
    }

/* texto com brilho neon */

body > div:first-of-type h1 {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
    max-width: 900px;
    font-family: var(--fonte-titulo);
    font-weight: 500;
    font-size: clamp(1.8rem, 4.6vw, 3.5rem);
    letter-spacing: 0.1em;
    line-height: 1.1;
    color: var(--azul-neon);
    text-shadow: 0 0 6px rgba(143, 202, 255, 0.9), 0 0 18px rgba(80, 160, 255, 0.7);
}

    /* "ZYNSK" verde */
    body > div:first-of-type h1 span {
        color: var(--verde-neon);
        text-shadow: 0 0 6px rgba(109, 255, 122, 0.9), 0 0 18px rgba(40, 220, 70, 0.7);
    }

/* Subtítulo */
body > div:first-of-type p {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 800px;
    margin: 0 0 36px 6px;
    font-family: var(--fonte-sub);
    font-size: clamp(1rem, 1.9vw, 1.55rem);
    letter-spacing: 0.02em;
    color: rgba(235, 235, 235, 0.82);
}

/* Botões "Mecatrônica" e "Informática" */
/* BOTÕES MECATRÔNICA E INFORMÁTICA */
body > div:first-of-type > button {
    appearance: none;
    -webkit-appearance: none;
    width: 224px;
    height: 62px;
    border: none;
    outline: none;
    border-radius: 31px;
    background: linear-gradient( 90deg, var(--laranja-btn-1), var(--laranja-btn-2) );
    color: #fff;
    font-family: var(--fonte-ui);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

    body > div:first-of-type > button:hover {
        transform: translateY(-3px);
        filter: brightness(1.08);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }

    body > div:first-of-type > button:active {
        transform: translateY(0);
    }


/* SOBRE MIM */
#sobreEu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: min(652px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 56px 8px 24px 10px;
    border-radius: 40px;
    background: linear-gradient(145deg, #c9825e 0%, #a85a5a 50%, #8c3850 100%);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

    #sobreEu.aberto {
        display: block;
        animation: abrir-modal 0.25s ease-out;
    }

@keyframes abrir-modal {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Botão de fechar (círculo vermelho com X) */
#sobreEu > button {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border-radius: 50%;
    transition: transform 0.2s;
}

    #sobreEu > button:hover {
        transform: scale(1.12);
    }

    #sobreEu > button img {
        width: 100%;
        height: 100%;
        display: block;
    }


#sobreEu h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

#sobreEu p {
    margin: 0 0 1.55em;
    padding: 0 6px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
}

    #sobreEu p:last-child {
        margin-bottom: 0;
    }

/* RODAPÉ */
footer {
    position: relative;
    min-height: 104px;
    padding: 16px 12px;
    background: var(--oliva);
    color: #fff;
    font-family: var(--fonte-texto);
    font-size: 0.95rem;
    line-height: 1.35;
}

    footer p {
        margin: 0 0 4px;
    }

    /* Raposa no canto direito */
    footer::after {
        content: "";
        position: absolute;
        right: 40px;
        top: 50%;
        width: 76px;
        height: 76px;
        transform: translateY(-50%);
        background: url('/Images/Icons/FoxIconTransparente.png') center / contain no-repeat;
    }

/* RESPONSIVO */
@media (max-width: 768px) {
    header > button:nth-of-type(1) {
        padding-left: 16px;
        font-size: 1.3rem;
    }

    header > img {
        height: 28px;
    }

    #github-button {
        padding: 0 20px 0 10px;
    }

    body > div:first-of-type {
        grid-template-columns: 1fr;
        justify-items: center; 
        text-align: center; 
        row-gap: 18px;
    }

        body > div:first-of-type h1 {
            letter-spacing: 0.05em; 
        }

        body > div:first-of-type p {
            margin: 0 0 20px; 
        }

        body > div:first-of-type > button {
            width: 100%;
            max-width: 280px;
            height: 54px;
            border-radius: 31px;
        }

    #sobreEu {
        padding-top: 52px;
        border-radius: 28px;
    }

        #sobreEu p {
            font-size: 1rem;
        }

    footer::after {
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
@media (min-width: 1100px) {
    body > div:first-of-type h1 {
        white-space: nowrap;
    }
}
/* PC: imagem inteira, empurrando o footer */
@media (min-width: 769px) {
    body > div:first-of-type {
        min-height: 0;
        padding: 0;
        /* coluna de margem | botão | botão | resto */
        grid-template-columns: clamp(10px, 4vw, 60px) repeat(2, minmax(180px, 224px)) 1fr;
        /* sobra | h1 | p | botões | sobra  (as sobras centralizam o texto na imagem) */
        grid-template-rows: 1fr auto auto auto 1fr;
        align-content: stretch;
    }

    /* A imagem ocupa o grid inteiro e define a altura */
    #Background {
        position: relative;
        grid-area: 1 / 1 / -1 / -1;
        overflow: visible;
    }

        #Background img {
            width: 100%;
            height: auto;
            object-fit: initial;
        }

    /* Conteúdo por cima da imagem */
    body > div:first-of-type h1 {
        grid-area: 2 / 2 / 3 / -1;
    }

    body > div:first-of-type p {
        grid-area: 3 / 2 / 4 / -1;
    }

    body > div:first-of-type > button:nth-of-type(1) {
        grid-area: 4 / 2;
        border-radius: 31px;
    }

    body > div:first-of-type > button:nth-of-type(2) {
        grid-area: 4 / 3;
        border-radius: 31px;
    }
}

