:root {
    --bg-sand: #E6DED4;
    /* fundo mais escuro */
    --text-primary: #5C4D45;
    --text-dark-brown: #3E2A1F;
    --gold-tech: #D4B08C;
    --gold-vibrant: #FFD700;
    --gold-light: #EBD4BC;
    --glass-white: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.9);
    --blur: 12px;
    --radius-lg: 30px;
    --radius-sm: 12px;
    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background-color: var(--bg-sand);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

#glow-effect {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 176, 140, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.glass-panel {
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo span {
    color: var(--gold-tech);
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-primary);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar nav a:hover {
    color: var(--gold-tech);
}

.btn-contact {
    padding: 10px 25px;
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--text-primary);
    color: white !important;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 8% 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.organic-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top;
    border-radius: 45px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: 40px;
    left: -25px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.foco-text {
    display: block;
    font-weight: 700;
    color: var(--text-dark-brown) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-tech);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
}

.highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--text-primary), var(--gold-tech));
    -webkit-background-clip: text;
    background-clip: text;
}

.sub-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--gold-tech);
    margin-bottom: 25px;
}

.hero p {
    max-width: 500px;
    margin-bottom: 35px;
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 40px;
    background: var(--gold-tech);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(212, 176, 140, 0.3);
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    padding: 16px 40px;
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-block;
    transition: var(--transition);
}

/* ATUAÇÃO */
.cards-section {
    padding: 50px 8%;
}

.section-header h2 {
    font-family: 'Playfair Display';
    font-size: 2.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.7;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-card {
    background: var(--glass-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid white;
}

.tech-card:hover {
    transform: translateY(-10px);
    background: white;
}

.icon-box {
    font-size: 3rem;
    font-family: 'Playfair Display';
    color: var(--gold-tech);
    opacity: 0.3;
}

/* METODOLOGIA */
.timeline-section,
.formacao-section {
    padding: 80px 8%;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
}

.step-num {
    font-family: 'Playfair Display';
    font-size: 2rem;
    color: var(--gold-tech);
    font-weight: 700;
}

/* === ATIVIDADES (Visita / Treinamento / Evento) === */
.atividades-section {
    padding: 80px 8%;
}

.atividade-item {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.atividade-img img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}


.atividade-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark-brown);
}

.atividade-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    opacity: 0.85;
}

.atividade-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 60px;
}

@media (max-width: 900px) {
    .atividade-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .atividade-img {
        order: -1;
    }
}

/* FORMAÇÃO */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0;
}

.edu-box {
    text-align: center;
    padding: 30px;
    border: 1px dashed var(--gold-tech);
    border-radius: 20px;
}

footer {
    text-align: center;
    padding: 60px 8%;
    background: linear-gradient(to top, #ddd4c8, transparent);
}

.dev-credits {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.dev-credits a {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Fade-in seguro */
.fade-in-up {
    opacity: 1;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   ADD - AJUSTES DE ATIVIDADES (centraliza imagem)
   ========================================================= */
.atividade-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   ADD - SEÇÃO PROJETOS 3D (Galeria + Texto)
   ========================================================= */
.projetos3d-section {
    padding: 90px 8%;
}

.projetos3d-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

/* --- LADO ESQUERDO (Moldura / Galeria) --- */
.projetos3d-gallery {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

.gallery-main {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 340px;
    /* controla altura do quadro */
    object-fit: cover;
    /* mantém bonito */
    display: block;
    border-radius: 22px;
}

/* setas */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark-brown);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 5;
}

.gallery-arrow:hover {
    background: var(--gold-tech);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow.left {
    left: 14px;
}

.gallery-arrow.right {
    right: 14px;
}

/* miniaturas */
.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.gallery-thumbs .thumb {
    width: 86px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbs .thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--gold-tech);
}

/* --- LADO DIREITO (Texto) --- */
.projetos3d-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark-brown);
    margin-bottom: 8px;
}

.projetos3d-text .periodo {
    display: block;
    opacity: 0.7;
    margin-bottom: 16px;
}

.projetos3d-text .tag-projeto {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.projetos3d-text p {
    line-height: 1.75;
    opacity: 0.85;
    margin-bottom: 14px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .projetos3d-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .gallery-thumbs {
        justify-content: center;
    }

    .gallery-main img {
        height: 280px;
    }
}

/* =====================================================
   RESPONSIVO GERAL
===================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .profile-img {
        height: 360px;
    }

    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .timeline-container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: row;
        padding: 15px 6%;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--glass-white);
        backdrop-filter: blur(12px);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
        font-size: 1rem;
    }

    .hero {
        padding-top: 120px;
    }

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

    .gallery-thumbs {
        justify-content: center;
    }

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

    .atividade-img {
        order: -1;
    }
}

/* =====================================================
   BOTÃO MENU HAMBURGUER
===================================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark-brown);
}

/* =========================================
   SEÇÃO DE CONTATO - PERSONALIZADA
   ========================================= */

.contact-section {
    padding: 100px 20px;
    background-color: #F2EBE3;
    /* Tom bege sutil da identidade visual dela */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section .tag {
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8C837C;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #333;
    margin-bottom: 20px;
}

.contact-section p {
    font-family: 'Outfit', sans-serif;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.contact-networks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ajuste nos botões para garantir o estilo da imagem */
.contact-networks .btn-primary,
.contact-networks .btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-networks .btn-primary {
    background-color: #D4A373;
    /* Tom terra do botão 'Ver Projetos' */
    color: #FFF;
    border: 1px solid #D4A373;
}

.contact-networks .btn-secondary {
    background-color: transparent;
    color: #5C544E;
    border: 1px solid #5C544E;
}

.contact-networks .btn-primary:hover {
    background-color: #bc8e5f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-networks .btn-secondary:hover {
    background-color: #5C544E;
    color: #FFF;
    transform: translateY(-3px);
}

/* Responsividade para celulares */
@media (max-width: 600px) {
    .contact-networks {
        flex-direction: column;
        width: 100%;
    }

    .contact-networks a {
        width: 80%;
    }
}

/* =====================================================
   CERTIFICADOS - SLIDER PREMIUM (IMAGEM GRANDE E LEGÍVEL)
===================================================== */

.formacao-section .edu-box {
    overflow: hidden;
}

/* box geral */
.formacao-section .certificados-box {
    position: relative;
    padding: 20px 10px;
}

/* card principal (menos borda e mais espaço útil) */
.formacao-section .certificados-box .slider-container {
    position: relative;
    width: 100%;
    max-width: 720px; /* maior */
    margin: 20px auto 0;
    padding: 20px 40px; /* bem menor */

    background: rgba(255,255,255,0.85);

    border-radius: 28px;
    border: 1px solid rgba(212,176,140,0.2);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.10);

    backdrop-filter: blur(10px);
}

/* moldura interna (quase sem borda) */
.formacao-section .certificados-box .certificados-wrapper {
    width: 100%;
    max-width: 680px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    position: relative;
    overflow: hidden;

    border-radius: 18px;
    background: #fff;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.08);
}

/* IMAGEM (ocupa quase tudo) */
.formacao-section .certificados-box .cert-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;

    padding: 2px; /* quase sem borda */

    opacity: 0;
    transform: translateX(40px) scale(0.96);
    transition: all 0.6s ease;
    pointer-events: none;
}

/* imagem ativa */
.formacao-section .certificados-box .cert-img.active {
    opacity: 1;
    transform: translateX(0) scale(1.05);
    z-index: 2;
}

/* setas */
.formacao-section .certificados-box .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: #d4a373;
    color: #fff;
    font-size: 22px;

    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.formacao-section .certificados-box .arrow:hover {
    transform: translateY(-50%) scale(1.15);
    background: #b47b4d;
}

/* posição */
.formacao-section .certificados-box .arrow.left {
    left: 12px;
}

.formacao-section .certificados-box .arrow.right {
    right: 12px;
}

/* título */
.formacao-section .certificados-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

/* mobile */
@media (max-width: 768px) {
    .formacao-section .certificados-box .slider-container {
        max-width: 95%;
        padding: 18px 30px;
    }

    .formacao-section .certificados-box .certificados-wrapper {
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }

    .formacao-section .certificados-box .arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
