/* ======== 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);
}

/* ======== 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;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.5;
}

.partner-logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
    filter: grayscale(100%);
}

/* ======== 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;
}

/* ======== 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 */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-giant, .bento-wide, .bento-square {
        grid-column: span 1;
    }
    .branding-grid {
        grid-template-columns: 1fr;
    }
    .branding-featured {
        grid-column: span 1;
    }
    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .portfolio-item {
        height: 300px; /* Fica ok em mobile */
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
