/* ========================================
   CONFIGURAÇÕES GERAIS
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #080709;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}


/* ========================================
   VARIÁVEIS DE CORES
======================================== */

:root {
    --background: #080709;
    --background-card: rgba(28, 16, 22, 0.75);

    /* Paleta Bordô */
    --burgundy: #7f1d3d;
    --burgundy-dark: #5c102b;
    --burgundy-light: #a83b5d;
    --wine: #9f1239;
    --red-wine: #be3455;

    --text: #ffffff;
    --text-gray: #aaa0a5;

    --border: rgba(255, 255, 255, 0.08);
}


/* ========================================
   FUNDO DECORATIVO
======================================== */

.background-circle {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.14;
    pointer-events: none;
    z-index: -1;
}

.circle-1 {
    background: #7f1d3d;
    top: -200px;
    left: -150px;
}

.circle-2 {
    background: #be3455;
    bottom: -200px;
    right: -150px;
}


/* ========================================
   NAVBAR
======================================== */

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    backdrop-filter: blur(15px);
    background: rgba(8, 7, 9, 0.78);

    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1200px;
    height: 80px;

    margin: auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;

    font-size: 24px;
    font-weight: 800;
}

.logo span {
    color: var(--burgundy-light);
}

.nav-links {
    display: flex;
    gap: 35px;

    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}


/* ========================================
   HERO / APRESENTAÇÃO
======================================== */

.hero {
    max-width: 1200px;
    min-height: 100vh;

    margin: auto;
    padding: 140px 30px 80px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 80px;
}


/* ========================================
   FOTO DE PERFIL
======================================== */

.photo-container {
    position: relative;

    width: 360px;
    height: 360px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--burgundy),
        var(--red-wine)
    );

    filter: blur(45px);
    opacity: 0.38;
}

.profile-photo {
    position: relative;

    width: 300px;
    height: 300px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid rgba(255, 255, 255, 0.1);

    box-shadow:
        0 0 40px rgba(127, 29, 61, 0.3);

    z-index: 2;

    transition: 0.5s;
}

.profile-photo:hover {
    transform: scale(1.04);
}


/* ========================================
   CARD FLUTUANTE DA FOTO
======================================== */

.floating-card {
    position: absolute;

    bottom: 15px;
    right: -10px;

    z-index: 3;

    padding: 14px 18px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: rgba(28, 16, 22, 0.88);

    border: 1px solid var(--border);

    border-radius: 15px;

    backdrop-filter: blur(15px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4);

    font-size: 12px;

    color: #d8d0d3;

    animation: floating 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 22px;
    color: var(--burgundy-light);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* ========================================
   TEXTO DA APRESENTAÇÃO
======================================== */

.hello {
    color: var(--burgundy-light);

    font-size: 16px;
    font-weight: 600;

    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: clamp(50px, 6vw, 78px);

    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 18px;
}

.hero-content h1 span {
    background: linear-gradient(
        90deg,
        var(--burgundy-light),
        var(--red-wine)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 22px;

    font-weight: 500;

    color: #ddd6d9;

    margin-bottom: 25px;
}

.description {
    max-width: 620px;

    color: var(--text-gray);

    font-size: 15px;

    margin-bottom: 12px;
}


/* ========================================
   BOTÕES
======================================== */

.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 21px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.primary {
    color: white;

    background: linear-gradient(
        135deg,
        var(--burgundy),
        var(--burgundy-dark)
    );

    box-shadow:
        0 10px 30px rgba(127, 29, 61, 0.28);
}

.primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(127, 29, 61, 0.45);
}

.secondary {
    color: white;

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.03);
}

.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* ========================================
   REDES SOCIAIS
======================================== */

.social-links {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}

.social-links a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #aaa0a5;

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.02);

    text-decoration: none;

    transition: 0.3s;
}

.social-links a:hover {
    color: white;

    background: var(--burgundy);

    border-color: var(--burgundy);

    transform: translateY(-3px);
}


/* ========================================
   SEÇÕES
======================================== */

.skills-section,
.projects-section,
.contact-section {
    max-width: 1200px;

    margin: auto;

    padding: 100px 30px;
}

.section-title {
    text-align: center;

    margin-bottom: 55px;
}

.section-title > p:first-child {
    color: var(--burgundy-light);

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 40px;

    letter-spacing: -1px;
}

.section-title h2 span,
.contact-box h2 span {
    color: var(--burgundy-light);
}

.section-description {
    max-width: 600px;

    margin: 12px auto 0;

    color: var(--text-gray);
}


/* ========================================
   HABILIDADES
======================================== */

.skills {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.skill-card {
    padding: 30px 24px;

    border: 1px solid var(--border);

    background: var(--background-card);

    border-radius: 18px;

    transition: 0.35s;
}

.skill-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(127, 29, 61, 0.45);

    background:
        rgba(38, 18, 27, 0.82);
}

.skill-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--burgundy-light);

    background:
        rgba(127, 29, 61, 0.15);

    font-size: 22px;

    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 17px;

    margin-bottom: 8px;
}

.skill-card p {
    color: var(--text-gray);

    font-size: 13px;
}


/* ========================================
   PROJETOS
======================================== */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.project-card {
    overflow: hidden;

    border-radius: 18px;

    border: 1px solid var(--border);

    background: var(--background-card);

    transition: 0.35s;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(127, 29, 61, 0.5);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3);
}


/* ========================================
   IMAGEM DO PROJETO
======================================== */

.project-image {
    height: 190px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(127, 29, 61, 0.25),
            transparent 60%
        ),
        #120b0f;
}

.project-placeholder {
    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        rgba(127, 29, 61, 0.13);

    color: var(--burgundy-light);

    font-size: 28px;
}

.project-number {
    position: absolute;

    top: 15px;
    right: 15px;

    font-size: 12px;

    color: #777075;
}


/* ========================================
   CONTEÚDO DO PROJETO
======================================== */

.project-content {
    padding: 25px;
}

.project-type {
    color: var(--burgundy-light);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.project-content h3 {
    font-size: 20px;

    margin: 8px 0;
}

.project-content p {
    color: var(--text-gray);

    font-size: 13px;

    margin-bottom: 18px;
}


/* ========================================
   TECNOLOGIAS DOS PROJETOS
======================================== */

.technologies {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;
}

.technologies span {
    padding: 5px 9px;

    border-radius: 6px;

    background:
        rgba(127, 29, 61, 0.13);

    color: #d99aab;

    font-size: 10px;
}


/* ========================================
   LINK DO PROJETO
======================================== */

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s;
}

.project-link:hover {
    color: var(--burgundy-light);

    gap: 12px;
}


/* ========================================
   CONTATO
======================================== */

.contact-box {
    padding: 50px;

    border-radius: 25px;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            120deg,
            rgba(127, 29, 61, 0.16),
            rgba(190, 52, 85, 0.06)
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.contact-label {
    color: var(--burgundy-light);

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 5px;
}

.contact-box h2 {
    font-size: 35px;

    margin-bottom: 10px;
}

.contact-box > div > p:last-child {
    color: var(--text-gray);

    font-size: 14px;

    max-width: 550px;
}


/* ========================================
   FOOTER
======================================== */

footer {
    padding: 30px;

    text-align: center;

    border-top: 1px solid var(--border);

    color: #665d61;

    font-size: 12px;
}


/* ========================================
   RESPONSIVIDADE - TABLET
======================================== */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 50px;
    }

    .photo-container {
        order: 1;
    }

    .hero-content {
        order: 2;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .skills {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-box {
        flex-direction: column;

        text-align: center;
    }
}


/* ========================================
   RESPONSIVIDADE - CELULAR
======================================== */

@media (max-width: 650px) {

    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .photo-container {
        width: 280px;
        height: 280px;
    }

    .profile-photo {
        width: 240px;
        height: 240px;
    }

    .photo-glow {
        width: 240px;
        height: 240px;
    }

    .floating-card {
        right: -15px;
        bottom: 0;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .skills,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-section,
    .projects-section,
    .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .contact-box {
        padding: 35px 25px;
    }
}
