/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Inter', sans-serif;

    background: #111827;

    color: #F3F4F6;

    line-height: 1.7;

}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {

    width: min(1120px, 90%);
    margin: auto;

}

/* ===========================
   VARIÁVEIS
=========================== */

:root {

    --primary: #22C55E;

    --secondary: #16A34A;

    --background: #111827;

    --card: #1F2937;

    --border: #374151;

    --text: #F3F4F6;

    --text-light: #9CA3AF;

}


/* ===========================
   HEADER
=========================== */

.header {

    padding: 9px;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 999;

    background: rgba(17, 24, 39, .95);

    backdrop-filter: blur(8px);

    border-bottom: 1px solid rgba(255, 255, 255, .05);
    

}

.header .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    height: 80px;

}

.logo {

    font-size: 1.8rem;

    font-weight: 700;

}

.logo span {

    color: var(--primary);

}

.menu ul {

    display: flex;

    gap: 35px;

}

.menu a {

    transition: .3s;

    font-size: .95rem;

    color: var(--text-light);

}

.menu a:hover {

    color: var(--primary);
    box-shadow: 0 18px 40px rgba(34, 197, 94, .15);

}

/* ===========================
   HERO
=========================== */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

}

.hero-content {

    max-width: 700px;

}

.hero-subtitle {

    color: var(--primary);

    font-weight: 600;

    margin-bottom: 15px;

}

.hero h1 {

    font-size: 4rem;

    line-height: 1.1;

    margin-bottom: 20px;

}

.hero h2 {

    color: var(--text-light);

    font-size: 1.3rem;

    font-weight: 400;

    margin-bottom: 35px;

}

.hero-text {

    font-size: 1.1rem;

    color: var(--text-light);

    margin-bottom: 45px;

}

/* ===========================
   BOTÕES
=========================== */

.hero-buttons {

    display: flex;

    gap: 20px;

}

.btn {

    padding: 15px 28px;

    border-radius: 8px;

    transition: .3s;

    font-weight: 600;

}

.btn-primary {

    background: var(--primary);

    color: #111827;

}

.btn-primary:hover {

    background: var(--secondary);

    transform: translateY(-3px);

}

.btn-secondary {

    border: 1px solid var(--border);

}

.btn-secondary:hover {

    border-color: var(--primary);

    color: var(--primary);

}

/* ===========================
   SEÇÕES
=========================== */

section {

    scroll-margin-top: 100px;

}

.section-title {

    font-size: 2.2rem;

    margin-bottom: 50px;

    position: relative;

}

.section-title::after {

    content: "";

    width: 70px;

    height: 4px;

    background: var(--primary);

    position: absolute;

    left: 0;

    bottom: -15px;

    border-radius: 10px;

}

/* ===========================
   SOBRE
=========================== */

.about-text {

    max-width: 850px;

    color: var(--text-light);

    font-size: 1.05rem;

}

/* ===========================
   CARDS
=========================== */

.cards {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 20px;

    margin-top: 40px;

}

.card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 28px;

    text-align: center;

    font-weight: 600;

    transition: .3s;

    cursor: default;

}

.card:hover {

    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow: 0 12px 30px rgba(34, 197, 94, .15);

}


/* ===========================
   PROJETOS
=========================== */

.project-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 30px;

    margin-top: 50px;

}

.project-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 35px;

    transition: .35s;

}

.project-card:hover {

    transform: translateY(-8px);

    border-color: var(--primary);

    box-shadow: 0 15px 35px rgba(34, 197, 94, .12);

}

.project-card h3 {

    margin-bottom: 20px;

    font-size: 1.4rem;

}

.project-card p {

    color: var(--text-light);

    margin-bottom: 30px;

}

.project-card a {

    color: var(--text-light);

    font-weight: 600;

}

.project-card a:hover {

    text-decoration: none;

}


/* ===========================
   CONTATO
=========================== */

.contact-list {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 25px;

    margin-top: 45px;

}

.contact-list li {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 25px;

    transition: .3s;

    text-align: center;

}

.contact-list li:hover {

    border-color: var(--primary);

    transform: translateY(-5px);

}




/* ===========================
   FOOTER
=========================== */

footer {

    border-top: 1px solid rgba(255, 255, 255, .05);

    padding: 35px 0;

    margin-top: 80px;

    text-align: center;

}

footer p {

    color: var(--text-light);

    font-size: .95rem;

}


/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar {

    width: 8px;

}

::-webkit-scrollbar-track {

    background: #111827;

}

::-webkit-scrollbar-thumb {

    background: #22C55E;

    border-radius: 20px;

}

::-webkit-scrollbar-thumb:hover {

    background: #16A34A;

}


/* ===========================
   SELEÇÃO DE TEXTO
=========================== */

::selection {

    background: #22C55E;

    color: #111827;

}


/* ===========================
   ANIMAÇÕES
=========================== */

.card,
.project-card,
.contact-list li,
.btn {

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        background .35s ease;

}


/* ===========================
   ESPAÇAMENTOS
=========================== */

.skills,
.tools,
.knowledge,
.projects,
.contact {

    margin-top: 20px;

}

/* ===========================
   NOTEBOOKS
=========================== */

@media (max-width: 1024px) {

    .hero h1 {

        font-size: 3.2rem;

    }

    .hero h2 {

        font-size: 1.15rem;

    }

}

/* ===========================
   TABLETS
=========================== */

@media (max-width:768px) {

    .header .container {

        height: 70px;

    }

    .menu ul {

        gap: 18px;

    }

    .hero {

        text-align: center;

    }

    .hero-content {

        max-width: 100%;

    }

    .hero h1 {

        font-size: 2.8rem;

    }

    .hero h2 {

        font-size: 1.1rem;

    }

    .hero-buttons {

        justify-content: center;

        flex-wrap: wrap;

    }

    .section-title {

        font-size: 2rem;

    }

}

/* ===========================
   CELULARES
=========================== */

@media (max-width:576px) {

    .header {

        position: relative;

    }

    .header .container {

        flex-direction: column;

        justify-content: center;

        gap: 15px;

        padding: 20px 0;

        height: auto;

    }

    .menu ul {

        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;

    }

    .hero {

        min-height: auto;

        padding-top: 80px;

        padding-bottom: 40px;

    }

    .hero h1 {

        font-size: 2.2rem;

    }

    .hero h2 {

        font-size: 1rem;

    }

    .hero-text {

        font-size: 1rem;

    }

    .btn {

        width: 100%;

        text-align: center;

    }

    .cards {

        grid-template-columns: 1fr;

    }

    .project-grid {

        grid-template-columns: 1fr;

    }

    .contact-list {

        grid-template-columns: 1fr;

    }

    section {

        padding: 70px 0;

    }

}

/* ======================================
   HEADER AO ROLAR A PÁGINA
====================================== */

.header {

    transition:
        background .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

}

.header.scrolled {

    background: rgba(17, 24, 39, .98);

    box-shadow: 0 8px 25px rgba(0, 0, 0, .35);

    border-bottom: 1px solid rgba(255, 255, 255, .08);

}

/* ======================================
   MENU ATIVO
====================================== */

.menu a {

    position: relative;

}

.menu a.active {

    color: var(--primary);

}

.menu a.active::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 100%;

    height: 2px;

    background: var(--primary);

    border-radius: 50px;

}

/* ======================================
   ANIMAÇÃO
====================================== */

.hidden {

    opacity: 0;

    transform: translateY(40px);

    transition:

        opacity .7s ease,

        transform .7s ease;

}

.show {

    opacity: 1;

    transform: translateY(0);

}