/* ======== DESIGN TOKENS ======== */
:root {
    /* Colors */
    --bg-dark: #000000;
    --bg-card: #0A0A0A;
    --bg-card-hover: #1A1A1A;
    --accent-red: #DC143C;
    --accent-red-hover: #fa1945;
    
    /* Text */
    --text-pure: #FFFFFF;
    --text-muted: #CCCCCC;
    --text-glass: rgba(255, 255, 255, 0.6);
    
    /* Layout */
    --font-primary: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-glow: 0 0 20px rgba(220, 20, 60, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-pure);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ======== UTILS ======== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.highlight {
    color: var(--accent-red);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--accent-red);
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-pure);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-glass);
    color: var(--text-pure);
}

.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ======== NAVBAR ======== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-red);
}

/* ======== HAMBURGER / MENU MOBILE ======== */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-pure);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger svg {
    width: 28px;
    height: 28px;
}

/* Mobile Drawer Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #050505;
    border-left: 1px solid #1a1a1a;
    z-index: 1002;
    padding: 80px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer a,
.mobile-drawer button.mobile-nav-btn {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 0;
    border-bottom: 1px solid #111;
    background: none;
    border-top: none;
    border-right: none;
    border-left: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: color 0.3s;
}

.mobile-drawer a:hover,
.mobile-drawer button.mobile-nav-btn:hover {
    color: var(--accent-red);
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-glass);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

/* ======== HERO ======== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
    padding-top: 80px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== SOCIAL PROOF ======== */
.social-proof {
    padding: 30px 0;
    background: #050505;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.social-proof-title {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-glass);
    margin-bottom: 20px;
}

/* Wrapper que controla overflow no desktop (clip do marquee) */
.social-proof-inner {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
}

/* Desktop: mostra o marquee, esconde o grid mobile */
.marquee-desktop { display: block; }
.logos-mobile-grid { display: none; }

/* ======== MARQUEE LOOP INFINITO (Clientes) ======== */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #050505, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #050505, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

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

.marquee-track img {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.65;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======== SERVICES (BENTO GRID) ======== */
.services {
    padding: 100px 0;
    background: #000;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

.icon-red {
    color: var(--accent-red);
    width: 32px;
    height: 32px;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(220, 20, 60, 0.4);
    transform: translateY(-5px);
}

.portfolio-link-card:hover {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.1);
}

.bento-giant {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #0f0f0f 0%, #000000 100%);
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-square {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 993px) {
    .bento-giant h3 { font-size: 2rem; margin-top: auto; }
    .bento-giant p { font-size: 1.05rem; }
}

/* ======== PORTFOLIO MARQUEE (SITES LIVRES) ======== */
.portfolio {
    padding: 100px 0;
    background: #050505;
    overflow-x: hidden;
}

.portfolio-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    display: flex;
}

.portfolio-marquee {
    display: flex;
    gap: 40px;
    align-items: center; /* Alinha os sites pelo meio se alturas forem muito diferentes */
    width: max-content;
    padding-left: 40px;
    animation: marquee 40s linear infinite;
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    height: 85vh; /* ESCALA GIGANTE: 85% do tamaho e altura do monitor */
    max-height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.portfolio-item img {
    height: 100%; /* Respeita a altura container */
    width: auto; /* Mantém a LARGURA ORIGINAL, SEM CORTES, formato real do site */
    object-fit: contain; /* Garante que caiba inteiro na proporção */
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

/* ======== BRANDING GRID (LOGOS ESTÁTICOS) ======== */
.branding-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.branding-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    padding: 20px; /* MUDANÇA: Reduzido de 40 para 20px para os logos ficarem muito maiores internamente */
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1; /* Quadrados perfeitos */
    transition: var(--transition);
}

.branding-featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    aspect-ratio: auto;
}

.branding-featured img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: calc(var(--radius-md) - 2px);
}

.branding-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.branding-item:hover {
    background: #111;
    border-color: rgba(220, 20, 60, 0.3);
    transform: translateY(-5px);
}

/* ======== ENTREGA COMPLETA ======== */
.complete-delivery {
    padding: 120px 0;
    background: #000000;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.delivery-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    padding: 50px 40px;
    text-align: left;
    transition: var(--transition);
}

.delivery-card:hover {
    background: #111;
    border-color: rgba(220, 20, 60, 0.4);
    transform: translateY(-5px);
}

.delivery-card i {
    margin-bottom: 25px;
    width: 40px;
    height: 40px;
}

.delivery-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.delivery-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
}

/* ======== FOOTER ======== */
.footer {
    background: #000000;
    border-top: 1px solid #1a1a1a;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links ul li a:hover {
    color: var(--accent-red);
}

.footer-links i {
    width: 18px;
    height: 18px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    color: #ccc;
}

.social-icons a:hover {
    background: var(--accent-red);
    color: #fff;
}

.footer-bottom {
    background: #050505;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

/* ======== FILTER MENU ======== */
.filter-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-glass);
    color: var(--text-pure);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.2);
}/* ======== GALERIA BRANDING E LOGOS ======== */
.branding-item-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: all 0.4s ease;
}
.branding-item-card:hover {
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transform: translateY(-5px);
}
.branding-item-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s;
}
.branding-item-card:hover img {
    filter: brightness(1.1);
}

.branding-product-card {
    background: transparent;
    border-radius: var(--radius-md);
    height: auto;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}
.branding-product-card img {
    width: 100%;
    height: auto; /* Mantém as proporções originais maciças das imagens */
    display: block;
    transition: transform 0.6s ease;
}
.branding-product-card:hover img {
    transform: scale(1.03); /* Zoom leve */
}
/* ======== 3D FOCUS CAROUSEL ======== */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 950px; /* Wrapper altíssimo para não cortar animação 3D */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px 0 60px;
}

/* SETAS DE CONTROLE */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: var(--accent-red);
    color: var(--text-pure);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
    transform: translateY(-50%) translateX(-50%) scale(1.1);
}

.carousel-control.prev-btn { 
    left: calc(50% - 420px); 
    transform: translateY(-50%) translateX(-50%); 
}
.carousel-control.next-btn { 
    right: auto;
    left: calc(50% + 420px); 
    transform: translateY(-50%) translateX(-50%);
}

.carousel-control svg {
    width: 28px;
    height: 28px;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    position: absolute;
    width: 700px;   /* Largura boa pra não sobrepor tudo */
    height: 800px;  /* Altura GIGANTE para rolar muita página */
    border-radius: var(--radius-md);
    background: #050505;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.6s ease, 
                filter 0.6s ease,
                border-color 0.4s,
                box-shadow 0.4s;
    opacity: 0;
    pointer-events: none;
    display: flex; /* Para imagem cobrir div */
}

/* Base image styling */
.carousel-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.8;
    transition: all 0.5s ease;
    z-index: 0;
    /* Loop effect to scroll tall websites */
    animation: scrollWebsite 15s ease-in-out infinite alternate;
}

@keyframes scrollWebsite {
    0%, 15% { object-position: top center; }
    85%, 100% { object-position: bottom center; }
}

/* O scroll deve continuar em hover sem embaçar toda a extensão superior da imagem */

.mockup-placeholder-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-glass);
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

/* POSITIONS */

/* HIDDEN Left/Right */
.carousel-item.pos-hidden-left {
    transform: translateX(-150%) scale(0.6) translateZ(-500px);
    opacity: 0;
}
.carousel-item.pos-hidden-right {
    transform: translateX(150%) scale(0.6) translateZ(-500px);
    opacity: 0;
}

/* VISIBLE SIDE LEFT/RIGHT */
.carousel-item.pos-left {
    transform: translateX(-55%) scale(0.8) translateZ(-250px);
    opacity: 0.3;
    filter: blur(4px);
    z-index: 10;
}
.carousel-item.pos-right {
    transform: translateX(55%) scale(0.8) translateZ(-250px);
    opacity: 0.3;
    filter: blur(4px);
    z-index: 10;
}

/* ACTIVE CENTER */
.carousel-item.pos-active {
    transform: translateX(0) scale(1) translateZ(0);
    opacity: 1;
    filter: blur(0);
    z-index: 20;
    pointer-events: auto; /* Allow interaction */
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

/* OVERLAY HOVER LOGIC - Fade Gradiente Focado Apenas no Texto */
.carousel-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: auto;
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.85) 45%, rgba(5,5,5,0) 100%);
    padding: 200px 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none; /* So button is clickable only on hover */
}

/* Focus Zoom & Pause Effect */
.carousel-item.pos-active:hover {
    transform: translateX(0) scale(1.05) translateZ(50px);
    border-color: rgba(220, 20, 60, 0.6);
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.25);
}

.carousel-item.pos-active:hover .carousel-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



/* Overlay Typo */
.overlay-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-pure);
    text-transform: uppercase;
}

.overlay-niche {
    color: var(--accent-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.overlay-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.m-label {
    color: var(--text-glass);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-value {
    color: var(--text-pure);
    font-size: 1.4rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
}

.m-value.tech {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.4);
}

.overlay-btn {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 15px 0;
}

/* ======== PROJECTS GALLERY ======== */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ======== DASHBOARD CARDS (RED HOVER TECH) ======== */
.dashboard-card {
    position: relative;
    background: #050505;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    padding: 40px;
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    cursor: default;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(220, 20, 60, 0) 0%, rgba(220, 20, 60, 0.08) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.dashboard-card:hover {
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.15);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-content {
    position: relative;
    z-index: 2;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.dashboard-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* The Data Reveal area */
.data-reveal {
    position: relative;
    z-index: 2;
    margin-top: auto;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dashboard-card:hover .data-reveal {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(220, 20, 60, 0.3);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-label {
    font-size: 0.8rem;
    color: var(--text-glass);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.data-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-pure);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0);
    transition: color 0.3s, text-shadow 0.3s;
}

.dashboard-card:hover .data-value {
    color: var(--accent-red);
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
}

/* Red minimalist graph bar */
.data-graph-bar {
    width: 100%;
    height: 4px;
    background: #111;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-top: 5px;
}

.data-graph-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: var(--accent-red);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-red);
    transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.2s;
}

.dashboard-card:hover .data-graph-fill {
    width: var(--target-width, 80%);
}

/* ======== AUDIOVISUAL BLOCKS ======== */
.audiovisual-block {
    grid-column: 1 / -1 !important; /* ocupa toda a largura do grid */
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.youtube-card {
    width: 100%;
    max-width: 880px;
    background: transparent;
    border: none;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.lite-yt {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    border: 1px solid #1a1a1a;
    background: #000;
    cursor: pointer;
    width: 100%;
}

.lite-yt-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 52px;
    background: rgba(220, 20, 60, 0.92);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
}

.lite-yt-btn:hover {
    transform: translate(-50%, -50%) scale(1.12);
    background: rgba(220, 20, 60, 1);
}

.youtube-info {
    text-align: center;
    margin-top: 30px;
    padding: 0 10px;
}

.youtube-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.youtube-info p {
    color: var(--text-glass);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ======== MOCKUPS & STRUTURAS DE IMAGEM ======== */
.mockup-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    transition: var(--transition);
}

.mockup-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.mockup-image-container {
    height: 55%;
    background: #020202;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
}

/* Image Placeholders Classes */
.img-sorelle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.5s;
}

.mockup-card:hover .img-sorelle {
    opacity: 1;
    transform: scale(1.05);
}

.mockup-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.mockup-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.video-card {
    grid-column: span 3;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a1a1a;
}

.video-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .video-card-bg {
    border: 1px solid var(--accent-red);
}

.video-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.video-card-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-pure);
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

/* ======== CTA FINAL ======== */
.projects-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, #000000 0%, #050505 100%);
    border-top: 1px solid #111;
}


/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-giant, .bento-wide, .bento-square {
        grid-column: span 2;
    }
    .bento-giant {
        grid-row: span 1;
    }
    .branding-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .branding-featured {
        grid-column: span 2;
        grid-row: span 1; /* Adapt for row on iPad */
    }
    .portfolio-item {
        height: 60vh; /* Mantém grandão no tablet vertical */
    }
    .projects-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .nav-links { display: none; }
    .hamburger { display: flex; align-items: center; justify-content: center; }

    /* Hero */
    .hero-title { font-size: 2.2rem; letter-spacing: -0.5px; line-height: 1.15; }
    .hero-subtitle { font-size: 1rem; }
    .hero-content { padding-top: 60px; padding-left: 15px; padding-right: 15px; }
    .btn-large { padding: 14px 28px; font-size: 0.95rem; }

    /* Sections Padding */
    .services, .portfolio, .complete-delivery { padding: 60px 0; }
    .section-title { font-size: 1.9rem; margin-bottom: 2rem; }

    /* Bento */
    .bento-grid { grid-template-columns: 1fr; gap: 15px; }
    .bento-giant, .bento-wide, .bento-square { grid-column: span 1; grid-row: span 1; }
    .bento-card { padding: 28px; }
    .bento-card h3 { font-size: 1.2rem; }

    /* Branding */
    .branding-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .branding-featured { grid-column: span 2 !important; }
    .branding-item { height: 160px; }

    /* Portfolio / Carrossel */
    .portfolio-item { height: 240px; }

    /* Delivery */
    .delivery-grid { grid-template-columns: 1fr; gap: 20px; }
    .delivery-card { padding: 28px; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer { padding: 60px 0 30px; }

    /* Projects Gallery */
    .projects-gallery { grid-template-columns: 1fr !important; }
    .project-item[style*="grid-column"] { grid-column: span 1 !important; }

    /* YouTube Cards - Centralizar e responsive */
    .youtube-card { max-width: 100% !important; padding: 0 10px; }
    .responsive-iframe { border-radius: 12px !important; }
    .youtube-card > div:last-child { padding: 0 5px; }
    .youtube-card h3 { font-size: 1.3rem !important; }
    .youtube-card p { font-size: 0.95rem !important; }

    /* Carousel 3D */
    .carousel-3d-wrapper { height: 320px; }
    .carousel-control { width: 40px; height: 40px; font-size: 1rem; }
    .overlay-title { font-size: 1.5rem; }
    .overlay-btn { padding: 12px; font-size: 0.9rem; }

    /* Filter */
    .filter-menu { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .filter-btn { font-size: 0.78rem; padding: 8px 14px; }

    /* Dashboard Cards */
    .dashboard-card { height: auto; min-height: 300px; padding: 28px; }
    .dashboard-title { font-size: 1.3rem; }

    /* Social Proof: no mobile esconde o marquee e mostra o grid fixo 2 colunas */
    .marquee-desktop { display: none !important; }
    .logos-mobile-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 20px;
    }
    .logos-mobile-grid img {
        width: 100%;
        height: 44px;
        object-fit: contain;
        filter: grayscale(100%) brightness(0.7);
        opacity: 0.7;
        border: 1px solid #1a1a1a;
        border-radius: 8px;
        padding: 8px;
        background: #080808;
        transition: all 0.3s;
    }
    .logos-mobile-grid img:hover {
        filter: grayscale(0%);
        opacity: 1;
    }
    .social-proof-inner {
        overflow: visible !important;
        padding: 20px 0 !important;
    }

}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-title { font-size: 1.6rem; }
    .container { padding: 0 15px; }
    .bento-card { padding: 22px; }
    .whatsapp-button .message { display: none; }
    .whatsapp-button { right: 14px; bottom: 14px; }
    .popup-content { padding: 30px 20px; }
}

/* ======== WHATSAPP E POPUP ======== */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
}

.whatsapp-button .message {
    background: #050505;
    color: var(--text-pure);
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.whatsapp-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366; /* Verde WPP clássico */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.whatsapp-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85); /* Fundo dark forte */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.popup.active {
    display: flex;
}

.popup-content {
    background: #050505;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-md);
    border: 1px solid #1a1a1a;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.popup-content input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    background: #0a0a0a;
    color: var(--text-pure);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.popup-content input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-glass);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent-red);
}

@media(max-width:480px){
    .whatsapp-button { right: 14px; bottom: 14px; }
    .whatsapp-button .message { display: none; }
    .popup-content { padding: 30px 20px; }
}

/* ======== PÁGINAS LEGAIS (POLÍTICAS & TERMOS) ======== */
.legal-content-section {
    padding: 140px 0 100px;
    background-color: var(--bg-dark);
    min-height: 80vh;
}

.legal-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-md);
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.legal-container h1 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 20px;
}

.legal-container h1 span {
    color: var(--accent-red);
}

.legal-container h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-pure);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.legal-container h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-pure);
}

.legal-container p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.75;
    margin-bottom: 20px;
    font-weight: 300;
}

.legal-container ul, .legal-container ol {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: decimal;
}

.legal-container ul {
    list-style: disc;
}

.legal-container li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 300;
}

.legal-container a {
    color: var(--accent-red);
    text-decoration: underline;
    transition: var(--transition);
}

.legal-container a:hover {
    color: var(--accent-red-hover);
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--text-glass);
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-style: italic;
}

@media (max-width: 768px) {
    .legal-content-section {
        padding: 120px 0 60px;
    }
    .legal-container {
        padding: 40px 25px;
        border-radius: var(--radius-sm);
    }
    .legal-container h1 {
        font-size: 1.8rem;
    }
    .legal-container h2 {
        font-size: 1.25rem;
    }
}

