/* =========================
   RESET CSS - BASE MODERNA
   ========================= */

/* Remove margens e paddings padrão e ajusta box model */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajustes base do documento */
html {
    font-size: 100%;
    /* Mantém 16px padrão */
    scroll-behavior: smooth;
}

/* Corpo do site */
body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Imagens e mídias */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Formulários herdam tipografia */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove estilos padrão de listas */
ul,
ol {
    list-style: none;
}

/* Links sem decoração padrão */
a {
    text-decoration: none;
    color: inherit;
}

/* Títulos com peso controlado */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
}

/* Botões com cursor */
button {
    cursor: pointer;
}

/* Evita overflow horizontal acidental */
body {
    overflow-x: hidden;
    font-family: var(--font-base);
}

/* ==================================================
   VARIÁVEIS GLOBAIS (Design Tokens)
   ================================================== */
:root {
    --color-primary: #2563eb;
    --color-secondary: #1e40af;
    --color-dark: #0f172a;
    --color-gray: #475569;
    --color-light: #f8fafc;
    --color-white: #ffffff;

    --font-base: 'Inter', system-ui, -apple-system, sans-serif;

    --container-width: 1200px;
}

/* ==================================================
   BASE GLOBAL
   ================================================== */
body {
    font-family: var(--font-base);
    color: var(--color-dark);
    background-color: var(--color-white);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ==================================================
   HEADER
   ================================================== */
body>header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 9999;
}

body>header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;

}

/* LOGO */
.logo img {
    height: 70px;

}

/* MENU */
nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
}

nav a:hover {
    color: var(--color-primary);
}

/* ==================================================
   HERO (Img/fototrabalho.jpg)
   ================================================== */
.hero {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

/* BOTÕES HERO */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}

.btn-secondary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* IMAGEM HERO ANIMADA - FLOAT EFFECT */
.hero-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-machine-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 20px 25px rgba(0, 0, 0, 0.15));
    animation: entranceFade 1s ease-out forwards;
    transition: filter 0.3s;
}

/* Animação Contínua (Levitação) */
@keyframes floatMachine {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Animação Entrada da Página */
@keyframes entranceFade {
    0% {
        transform: scale(0.9) translateY(40px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Hover na foto */
.hero-machine-img:hover {
    filter: drop-shadow(0px 30px 40px rgba(0, 0, 0, 0.25));
    cursor: pointer;
}

/* ==================================================
   SERVIÇOS
   ================================================== */
.services {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-gray);
}

/* GRID DE SERVIÇOS */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* CARD DE SERVIÇO */
.service-card {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.service-card img,
.service-icon {
    height: 60px;
    width: 60px;
    margin: 0 auto 1rem;
    display: block;
    color: var(--color-primary);
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-gray);
}

/* ==================================================
   SOBRE (Img/Sobre.jpg)
   ================================================== */
.about {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.about-image {
    display: flex;
    flex-direction: column;
}

.about-image img {
    border-radius: 12px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.about-highlights {
    margin-top: 1.5rem;
}

.about-highlights li {
    margin-bottom: 0.5rem;
}

/* ==================================================
   MÉTRICAS
   ================================================== */
.metrics {
    padding: 3rem 0;
}


.metrics .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.metric strong {
    font-size: 2rem;
    color: var(--color-primary);
}


/* ==================================================
   CONTATO (Estilo Atualizado - Card Azul)
   ================================================== */
.contact {
    padding: 4rem 0;
    background-color: var(--color-white);
}

/* O cartão principal azul claro */
.contact-card {
    background-color: #F0F6FF;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Grid para separar Texto (Esq) e Dados (Dir) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Estilo do Texto à esquerda */
.contact-text-col h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.contact-text-col p {
    color: var(--color-gray);
    font-size: 1.05rem;
    max-width: 400px;
    line-height: 1.6;
}

/* Lista de itens de contato */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    background-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Caixinha azul do ícone */
.icon-box {
    background-color: #2563eb;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

/* Textos do contato (Label e Valor) */
.info-content {
    display: flex;
    flex-direction: column;
}

.info-content .label {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1rem;
    margin-bottom: 2px;
}

.info-content .value {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Cartão Azul de Horário */
.hours-card {
    background-color: #1d4ed8;
    color: white;
    padding: 2rem;
    border-radius: 16px;
}

.hours-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hours-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* RESPONSIVIDADE PARA O CARD DE CONTATO */
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        /* Divide em 2 colunas */
        align-items: start;
        gap: 4rem;
    }

    .contact-text-col {
        padding-top: 1rem;
    }
}

/* ==================================================
   FOOTER
   ================================================== */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 2rem 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

footer nav ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--color-white);
    font-size: 0.9rem;
}

/* ==================================================
   RESPONSIVO - TABLET
   ================================================== */
@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about .container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 3rem;
    }

    .metrics .container {
        grid-template-columns: repeat(3, 1fr);
    }

    footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ==================================================
   RESPONSIVO - DESKTOP
   ================================================== */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }
}

/* ==================================================
   BOTÃO WHATSAPP - MENU
   Ícone: assets/images/icons/whatsapp.svg
   ================================================== */

.whatsapp-link a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: #0f0101;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.whatsapp-link img {
    width: 18px;
    height: 18px;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.language-switcher img {
    width: 32px;
    height: auto;
    transition: transform 0.2s ease;
}

.language-switcher img:hover {
    transform: scale(1.1);
}

/* Esconde a barra do Google Translate */
#google_translate_element {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BOTÃO WHATSAPP */
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-whatsapp img {
    width: 18px;
    height: 18px;
}

/* IDIOMAS */
.language-switcher {
    display: flex;
    gap: 8px;
}

.language-switcher button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.language-switcher img {
    width: 28px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.language-switcher img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* MENU + BOTÕES NA MESMA LINHA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* MENU */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* AÇÕES */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BOTÃO WHATSAPP */
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-whatsapp img {
    width: 18px;
    height: 18px;
}

/* BANDEIRAS */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher img {
    width: 28px;
    border-radius: 4px;
    cursor: pointer;
}

/* =========================
   BOTÃO HAMBÚRGUER ANIMADO
   ========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Estado ativo (vira X) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* =========================
   MOBILE MENU
   ========================= */

.mobile-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        background: #e0e8faee;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 90px 0 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

    }

    .mobile-menu.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .header-actions {
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle {
        display: flex;
    }
}

/* =========================
   OVERLAY MENU MOBILE
   ========================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1090;
}

/* Overlay ativo */
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    z-index: 1100;
}

/* =========================
   BOTÃO FLUTUANTE WHATSAPP
   ========================= */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1200;
    transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.whatsapp-float img {
    width: 28px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        animation: pulse 2.5s infinite;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (min-width: 769px) {
    .whatsapp-float {
        transition: transform 0.2s ease;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
    }
}

.about-highlights {
    margin-top: 1.5rem;
}

.about-highlights li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.75rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Ícone de check */
.about-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    /* azul do site */
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17l-3.88-3.88-1.41 1.41L9 19 20.29 7.71 18.88 6.3z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17l-3.88-3.88-1.41 1.41L9 19 20.29 7.71 18.88 6.3z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* Remove a linha abaixo do menu */
header,
.navbar,
.menu-container {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Remove a linha na seção de serviços */
.servicos-header,
hr {
    display: none;
    border: none !important;
}

/* =========================
   CARROSSEL SOBRE
   ========================= */

.carousel-section {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel {
    width: 100%;
    max-width: 100%;
    height: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
}

.carousel-track {
    display: flex;
    transition: transform 5.2s ease-in-out;
    will-change: transform;
}

.carousel-track img {
    min-width: 100%;
    height: 620px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center center;
    padding: 0 19px;
    background-color: transparent;
    transform: scale(1.19);
    transform-origin: center center;
}


/* MOBILE */
@media (max-width: 768px) {
    .carousel {
        height: 320px;
        max-width: 100%;
    }

    .carousel-track img {
        height: 320px;
        transform: scale(1.19);
    }
}

/* ===== HOVER MENU DESKTOP ===== */
header nav .nav-menu li a {
    color: var(--color-dark);
    transition: color 0.25s ease;
}

header nav .nav-menu li a:hover {
    color: var(--color-primary);
}

/* ===== HOVER MENU MOBILE ===== */
.mobile-menu .nav-menu li a {
    color: var(--color-dark);
    transition: color 0.25s ease, background-color 0.25s ease;
}

.mobile-menu .nav-menu li a:hover {
    color: var(--color-primary);
}

.mobile-menu .nav-menu li a:active {
    background-color: rgba(37, 99, 235, 0.08);
}

/* =========================
   MENU MOBILE - FEEDBACK DE TOQUE
   ========================= */
@media (max-width: 768px) {
    .mobile-menu .nav-menu li a {
        width: 100%;
        padding: 12px 20px;
        border-radius: 8px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .mobile-menu .nav-menu li a:active {
        background-color: rgba(37, 99, 235, 0.12);
        color: var(--color-primary);
    }
}

/* =========================
   MENU MOBILE - ITEM CLICADO
   ========================= */
@media (max-width: 768px) {
    .mobile-menu .nav-menu li a {
        width: 100%;
        padding: 12px 20px;
        border-radius: 8px;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    .mobile-menu .nav-menu li a.menu-active {
        background-color: rgba(37, 99, 235, 0.15);
        color: var(--color-primary);
    }
}

/* =========================
   MENU MOBILE - PULSE VIA TOUCH (JS)
   ========================= */
@media (max-width: 768px) {

    .mobile-menu .nav-menu li a {
        position: relative;
        overflow: hidden;
        width: 100%;
        padding: 14px 22px;
        border-radius: 10px;
        transition: color 0.2s ease;
    }

    .mobile-menu .nav-menu li a::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle,
                rgba(37, 99, 235, 0.30) 12%,
                transparent 65%);
        opacity: 0;
        transform: scale(0.2);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    /* CLASSE CONTROLADA PELO JS */
    .mobile-menu .nav-menu li a.touch-hover::after {
        opacity: 1;
        transform: scale(1.5);
    }

    .mobile-menu .nav-menu li a.touch-hover {
        color: var(--color-primary);
    }
}

/* =========================
   AJUSTE DE ESPAÇAMENTO ABOUT - MOBILE
   ========================= */
@media (max-width: 768px) {

    /* Reduz o espaço entre carrossel e texto */
    .about .container {
        gap: 1rem;
    }

    /* Remove margem extra do carrossel no mobile */
    .carousel-section {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
}

/* ==================================================
   PROJETOS DESENVOLVIDOS
   ================================================== */

.projects {
    padding: 1rem 0;
    background-color: var(--color-white);
    font-family: var(--font-base);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

/* CARD DO PROJETO */
.project-card {
    background-color: var(--color-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 1rem 0.5rem;
    color: var(--color-dark);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin: 0 1rem 1.5rem;
    line-height: 1.5;
}

/* TABLET */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================================================
   TÍTULO - PROJETOS DESENVOLVIDOS
   ================================================== */

.projects-header {
    text-align: center;
    margin: 4rem auto 1rem;
}

.projects-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

/* Tablet */
@media (min-width: 768px) {
    .projects-header h2 {
        font-size: 2.2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .projects-header h2 {
        font-size: 2.4rem;
    }
}

/* Estilização da Seção */
.partners {
    padding: 60px 0;
    /* Espaçamento acima e abaixo */
    background-color: #f9f9f9;
    text-align: center;
}

.partners-title {
    font-family: var(--font-base);
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Grid das Logos */
.partners-grid {
    display: grid;
    /* Desktop: 4 colunas de tamanho igual (linha reta) */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    /* Espaço entre as logos */
    align-items: center;
    justify-items: center;
}

/* Estilo das Imagens */
.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    /* Impede que uma logo fique gigante em relação às outras */
    transition: filter 0.3s ease;
    opacity: 0.8;
}

/* Efeito ao passar o mouse (volta a cor original) */
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- RESPONSIVIDADE --- */

/* Tablet (menor que 768px) */
@media (max-width: 768px) {
    .partners-grid {
        /* Muda para 2 colunas (2 logos por linha) */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Celular (menor que 480px) */
@media (max-width: 480px) {
    .partner-logo {
        max-height: 60px;
        /* Diminui um pouco as logos no celular */
    }
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h2 {
    font-family: var(--font-base);
    font-size: 2rem;
    font-weight: inherit;
    margin-bottom: 0.5rem;
}

.logo {
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
}

.logo:hover::after {
    animation: shine 0.8s ease;
}

@keyframes shine {
    to {
        left: 150%;
    }
}

/* EFEITO DE BRILHO NO TÍTULO PRINCIPAL */
.shine-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(110deg,
            #0f172a 0%,
            #0f172a 40%,
            #b6b6b6 50%,
            #0f172a 60%,
            #0f172a 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shineText 3.5s linear infinite;
}

@keyframes shineText {
    to {
        background-position: -200% center;
    }
}

/* =========================
   AJUSTE DO LOGO NO MOBILE
   ========================= */
@media (max-width: 768px) {

    header .container {
        min-height: 110px;
        /* header mais compacto no mobile */
    }

    .logo img {
        height: 48px;
        /* logo proporcional no celular */
    }
}

/* =========================
   MODAL DE PROJETOS
   ========================= */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background-color: #fff;
    width: 95vw;
    max-width: 1400px;
    height: 95vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(0.88);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.project-modal-overlay.active .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: background 0.2s;
}

.project-modal-close:hover {
    background: #ff6b81;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    min-height: 0;
}

.project-modal-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

.project-modal-info {
    padding: 1.5rem 2rem 2rem;
    width: 100%;
    text-align: center;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 35vh;
}

.project-modal-info h3 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-modal-info p {
    display: none;
}

.project-card {
    cursor: pointer;
}

.zoom-hint {
    position: absolute;
    bottom: 20px;
    background-color: rgba(30, 41, 59, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1000;
}

@media (min-width: 768px) {
    .zoom-hint {
        display: none;
    }
}
