/* ================= SEO & ACCESSIBILITY ================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================= VARIÁVEIS CSS ================= */
:root {
    /* Paleta de cores simplificada - 3 cores */
    --azul-primario: rgb(3, 39, 88);     /* Azul principal */
    --azul-secundario: rgb(91, 120, 151);   /* Mesmo azul para consistência */
    --azul-claro: rgb(174, 193, 208);        /* Mesmo azul para acentos */
    --azul-logo: rgb(3, 39, 88);         /* Azul do logo - mesmo que primário */
    --branco: rgb(255, 255, 255);     /* Branco para fundo premium */
    --marrom-primario: #99592f;  /* Dourado/marrom elegante */
    --marrom-secundario: rgb(172, 108, 52);    /* Mesmo dourado para consistência */
    --marrom-claro: rgb(217, 190, 152);
    --cinza-texto: #032758;       /* Azul para texto principal */
    --cinza-texto-claro: #99592f; /* Dourado para subtextos */
    
    /* Sombras simplificadas */
    --sombra-suave: 0 2px 12px rgba(3, 39, 88, 0.08);
    --sombra-media: 0 4px 20px rgba(3, 39, 88, 0.12);
    --sombra-forte: 0 8px 32px rgba(3, 39, 88, 0.15);
    --sombra-hover: 0 12px 40px rgba(3, 39, 88, 0.18);
    
    /* Transições elegantes */
    --transicao-suave: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transicao-elastica: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Espaçamentos e dimensões */
    --border-radius-pequeno: 0px;
    --border-radius-medio: 0px;
    --border-radius-grande: 0px;
    --container-padding: 12px;
    --section-spacing: 120px;
    --header-altura: 85px;
}

/* ================= FONTS ================= */
@font-face {
    font-family: 'Garet';
    src: url('./fonts/Garet-Book.otf') format('opentype'),
         url('./fonts/Garet-Book.woff2') format('woff2'),
         url('./fonts/Garet-Book.woff') format('woff'),
         url('./fonts/Garet-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garet';
    src: url('./fonts/Garet-Heavy.otf') format('opentype'),
         url('./fonts/Garet-Heavy.woff2') format('woff2'),
         url('./fonts/Garet-Heavy.woff') format('woff'),
         url('./fonts/Garet-Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ================= RESET E BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--branco);
    color: var(--cinza-texto);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ================= ANIMAÇÕES ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* ================= SCROLL ANIMATIONS ================= */
.scroll-element {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-element.animate-fade-up {
    transform: translateY(50px);
}

.scroll-element.animate-fade-down {
    transform: translateY(-50px);
}

.scroll-element.animate-slide-left {
    transform: translateX(-50px);
}

.scroll-element.animate-slide-right {
    transform: translateX(50px);
}

.scroll-element.animate-scale {
    transform: scale(0.8);
}

.scroll-element.animate-rotate {
    transform: rotate(-10deg) scale(0.9);
}

.scroll-element.animate-blur {
    filter: blur(8px);
}

/* Quando o elemento está visível */
.scroll-element.animated {
    opacity: 1;
    overflow: visible;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    filter: blur(0px);
}

/* Delay variants for staggered animations */
.scroll-delay-100 {
    transition-delay: 0.1s;
}

.scroll-delay-200 {
    transition-delay: 0.2s;
}

.scroll-delay-300 {
    transition-delay: 0.3s;
}

.scroll-delay-400 {
    transition-delay: 0.4s;
}

.scroll-delay-500 {
    transition-delay: 0.5s;
}

.scroll-delay-600 {
    transition-delay: 0.6s;
}

/* Duration variants */
.scroll-duration-slow {
    transition-duration: 1.2s;
}

.scroll-duration-fast {
    transition-duration: 0.6s;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: linear-gradient(60deg, var(--azul-primario), rgba(3, 39, 88, 0.6)   );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--azul-primario);
    transition: var(--transicao-suave);
}

header.scrolled {
    /* background: rgba(255, 255, 255, 0.98); */
    box-shadow: var(--sombra-media);
    /* color: var(--azul-primario); */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-altura);
    padding: 0 var(--container-padding);

}

.navbar {
    width: 100%;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-brand .logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(3, 39, 88, 0.1));
    transition: var(--transicao-suave);
}

.nav-brand .logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 12px rgba(3, 39, 88, 0.15));
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: var(--transicao-suave);
    position: relative;
    padding: 12px 0;
    text-transform: none;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--marrom-primario), var(--marrom-secundario));
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.nav-menu li a:hover {
    color: var(--azul-claro);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* .nav-menu li a:focus {
    outline: 2px solid var(--marrom-primario);
    outline-offset: 4px;
    border-radius: var(--border-radius-pequeno);
} */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    padding-top: var(--header-altura);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 39, 88, 0.2);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: rgb(3, 39, 88);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 80px var(--container-padding);
    max-width: 1400px;
}

.hero-content {
    flex: 1;
    max-width: 750px;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-stats {
    display: inline-flex;
    margin-bottom: 2rem;
    width: auto;
    max-width: fit-content;
    align-items: center;
    background-color: rgba(3, 38, 88, 0.1);
    /* padding: 1rem 1.5rem; */
    /* border-radius: 8px; */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(3, 39, 88, 0.2);
    -webkit-backdrop-filter: blur(10px);
}

.typing-animation {
    display: flex;
    align-items: center;
    font-family: 'Garet', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 400;
    color: var(--branco);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-height: 3rem;
    width: auto;
    max-width: 100%;
    padding: 0.5rem 1rem;
}

.typing-text {
    display: inline-block;
    margin-right: 0.1em;
}

.cursor {
    display: inline-block;
    background-color: var(--branco);
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-content h2 {
    font-family: "Garet", sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    color: var(--branco);
    margin-bottom: 1.5rem;
    /* text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(1.1);
}

.hero-content p {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-weight: 400;
    max-width: 650px;
}

.highlight {
    color: var(--azul-primario);
    font-weight: 600;

}

.header-highlight {
    font-size: 36px;
    color: var(--azul-primario);
    font-weight: 600;
    line-height: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

/* ================= BOTÕES ================= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    border-radius: var(--border-radius-medio);
    transition: var(--transicao-suave);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    height: 56px;
    font-family: 'Garet', sans-serif;

}

.btn-primary {
    background: rgb(3, 39, 88);
    color: var(--branco);
    box-shadow: var(--sombra-media);
    border: 2px solid var(--azul-primario);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--sombra-hover);
    background: rgba(3, 38, 88);
    /* color: var(--azul-primario) */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--branco);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--branco);
    color: var(--azul-primario);
    border-color: var(--branco);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--sombra-hover);
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: 3px solid var(--marrom-primario);
    outline-offset: 2px;
}

/* ================= DIFERENCIAIS ================= */
.diferenciais {
    padding: calc(var(--section-spacing) * 0.4) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.diferenciais::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.diferencial-item {
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    padding: 2.5rem 2rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
    position: relative;
    border: 1px solid var(--azul-primario);
    overflow: hidden;
    text-align: center;
}

.diferencial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--azul-primario);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diferencial-item:hover::before {
    transform: scaleX(1);
}

.diferencial-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border-color: var(--azul-claro);
}

.diferencial-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
    border-radius: var(--border-radius-grande);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
}

.diferencial-icon i {
    font-size: 1.8rem;
    color: var(--branco);
}

.diferencial-item:hover .diferencial-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: var(--sombra-media);
}

.diferencial-item h4 {
    font-family: 'Garet', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.diferencial-item p {
    font-size: 1rem;
    color: var(--azul-primario);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* ================= PROBLEMAS ================= */
.problemas {
    padding: calc(var(--section-spacing) * 0.4) 0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    position: relative;
}

.problemas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

.problemas-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--azul-primario);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.6;
}

.problemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.problema-item {
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    /* padding: 2rem 1.5rem; */
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
    position: relative;
    /* border: 1px solid #e74c3c; */
    overflow: hidden;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 350px;
   min-width: 220px;

}

.problema-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to bottom, transparent 0%, rgba(231, 76, 60, 0.8) 100%); */
    z-index: 1;
    transition: var(--transicao-suave);
}

/* .problema-item:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(192, 57, 43, 0.9) 100%);
} */

.problema-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border-color: #c0392b;
}

.problema-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%);
    border-radius: var(--border-radius-grande);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.problema-icon i {
    font-size: 1.5rem;
    color: var(--branco);
}

.problema-item:hover .problema-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: var(--sombra-media);
}

.problema-item h4 {
    font-family: 'Garet', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--branco);
    margin: 0;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ================= SERVIÇOS ================= */
.servicos {
    padding: calc(var(--section-spacing) * 0.5) 0;
    background: var(--branco);
    position: relative;
}

.servicos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

.servicos h3 {
    text-align: center;
    font-family: 'Garet', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

.servicos-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--azul-primario);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.servicos-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--marrom-primario) 0%, var(--dourado-escuro) 100%);
    border-radius: 2px;
    margin: 0 auto 3rem auto;
    animation: scaleIn 0.8s ease-out;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    padding: 3rem 2.5rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
    position: relative;
    border: 1px solid var(--azul-primario);
    overflow: hidden;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background:var(--azul-primario);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--sombra-hover);
    border-color: var(--azul-primario);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--azul-primario);
    border-radius: var(--border-radius-grande);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
}

.card-icon i {
    font-size: 2.2rem;
    color: var(--branco);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--sombra-media);
}

.card h4 {
    font-family: 'Garet', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 1.05rem;
    color: var(--azul-primario);
    line-height: 1.7;
    margin: 0;
}

/* ================= PROJETOS EXCELÊNCIA ================= */
.projetos-excelencia {
    padding: calc(var(--section-spacing) * 0.5) 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    position: relative;
    margin-bottom: 48px;
}

.projetos-excelencia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

/* ================= EXCELENCIA CONTAINER ================= */
.excelencia-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    align-items: stretch;
}

.excelencia-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 280px;
    flex-shrink: 0;
}

.excelencia-nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--branco);
    border: 2px solid var(--azul-claro);
    border-radius: var(--border-radius-medio);
    transition: var(--transicao-suave);
    cursor: pointer;
    text-align: left;
    font-family: 'Garet', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--azul-primario);
    box-shadow: var(--sombra-suave);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.excelencia-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    transition: var(--transicao-suave);
    z-index: 1;
}

.excelencia-nav-btn > * {
    position: relative;
    z-index: 2;
}

/* Background específico para cada botão */
.excelencia-nav-btn[data-category="hidrossanitario"] {
    background-image: url('images/excelence/hidrossanitario.png');
}

.excelencia-nav-btn[data-category="piscinas"] {
    background-image: url('images/excelence/piscinas.png');
}

.excelencia-nav-btn[data-category="gasglp"] {
    background-image: url('images/excelence/gasglp.png');
}

.excelencia-nav-btn[data-category="previncendio"] {
    background-image: url('images/excelence/previncendio.png');
}

.excelencia-nav-btn:hover {
    border-color: var(--azul-secundario);
    transform: translateX(8px);
    box-shadow: var(--sombra-media);
}

.excelencia-nav-btn:hover::before {
    background: rgba(255, 255, 255, 0.7);
}

.excelencia-nav-btn.active {
    border-color: var(--azul-primario);
    color: var(--branco);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.excelencia-nav-btn.active::before {
    background: linear-gradient(135deg, rgba(3, 39, 88, 0.8) 0%, rgba(91, 120, 151, 0.8) 100%);
}

.nav-btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(3, 39, 88, 0.1);
    border-radius: var(--border-radius-pequeno);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao-suave);
    flex-shrink: 0;
}

.excelencia-nav-btn.active .nav-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn-icon i {
    font-size: 1.2rem;
    color: inherit;
}

.excelencia-display {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.excelencia-category {
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    padding: 1.5rem 2rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-suave);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border: 1px solid var(--azul-primario);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.excelencia-category.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.excelencia-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 39, 88, 0.85) 0%, rgba(91, 120, 151, 0.75) 100%);
    z-index: 1;
    transition: var(--transicao-suave);
}

.excelencia-category:hover::before {
    background: linear-gradient(135deg, rgba(3, 39, 88, 0.9) 0%, rgba(91, 120, 151, 0.8) 100%);
}

.excelencia-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border-color: var(--azul-secundario);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(240, 248, 255, 0.3);
    position: relative;
    z-index: 2;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
    border-radius: var(--border-radius-grande);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-elastica);
    flex-shrink: 0;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--branco);
}

.excelencia-category:hover .category-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: var(--sombra-media);
}

.category-header h4 {
    font-family: 'Garet', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--branco);
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-items {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.category-items li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(240, 248, 255, 0.2);
    color: var(--branco);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
    transition: var(--transicao-suave);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-items li:last-child {
    border-bottom: none;
}

.category-items li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--marrom-primario);
    font-weight: bold;
    transition: var(--transicao-suave);
}

.category-items li:hover {
    color: var(--marrom-primario);
    padding-left: 2rem;
}

.category-items li:hover::before {
    transform: translateX(0.5rem);
}

/* ================= PROJETOS/PORTFOLIO ================= */
.portfolio {
    padding: calc(var(--section-spacing) * 0.5) 0;
    background: var(--branco);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

.portfolio-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--azul-primario);
    margin-bottom: 1rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.portfolio-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
    margin: 12px;
    justify-content: center;
    align-items: center;
}

/* ================= CAROUSEL STYLES ================= */
.portfolio-carousel {
    position: relative;
    overflow: visible;
}

.carousel-container {
    overflow-x: hidden;
    position: relative;
    padding: 24px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-grid {
    position: relative;
    width: 800px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-card {
    background: var(--branco);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    width: 800px;
    height: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    z-index: 1;
    opacity: 0;
    transform: translateX(0) scale(0.8);
    visibility: hidden;
    box-shadow: var(--sombra-hover);
}

.portfolio-card.active {
    z-index: 5;
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
}

.portfolio-card.prev {
    z-index: 3;
    opacity: 0.6;
    transform: translateX(-200px) scale(0.8);
    visibility: visible;
}

.portfolio-card.next {
    z-index: 3;
    opacity: 0.6;
    transform: translateX(200px) scale(0.8);
    visibility: visible;
}

.portfolio-half {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #f8f9fa; */
    min-width: 0;
}

.portfolio-half-left {
    /* border-right: 2px solid var(--azul-primario); */
    flex-shrink: 0;
    flex-grow: 1;
    flex-basis: 50%;
}

.portfolio-half-right {
    flex-shrink: 0;
    flex-grow: 1;
    flex-basis: 50%;
}

.portfolio-half .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    /* background: var(--branco); */
    transform: scale(1.0);
    display: block;
}

.portfolio-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
    color: var(--branco);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: var(--sombra-suave);
}

.portfolio-content {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    max-width: 70%;
    background: linear-gradient(135deg, rgba(3, 39, 88, 0.9) 0%, rgba(3, 39, 88, 0.7) 100%);
    color: var(--branco);
    padding: 1rem 1rem;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);
    /* border-radius: 0 0 12px 0; */
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    padding: 0 10px;
}

.carousel-btn {
    background: var(--branco);
    border: 2px solid var(--azul-primario);
    color: var(--azul-primario);
    width: 50px;
    height: 50px;
    /* border-radius: 50%;
     */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicao-suave);
    box-shadow: var(--sombra-media);
    pointer-events: all;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--azul-primario);
    color: var(--branco);
    transform: scale(1.1);
    box-shadow: var(--sombra-forte);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--azul-claro);
    cursor: pointer;
    transition: var(--transicao-suave);
    position: relative;
}

.indicator.active {
    background: var(--azul-primario);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--dourado-escuro);
    transform: scale(1.1);
}

.portfolio-card.active:hover {
    transform: translateY(-8px) scale(1);
    box-shadow: var(--sombra-hover);
    border-color: var(--marrom-primario);
    z-index: 10;
}

.portfolio-card.active:hover .portfolio-content {
    background: linear-gradient(135deg, rgba(3, 39, 88, 0.95) 0%, rgba(3, 39, 88, 0.85) 100%);
}

.portfolio-card.active:hover .portfolio-half .portfolio-img {
    transform: scale(1);
}

.portfolio-card.active:hover .portfolio-label {
    transform: scale(1.1);
}

/* Remover hover das fotos inativas */
.portfolio-card.prev:hover,
.portfolio-card.next:hover {
    transform: translateX(-200px) scale(0.8);
    box-shadow: var(--sombra-suave);
    z-index: 3;
}

.portfolio-card.prev:hover {
    transform: translateX(-200px) scale(0.8);
}

.portfolio-card.next:hover {
    transform: translateX(200px) scale(0.8);
}

.portfolio-card h4 {
    font-family: 'Garet', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--branco);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}



.portfolio-cta {
    text-align: center;
    /* margin-top: 4rem; */
    padding: 4rem 0 2rem 0;
}

.portfolio-cta .btn-primary {
    font-size: 1.1rem;
    padding: 18px 36px;
    min-width: 220px;
}

/* ================= PROJECT MARQUEE STYLES ================= */
.project-marquee {
    overflow: hidden;
    /* margin: 3rem 0; */
    padding: 1.2rem 0;
    position: relative;
    /* background: linear-gradient(135deg, rgba(3, 39, 88, 0.9), rgba(3, 39, 88, 0.8)); */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* box-shadow: 0 4px 8px rgba(0, 51, 102, 0.4); */
}

.project-marquee-content {
    display: flex;
    gap: 2rem;
    will-change: transform;
    padding: 0 2rem;
    animation: marqueeScroll 60s linear infinite;
}

.project-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

.project-marquee-item {
    flex: 0 0 auto;
    width: 600px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* border-radius: 12px; */
    overflow: visible;
    /* box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.project-marquee-item:hover {
    /* transform: translateY(-8px) scale(1); */
    background: rgba(255, 255, 255, 0.35);
    /* box-shadow: 0 20px 8px rgba(0, 0, 0, 0.2); */
}



.project-item-images {
    display: flex;
    height: 100%;
    position: relative;
}

.project-item-half {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.project-item-half::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(45deg, transparent 30%, rgba(0, 51, 102, 0.1) 100%); */
    z-index: 1;
    transition: opacity 0.3s ease;
}

.project-marquee-item:hover .project-item-half::before {
    opacity: 0;
}

.project-item-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-marquee-item:hover .project-item-half img {
    transform: scale(1.1);
}

.project-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.5rem;
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 90%, transparent 100%);
    /* backdrop-filter: blur(2px); */
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
    
}

.project-item-title {
    font-family: 'Garet', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.project-item-description {
    color: rgba(3, 38, 88, 0.95);
    font-family: 'Garet', sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0;
     transform: translateY(40px);
     overflow: visible;
    /* text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5); */
    font-weight: 700;
}

.project-item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    color: var(--branco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Responsividade para Marquee */
@media (max-width: 768px) {
    .project-marquee {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .project-marquee-item {
        width: 400px;
        height: 200px;
    }
    
    .project-item-images {
        height: 100%;
    }
    
    .project-marquee-content {
        animation-duration: 25s;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .project-marquee {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        padding: 1.5rem 0;
    }
    
    .project-marquee-item {
        width: 360px;
        height: 180px;
    }
    
    .project-item-images {
        height: 100%;
    }
    
    .project-item-content {
        padding: 1rem;
    }
    
    .project-item-description {
        font-size: 1.1rem;
    }
    
    .project-item-title {
        font-size: 1.1rem;
    }
    
    .project-marquee-content {
        animation-duration: 15s;
        padding: 0 0.5rem;
    }
}

/* ================= CLIENTES ================= */
.clientes {
    padding: calc(var(--section-spacing) * 0.5) 0;
    background: var(--branco);
    position: relative;
}

.clientes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

.clientes .container {
    text-align: center;
}

.section-title {
    font-family: 'Garet', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--azul-primario);
    /* margin-bottom: -1rem; */
    /* letter-spacing: -0.02em; */
    text-align: center;
    width: 100%;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 500;
    color: var(--marrom-primario);
    /* margin-bottom: 1rem; */
    letter-spacing: 0.025em;
    text-align: center;
    width: 100%;
}

/* Reduzir espaçamento do subtítulo na seção de clientes */
.clientes .section-subtitle {
    margin: 0.5rem 0 0.5rem 0;
}

.clientes-description {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--azul-primario);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.clientes-carousel {
    position: relative;
    padding: 0.5rem 0;
    max-width: 100%;
    overflow: hidden;
}

.clientes-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
}

.clientes-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.cliente-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(3, 39, 88, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.cliente-dot:hover {
    background: rgba(3, 39, 88, 0.6);
    transform: scale(1.1);
}

.cliente-dot.active {
    background: var(--azul-primario);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(3, 39, 88, 0.4);
}

/* Primeira div de logos dos clientes (White, Monpag, Mumajo, Urban Edge) - tamanho específico */
.clientes-logos:not(.clientes-carousel .clientes-logos) {
    display: flex;
    /* gap: 2rem; */
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0.5rem 0;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.clientes-logos:not(.clientes-carousel .clientes-logos) .cliente-logo {
    height: 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transicao-suave);
    display: block;
    background-color: var(--branco);
    border: none;
    outline: none;
    padding: 8px;
    flex-shrink: 0;
}

.clientes-logos:not(.clientes-carousel .clientes-logos) .cliente-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

/* Logos do carrossel (segunda div) - mantém tamanho original */
.cliente-logo {
    height: 100px;
    min-width: 100px;
    max-width: 100px;
    width: 100px;
    object-fit: contain;
    opacity: 0.5;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    /* background-color: var(--branco); */
    border: none;
    outline: none;
    /* padding: 12px; */
    flex-shrink: 0;
    /* filter: grayscale(60%) brightness(0.9); */
    transform: scale(0.9);
}

.cliente-logo.center {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
    /* box-shadow: var(--sombra-media); */
    z-index: 2;
    position: relative;
}

.cliente-logo:hover {
    opacity: 0.8;
    transform: scale(1);
    filter: grayscale(30%) brightness(1);
}

/* ================= DEPOIMENTOS ================= */
.depoimentos {
    padding: calc(var(--section-spacing) * 0.8) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.depoimentos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 34, 88, 0.02) 0%, rgba(255, 255, 255, 0.03) 100%);
    pointer-events: none;
}

.depoimentos .container {
    position: relative;
    z-index: 1;
}

.depoimentos-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.depoimentos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    align-items: center;
}

.depoimento-card {
    display: flex;
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    box-shadow: var(--sombra-media);
    padding: 1.5rem;
    transition: all 0.8s ease;
    position: absolute;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.depoimento-card.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.depoimento-card.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px) scale(0.9);
}

.depoimento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-forte);
}

.depoimento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
}

.depoimento-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.depoimento-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: 300px;
    object-fit: none;
    border-radius: var(--border-radius-medio);
    box-shadow: var(--sombra-leve);
    transition: all 0.3s ease;
}

.depoimento-img:hover {
    transform: scale(1.05);
    box-shadow: var(--sombra-media);
}

/* Animações dos depoimentos */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-30px) scale(0.9);
    }
}

/* ================= CONTATO ================= */
.contact {
    padding: calc(var(--section-spacing) * 0.5) 0;
    background: var(--branco);
    position: relative;
}

/* ================= QUEM SOMOS ================= */
.quem-somos {
    padding: calc(var(--section-spacing) * 0.5) 0;
    background:  url('./images/viniciusmelissa2.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.quem-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(248, 249, 250, 0.85) 0%, rgba(255, 255, 255, 0.85) 100%); */
    z-index: 1;
}

.quem-somos::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
    z-index: 2;
}

.quem-somos .container {
    position: relative;
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items:flex-start;
    z-index: 3;
    text-align: center;
}.quem-somos-stats

.quem-somos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.quem-somos-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.quem-somos-intro,
.quem-somos-missao,
.quem-somos-valores {
    background: var(--branco);
    padding: 2rem;
    border-radius: var(--border-radius-grande);
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--azul-primario);
    transition: var(--transicao-suave);
}

.quem-somos-intro:hover,
.quem-somos-missao:hover,
.quem-somos-valores:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
    border-color: var(--marrom-primario);
}

.quem-somos-intro h3,
.quem-somos-missao h3,
.quem-somos-valores h3 {
    font-family: 'Garet', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.quem-somos-intro p,
.quem-somos-missao p {
    font-size: 1.05rem;
    color: var(--azul-primario);
    line-height: 1.7;
    margin: 0;
}

.quem-somos-valores ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quem-somos-valores ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    color: var(--azul-primario);
    line-height: 1.6;
    border-bottom: 1px solid rgba(3, 39, 88, 0.1);
    transition: var(--transicao-suave);
}

.quem-somos-valores ul li:last-child {
    border-bottom: none;
}

.quem-somos-valores ul li:hover {
    color: var(--marrom-primario);
    padding-left: 1rem;
}

.quem-somos-valores ul li i {
    color: var(--marrom-primario);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quem-somos-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius-grande);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    border: 2px solid var(--azul-primario);
    transition: var(--transicao-suave);
}

.image-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border-color: var(--marrom-primario);
}

.team-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 39, 88, 0.9) 100%);
    padding: 2rem;
    color: var(--branco);
}

.stats-overlay {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-family: 'Garet', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--marrom-primario);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--branco);
    margin: 0;
    opacity: 0.9;
}

.quem-somos-stats {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    /* border-radius: 20px; */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quem-somos-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-15deg);
    animation: glass-shine 3s infinite;
    pointer-events: none;
}

.highlight-sobrenos {
    color: white;
    margin: 2rem;
    /* margin-bottom: 12px; */
}

@keyframes glass-shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.quem-somos-stats .stat-item {
    text-align: left;
    padding: 0.5rem;
    /* border-radius: 15px; */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border: 1px solid rgba(255, 255, 255, 0.15); */
    /* backdrop-filter: blur(5px); */
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quem-somos-stats .stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    /* background: rgba(255, 255, 255, 0.2); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); */
}

.quem-somos-stats .stat-number {
    font-family: 'Garet', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--azul-primario);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quem-somos-stats .stat-label {
    font-size: 1rem;
    color: var(--cinza-escuro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quem-somos-cta {
    /* background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%); */
    border-radius: var(--border-radius-grande);
    padding: 3rem 0.4rem;
    /* margin-top: 4rem; */
    color: var(--branco);
    text-align: center;
    /* box-shadow: var(--sombra-media); */
    position: relative;
    overflow: hidden;
}

.quem-somos-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quem-somos-cta h3 {
    font-family: 'Garet', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.quem-somos-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.quem-somos-cta .btn-primary {
    background: var(--branco);
    color: var(--azul-primario);
    border: 2px solid var(--branco);
    position: relative;
    z-index: 2;
}

.quem-somos-cta .btn-primary:hover {
    background: var(--marrom-primario);
    color: var(--branco);
    border-color: var(--marrom-primario);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--azul-primario) 50%, transparent 100%);
}

.contact-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--azul-primario);
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--branco);
      background: url('./images/bghero9.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius-grande);
    padding: 3rem 2.5rem;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--azul-primario);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(103, 43, 43, 0.9); */
    border-radius: var(--border-radius-grande);
    z-index: 1;
}

.contact-info > * {
    position: relative;
    z-index: 2;
}

.contact-info-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-claro) 100%);
    border-radius: var(--border-radius-medio);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-suave);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.4rem;
    color: var(--branco);
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.contact-item p {
    color: var(--cinza-texto-claro);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
    border-radius: var(--border-radius-grande);
    padding: 3rem 2.5rem;
    box-shadow: var(--sombra-media);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-form-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--branco);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-medio);
    background: rgba(255,255,255,0.1);
    color: var(--branco);
    font-size: 1.05rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transicao-suave);
    font-family: 'Nunito Sans', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    /* border-color: var(--marrom-primario); */
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(153, 89, 47, 0.2);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form .btn-primary {
    background: var(--azul-primario);
    border: 2px solid white;
    margin-top: 1rem;
    width: 100%;
    color: white;
    font-size: 1.1rem;
}

.contact-form .btn-primary:hover {
    background: var(--branco);
    color: var(--azul-primario);
    border-color: var(--branco);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-primario) 100%);
    color: var(--branco);
    padding: 80px 0 0 0;
    position: relative;
    margin-top: 100px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--marrom-primario) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 var(--container-padding);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    /* gap: 1.5rem; */
}

.footer-logo-img {
    height: 56px;
    width: 56px;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

.footer-logo-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--marrom-primario);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.footer-logo-desc {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 320px;
    font-size: 1.05rem;
}

.footer-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--marrom-primario);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transicao-suave);
    font-size: 1.05rem;
}

.footer-link:hover {
    color: var(--marrom-primario);
    transform: translateX(8px);
}

.footer-contact {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    transition: var(--transicao-suave);
}

.footer-contact:hover {
    color: var(--marrom-primario);
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-medio);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: var(--transicao-suave);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-social-link:hover {
    background: var(--marrom-primario);
    color: var(--branco);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--sombra-media);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 2.5rem var(--container-padding);
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 2rem;
    font-size: 1.05rem;
}

/* ================= WHATSAPP BUTTON ================= */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-media);
    cursor: pointer;
    transition: var(--transicao-elastica);
    animation: scaleIn 0.6s ease-out 2s both;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--sombra-forte);
    background: #128C7E;
}

.whatsapp-icon {
    font-size: 2rem;
    color: var(--branco);
}

.whatsapp-tooltip {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-primario);
    color: var(--branco);
    padding: 10px 16px;
    border-radius: 0px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicao-suave);
    box-shadow: var(--sombra-suave);
    font-weight: 500;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-8px);
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 1200px) {
    :root {
        --container-padding: 30px;
        --section-spacing: 100px;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --section-spacing: 80px;
        --header-altura: 75px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-altura);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-altura));
        background: var(--azul-primario);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--sombra-media);
        z-index: 1000;

    }
    
    .nav-menu.active {
        transform: translateX(0);
          
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        color: var(--branco);
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li a::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--branco);
        border-radius: 2px;
        transition: var(--transicao-suave);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding: 60px var(--container-padding);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        height: 350px;
        margin: 0 auto;
    }
    
    .portfolio-card.active {
        display: flex;
    }
    
    .portfolio-label {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 10px;
        left: 10px;
    }
    
    .clientes-carousel {
        padding: 1.5rem 0;
    }
    
    .clientes-logos {
        gap: 1.5rem;
    }
    
    /* Primeiras logos - responsivo tablet */
    .clientes-logos:not(.clientes-carousel .clientes-logos) {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .clientes-logos:not(.clientes-carousel .clientes-logos) .cliente-logo {
        height: 120px;
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    /* Logos do carrossel - responsivo tablet */
    .cliente-logo {
        height: 85px;
        min-width: 85px;
        max-width: 85px;
        width: 85px;
    }
    
    .clientes-dots {
        gap: 10px;
        margin-top: 1.5rem;
    }
    
    .cliente-dot {
        width: 10px;
        height: 10px;
    }
    
    .depoimentos-grid {
        justify-content: center;
        gap: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        min-height: 350px;
    }
    
    .depoimento-card {
        padding: 1.2rem;
        width: auto;
        max-width: 80%;
    }
    
    .depoimento-img {
        max-height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .quem-somos-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .team-image {
        height: 400px;
    }
    
    .stats-overlay {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .quem-somos-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }
    
    .quem-somos-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin: 3rem 0;
        padding: 1.5rem;
    }
    
    .quem-somos-stats .stat-number {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ================= SECTION TITLES ================= */
/* Padronização de todos os títulos das seções */
.portfolio h2,
.diferenciais h2,
.problemas h2,
.contact h2,
#modelagem h2,
section h2 {
    text-align: center;
    font-family: 'Garet', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

/* ================= SKETCHFAB 3D MODELS ================= */
.sketchfab-models {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

.sketchfab-embed-wrapper {
    position: relative;
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    overflow: hidden;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 400px;
}

.sketchfab-embed-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius-grande);
    background: transparent;
    position: relative;
    z-index: 2;
}

.sketchfab-embed-wrapper p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #4A4A4A !important;
    font-size: 13px !important;
    font-weight: normal !important;
    text-align: center;
}

/* ================= PROJECT VIDEOS ================= */
.project-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

.video-wrapper {
    position: relative;
    background: var(--branco);
    border-radius: var(--border-radius-grande);
    overflow: hidden;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 400px;
}

.video-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-grande);
    background: #000;
}

.sketchfab-embed-wrapper p a {
    color: #1CAAD9 !important;
    font-weight: bold !important;
    text-decoration: none;
}

.sketchfab-embed-wrapper p a:hover {
    text-decoration: underline;
}

/* ================= BIM GIFS ================= */
/* ================= BIM GIFS - Removidos (agora são backgrounds dos Sketchfab) ================= */

/* ================= PORTFOLIO BACKGROUND GIFS ================= */
.portfolio-with-gif-background {
    position: relative;
    overflow: hidden;
}

.portfolio-background-gifs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    opacity: 0.15;
    z-index: 0;
}

.gif-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gif-background.gif-1 {
    background-image: url('images/portfolio/proj1gif.gif');
}

.gif-background.gif-2 {
    background-image: url('images/portfolio/proj2gif.gif');
}

.gif-background.gif-3 {
    background-image: url('images/portfolio/proj3gif.gif');
}

.gif-background.gif-4 {
    background-image: url('images/portfolio/proj4gif.gif');
}

.portfolio-content-overlay {
    position: relative;
    z-index: 1;
    /* background: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    /* Portfolio background GIFs responsivo */
    .portfolio-background-gifs {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        opacity: 0.1;
    }
    

    
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .diferencial-item {
        padding: 2rem 1.5rem;
    }
    
    .problemas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .problema-item {
        padding: 1.5rem 1rem;
    }
    
    .excelencia-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .excelencia-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        min-width: unset;
        padding: 0 5px 10px 5px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .excelencia-nav-btn {
        min-width: 200px;
        flex-shrink: 0;
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .excelencia-nav-btn:hover,
    .excelencia-nav-btn.active {
        transform: translateX(0);
        transform: translateY(-4px);
    }
    
    .excelencia-display {
        position: relative;
        min-height: 350px;
    }
    
    .excelencia-category {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .sketchfab-models {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .sketchfab-embed-wrapper {
        height: 300px;
    }
    
    .project-videos {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .video-wrapper {
        height: 300px;
    }
    
    /* Portfolio Styles for Tablet */
    .portfolio-grid {
        width: 100%;
        max-width: 600px;
        height: 350px;
    }
    
    .portfolio-card {
        width: 100%;
        max-width: 600px;
        height: 350px;
    }
    
    .portfolio-card.prev {
        transform: translateX(-150px) scale(0.75);
    }
    
    .portfolio-card.next {
        transform: translateX(150px) scale(0.75);
    }
    
    .carousel-container {
        padding: 16px 40px;
    }
    
    /* Tablet - Remover hover das fotos inativas */
    .portfolio-card.prev:hover {
        transform: translateX(-150px) scale(0.75);
    }
    
    .portfolio-card.next:hover {
        transform: translateX(150px) scale(0.75);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --section-spacing: 60px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero .container {
        padding: 60px 12px;
    }
    
    .hero-content h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .hero-logo {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        width: auto;
        max-width: 95%;
        margin-bottom: 1.5rem;
        align-self: flex-start;
    }
    
    .typing-animation {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        min-height: 2.5rem;
        width: auto;
        max-width: 100%;
        padding: 0.5rem 1rem;
        text-align: left;
    }
    
    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        min-width: unset;
    }
    
    .excelencia-nav {
        overflow-x: auto;
        padding: 0 5px 10px 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .excelencia-nav-btn {
        min-width: 160px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .excelencia-nav-btn span {
        display: none;
    }
    
    .excelencia-nav-btn .nav-btn-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    .excelencia-category {
        padding: 1.5rem 1rem;
        min-height: 300px;
    }
    
    .category-header h4 {
        font-size: 1.2rem;
    }
    
    .category-items li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    .card {
        padding: 2.5rem 2rem;
        margin: 0;
        width: 100%;
    }
    
    .cards {
        width: 100%;
    }
    
    .problemas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
    }
    
    .problema-item {
        width: 100%;
        min-width: unset;
        min-height: 280px;
        padding: 1.2rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .problema-item h4 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .problema-item p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .problema-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .diferenciais-grid {
        width: 100%;
    }
    
    .diferencial-item {
        width: 100%;
    }
    
    .depoimentos-grid {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 1rem 0.5rem;
        flex-wrap: wrap;
        min-height: 280px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .depoimento-card {
        padding: 0.8rem;
        width: auto;
        max-width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--branco);
        border-radius: var(--border-radius-grande);
        box-shadow: var(--sombra-media);
    }
    
    .depoimento-img {
        max-height: 250px;
        max-width: 90vw;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: var(--border-radius-medio);
        box-shadow: var(--sombra-leve);
    }
    
    /* Mobile - Ajustar posicionamento absoluto */
    .depoimento-card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        max-width: 90%;
        min-width: auto;
    }
    
    .depoimento-card.visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .depoimento-card.hidden {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(30px) scale(0.9);
    }

    .contact-form,
    .contact-info {
        padding: 2.5rem 1.5rem;
        width: 100%;
    }
    
    .quem-somos-intro,
    .quem-somos-missao,
    .quem-somos-valores {
        padding: 1.5rem;
    }
    
    .quem-somos-cta {
        padding: 2rem 1rem;
        margin-top: 2.5rem;
    }
    
    .team-image {
        height: 300px;
    }
    
    .image-overlay {
        padding: 1.5rem;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .portfolio-carousel {
        width: 100%;
        padding: 0;
    }
    
    #portfolioCarousel,
    #portfolioCarousel2 {
        width: 100%;
        max-width: 100%;
        height: 450px;
        padding: 0 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* Carousel Responsive Styles */
    .carousel-container {
        padding: 10px;
        overflow: visible;
        position: relative;
    }
    
    #portfolioCarousel .portfolio-card,
    #portfolioCarousel2 .portfolio-card {
        width: 100%;
        max-width: 90vw;
        height: auto;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: var(--azul-logo);
        border-radius: var(--border-radius-grande);
        box-shadow: var(--sombra-media);
        overflow: hidden;
    }
    
    #portfolioCarousel .portfolio-card.active,
    #portfolioCarousel2 .portfolio-card.active {
        transform: translate(-50%, -50%) scale(1);
        z-index: 5;
        opacity: 1;
        visibility: visible;
    }
    
    #portfolioCarousel .portfolio-card.prev,
    #portfolioCarousel2 .portfolio-card.prev {
        transform: translate(-50%, -50%) translateX(-30px) scale(0.95);
        opacity: 0.6;
        z-index: 3;
        visibility: visible;
    }
    
    #portfolioCarousel .portfolio-card.next,
    #portfolioCarousel2 .portfolio-card.next {
        transform: translate(-50%, -50%) translateX(30px) scale(0.95);
        opacity: 0.6;
        z-index: 3;
        visibility: visible;
    }
    
    /* Mobile - Layout das duas fotos em coluna */
    #portfolioCarousel .portfolio-half,
    #portfolioCarousel2 .portfolio-half {
        flex: 1;
        min-height: 200px;
        max-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        width: 100%;
    }
    
    #portfolioCarousel .portfolio-half-left,
    #portfolioCarousel .portfolio-half-right,
    #portfolioCarousel2 .portfolio-half-left,
    #portfolioCarousel2 .portfolio-half-right {
        width: 100%;
        height: 200px;
    }
    
    /* Mobile - Remover hover das fotos inativas */
    #portfolioCarousel .portfolio-card.prev:hover,
    #portfolioCarousel2 .portfolio-card.prev:hover {
        transform: translate(-50%, -50%) translateX(-30px) scale(0.95);
        opacity: 0.6;
    }
    
    #portfolioCarousel .portfolio-card.next:hover,
    #portfolioCarousel2 .portfolio-card.next:hover {
        transform: translate(-50%, -50%) translateX(30px) scale(0.95);
        opacity: 0.6;
    }
    
    /* Mobile - Estilos específicos das imagens */
    #portfolioCarousel .portfolio-img,
    #portfolioCarousel2 .portfolio-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 200px;
        border-radius: 6px;
        display: block;
    }
    
    #portfolioCarousel .portfolio-content,
    #portfolioCarousel2 .portfolio-content {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.8rem;
        font-size: 0.8rem;
        background: var(--azul-logo);
        color: var(--azul-primario);
        border-radius: 0 0 6px 6px;
        z-index: 2;
        text-align: center;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    #portfolioCarousel .portfolio-content h4,
    #portfolioCarousel2 .portfolio-content h4 {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0;
        font-weight: 500;
    }
    
    /* Mobile - Botões de navegação - Ambos os carousels */
    #portfolioCarousel + .carousel-controls,
    #portfolioCarousel2 + .carousel-controls {
        position: relative;
        z-index: 10;
        margin-top: 1rem;
    }
    
    #prevBtn, #nextBtn,
    #prevBtn2, #nextBtn2 {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 50%;
        background: rgba(3, 39, 88, 0.9);
        border: 2px solid var(--branco);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--branco);
        cursor: pointer;
    }
    
    #prevBtn, #prevBtn2 {
        left: 15px;
    }
    
    #nextBtn, #nextBtn2 {
        right: 15px;
    }
    
    #prevBtn:hover, #nextBtn:hover,
    #prevBtn2:hover, #nextBtn2:hover {
        background: var(--azul-primario);
        transform: translateY(-50%) scale(1.1);
    }
    
    /* Mobile - Indicadores - Ambos os carousels */
    #carouselIndicators,
    #carouselIndicators2 {
        margin-top: 1rem;
        gap: 6px;
        justify-content: center;
        display: flex;
    }
    
    #carouselIndicators .indicator,
    #carouselIndicators2 .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(3, 39, 88, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    #carouselIndicators .indicator.active,
    #carouselIndicators2 .indicator.active {
        background: var(--azul-primario);
        transform: scale(1.2);
    }
    .carousel-container {
        padding: 20px 5px;
        width: 100%;
    }
    
    .portfolio-grid {
        width: 100%;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .portfolio-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        height: 280px;
        flex-direction: column;
        margin: 0;
        overflow: hidden;
    }
    
    .portfolio-half {
        flex: 1;
        width: 100%;
        height: 50%;
    }
    
    .portfolio-half-left {
        border-right: none;
        border-bottom: 2px solid var(--azul-primario);
    }
    
    .portfolio-label {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }
    
    .portfolio-content {
        max-width: 90%;
        padding: 0.8rem 1rem;
        border-radius: 0 0 8px 0;
    }
    
    .portfolio-card h4 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .clientes-carousel {
        padding: 1.2rem 0;
        width: 100%;
    }
    
    .clientes-logos {
        gap: 1rem;
    }
    
    /* Primeiras logos - responsivo mobile */
    .clientes-logos:not(.clientes-carousel .clientes-logos) {
        gap: 1.2rem;
        padding: 1.2rem 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .clientes-logos:not(.clientes-carousel .clientes-logos) .cliente-logo {
        height: 100px;
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    /* Logos do carrossel - responsivo mobile */
    .cliente-logo {
        height: 75px;
        min-width: 75px;
        max-width: 75px;
        width: 75px;
    }
    
    .clientes-dots {
        gap: 8px;
        margin-top: 1.2rem;
    }
    
    .cliente-dot {
        width: 8px;
        height: 8px;
    }
    
    .sketchfab-models {
        width: 100%;
        padding: 0 5px;
    }
    
    .sketchfab-embed-wrapper {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .project-videos {
        width: 100%;
        padding: 0 5px;
    }
    
    .video-wrapper {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
    
    /* BIM GIFs removidos - agora são backgrounds dos Sketchfab */
    
    .bim-gif {
        height: 250px;
    }
    
    .footer-content {
        padding: 0 12px;
    }
}

/* ================= ESTILOS DA PÁGINA DE EQUIPE ================= */
.equipe-photo-gallery {
    max-width: 100%;
    margin: 0 auto;
}

.photo-container {
    position: relative;
    width: 100%;
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: var(--sombra-media);
}

.member-photo {
    position: relative;
    min-height: 400px;
    width: 100%;
}

.vinicius-showcase {
    position: relative !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 4rem !important;
    min-height: 600px !important;
}

/* Estilos para elementos posicionados */
.main-title,
.main-position, 
.speciality-info,
.bim-experience,
.projects-info,
.sqm-info,
.buildings-info,
.fluir-logo {
    position: absolute !important;
    z-index: 10 !important;
}

.central-photo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
}

/* Cards da equipe */
.equipe-card {
    cursor: pointer;
    transition: all 0.3s ease;
    /* border-radius: 12px; */
    padding: 2rem;
    background: white;
    box-shadow: var(--sombra-suave);
}

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

.equipe-card.active-member {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border: 2px solid var(--azul-primario);
}

.servicos-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-primario), var(--azul-primario));
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

/* Media query para smartphones pequenos - 1 coluna para GIFs */
@media (max-width: 360px) {
    .bim-gifs-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
    
    .bim-gif-wrapper {
        max-width: 100%;
        margin: 0;
    }
}
