/* ===============
   VARIÁVEIS GLOBAIS
   =============== */
:root {
    /* Cores principais */
    --Marca-Principal: #4361EE;
    --Marca-Terciaria: #050C15;

    /* Levemente mais claro que o body */
    --Texto-Branco: #F8F9FA;
    --Texto-texto1: #212529;
    --Texto-texto2: #343A40;
    --Texto-texto3: #495057;
    --Texto-texto4: #6C757D;
    --Texto-texto5: #ADB5BD;
    --Texto-texto6: #CED4DA;
    --Texto-texto7: #E9ECEF;
    --Texto-texto8: #F8F9FA;

    /* Gradientes */
    --grad-blue: linear-gradient(135deg, #184E77, #1E6091);
    --grad-dark-blue: linear-gradient(104deg, #040404 -37.64%, #4361EE 126.6%);

    /*Outras Cores*/
    --Outras-o1: #3B50B4;

    /* Medidas e Tipografia */
    --max-width: 1200px;
    --font-heading: 'Google Sans Flex', sans-serif;
    --font-body: 'Google Sans Flex', sans-serif;

    /* Bordas */
    --radius-pill: 999px;
    --radius-lg: 20px;
    --radius-md: 16px;

    /* Transições */
    --transition-fast: 0.3s ease;
}

/* ===============
   RESET
   =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--Marca-Terciaria);
    color: var(--Texto-Branco);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===============
   UTILITÁRIOS
   =============== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============
   HEADER & NAVBAR
   =============== */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 24px;
}

.navbar {
    background-color: var(--Texto-texto1);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;

    /* border dinâmico para destacar do fundo */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.navbar li {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;

    /* Imagem de perfil no avatar */
    background-image: url('./../img/icon/favIcon.svg');
    background-size: cover;
    background-position: center;
}

.brand-text {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: none;
    /* Escondido no mobile, exibido no desktop */
    gap: 32px;
}

.nav-links a {
    color: var(--Texto-texto5);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--Texto-Branco);
}

.btn-hire {
    background-color: var(--Texto-Branco);
    color: var(--Texto-texto2);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-hire:hover {
    background-color: var(--Marca-Principal);
    transform: translateY(-2px);
    color: var(--Texto-Branco);
}

/* ===============
   MAIN CONTENT
   =============== */
main {
    /* Espaço para o header fixo */
    padding-top: 140px;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding-bottom: 80px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--Texto-Branco);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--Texto-Branco);
    letter-spacing: -1px;
}

.hero-center {
    position: relative;
    width: 100%;
    max-width: 408px;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    position: absolute;
    bottom: -30px;
    left: -25px;
    width: 100px;
    height: 100px;
    background-color: var(--Marca-Principal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--Marca-Terciaria);
    /* Borda da cor do fundo para dar efeito de recorte */
}

.hero-badge-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.hero-description {
    color: var(--Texto-texto6);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 20px 0 0;
    line-height: 1.8;
}

/* --- SECÇÃO: SERVIÇOS --- */
.services {
    padding: 80px 24px;
    text-align: left;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
}

.tag {
    background-color: transparent;
    border: 2px solid var(--Marca-Principal);
    color: var(--Texto-texto6);
    border-radius: var(--radius-pill);
    padding: 10px 26px;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: var(--Marca-Principal);
    color: var(--Texto-Branco);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--Marca-Principal);
}

/* --- SECÇÃO: PROCESSO CRIATIVO --- */
.process {
    padding: 80px 24px 120px;
}

.process-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-description {
    color: var(--Texto-texto6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 0 0 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--transition-fast);
    /* Sombra suave geral para destacar do fundo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card_img {
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--transition-fast);
    /* Sombra suave geral para destacar do fundo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}   

.card:hover, .card_img:hover {
    transform: translateY(-8px);
}

.card-num1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--Texto-texto1);
    font-weight: 800;
    opacity: 0.3;
    line-height: 1;
}

.card-title1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--Texto-texto3);
    margin-top: 8px;
    line-height: 1.3;
}

.card-desc1 {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--Texto-texto4);
}

.card-num {
    font-family: var(--font-heading);
    color: var(--Texto-Branco);
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.3;
    line-height: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.3;
}

.card-desc {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Estilos específicos dos cards */
.card-light {
    background-color: var(--Texto-Branco);
    color: #121212;
    /* Texto escuro no card claro */
}

.card-blue {
    background: var(--Marca-Principal);
    color: var(--Texto-Branco);
}

.card-blue .card-desc {
    color: var(--Texto-texto7);
}

.card-dark {
    background-color: var(--Texto-texto2);
    color: var(--Texto-Branco);
    /* border: 1px solid var(--Texto-texto2); */
    /* Borda sutil */
}

.card-dark .card-desc {
    color: var(--Texto-texto6);
}

.card-large {
    background: var(--grad-dark-blue);
    color: var(--Texto-Branco);
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
}

.card-large .card-desc {
    color: var(--Texto-texto6);

}


/* ===============
   FOOTER
   =============== */
.footer {
    background-color: var(--Marca-Principal);
    padding: 30px 0;
    color: var(--Texto-Branco);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-label {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

.footer-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--Texto-Branco);
    transition: opacity var(--transition-fast);
}

.footer-value:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}

.social-icons a {
    color: var(--Texto-Branco);
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-icons svg {
    width: 24px;
    height: 24px;
}


/* ===============
   PÁGINA CONTRATAR
   =============== */
.contact-page {
    min-height: 100vh;
    margin-top: 0px;
    margin-bottom: 50px;
    align-items: center;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Esquerda: Imagem */
.contact-image-wrapper {
    position: relative;
    width: 100%;
}

.contact-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}


/* Direita: Conteúdo e Form */
.contact-content {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-weight: auto;
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--Texto-Branco);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--Texto-texto6);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Formulário */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    color: var(--Marca-Principal);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--Texto-texto1);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 18px;
    color: var(--Texto-Branco);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    outline: none;
    width: 100%;
    box-shadow: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--Texto-texto3);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
}

.form-group select:invalid {
    color: #6C757D;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--Marca-Principal);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* Botão Enviar */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: transparent;
    border: 2px solid var(--Marca-Principal);
    color: var(--Marca-Principal);
    border-radius: var(--radius-lg);
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
    font-family: inherit;
    margin-top: 8px;
}

.btn-submit svg {
    transition: transform var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--Marca-Principal);
    color: var(--Texto-Branco);
}

.btn-submit:hover svg {
    transform: translateX(0px) translateY(-2px);
}



/* ===============
   MEDIA QUERIES (DESKTOP)
   =============== */
@media (min-width: 860px) {

    /* Navbar */
    .nav-links {
        display: flex;
    }

    .navbar {
        padding: 12px 12px;
    }

    /* Hero */
    .hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
        padding-top: 60px;
    }

    /* Tipografia Desktop: 60px - 72px */
    .hero-title {
        font-size: 4.5rem;
        /* ~72px */
    }

    .hero-left {
        flex: 1;
        text-align: right;
        /* Ou centralizado/direita dependendo do design preferido. Alinhado à esquerda fica mais moderno em 3 colunas, mas ajusto com base na instrução */
        margin-right: 24px;
    }

    .hero-right {
        flex: 1;
        text-align: left;
        /* Ou centralizado/direita dependendo do design preferido. Alinhado à esquerda fica mais moderno em 3 colunas, mas ajusto com base na instrução */
        margin-left: 24px;
    }

    .hero-description {
        margin: 20px 0 0 0;
    }

    .hero-center {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }

    .hero-img {
        width: 100%;
        max-width: 360px;
        height: 540px;
    }

    /* Processo */
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .card-large {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 48px 64px;
    }

    .card-image {
        align-items: center;
    }

    .card-image1 {
        background-image: url(./../img/ilustracoes/descoberta.svg);
    }

    .card-image2 {
        background-image: url(./../img/ilustracoes/ideia.svg);
    }

    .card-image3 {
        background-image: url(./../img/ilustracoes/prototipo.svg);
    }

    .card-image4 {
        background-image: url(./../img/ilustracoes/testes.svg);
    }

    .card-large .card-num {
        font-size: 4.5rem;
    }

    .card-large-content {
        flex: 1;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .contact-container {
        flex-direction: row;
        align-items: stretch;
        gap: 80px;
    }

    .contact-image-wrapper {
        flex: 1;
        max-width: 45%;
        display: flex;
    }

    .contact-img {
        height: 100%;
        min-height: 600px;
    }

    .contact-badge {
        left: -20px;
        bottom: 40px;
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .contact-content {
        flex: 1;
        max-width: 55%;
        justify-content: center;
    }

    .contact-title {
        font-size: 3.5rem;
        /* de 48px a 60px */
    }

    .form-row {
        flex-direction: row;
    }
}

/* ===============
   PÁGINA SOBRE
   =============== */

.sobre-page {
    /* padding-top mantido para espaço do header */
    padding-top: 140px;
    padding-bottom: 80px;
}

/* Seções principais com grid */
.sobre-top,
.sobre-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sobre-top {
    align-items: start;
    gap: 60px;
}

.sobre-bottom {
    align-items: start;
    gap: 60px;
}

/* Colunas Genéricas */
.col-left,
.col-right {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.col-right {
    /* Garante que a imagem ou a parte direita ocupe apenas o espaço de sua coluna */
    width: 100%;
}

.sobre-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sobre-main-title {
    font-size: 2.5rem;
    /* ~40px no mobile e subirá no desktop */
    font-weight: 700;
    color: var(--Texto-Branco);
    text-transform: uppercase;
    line-height: 1.2;
}

.sobre-text-wrap p {
    color: #CFCFCF;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.sobre-text-wrap p:last-child {
    margin-bottom: 0;
}

.sobre-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--Texto-Branco);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* BLOCO FERRAMENTAS */
.ferramentas-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ferramenta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ferramenta-icon {
    width: 64px;
    height: 64px;
    background-color: var(--Texto-texto2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.ferramenta-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.ferramenta-item:hover .ferramenta-icon {
    transform: translateY(-4px);
    background-color: var(--Texto-texto3);
}

.ferramenta-name {
    font-size: 0.95rem;
    color: var(--Texto-texto6);
    font-weight: 500;
}

/* BLOCO EDUCAÇÃO O e EXPERIÊNCIAS */
.educacao-list,
.experiencias-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.curso-nome,
.exp-cargo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--Texto-Branco);
    margin-bottom: 4px;
}

.instituicao,
.exp-empresa {
    font-size: 1rem;
    color: var(--Texto-texto6);
    margin-bottom: 4px;
}

.ano-azul {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4F6EF7;
}

.exp-bullets {
    list-style-type: none;
    /* User originally requested bullet points, will map to standard if requested or custom */
    margin-top: 12px;
}

.exp-bullets li {
    font-size: 1rem;
    color: #CFCFCF;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.exp-bullets li::before {
    content: "•";
    color: #4F6EF7;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    position: absolute;
    left: 0;
}

/* CONTACTOS */
.contactos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--Texto-texto6);
    font-size: 1.05rem;
}

.contacto-item svg {
    color: #4F6EF7;
}

/* BOTÃO DOWNLOAD */
.btn-box-cv {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    border: 2px solid var(--Marca-Principal);
    color: var(--Marca-Principal);
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: max-content;
}

.btn-box-cv:hover {
    background-color: var(--Marca-Principal);
    color: var(--Texto-Branco);
}

.btn-box-cv svg {
    width: 20px;
    height: 20px;
}

/* Direita: Imagem */
.sobre-img-wrapper {
    width: 100%;
}


/* MEDIA QUERIES SOBRE (DESKTOP E MOBILE) */
@media (max-width: 768px) {

    .sobre-top,
    .sobre-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .sobre-top .col-left {
        order: 1;
        /* SOBRE MIM E FERRAMENTAS */
    }

    .sobre-top .col-right {
        order: 2;
        /* IMAGEM DO DESIGNER */
    }

    .sobre-bottom .col-left {
        order: 1;
        /* EDUCAÇÃO E CONTACTOS */
    }

    .sobre-bottom .col-right {
        order: 2;
        /* EXPERIÊNCIAS */
    }
}

@media (min-width: 860px) {
    .sobre-main-title {
        font-size: 3rem;
        /* 48px */
    }

    .ferramentas-list {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }
}


/* ===============
   PÁGINA PROJETOS
   =============== */

/* Wrapper geral da página */
.projetos-page {
    padding-top: 120px;
    padding-bottom: 100px;
}

/* --- Secção Introdução --- */
.projetos-intro {
    text-align: left;
    margin-bottom: 64px;
}

.projetos-eyebrow {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--Marca-Principal);
    margin-bottom: 12px;
}

.projetos-titulo {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* mobile: 48px */
    font-weight: 800;
    color: var(--Texto-Branco);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.projetos-desc {
    color: #CFCFCF;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 700px;
}

/* --- Grid de Projetos --- */
.projetos-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile: 1 coluna */
    gap: 40px;
}

/* --- Card de Projeto --- */
.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast);
    
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Imagem de capa */
.project-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.04);
}

/* Placeholder quando não existe imagem */
.project-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-img-placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

/* Corpo do card */
.project-card-body {
    /* padding: 10px 0px 20px 20px; */
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background-color: transparent;
    border: 1.5px solid var(--Marca-Principal);
    color: var(--Marca-Principal);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.project-tag2 {
    background-color: transparent;
    border: 1.5px solid var(--Marca-Principal);
    color: var(--Marca-Principal);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.6;
}

/* Título do card */
.project-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--Texto-Branco);
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* Descrição curta — limitada a 2 linhas */
.project-card-desc {
    color: #CFCFCF;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Botão "Ver projeto" */
.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--Marca-Principal);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    align-self: flex-start;
    transition: gap var(--transition-fast), opacity var(--transition-fast);
}

.project-card-link svg {
    transition: transform var(--transition-fast);
}

.project-card-link:hover {
    opacity: 0.8;
}

.project-card-link:hover svg {
    transform: translate(3px, -3px);
}

/* Estado vazio */
.projetos-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--Texto-texto5);
    font-size: 1.1rem;
}

/* --- Responsividade Desktop --- */
@media (min-width: 860px) {
    .projetos-titulo {
        font-size: 4rem;
        /* ~64px */
    }

    .projetos-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 colunas no desktop */
    }
}


/* ===============
   PÁGINA DETALHE DO PROJETO
   =============== */

/* Wrapper geral */
.detalhe-page {
    padding-top: 80px;
    padding-bottom: 100px;
}

.detalhe-container {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* --- 1. Cabeçalho --- */
.detalhe-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
}

.detalhe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detalhe-titulo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--Texto-Branco);
    line-height: 1.05;
    letter-spacing: -1px;
}

.detalhe-descricao {
    color: #CFCFCF;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 720px;
}

/* --- 2. Meta Info Grid (Ano / Sector / Cliente / Duração) --- */
.detalhe-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detalhe-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--Texto-texto2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.detalhe-meta-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--Marca-Principal);
}

.detalhe-meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--Texto-Branco);
}

/* --- 3. Imagem de Capa --- */
.detalhe-capa {
    margin: 0;
}

.detalhe-capa-img {
    width: 100%;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

/* --- 4-6. Seções (Problema / Solução / Desafio / Resumo) --- */
.detalhe-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detalhe-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--Texto-Branco);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalhe-section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--Marca-Principal);
    color: var(--Texto-Branco);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Corpo de texto das seções */
.detalhe-text-content {
    color: #CFCFCF;
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 800px;
}

/* Lista de bullet points — Desafio */
.detalhe-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 800px;
}

.detalhe-bullets li {
    position: relative;
    padding-left: 22px;
    color: #CFCFCF;
    font-size: 1.05rem;
    line-height: 1.7;
}

.detalhe-bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--Marca-Principal);
    font-weight: 700;
}

/* Figuras de imagem */
.detalhe-fig {
    margin: 0;
}

/* Todas as imagens do case study */
.projeto-img {
    width: 100%;
    border-radius: 20px;
    margin-top: 24px;
    display: block;
    object-fit: cover;
}

/* Grid de 2 imagens lado a lado */
.detalhe-img-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.detalhe-img-grid2 .projeto-img {
    margin-top: 0;
}

/* --- Botão Voltar --- */
.detalhe-back-nav {
    padding-top: 16px;
    border-top: 1px solid var(--Texto-texto2);
}

.detalhe-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--Marca-Principal);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition-fast), opacity var(--transition-fast);
}

.detalhe-back-btn svg {
    transition: transform var(--transition-fast);
}

.detalhe-back-btn:hover {
    opacity: 0.8;
}

.detalhe-back-btn:hover svg {
    transform: translateX(-4px);
}

/* ===============
   MEDIA QUERIES — DETALHE DO PROJETO
   =============== */

/* Tablet (≥ 600px) */
@media (min-width: 600px) {
    .detalhe-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (≥ 860px) */
@media (min-width: 860px) {
    .detalhe-titulo {
        font-size: 4rem;
    }

    .detalhe-section-title {
        font-size: 2.2rem;
    }

    /* Meta info em 4 colunas */
    .detalhe-meta-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Imagens lado a lado */
    .detalhe-img-grid2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .detalhe-titulo {
        font-size: 2rem;
    }

    .detalhe-section-title {
        font-size: 1.4rem;
    }

    .detalhe-meta-grid {
        grid-template-columns: 1fr;
    }

    .detalhe-container {
        gap: 48px;
    }
}