@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0a0a0c;
    --primary: #a855f7;
    --text: #f5f5f5;
    --muted: #a1a1aa;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.header {
    width: 100%;
    padding: 26px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff12;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary);
}
/* APRESENTAÇÃO PRINCIPAL */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 8%;
}

.hero-content {
    max-width: 850px;
}

.hero-intro {
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -4px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: #9333ea;
    color: #ffffff;
}

.btn-primary:hover {
    background: #7e22ce;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid #343438;
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}
/* SOBRE MIM */

.about {
    padding: 100px 8%;
    border-top: 1px solid #ffffff12;
}

.about-content {
    max-width: 750px;
}

.section-label {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.about h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.about h2 span {
    color: var(--primary);
}

.about p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
}
/* HABILIDADES */

.skills {
    padding: 100px 8%;
    border-top: 1px solid #ffffff12;
}

.skills h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.skills h2 span {
    color: var(--primary);
}

.skills-description {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 1000px;
}

.skill-card {
    background: #101014;
    border: 1px solid #252529;
    border-radius: 8px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transition: 0.3s ease;
}

.skill-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.skill-card h3 {
    font-size: 14px;
    font-weight: 500;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: #151019;
}

/* Ícone branco do GitHub */

.skill-card img[alt="GitHub"] {
    filter: invert(1);
}
@media (min-width: 600px) and (max-width: 1000px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* PROJETOS */

.projects {
    padding: 100px 8%;
    border-top: 1px solid #ffffff12;
}

.projects h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.projects h2 span {
    color: var(--primary);
}

.projects-description {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 45px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
}

.project-card {
    background: #101014;
    border: 1px solid #252529;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    display: block;
}

.project-info {
    padding: 24px;
}

.project-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 24px;
    margin: 12px 0;
    letter-spacing: -0.5px;
}

.project-info p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 6px 12px;
    background: #1a1a20;
    border: 1px solid #303036;
    border-radius: 4px;
    color: #b4b4bf;
    font-size: 12px;
}

/* PROJETOS NO CELULAR */

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects {
        padding: 70px 6%;
    }
}
.project-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #252529;
}

.project-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border: 1px solid #343438;
    border-radius: 6px;
    transition: 0.3s ease;
}

.project-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}
/* CONTATO */

.contact {
    padding: 100px 8%;
    border-top: 1px solid #ffffff12;
}

.contact h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.contact h2 span {
    color: var(--primary);
}

.contact-description {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 35px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 24px;
    border: 1px solid #343438;
    border-radius: 6px;
    background: #101014;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}

.contact-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contact-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #151019;
    transform: translateY(-3px);
}

/* RODAPÉ */

.footer {
    padding: 30px 8%;
    border-top: 1px solid #ffffff12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}
/* FOTO PROFISSIONAL */

.hero {
    justify-content: space-between;
    gap: 40px;
}

.hero-photo {
    position: relative;
    flex-shrink: 0;
    width: 30%;
    max-width: 340px;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 16px;
    border: 1px solid #a855f750;
    box-shadow: 0 0 60px #a855f71a;
    display: block;
}

/* FOTO NO CELULAR */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-photo {
        width: 70%;
        max-width: 280px;
        align-self: center;
    }
}
.hero-content {
    flex: 1;
    min-width: 0;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 86px);
}

.hero-photo {
    width: 30%;
    max-width: 340px;
}

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: clamp(30px, 7vw, 60px);
        letter-spacing: -1.5px;
    }

    .hero-photo {
        width: 75%;
        max-width: 280px;
        align-self: center;
    }

}
/* CORREÇÃO DA ORDEM DOS PROJETOS */

.project-info {
    display: flex;
    flex-direction: column;
}

.project-links {
    order: 1;
}
/* GALERIA MAIS COMPACTA */

.projects-grid {
    max-width: 1150px;
    margin: 0 auto;
    gap: 24px;
}

.project-card img {
    aspect-ratio: 16 / 9;
    max-height: 280px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 21px;
    margin: 8px 0;
}

.project-info p {
    font-size: 14px;
    margin-bottom: 14px;
}

.project-links {
    margin-top: 16px;
    padding-top: 14px;
}

.project-links a {
    padding: 8px 12px;
    font-size: 12px;
}
/* ANIMAÇÕES DE ROLAGEM */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease,
                transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* MENU MOBILE */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {

    .header {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #101014;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 6%;
        gap: 24px;
        border-bottom: 1px solid #252529;
        z-index: 1000;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 15px;
    }
}