/* ===== VARIABLES ===== */
:root {
    --primary-black: #0a0a0a;
    --secondary-black: #111111;
    --gold: #D4AF37;
    --light-gold: #F5E6A8;
    --dark-gold: #B8860B;
    --accent-gold: #9A7B0A;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #888888;
    --gray-dark: #2a2a2a;
    
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F5E6A8 50%, #B8860B 100%);
    --gradient-premium: linear-gradient(135deg, #D4AF37 0%, #E6C767 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10,10,10,0.4) 0%, rgba(26,26,26,0.3) 50%, rgba(42,42,42,0.2) 100%);
    
    /* Fontes atualizadas conforme instruções para um estilo mais clean, elegante e moderno */
    /* Poppins substitui Montserrat como fonte principal para melhor legibilidade e estilo cinematográfico */
    --font-primary: 'Playfair Display', serif; /* Fonte principal para títulos e textos destacados */
    --font-secondary: 'Playfair Display', serif; /* MELHORIA APLICADA: 'Playfair Display' agora é a fonte secundária para consistência */
    
    --shadow-premium: 0 25px 50px rgba(255, 215, 0, 0.15);
    --shadow-hover: 0 35px 70px rgba(255, 215, 0, 0.25);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.4);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%; /* MELHORIA APLICADA: Garantir que o HTML ocupa 100% da largura */
    overflow-x: hidden; /* MELHORIA APLICADA: Esconder overflow horizontal no HTML */
}

body {
    font-family: var(--font-primary); /* MELHORIA APLICADA: 'Playfair Display' como fonte principal do corpo */
    background: var(--primary-black);
    color: var(--white);
    overflow-x: hidden; /* MELHORIA APLICADA: Esconder overflow horizontal no body */
    line-height: 1.6;
    width: 100%; /* MELHORIA APLICADA: Garantir que o body ocupa 100% da largura */
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-logo span {
    color: var(--white);
}

.loading-tagline {
    color: var(--gray-medium);
    font-size: 1rem; /* Tamanho da fonte ligeiramente menor */
    line-height: 1.6; /* Melhorar a legibilidade */
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--secondary-black);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-gold);
    width: 0;
    border-radius: 2px;
    animation: loadingProgress 3s ease-in-out forwards;
}

.loading-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
    opacity: 0;
    animation: pulse 2s ease-in-out infinite, fadeInUp 1s ease 1s forwards;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 20px rgba(218, 165, 32, 0.5); }
    100% { text-shadow: 0 0 40px rgba(218, 165, 32, 0.8), 0 0 60px rgba(218, 165, 32, 0.4); }
}

@keyframes loadingProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== NAVIGATION ===== */
.premium-nav {
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: none;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.premium-nav.scrolled {
    background: rgba(0, 0, 0, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand {
    text-decoration: none;
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(218, 165, 32, 0.2);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 400;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28218, 165, 32, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
    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: 1;
    overflow: hidden;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== OVERLAY DO VÍDEO HERO ===== */
/* MELHORIA APLICADA: Overlay muito mais leve para manter a qualidade original do vídeo */
/* O vídeo mantém o brilho e contraste originais sem ficar escuro, fosco ou desfocado */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente muito mais suave e transparente - apenas para garantir legibilidade do texto */
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 30%, 
        rgba(212, 175, 55, 0.02) 50%, 
        rgba(0, 0, 0, 0.08) 100%);
    z-index: 2;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 35%;
    z-index: 3;
    pointer-events: none;
}

/* ===== CONTEÚDO DA SECÇÃO HERO ===== */
/* MELHORIA APLICADA: Ajuste do z-index e alinhamento para garantir que o texto e o botão estejam sempre visíveis e à esquerda */
/* O conteúdo agora está mais proeminente sobre o vídeo de fundo e corretamente posicionado */
.hero-content {
    position: relative;
    z-index: 5; /* Aumentado para garantir visibilidade sobre todos os elementos de fundo */
    display: flex;
    align-items: center; /* Centralizar verticalmente */
    justify-content: flex-start; /* Alinhar o conteúdo à esquerda */
    height: 100vh;
    padding: 0 1rem; /* MELHORIA APLICADA: Reduzir padding para evitar overflow em ecrãs pequenos */
    width: 100%; /* Garantir que ocupa a largura total para o alinhamento */
}

/* MELHORIA APLICADA: Ajuste da largura máxima para o texto do hero e remoção de margens desnecessárias */
/* Garante que o texto não se estenda demasiado, melhorando a legibilidade e o posicionamento */
.hero-text-left {
    text-align: left;
    max-width: 500px; /* Reduzir a largura máxima para evitar que o texto se espalhe muito */
    margin-left: 0; /* Remover margem automática para alinhar à esquerda */
    margin-right: auto; /* Manter margem direita automática para empurrar para a esquerda */
    padding-left: 0; /* MELHORIA APLICADA: Remover padding-left para evitar overflow */
}

/* MELHORIA APLICADA: Melhorar a legibilidade do título */
/* Aumentar o contraste e a clareza do título */
.hero-title {
    font-family: var(--font-primary);
    font-size: 3.8rem; /* Ligeiramente maior para mais impacto */
    font-weight: 700; /* Mais negrito */
    line-height: 1.1; /* Ajustar line-height para melhor aparência */
    margin-bottom: 1.5rem;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.3); /* Sombra mais forte */
    letter-spacing: -1px; /* Ajustar espaçamento entre letras */
}

/* MELHORIA APLICADA: Melhorar a legibilidade do subtítulo */
/* Aumentar o contraste e a clareza do subtítulo */
.hero-subtitle {
    font-size: 1.2rem; /* Ligeiramente maior */
    color: var(--white); /* Cor branca para melhor contraste */
    margin-bottom: 2.5rem; /* Mais espaço abaixo do subtítulo */
    max-width: 500px; /* Alinhar com o título */
    margin-left: 0; /* Remover margem automática para alinhar à esquerda */
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Adicionar sombra para legibilidade */
}

/* MELHORIA APLICADA: Melhorar o estilo do botão */
/* Tornar o botão mais visível e apelativo */
.btn-premium {
    background: var(--gradient-premium);
    border: 2px solid var(--gold);
    color: var(--primary-black);
    font-weight: 400; /* Mais negrito */
 
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Mais espaçamento entre letras */
    transition: var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.5); /* Sombra mais pronunciada */
    position: relative;
    overflow: hidden;
    font-size: 1.0rem; /* Ligeiramente maior */
}

.btn-premium:hover {
    transform: translateY(-5px); /* Efeito de hover mais pronunciado */
    box-shadow: 0 40px 80px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.7); /* Sombra de hover mais forte */
    color: var(--primary-black);
}

/* Ajustar o posicionamento do indicador de scroll para não interferir */
.scroll-indicator {
    position: absolute;
    bottom: 3rem; /* Ligeiramente mais acima */
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-gold); /* Cor mais clara para visibilidade */
    font-size: 1.8rem; /* Ligeiramente maior */
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 5; /* Garantir que está acima de outros elementos */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS ===== */
.about-section,
.videos-section,
.clients-section,
.contact-section {
    background: var(--secondary-black);
    position: relative;
}

.about-section::before,
.videos-section::before,
.clients-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.3;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1rem; /* Tamanho da fonte ligeiramente menor */
    line-height: 1.6; /* Melhorar a legibilidade */
    color: var(--gray-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ===== VIDEO FILTERS ===== */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

/* ===== VIDEO GRID ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(212, 175, 55, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(20px);
}

.video-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 215, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(2px);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 4rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: playPulse 2s ease-in-out infinite;
}

.video-info {
    padding: 2rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.4;
    font-family: var(--font-secondary);
    letter-spacing: 0.3px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.video-duration,
.video-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== CLIENTS SECTION ===== */
.clients-slider {
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem 0;
}

.clients-track {
    display: flex;
    animation: slideClients 30s linear infinite;
    gap: 4rem;
    align-items: center;
}

.client-logo {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Logótipos coloridos conforme solicitado - sem filtro grayscale */
    filter: brightness(1);
    transition: var(--transition-smooth);
    /* Preservar nitidez das imagens conforme instruções */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Padding interno reduzido para logótipos maiores */
    padding: 12px;
    /* Fundo ligeiramente transparente para melhor contraste */
     background-color: #ffffff;
    border-radius: 8px;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.client-logo img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2);
    transition: var(--transition-smooth);
}

.client-logo:hover img {
    filter: brightness(1) contrast(1.2);
}

.client-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    font-family: var(--font-secondary);
}

@keyframes slideClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.premium-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(218, 165, 32, 0.2);
    border-radius: 10px;
    color: var(--white);
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.2);
    color: var(--white);
}

.premium-input::placeholder {
    color: var(--gray-medium);
}

.contact-info {
    padding: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.3rem;
    width: 30px;
}

.social-links {
    margin-top: 3rem;
}

.social-links h5 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--primary-black);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem; /* Tamanho da fonte ligeiramente menor */
    line-height: 1.6; /* Melhorar a legibilidade */
    transition: var(--transition-bounce);
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-black);
    box-shadow: var(--shadow-hover);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-black);
    border-top: 1px solid rgba(218, 165, 32, 0.1);
    color: var(--gray-medium);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-logos {
        gap: 2rem;
    }
    
    .client-logo {
        width: 120px;
        height: 75px;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Correção para vídeo responsivo - garantir que o vídeo apareça em dispositivos móveis */
    .video-background {
        display: block !important;
        visibility: visible !important;
    }
    
    .video-background iframe {
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover;
    }
    
    .hero-section {
        min-height: 100vh;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .loading-logo {
        font-size: 3rem;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .btn-premium {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Correções adicionais para vídeo em dispositivos muito pequenos */
    .video-background iframe {
        transform: translate(-50%, -50%) scale(1.2) !important;
        width: 120vw !important;
        height: 120vh !important;
    }
    
    .hero-content {
        z-index: 10;
        position: relative;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gold {
    color: var(--gold) !important;
}

.text-gradient {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite alternate;
}

.bg-premium {
    background: var(--gradient-gold) !important;
}

.shadow-premium {
    box-shadow: var(--shadow-premium) !important;
}

.transition-smooth {
    transition: var(--transition-smooth) !important;
}


/* ===== NEW PREMIUM ANIMATIONS ===== */
@keyframes goldGlow {
    0% { 
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
    }
    100% { 
        text-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 120px rgba(255, 215, 0, 0.5);
    }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(135deg, #FFA500 0%, #DAA520 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@keyframes premiumPulse {
    0%, 100% {
        box-shadow: 0 25px 50px rgba(255, 215, 0, 0.15), 0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 35px 70px rgba(255, 215, 0, 0.25), 0 0 50px rgba(255, 215, 0, 0.6);
    }
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
}

/* ===== NETFLIX GALLERY ===== */
.netflix-gallery {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
}

.video-category {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-secondary);
    margin: 0;
}

.category-nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ===== SWIPER CUSTOMIZATION ===== */
.video-swiper {
    padding: 0 2rem;
    overflow: visible;
    position: relative;
}

.video-swiper .swiper-slide {
    width: 320px;
    height: auto;
}

/* ===== ANIMAÇÃO DE SCROLL AUTOMÁTICO CONTÍNUO ===== */
/* MELHORIA APLICADA: Movimento horizontal automático e contínuo nos vídeos do portfólio */
/* Similar à animação dos logótipos na secção "Clientes", mas com velocidade mais lenta */
/* O deslizamento nunca para, mantendo o loop infinito */
.video-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

/* Classe aplicada via JavaScript para ativar o scroll automático */
.video-swiper.auto-slide .swiper-wrapper {
    /* Animação de 80 segundos (mais lenta que os 30-40s dos clientes) para movimento suave */
    animation: autoSlidePortfolio 80s linear infinite;
}

/* Animação de scroll horizontal contínuo */
/* Move os vídeos da direita para a esquerda de forma suave e ininterrupta */
@keyframes autoSlidePortfolio {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move metade da largura total para criar loop perfeito com duplicação de conteúdo */
        transform: translateX(-50%);
    }
}

/* Pausa a animação quando o utilizador passa o rato por cima */
.video-swiper.auto-slide:hover .swiper-wrapper {
    animation-play-state: paused;
}

.netflix-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.netflix-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.netflix-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
    z-index: 10;
}

.netflix-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.netflix-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.netflix-card:hover .netflix-thumbnail img {
    transform: scale(1.1);
}

.netflix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(212, 175, 55, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.netflix-card:hover .netflix-overlay {
    opacity: 1;
}

.netflix-play-icon {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    animation: playPulse 2s ease-in-out infinite;
}

.netflix-info {
    padding: 1rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.netflix-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-family: var(--font-secondary);
    text-align: left;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 2.6em;
}

.netflix-duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    text-align: left;
    margin-top: auto;
}

/* Header */
.navbar {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}rgba(212, 175, 55, 0.2);
}

.modal-title {
    font-family: var(--font-secondary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .category-header {
        padding: 0 1rem;
    }
    
    .video-swiper {
        padding: 0 1rem;
    }
    
    .video-swiper .swiper-slide {
        width: 280px;
    }
    
    .category-nav {
        display: none;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

/* ===== DYNAMIC VISUAL EFFECTS ===== */

/* Floating animation for cards */
.netflix-card {
    animation: float 6s ease-in-out infinite;
}

.netflix-card:nth-child(2n) {
    animation-delay: -2s;
}

.netflix-card:nth-child(3n) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Glow effect on hover */
.netflix-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 175, 55, 0.4),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Pulse effect for play icon */
.netflix-play-icon {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(212, 175, 55, 1);
    }
}

/* Category title glow */
.category-title {
    text-shadow: 0 0 10px currentColor;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px currentColor;
    }
    100% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* Smooth transitions for all elements */
* {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Disable transitions during auto-slide */
.video-swiper.auto-slide * {
    transition: none !important;
}

/* Re-enable transitions on hover */
.video-swiper:hover * {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* ===== TYPEWRITER EFFECT ===== */
.cursor {
    display: inline-block;
    background-color: var(--gold);
    margin-left: 3px;
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#typewriter-text {
    min-height: 1.2em;
    display: inline-block;
}

/* ===== DIRECTIONAL INDICATORS ===== */

/* Adiciona setas sutis para indicar direção */
.video-category:nth-child(odd) .category-title::after {
    content: '→';
    margin-left: 10px;
    opacity: 0.6;
    font-size: 0.8em;
    animation: arrowPulse 2s ease-in-out infinite;
}

.video-category:nth-child(even) .category-title::after {
    content: '←';
    margin-left: 10px;
    opacity: 0.6;
    font-size: 0.8em;
    animation: arrowPulse 2s ease-in-out infinite reverse;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

/* Efeito de movimento mais suave */
.video-swiper .swiper-wrapper {
    will-change: transform;
}

/* Gradiente nas bordas para efeito de fade */
.video-swiper::before,
.video-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.video-swiper::before {
    left: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 1), transparent);
}

.video-swiper::after {
    right: 0;
    background: linear-gradient(to left, rgba(10, 10, 10, 1), transparent);
}


.clients-track-1 {
    animation: slideClients1 30s linear infinite;
    
}

.clients-track-2 {
    animation: slideClients2 30s linear infinite;
    margin-top: 20px; /* Espaçamento entre as duas linhas */
}

@keyframes slideClients1 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideClients2 {
    0% {
        transform: translateX(-50%); /* Começa na metade para parecer contínuo com a primeira linha */
    }
    100% {
        transform: translateX(0%);
    }
}



/* ===== ESTILOS ATUALIZADOS CONFORME INSTRUÇÕES ===== */

/* ===== DUAS LINHAS DE LOGÓTIPOS COM ROTAÇÃO CONTÍNUA ===== */
/* Implementação conforme instruções: movimento suave e responsivo com boa legibilidade */

.clients-slider {
    overflow: hidden;
    position: relative;
    /* Gradiente nas bordas para efeito de fade suave */
    mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    /* Largura suficiente para conter todos os logótipos duplicados */
    width: calc(200% + 6rem);
    /* Pausa a animação quando o utilizador passa o rato por cima */
    animation-play-state: running;
}

.clients-track:hover {
    animation-play-state: paused;
}

/* PRIMEIRA LINHA - Movimento da esquerda para a direita */
/* Conforme instruções: rotação contínua com loop infinito */
.clients-track-1 {
    animation: slideClientsRight 40s linear infinite;
}

/* SEGUNDA LINHA - Movimento da direita para a esquerda */
/* Conforme instruções: movimento em direção oposta para efeito visual dinâmico */
.clients-track-2 {
    animation: slideClientsLeft 35s linear infinite;
    margin-top: 2rem; /* Espaçamento entre as duas linhas */
}

@keyframes slideClientsRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideClientsLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

.client-logo {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Logótipos coloridos conforme solicitado - sem filtro grayscale */
    filter: brightness(1);
    transition: var(--transition-smooth);
    /* Preservar nitidez das imagens conforme instruções */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Padding interno para criar espaço dentro do card */
    padding: 6px;
    /* Fundo ligeiramente transparente para melhor contraste */
     background-color: #ffffff;
    border-radius: 8px;
}

.client-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.client-logo img {
    /* OTIMIZAÇÃO: Agora que todas as imagens têm 800x400px, podemos otimizar a exibição */
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Garantir nitidez das imagens conforme instruções */
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Centralizar perfeitamente a imagem */
    margin: auto;
    /* Adicionar uma sombra sutil para melhor definição */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== ESTILOS PREMIUM PARA FORMULÁRIO DE CONTACTO ===== */
/* Conforme instruções: validação de campos e feedback com estilo premium */

.premium-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--white);
    padding: 1rem 1.5rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    color: var(--white);
    outline: none;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Estilos para validação conforme instruções */
.premium-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.premium-input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-family: var(--font-secondary);
}

/* ===== ESTILOS PARA MODAL DE MÉTODO DE RESPOSTA ===== */
/* Conforme instruções: janela perguntando como deseja receber resposta */

.border-gold {
    border-color: var(--gold) !important;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-email {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    border: none;
    color: var(--primary-black);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    color: var(--primary-black);
}

/* ===== ALERTS PREMIUM CONFORME INSTRUÇÕES ===== */
/* Feedback de sucesso/erro com estilo premium */

.premium-alert {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: var(--font-secondary);
}






























