:root {
    --background: #0f0f14;
    --surface: #17171f;
    --surface-light: #1f1f2b;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --white: #ffffff;
    --text: #f5f5f5;
    --text-light: #b8b8c0;
    --border: #2a2a37;
    --shadow: 0 12px 35px rgba(0, 0, 0, .35);
    --transition: .35s ease;
    --radius: 16px;
    --max-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#121218;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);
    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-light);

}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

section {
    padding: 110px 0;
}

section:first-of-type {
    padding-top: 170px;
}

.section-title {
    font-family: 'Playfair Display', sans-serif;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 20px;
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
}

p {
    color: var(--text-light);
    font-weight: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 25px rgba(139, 92, 246, .18);
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 10px 35px rgba(139, 92, 246, .35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    color: white;
    background: var(--primary);
}

.tech span, .skills span {
    display: inline-block;
    margin: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--primary-light);
    font-size: .9rem;
    transition: var(--transition);
}

.tech span:hover, .skills span:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.card-links {
    display: flex;
    gap: 18px;
    margin-top: 20px;
}

.card-links a {
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

.card-links a:hover {
    color: white;
}

::selection {
    background: var(--primary);
    color: white;
}

.fade{

    opacity:0;

    transform:translateY(40px);

    transition:.8s ease;

}

.fade.show{

    opacity:1;

    transform:translateY(0);
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(15, 15, 20, .85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: var(--transition);
}

#header .container {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.logo span {
    color: var(--primary);
}

.logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-header {
    padding: 12px 24px;
}

#header.scrolled{

    background:rgba(15,15,20,.95);

    box-shadow:0 12px 35px rgba(0,0,0,.30);

}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 620px;
}

.subtitle {
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.description {
    font-size: 1.1rem;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 70%);
    filter: blur(25px);
    z-index: -1;
}

.hero-image img {
    width: 380px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 25px;
    border: 4px solid rgba(139, 92, 246, .35);
    box-shadow: 0 0 40px rgba(139, 92, 246, .30), 0 20px 50px rgba(0, 0, 0, .40);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 0 55px rgba(139, 92, 246, .345), 0 30px 70px rgba(0, 0, 0, .45);
}

.hero::before{

    content:"";

    position:absolute;

    top:-250px;

    right:-200px;

    width:550px;
    height:550px;

    border-radius:50%;

    background:rgba(139,92,246,.08);

    filter:blur(120px);

    z-index:-2;

}

.hero::after{

    content:"";

    position:absolute;

    bottom:-250px;

    left:-200px;

    width:450px;
    height:450px;

    border-radius:50%;

    background:rgba(167,139,250,.06);

    filter:blur(100px);

    z-index:-2;

}

@media(max-width:992px){

    .hero-content{

        grid-template-columns:1fr;

        text-align:center;

        gap:60px;

    }

    .hero-text{

        margin:auto;

    }

    .hero-buttons{

        justify-content:center;

    }

    .hero-image{

        order:-1;

    }

    .hero-image img{

        width:320px;

    }

}

@media(max-width:768px){

    #header .container{

        height:75px;

    }

    .nav-links{

        display:none;

    }

    .btn-header{

        display:none;

    }

    .hero{

        min-height:auto;

    }

    .hero h1{

        font-size:2.8rem;

    }

    .hero h2{

        font-size:1.3rem;

    }

    .description{

        font-size:1rem;

    }

    .hero-image img{

        width:260px;

    }

}

@media(max-width:480px){

    .hero h1{

        font-size:2.3rem;

    }

    .hero-buttons{

        flex-direction:column;

    }

    .hero-buttons .btn{

        width:100%;

    }

    .hero-image img{

        width:220px;

    }

}

.sobre {
    background: var(--surface);
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
    align-items: center;
}

.sobre-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sobre-text p {
    font-size: 1.05rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.skills span {
    margin: 0;
    cursor: default;
}

.projetos {
    background: var(--background);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.card {
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--white);
}

.card-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 25px;
}

.tech span {
    margin: 0;
    font-size: .85rem;
}

.card-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

@media(max-width:992px){

    .sobre-content{

        grid-template-columns:1fr;

        gap:50px;

    }

    .sobre-text{

        text-align:center;

    }

    .skills{

        justify-content:center;

    }

}

@media(max-width:768px){

    .cards{

        grid-template-columns:1fr;

    }

}

@media(max-width:480px){

    .card-content{

        padding:22px;

    }

    .card img{

        height:200px;

    }

}

.contato {
    background: var(--surface);
}

.contato .container {
    max-width: 800px;
    text-align: center;
}

.contato p {
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-links a i {
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-links a:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #202030;
    box-shadow: 0 12px 30px rgba(139, 92, 246, .18);
}

footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
    background: #0b0b10;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer p {
    color: var(--text-light);
    font-size: .95rem;
}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-10px);

    }

    100%{

        transform:translateY(0);

    }

}

.hero-image img{

    animation:float 5s ease-in-out infinite;

}


/* ============================
   UTILITÁRIOS
============================ */

.hidden{

    opacity:0;

    transform:translateY(50px);

}

.show{

    animation:fadeUp .8s forwards;

}


/* ============================
   RESPONSIVIDADE
============================ */

@media(max-width:992px){

    .contact-links{

        grid-template-columns:1fr;

    }

    footer .container{

        flex-direction:column;

        text-align:center;

    }

}

@media(max-width:768px){

    section{

        padding:80px 0;

    }

    .section-title{

        font-size:2.2rem;

    }

}

@media(max-width:480px){

    body{

        font-size:15px;

    }

    .container{

        width:92%;

    }

    .section-title{

        font-size:2rem;

    }

    .contact-links a{

        padding:16px;

        font-size:.95rem;

    }

}


/* ============================
   EFEITOS EXTRAS
============================ */

.card,
.contact-links a,
.btn,
.skills span{

    will-change:transform;

}

.hero{

    overflow:hidden;

}

html{

    scroll-padding-top:100px;

}

body{

    min-height:100vh;

}