/* ===== 5. CSS PARA O ESTADO ATIVO DO LINK (ScrollSpy) ===== */

/* Assume que --primary-color é o seu azul/ciano de destaque */
:root {
    /* Exemplo: Se sua cor de destaque é um azul-ciano */
    --primary-color: #00bcd4; 
    /* ... outras variáveis ... */
}

/* Estilo para o link ATIVO (seção atual) e para o HOVER */
.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color) !important; /* Cor de destaque (ciano) */
    /* Adiciona uma linha inferior sutil para melhor visualização */
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 3px;
}

/* Remove a linha inferior dos outros links */
.nav-links a:not(.active) {
    border-bottom: 2px solid transparent; 
    transition: border-bottom 0.3s ease;
}

/* Mantém o CTA (Fale Comigo) sem a linha inferior se preferir */
.nav-links a.cta-nav.active,
.nav-links a.cta-nav:hover {
    color: var(--primary-color); /* Mantém a cor do CTA no hover */
    border-bottom: none; /* Não aplica linha inferior ao botão de destaque */
}

/* ===== 2. CSS PARA O EFEITO TV ON/OFF ===== */

/* Remova a TV Screen Glitch e use apenas o tv-transition como a barra */
.tv-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Começa transparente */
    background-color: transparent; 
    z-index: 9999; 
    pointer-events: none; 
    opacity: 0;
    /* Transição rápida para garantir que ele apareça */
    transition: opacity 0.1s ease; 
    overflow: hidden; 
}

.tv-transition.active {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.1s ease;
}

/* O elemento de glitch será a barra de transição */
.tv-screen-glitch {
    position: absolute; /* Importante para o movimento */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cor e Sombra Neon: use suas cores primárias (ex: #00f6ff) */
    background: linear-gradient(90deg, #00f6ff, #007bff); 
    box-shadow: 0 0 40px rgba(0, 150, 255, 0.8), 0 0 10px rgba(0, 200, 255, 0.5);
    opacity: 0;
    transform: translateX(-100%); /* Começa fora da tela, à esquerda */
}

/* Efeito de Fechamento: A barra azul varre a tela */
.tv-transition.closing .tv-screen-glitch {
    animation: digital-wipe-in 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    opacity: 1;
}

/* Efeito de Abertura: A barra azul varre a tela para fora */
.tv-transition.opening .tv-screen-glitch {
    animation: digital-wipe-out 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    opacity: 1;
}

/* Keyframes para a animação do fechar (Wipe In) */
@keyframes digital-wipe-in {
    0% {
        transform: translateX(-100%); /* Fora da tela, à esquerda */
    }
    50% {
        transform: translateX(0); /* Cobriu toda a tela */
    }
    100% {
        transform: translateX(0); /* Permanece cobrindo */
    }
}

/* Keyframes para a animação do abrir (Wipe Out) */
@keyframes digital-wipe-out {
    0% {
        transform: translateX(0); /* Começa cobrindo a tela */
    }
    50% {
        transform: translateX(0); /* Permanece cobrindo */
    }
    100% {
        transform: translateX(100%); /* Sai da tela, à direita */
    }
}
.glass-card .card-img {
    width: 100%;
    height: auto;         /* Ajuste conforme seu card */
    object-fit: cover;     /* Mantém proporção e corta o excesso */
    border-radius: 12px;   /* Combina com cards arredondados */
    margin-bottom: 15px;   /* Espaço entre img e conteúdo */
    display: block;
    border-radius: 40px;
}


/* --- BASE E CORES --- */
.exclusive-models-area {
    background: linear-gradient(135deg, #0d1222 0%, #1a2542 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.model-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    padding: 0 20px;
}
.model-title { font-size: 3em; margin-bottom: 10px; color: #00e6ff; }
.model-subtitle { font-size: 1.2em; color: #b0b0b0; }

#btn-elegant-quote{
    margin-top: 90px;
}
/* --- SETUP 3D (CRÍTICO) --- */
.carousel-3d-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 520px; /* Altura do carrossel */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; /* CRÍTICO: Define a profundidade 3D */
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* CRÍTICO: Permite que os filhos se movam em 3D */

}

/* --- ITENS E GLASS CARD --- */
.carousel-3d-item {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 350px; /* Largura do Card */
    height: 450px; /* Altura do Card */
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Transição suave */
    pointer-events: none; 
}

.glass-card {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* GLASSMORPHISM */
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}
.glass-card h3 { font-size: 1.8em; color: #00e6ff; margin-bottom: 15px; }
.glass-card p { font-size: 1em; margin-bottom: 30px; }
.btn-detail {
    padding: 10px 30px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0, 114, 255, 0.4);
    transition: transform 0.3s ease;
}
.btn-detail:hover { transform: scale(1.05); }


/* --- POSIÇÕES 3D (ESTADOS) --- */
.carousel-3d-item.active {
    opacity: 1;
    z-index: 5;
    transform: translate(-50%, -50%) translateZ(200px); /* Frente e Centro */
    pointer-events: auto;
}

.carousel-3d-item.next {
    opacity: 0.5;
    z-index: 4;
    transform: translate(-50%, -50%) 
               translateX(250px) 
               rotateY(-25deg) 
               scale(0.85);
}

.carousel-3d-item.prev {
    opacity: 0.5;
    z-index: 4;
    transform: translate(-50%, -50%) 
               translateX(-250px) 
               rotateY(25deg) 
               scale(0.85);
}

.carousel-3d-item.hidden {
    opacity: 0;
    z-index: 3;
    transform: translate(-50%, -50%) 
               translateX(500px) 
               rotateY(-45deg) 
               scale(0.7);
}

.carousel-3d-item.hidden-back {
    opacity: 0;
    z-index: 3;
    transform: translate(-50%, -50%) 
               translateX(-500px) 
               rotateY(45deg) 
               scale(0.7);
}


/* --- CONTROLES (Setas Estilizadas) --- */
.control-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4); 
    color: #00e6ff; 
    border: 1px solid rgba(0, 230, 255, 0.5); 
    border-radius: 50%; 
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
    user-select: none;
    outline: none;
}

.control-arrow:hover {
    background: rgba(0, 230, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 230, 255, 0.6);
}

.control-arrow.prev-3d { left: -5px; }
.control-arrow.next-3d { right: -5px; }


/* --- RESPONSIVIDADE (Mobile) --- */
@media (max-width: 991px) {
    .carousel-3d-wrapper { perspective: 800px; height: 450px; }
    .carousel-3d-item { width: 300px; height: 400px; }
    
    .carousel-3d-item.active {
        transform: translate(-50%, -50%) translateZ(100px) scale(1.1);
    }
    
    /* Esconde todos os outros cards atrás do ativo em mobile */
    .carousel-3d-item.next, 
    .carousel-3d-item.prev,
    .carousel-3d-item.hidden,
    .carousel-3d-item.hidden-back {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(0) scale(0.9);
    }
    
    .control-arrow.prev-3d { left: 0px; }
    .control-arrow.next-3d { right: 0px; }
}