:root {
    --bg-color: #FFFFFF;
    --bg-alt: #F1F3F5;
    --text-color: #1D232A;
    --text-secondary: #5A6472;
    --primary-color: #0055FF;
    --border-color: #E9ECEF;
    --card-shadow: 0px 2px 4px rgba(0, 0, 0, 0.03), 0px 5px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 8px 20px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--text-secondary); max-width: 65ch; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #003ECC;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Header */
header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--border-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

header .logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.nav-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* Main/Hero Section */
main {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 6rem 0;
}

main .content .tag {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

main .content h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

main .content p.description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

main .buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

main .buttons a {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease-in-out;
}

main .buttons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    nav { display: none; }
    .nav-button { display: none; }
    .mobile-nav-toggle { display: block; }

    h1 { font-size: 2.5rem; }
    main .content h1 { font-size: 3rem; }
    main .content p.description { font-size: 1.125rem; }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .about-image-column {
        order: -1;
        margin-bottom: 1rem;
    }
}


/* Skills Section */
#conhecimentos {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.skills-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: currentColor;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

.skill-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: var(--card-shadow);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.skill-card i {
    font-size: 2.25rem;
    line-height: 1;
    color: var(--primary-color);
}

.skill-card img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.skill-card p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Projects Section */
#meus-projetos {
    border-top: 1px solid var(--border-color);
}

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

.projeto-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: var(--card-shadow);
}

.projeto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.projeto-imagem img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.projeto-conteudo {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.projeto-titulo {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.projeto-descricao {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    color: var(--text-secondary);
}

.projeto-techs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.projeto-techs li {
    background-color: var(--bg-alt);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.projeto-links {
    margin-top: auto;
}

.projeto-links a {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.projeto-links a:hover i {
    transform: translateX(2px);
}

.projeto-links a i {
    transition: transform 0.2s ease-in-out;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.mobile-nav-open .mobile-nav {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-nav nav a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.mobile-nav-toggle {
    z-index: 11;
}

.mobile-nav-open .mobile-nav-toggle .fa-bars {
    display: none;
}

.mobile-nav-open .mobile-nav-toggle .fa-xmark {
    display: block;
}

.mobile-nav-toggle .fa-xmark {
    display: none;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 2rem 0;
}

/* Container da Imagem com efeito de moldura */
.about-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* A moldura colorida atrás da foto */
.about-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Efeito Hover na foto */
.about-image-wrapper:hover img {
    transform: translate(-5px, -5px);
}
.about-image-wrapper:hover .about-frame {
    transform: translate(5px, 5px);
}

/* Coluna de Texto */
.about-text-column {
    max-width: 550px;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.about-text-column h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text-column p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-buttons .btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.about-buttons .btn-primary:hover {
    background-color: #003ECC;
}

/* Responsividade para Mobile */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .about-image-wrapper {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }

    .about-frame {
        top: 15px;
        left: 15px;
    }
}