* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #120826;
    --secondary-color: #1a0f33;
    --accent-color: #a678ff;
    --text-color: #e5dbff;
    --light-text-color: #b7a7e6;
    --background-color: #0d061c;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.menu-navegacao {
    position: fixed;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 1.5rem 3rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-navegacao .menu-icon {
    width: 80px;
    height: 80px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-navegacao ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.menu-navegacao a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 0.5rem 0;
}

.menu-navegacao a::before {
    content: "";
    height: 2px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #a678ff, #d1b3ff);
    transition: 0.3s ease;
}

.menu-navegacao a:hover::before {
    width: 100%;
}

.logo-menu {
    width: 80px;
    height: 80px;
    object-fit: cover;
    position: absolute;
    left: 20px;
}

.logo {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.logo img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 4px solid var(--light-text-color);
    box-shadow: 15px 9px 15px 5px #000000;
    animation: flutuar-rotacao 6s ease-in-out infinite;
}

.logo h1 {
    margin-top: 1rem;
    font-size: 2rem;
    color: var(--accent-color);
}

.sobre-mim {
    padding: 60px 20px;
    text-align: center;
}

.sobre-mim h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.caixa-sobre-mim {
    max-width: 750px;
    margin: 0 auto;
    padding: 25px 30px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 1.15rem;
    line-height: 1.7;
    transition: 0.3s;
}

.caixa-sobre-mim:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.28);
}

.habilidades {
    padding: 60px 20px 20px 20px;
}

.habilidades h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
    font-size: 2.5rem;
}

.cards-habilidades {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.card-hab {
    width: 300px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s ease;
}

.card-hab h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.card-hab p {
    font-size: 1rem;
    line-height: 1.5;
}

.card-hab:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.25);
}

.tecnologias {
    text-align: center;
    padding: 60px 20px;
}

.tecnologias h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.carousel {
    display: flex;
    gap: 60px;
    align-items: center;
    width: max-content;
    animation: slide 25s linear infinite;
    padding: 20px 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.icon-card {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    outline: none;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.icon-card img {
    width: 105px;
    height: 105px;
    display: block;
    pointer-events: none;
    transform: translateZ(45px);
    transition: transform 0.15s ease-out;
}

.icon-card:hover {
    transform: rotateY(var(--rx)) rotateX(var(--ry)) scale(1.05);
}

.container-projetos h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
}

.projetos {
    padding: 6rem 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.projetos .caixa-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projetos .card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--light-text-color);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.projetos .card:hover {
    transform: translate(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(166, 103, 255, 0.5);
    transition: 0.5s ease;
}

.projetos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.projetos .card h3 {
    margin: 1rem 0;
    color: var(--accent-color);
    text-align: left;
    line-height: 1.4;
}

.projetos .card p {
    color: var(--text-color);
    text-align: left;
}

.contato {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.container-contato {
    padding: 6rem 2rem;
    text-align: left;
}

.caixa-contato {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
    border-radius: 16px;
    border: 1px solid var(--text-color);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.input-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(166, 120, 255, 0.3);
}

.caixa-contato button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.caixa-contato button:hover {
    background: #8f5cdb;
    transform: translateY(-2px);
}

#email {
    resize: both;
    min-height: 150px;
    max-height: 300px;
    max-width: 100%;
}

.bolas-fixas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bolinha {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    background: radial-gradient(circle, rgba(166, 120, 255, 1) 0%, rgba(140, 60, 255, 0.4) 60%, transparent 100%);
    animation: flutuar 12s ease-in-out infinite alternate;
}

.bolinha.b1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bolinha.b2 {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.bolinha.b3 {
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
}

@keyframes flutuar {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    100% {
        transform: translate(30px, -40px) scale(1.08);
    }
}

@keyframes flutuar-rotacao {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}