/* Estilos base para o site */
html {
    scroll-behavior: smooth; /* Rolagem suave ao clicar nos links do menu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* Estilos do Cabeçalho / Navegação */
.navbar {
    position: fixed; /* Alterado de absolute para fixed para acompanhar a tela */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; /* Reduzido o padding para deixar o cabeçalho mais fino */
    background-color: #C9002A; /* Fundo sempre vermelho */
    z-index: 1000; /* Aumentado para garantir que fique por cima de tudo */
    transition: transform 0.3s ease-in-out; /* Animação suave para esconder e mostrar */
}

.navbar-hidden {
    transform: translateY(-100%); /* Joga o menu inteiro para cima da tela e esconde */
}

.nav-icon {
    height: 45px; /* Ícone 25% menor */
    width: auto;
    flex: 1; /* Faz a área esquerda ocupar 1/3 do espaço */
    display: flex;
    justify-content: flex-start;
}

.nav-link-btn {
    text-decoration: none;
    color: #C9002A;
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.nav-link-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.05); /* Leve crescimento na hora de passar o mouse */
}

/* Criamos um container invisível (igual ao .nav-icon e .nav-logo de antes) para garantir a centralização contínua de .nav-links */
.nav-link-btn-container {
    flex: 1; /* Faz a área direita ocupar 1/3 do espaço */
    display: flex;
    justify-content: flex-end; /* Encosta o botão à direita */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px; /* Reduzido o espaço para uni-los mais */
    flex: 1; /* Faz a área central ocupar 1/3 do espaço */
    justify-content: center; /* Garante que os links fiquem no centro absoluto */
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600; /* Deixei um pouco mais grosso para parecer com a imagem */
    font-size: 0.95rem; /* Fonte menor */
    transition: opacity 0.3s ease;
    position: relative; /* Base para o traço ficar no lugar correto */
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    color: #ffffff; /* Volta para a cor branca */
    opacity: 1;
}

/* Traço chamativo "um pouco de lado" / torto simulando textura de jogo */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Dá um espacinho da letra */
    left: -10%;
    width: 120%;
    height: 4px; /* Espessura do traçado */
    background-color: #ffffff;
    transform: rotate(-4deg) skewX(-20deg); /* Rotação leve e pontas cortadas na diagonal, dando o efeito "um pouco de lado" */
    border-radius: 1px;
}

/* Estilos da Landing Page */
.landing {
    position: relative;
    height: calc(100vh + 150px); /* 100vh original + 150px do borrado pra esconder no inicio */
    width: 100%;
    background-image: url('images/panda_landing_page_fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-75px); /* Deixa perfeitamente ao centro da visão de 100vh atual */
}

.main-title {
    font-family: 'Bungee', cursive, sans-serif;
    color: #ffffff;
    font-size: 3.5rem;
    text-align: center;
    line-height: 1.1;
}

.subtitle {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
}

.hero-line {
    width: 100%;
    border: none;
    height: 3px;
    background-color: #ffffff;
    margin-top: 5px; /* Adiciona um respiro extra depois do subtítulo, além do gap */
    border-radius: 2px;
}

.scroll-arrows {
    position: absolute;
    top: calc(100vh - 100px); /* Garante que fique no limite visual do usuario da primeira tela antes do borrao */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    animation: jumpArrows 1.5s infinite ease-in-out; /* Animação das setas pulando de forma devagar */
}

.scroll-arrows span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    transform: rotate(45deg);
    margin: -4px; /* Junta elas pra formarem uma estampa tripla */
}

@keyframes jumpArrows {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 15px); } /* Elas descendem 15px e voltam */
}

.landing-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Altura do desfoque */
    background: linear-gradient(to bottom, rgba(18, 19, 22, 0) 0%, rgba(18, 19, 22, 1) 100%); /* Misturando com o tom escuro #121316 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    pointer-events: none; /* Para não bloquear cliques */
    z-index: 5;
}

/* Estilos do fundo unificado (Cobre ambas as seções) */
.main-bg-container {
    background-image: url('images/panda_fundo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Opcional: faz a imagem de fundo ficar fixa ao rolar para melhor continuidade */
    width: 100%;
    margin-top: -2px; /* Remove a linha preta ou lacuna que pode aparecer na transição das duas imagens */
    position: relative;
    z-index: 2;
}

.next-section {
    min-height: 100vh; /* Altura para você poder rolar a página */
    width: 100%;
    padding: clamp(84px, 8vh, 120px) 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 1292px;
    overflow: visible;
}

/* Estilos do Card de Produto */
.product-card {
    background: rgba(17, 25, 37, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: clamp(14px, 1.3vw, 20px);
    display: flex;
    gap: 0;
    max-width: 1292px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.card-left {
    flex: 1.8; /* Ocupa um pouco mais de espaço como na imagem */
    display: flex;
    min-width: 0;
}

#projectInnerContainer {
    gap: clamp(10px, 1.1vw, 16px);
}

.main-image-placeholder {
    width: 100%;
    min-height: 420px;
    background-color: #000000;
    border-radius: 8px;
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
    background: rgba(11, 17, 27, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 10px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
}

.thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 6px;
}

.thumb-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s, border 0.2s, filter 0.2s;
}
.thumb-img:hover {
    transform: scale(1.02);
    border: 1px solid rgba(255, 255, 255, 0.42);
    filter: brightness(1.06);
}

/* SETAS E ANIMAÇÃO DO CARROSSEL */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.15rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 30;
    transition: background 0.3s, transform 0.2s ease;
}

.slider-btn:hover {
    background: rgba(143, 0, 31, 0.85);
    transform: translateY(-50%) scale(1.06);
}

.prev-btn {
    left: -64px;
}

.next-btn {
    right: -64px;
}

@media (min-width: 1400px) {
    .prev-btn { left: -68px; }
    .next-btn { right: -68px; }
}

/* Animação de ir pro lado */
.slide-out-left {
    animation: slideOutLeft 0.4s forwards;
}
.slide-in-right {
    animation: slideInRight 0.4s forwards;
}
.slide-out-right {
    animation: slideOutRight 0.4s forwards;
}
.slide-in-left {
    animation: slideInLeft 0.4s forwards;
}

@keyframes slideOutLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-50px); opacity: 0; }
}
@keyframes slideInRight {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(50px); opacity: 0; }
}
@keyframes slideInLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
    padding: 6px 6px 4px;
}

.addon-title {
    font-family: 'Bungee', cursive, sans-serif;
    color: #ffffff;
    font-size: clamp(1.35rem, 1.75vw, 1.95rem);
    margin: 0;
    letter-spacing: 0.8px;
    line-height: 1.04;
}

.addon-stats {
    font-family: 'Roboto', sans-serif;
    color: #d6dce6;
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2px;
}

.btn-green, .btn-yellow {
    font-family: 'Bungee', cursive, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    border: none;
    border-radius: 10px;
    height: 64px;
    min-height: 64px;
    padding: 3px 20px 0;
    font-size: 1.05rem;
    line-height: 3.25;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: 0.9px;
}

.btn-green:hover, .btn-yellow:hover {
    opacity: 0.85;
}

.btn-green {
    background-color: #2bce62; /* Verde Marketplace */
    color: #ffffff;
}

.btn-yellow {
    background-color: #ffb800; /* Amarelo Ouro */
    color: #000000;
}

@media (min-width: 1600px) {
    .product-card {
        max-width: 1473px;
    }

    .features-container {
        max-width: 1473px;
    }

    .contact-card {
        max-width: 1473px;
    }

    #mainVideoPlayer,
    #projectVideoContainer img {
        min-height: 460px !important;
    }

    .thumbnail-grid {
        gap: 6px;
    }
}

@media (max-width: 1200px) {
    .product-card {
        max-width: 950px;
    }

    .projects-carousel-wrap {
        max-width: 950px;
    }

    .features-container {
        max-width: 950px;
    }

    .contact-card {
        max-width: 950px;
    }

    .prev-btn { left: -20px; }
    .next-btn { right: -20px; }
}

@media (max-width: 980px) {
    .projects-carousel-wrap {
        max-width: 100%;
    }

    #projectInnerContainer {
        flex-direction: column;
        gap: 14px;
    }

    .card-right {
        gap: 12px;
    }

    .slider-btn {
        width: 52px;
        height: 52px;
        font-size: 1.9rem;
        top: 34px;
        transform: translateY(0);
    }

    .slider-btn:hover {
        transform: translateY(0) scale(1.05);
    }

    .prev-btn { left: -12px; }
    .next-btn { right: -12px; }
}

/* ===============================
   NOVA SEÇÃO: FEATURES
   =============================== */
.features-section {
    width: 100%;
    padding: 20px 24px clamp(84px, 8vh, 120px) 24px; /* Espaço inferior igual ao da seção projects */
    display: flex;
    justify-content: center;
    scroll-margin-top: 80px; /* Evita que o cabeçalho fixo esconda o topo da seção ao clicar no menu */
}

.features-container {
    max-width: 1292px;
    width: 100%;
    display: flex;
    gap: 24px;
}

/* Bloção Principal da Esquerda (Branco) */
.feature-highlight {
    flex: 1.06;
    background-color: #f789a1; /* A cor off-white de antigamente */
    border-radius: 12px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Joga os textos de "Learn More" pro final da divça conforme a imagem */
    min-height: 560px;
}

.feature-highlight h2 {
    font-family: 'Roboto', sans-serif;
    color: #1c1c1e;
    font-size: 2.35rem;
    line-height: 1.3;
    font-weight: 500;
    margin-top: auto; 
    margin-bottom: 30px;
}

.learn-more {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1c1c1e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px; 
}

.learn-more .arrow {
    font-size: 2rem;
    margin-left: auto; /* Empurra a flexinha pro canto direito da caixa sem flutuar demais */
}

/* Grelha do lado Direito (Boxes Escuros) */
.features-grid {
    flex: 1.9; /* Esquerda com os quadrados precisam mais espaço para alocar a grade 2x2. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.feature-box {
    background-color: rgba(35, 36, 39, 0.9); /* Tom de cinza chumbo com leve transparencia pro fundo continuar agindo */
    border-radius: 12px;
    padding: 34px 34px 68px 34px; /* Aumentei o padding inferior para caber a seta */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 268px;
    position: relative; /* Base para a seta ficar fixa no canto inferior */
}

.box-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px; /* Mudado de left para right */
    color: #ffffff; /* Seta branca */
    font-size: 1.6rem; /* Deixei a seta maior */
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.box-arrow:hover {
    transform: translateX(5px); /* Setinha dança de lado igual na caixa principal */
    color: #f789a1; /* Fica rosada no hover para dar um efeito inverso bacana */
}

.feature-box h3 {
    font-family: 'Roboto', sans-serif;
    color: #f789a1;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-box p {
    font-family: 'Roboto', sans-serif;
    color: #b5b5b7; /* Letra acinzentada em cima do Box escuro, parecida com o design */
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ===============================
   NOVA SEÇÃO: CONTACT (LET'S TALK)
   =============================== */
.contact-section {
    width: 100%;
    padding: clamp(84px, 8vh, 120px) 24px 100px 24px;
    display: flex;
    justify-content: center;
    scroll-margin-top: 80px; /* Evita que o cabeçalho fique por cima da caixa de contato */
}

.contact-card {
    background-color: #C9002A; /* Cor vermelha da Panda */
    width: 100%;
    max-width: 1292px;
    display: flex;
    padding: 70px;
    /* Dando um leve efeito "rasgado" simétrico pelas bordas */
    clip-path: polygon(1% 0%, 99% 1%, 100% 98%, 0% 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.contact-left {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.contact-left h2 {
    font-family: 'Bungee', cursive, sans-serif;
    color: #ffffff;
    font-size: 3.8rem;
    margin-bottom: 46px;
    letter-spacing: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 88%;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    padding: 10px 0;
    outline: none;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ffffff;
    opacity: 0.8;
}

.btn-send {
    align-self: flex-start;
    background-color: #ffffff;
    color: #C9002A;
    font-family: 'Bungee', cursive, sans-serif;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    /* Efeito orgânico de borda meio rasgada no botão tbm */
    clip-path: polygon(3% 0%, 97% 2%, 99% 98%, 0% 100%);
}

.btn-send:hover {
    transform: scale(1.05);
}

.contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
}

.contact-info-block h3 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-block ul {
    list-style: none;
    padding: 0;
}

.contact-info-block ul li {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Tópicos selecionáveis (Work with us) */
.topic-desc {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 10px;
    margin-top: -5px;
    font-style: italic;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-option {
    cursor: pointer;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    width: fit-content;
    transition: opacity 0.3s, border-bottom 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
}

.topic-option:hover {
    opacity: 1;
}

.topic-option.active {
    opacity: 1;
    border-bottom: 1px solid #ffffff;
    font-weight: 500;
}

/* Setinha indicadora quando tá ativo */
.topic-option.active::after {
    content: "\2794"; /* Seta padrão unicode */
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Estilos de Copy & Paste Links (Contatos) */
.copy-link {
    color: #ffffff;
    text-decoration: underline transparent;
    transition: text-decoration-color 0.2s;
    cursor: pointer;
}

.copy-link:hover {
    text-decoration-color: #ffffff;
}

/* ===============================
   RODAPÉ (FOOTER)
   =============================== */
.site-footer {
    width: 100%;
    background-color: #C9002A; /* Fundo vermelho */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px; /* Exatamente a mesma largura de padding lateral (40px) da navbar do topo */
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* Pra respeitar o grid de 3 pontas */
}

.footer-title {
    font-family: 'Bungee', cursive, sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.social-icons a,
.social-icons span {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.social-icons img {
    height: 24px; /* Ajuste a altura ideal para as suas imagens PNG */
    width: auto;
    filter: brightness(0) invert(1); /* Deixa os PNGs (se forem pretos originais) todos brancos */
    transition: filter 0.2s;
}

.social-icons a:hover {
    transform: translateY(-3px); /* Levanta elevação */
}

/* Quando hover na imagem, remove o filtro branco e mostra a cor original OU pinta de vermelho */
.social-icons a:hover img {
    filter: sepia(13%) saturate(7235%) hue-rotate(339deg) brightness(85%) contrast(110%); /* Hack do CSS para tentar puxar a cor pro vermelho #C9002A do hover */
}

.social-icons .non-clickable {
    opacity: 0.4; /* Fica fraquinho pra mostrar que não clica */
    cursor: default;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-center p {
    font-family: 'Roboto', sans-serif;
    color: #b5b5b7;
    font-size: 0.95rem;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.support-ticket {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: underline transparent;
    transition: text-decoration-color 0.3s, color 0.3s;
}

.support-ticket:hover {
    color: #C9002A;
    text-decoration-color: #C9002A;
}

/* ===============================
   CUSTOM POP-UP (MENSAGEM ENVIADA)
   =============================== */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-popup-box {
    background-color: rgba(35, 36, 39, 0.95);
    border-top: 4px solid #C9002A;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-popup-overlay.show .custom-popup-box {
    transform: translateY(0);
}

.custom-popup-icon {
    color: #2ecc71;
    font-size: 3rem;
    margin-bottom: 20px;
}

.custom-popup-box h2 {
    font-family: 'Bungee', cursive;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.custom-popup-box p {
    font-family: 'Roboto', sans-serif;
    color: #b5b5b7;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-popup-btn {
    background-color: #C9002A;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    font-family: 'Bungee', cursive;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.custom-popup-btn:hover {
    background-color: #a30022;
}