:root {
    --primary-color: #1a4b8f;
    --primary-hover:#3b7dd8;
    --bg-color: #ffffff;
    --section-bg:  #a0c1ff58;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/*  HEADER E NAVEGAÇÃO*/
header {
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* HERO SECTION*/
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    min-height: 80vh;
    gap: 40px;
}

.hero-content {
    flex: 1.2;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    margin-top: 10px ;
}

.btn-secondary {
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-main);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.contato {
    display: flex;
    gap: 10px;
}

.contato a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    gap: 5px;
    color: #1a4b8f;
}

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

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    margin-top: -70px;
}

.circle-bg {
    width: 320px;
    height: 320px;
    background: var(--primary-color);
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #a0c1ff;
}

.circle-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*ESTRUTURA BENTO GRID*/
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--section-bg);
}

.bento-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.side-info {
    position: sticky;
    top: 100px;
}

.section-title-left {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.side-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Filtros de Projetos --- */
.filter-container-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

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

.projeto-card-bento {
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* --- Objetivos (Compactos) --- */
.grid-objetivos-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.obj-card-bento {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: var(--transition);
}

.obj-icon-box {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: var(--primary-color);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
}

.obj-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.obj-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* --- Projetos (Compactos) --- */
.grid-projetos-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.projeto-card-bento {
    background: white;
    padding: 22px;
    border-radius: var(--border-radius);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.projeto-card-bento h3 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
}

.projeto-card-bento p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tag {
    background: #f1f5f9;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.projeto-card-bento a {
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.projeto-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.projeto-links a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

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

/* --- Certificações (Duas Colunas) --- */
.grid-certificacoes-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cert-card-bento {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-icon-box {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    background: #f1f5f9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1rem;
    line-height: 1.2;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-footer {
    border-left: 1px solid #f1f5f9;
    padding-left: 12px;
    text-align: right;
}


.cert-footer a {
    color: var(--primary-color);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 700;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVIDADE*/
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .bento-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .side-info {
        position: static;
        text-align: center;
        margin-bottom: 30px;
    }

    .filter-container-left {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none; 
    }

    nav ul.active {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 140px 0 20px 0;
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .description {
        margin: 0 auto 1.5rem;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .circle-bg {
        width: 200px;
        height: 200px;
    }

    .grid-certificacoes-bento {
        grid-template-columns: 1fr;
    }

    .grid-objetivos-bento {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
        scroll-margin-top: 110px;
    }

    .cert-card-bento {
        flex-direction: column;
        text-align: center;
    }

    .cert-footer {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-left: 0;
        padding-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* CORREÇÃO DEFINITIVA DA FOTO NO MOBILE */
    .hero-image {
        margin-top: 40px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

.grid-stacks-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stack-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.stack-card img {
    width: 40px;
    height: 40px;
}

.stack-card span {
    font-size: 0.85rem;
    font-weight: 600;
}

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

.learning-card {
    opacity: 0.5;
    border-style: dashed;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 100%;
        display: none;
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }
}

.stack-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.9);
}

.cert-card-bento {
    text-decoration: none;
    color: inherit;
}
