@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {

    --bg: #090909;
    --surface: #121212;
    --border: #252525;

    --text: #F6F6F6;
    --muted: #8A8A8A;

    --accent: #FFFFFF;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);

    overflow-x: hidden;

    transition:
        background-color .35s ease,
        color .35s ease;

}

body::before {

    content: "";

    position: fixed;

    left: 50%;
    top: 50%;

    width: 700px;
    height: 700px;

    transform: translate(-50%, -50%);

    background: radial-gradient(circle,
            rgba(255, 255, 255, .06),
            transparent 70%);

    filter: blur(60px);

    pointer-events: none;

    transition:
        background .35s ease,
        opacity .35s ease,
        filter .35s ease;

    animation: pulse 7s ease-in-out infinite;

}

@keyframes pulse {

    50% {

        transform: translate(-50%, -50%) scale(1.25);

        opacity: .35;

    }

}

section {

    width: min(1100px, 90%);

    margin: auto;

}

header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 28px 0;

}

.header-right {

    display: flex;

    align-items: center;

    gap: 20px;

}

.logo {

    font-weight: 800;

    font-size: 1.1rem;

    letter-spacing: -1px;

}

.chave {
    color: #7C5CFF;
}

nav {

    display: flex;

    gap: 18px;

}

.theme-toggle {

    width: 44px;
    height: 44px;

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

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 1rem;

    transition:
        background-color .35s ease,
        border-color .35s ease,
        color .35s ease,
        transform .25s ease,
        box-shadow .25s ease;

}

.theme-toggle:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);

}

.theme-toggle i {

    font-size: 1rem;

    transition:
        transform .35s ease,
        opacity .25s ease;

}

nav a {

    color: var(--muted);

    text-decoration: none;

    transition:
        color .3s ease,
        background-color .3s ease;

}

nav a:hover {

    color: white;

}

.hero {

    min-height: 85vh;

    display: flex;

    align-items: center;

}

.hero-content {

    max-width: 760px;

}

.tag {

    display: inline-block;

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

    color: #bdbdbd;

    padding: 8px 16px;

    border-radius: 999px;

    margin-bottom: 24px;

    font-size: .9rem;

}

h1 {

    font-size: clamp(4rem, 10vw, 7rem);

    line-height: .9;

    letter-spacing: -6px;

    margin-bottom: 30px;

}

.hero p {

    font-size: 1.2rem;

    line-height: 1.8;

    color: var(--muted);

    max-width: 650px;

}

.buttons {

    display: flex;

    gap: 16px;

    margin-top: 42px;

    flex-wrap: wrap;

    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .25s ease,
        box-shadow .25s ease;

}

.button {

    text-decoration: none;

    padding: 15px 24px;

    border-radius: 999px;

    transition: .25s;

    font-weight: 600;

}

.primary {

    background: white;

    color: black;

}

.primary:hover {

    transform: translateY(-4px);

    box-shadow: 0 15px 40px rgba(255, 255, 255, .15);

}

.secondary {

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

    color: white;

}

.secondary:hover {

    background: #171717;

}

.about {

    padding: 120px 0;

}

.about h2 {

    font-size: 2.5rem;

    margin-bottom: 25px;

}

.about p {

    max-width: 750px;

    color: var(--muted);

    line-height: 1.9;

    font-size: 1.08rem;

}

.grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 24px;

    margin-top: 60px;

}

.card {

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

    border-radius: 20px;

    padding: 28px;

    background: rgba(255, 255, 255, .02);

    transition:
        background-color .35s ease,
        border-color .35s ease,
        transform .25s ease;

}

.card:hover {

    transform: translateY(-6px);

    border-color: #444;

}

.card .top {
    display: flex;
    gap: 1rem;
    align-items: center;

    margin-bottom: 1rem;
}

.card h3 {

    margin-bottom: 12px;

}

.card svg {
    height: 2rem;
    width: auto;

    fill: var(--text);
}

.card p {

    color: var(--muted);

    line-height: 1.6;

}

.projects {
    padding: 120px 0;
}

.projects h2 {
    font-size: 2.5rem;
    letter-spacing: -2px;
    margin-bottom: 50px;
}

/* Card */

.project {
    border: 1px solid var(--border);
    border-radius: 24px;

    padding: 32px;

    background: rgba(255, 255, 255, .02);

    transition:
        background-color .35s ease,
        border-color .35s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.project:hover {
    transform: translateY(-6px);

    border-color: #444;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .15);
}

/* Imagem */

.project-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 16px;

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

    background: var(--bg);

    margin-bottom: 32px;
}

.project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .5s ease;
}

.project:hover .project-image img {
    transform: scale(1.02);
}

/* Conteúdo */

.project-content {
    display: flex;

    flex-direction: column;
}

.project-content h3 {
    font-size: 1.8rem;

    letter-spacing: -1px;

    margin-bottom: 16px;
}

.project-content p {
    max-width: 700px;

    color: var(--muted);

    font-size: 1rem;

    line-height: 1.7;

    margin-bottom: 24px;
}

/* Links */

.project-links {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 28px;
}

.project-links a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 15px;

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

    border-radius: 999px;

    color: var(--text);

    text-decoration: none;

    font-size: .9rem;

    font-weight: 600;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.project-links a:hover {
    background: var(--surface);

    border-color: #444;

    transform: translateY(-2px);
}

/* Tecnologias */

.stack {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.stack span {
    padding: 7px 12px;

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

    border-radius: 999px;

    background: rgba(255, 255, 255, .02);

    color: var(--muted);

    font-size: .8rem;

    font-weight: 500;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.stack span:hover {
    color: var(--text);

    border-color: #444;

    background: var(--surface);
}

/* ==========================
   Light Mode
========================== */

body.light .project {
    background: rgba(0, 0, 0, .015);
}

body.light .project:hover {
    border-color: #BEBEBE;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .08);
}

body.light .project-image {
    background: #FFFFFF;
}

body.light .project-links a:hover {
    background: #EFEFEF;

    border-color: #BEBEBE;
}

body.light .stack span {
    background: rgba(0, 0, 0, .015);
}

body.light .stack span:hover {
    background: #EFEFEF;

    border-color: #BEBEBE;
}

footer {

    padding: 100px 0 40px;

    text-align: center;

    color: #666;

}

footer a {

    color: white;

    text-decoration: none;

}

@media(max-width:700px) {

    nav {

        display: none;

    }

    .hero {

        min-height: 75vh;

    }

    h1 {

        letter-spacing: -3px;

    }

    /* ==========================
   Projetos — Mobile
========================== */

    .projects {
        padding: 80px 0;
    }

    .projects h2 {
        font-size: 2rem;

        letter-spacing: -1.5px;

        margin-bottom: 35px;
    }

    .project {
        padding: 20px;

        border-radius: 20px;
    }

    .project:hover {
        transform: none;

        box-shadow: none;
    }

    .project-image {
        aspect-ratio: 16 / 10;

        border-radius: 14px;

        margin-bottom: 24px;
    }

    .project:hover .project-image img {
        transform: none;
    }

    .project-content h3 {
        font-size: 1.5rem;

        margin-bottom: 12px;
    }

    .project-content p {
        font-size: .95rem;

        line-height: 1.7;

        margin-bottom: 20px;
    }

    .project-links {
        gap: 8px;

        margin-bottom: 24px;
    }

    .project-links a {
        padding: 9px 13px;

        font-size: .85rem;
    }

    .stack {
        gap: 6px;
    }

    .stack span {
        padding: 6px 10px;

        font-size: .75rem;
    }

}


/* ==========================
   Tema Claro
========================== */

body.light {

    --bg: #F8F8F8;
    --surface: #FFFFFF;
    --border: #D9D9D9;

    --text: #111111;
    --muted: #5E5E5E;

    --accent: #090909;

}

body.light::before {

    background: radial-gradient(circle,
            rgba(0, 0, 0, .05),
            transparent 70%);

}

body.light .primary {

    background: #090909;
    color: white;

}

body.light .primary:hover {

    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);

}

body.light .secondary {

    border-color: #CFCFCF;
    color: #111;

}

body.light .secondary:hover {

    background: #EFEFEF;

}

body.light .card {

    background: white;
    border-color: #DDDDDD;

}

body.light .card:hover {

    border-color: #BEBEBE;

}

body.light footer {

    color: #666;

}

body.light nav a:hover {

    color: black;

}