:root {
    --color-bg: #121212;
    --color-surface: #1e1e1e;
    --color-primary: #bb86fc;
    --color-secondary: #03dac6;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #a0a0a0;
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1140px;
}

#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-family-base);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* HEADER E NAVEGAÇÃO */
.header {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.navbar a {
    color: var(--color-text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.hamburger:hover,
.hamburger:focus {
    color: var(--color-secondary);
    text-shadow: 0 0 15px var(--color-secondary);
}

.bio {
    margin-bottom: 40px;
}

/* ESTILOS GERAIS DE SEÇÃO */
.section {
    margin-bottom: 100px;
    padding: 6rem 0;
    border-bottom: 1px solid var(--color-surface);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-secondary);
}

h3 {
    margin-top: 6px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #121212;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.266), 0 0 20px rgba(187, 134, 252, 0.6);
}

/* SEÇÕES ESPECÍFICAS */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    border-radius:100%;
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.4);
}

.hero-text {
    grid-column: 2/4;
}

.hero-text p {
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.skill-card i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.skill-card:hover i {
    color: var(--color-bg);
}

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

.projeto-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.projeto-card img {
    width: 100%;
    display: block;
}

.projeto-card h3,
.projeto-card p,
.projeto-card .btn-projeto {
    padding: 0 1.5rem;
}

.projeto-card p {
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.btn-projeto {
    display: inline-block;
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contato-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contato-subtitulo {
    font-weight: bold;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--color-surface);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.social-links a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

.social-links i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin: 0 auto;
    }

    .hero-image img {
        max-width: 220px;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        grid-column: auto;
    }
}

@media (max-width: 768px) {

    .header {
        justify-content: flex-end;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: 1rem 0;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 1rem 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}