/* ═══════════════════════════════════════════════════
   CINEMATIC 3D SHOWCASE CAROUSEL
   ═══════════════════════════════════════════════════ */

.cinematic-showcase {
    position: relative;
    background: #060608;
    /* Reduced from 8rem — just enough to clear the fixed navbar */
    padding: 2rem 0 3rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 140, 0, 0.15);
    border-bottom: 1px solid rgba(255, 140, 0, 0.15);
}

/* Compact the section header inside the carousel so it reads as a label, not a hero block */
.cinematic-showcase .section-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.cinematic-showcase .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.3rem;
}

.cinematic-showcase .section-desc {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.cinematic-showcase .section-title .highlight {
    color: var(--orange);
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
}

.cini-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.06) 0%, rgba(0, 0, 0, 0) 60%),
                radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
}

.cini-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    z-index: 2;
}

.cini-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6,6,8,0) 0%, rgba(6,6,8,0.5) 100%);
    z-index: 3;
}

#showcase-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cinematic-slider {
    position: relative;
    width: 100%;
    /* Reduced top padding from 4rem to 1.5rem — eliminates the gap between text and carousel */
    padding: 1.5rem 0 3rem;
    perspective: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    min-height: 480px;
}

.cini-track {
    position: relative;
    width: 650px;
    height: 365px; /* 16:9 approx */
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cini-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    filter: blur(8px) brightness(0.2);
    transform: translateZ(-300px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.8s ease, filter 0.8s ease, box-shadow 0.8s ease;
    cursor: pointer;
}

.cini-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cini-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cini-slide.active .cini-slide-overlay {
    opacity: 1;
}

.cini-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 140, 0, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.cini-slide.active:hover .cini-play-btn {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(255, 140, 0, 0.8);
}

.cini-slide-title {
    color: #fff;
    font-family: var(--font-cond);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.cini-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1) translateZ(0) rotateY(0deg);
    filter: blur(0) brightness(1.05);
    z-index: 10;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 140, 0, 0.3), 0 0 50px rgba(255, 140, 0, 0.2);
}

.cini-slide.active:hover {
    box-shadow: 0 35px 90px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 140, 0, 0.7), 0 0 70px rgba(255, 140, 0, 0.35);
}

.cini-slide.prev {
    opacity: 0.85;
    visibility: visible;
    transform: translateX(-55%) scale(0.8) translateZ(-100px) rotateY(25deg);
    filter: blur(3px) brightness(0.4);
    z-index: 5;
}

.cini-slide.next {
    opacity: 0.85;
    visibility: visible;
    transform: translateX(55%) scale(0.8) translateZ(-100px) rotateY(-25deg);
    filter: blur(3px) brightness(0.4);
    z-index: 5;
}

.cini-slide.prev-2 {
    opacity: 0.4;
    visibility: visible;
    transform: translateX(-95%) scale(0.65) translateZ(-250px) rotateY(35deg);
    filter: blur(6px) brightness(0.2);
    z-index: 2;
}

.cini-slide.next-2 {
    opacity: 0.4;
    visibility: visible;
    transform: translateX(95%) scale(0.65) translateZ(-250px) rotateY(-35deg);
    filter: blur(6px) brightness(0.2);
    z-index: 2;
}

.cini-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8%;
    z-index: 20;
    pointer-events: none;
}

.cini-arrow {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.cini-arrow:hover {
    background: var(--orange);
    color: #000;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.5);
    border-color: var(--orange);
}

.cini-cta-row {
    text-align: center;
    position: relative;
    z-index: 20;
    padding-bottom: 2rem;
}

.cini-cta-row .btn-secondary {
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(5px);
}

.cini-cta-row .btn-secondary:hover {
    background: var(--orange);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
}

@media (max-width: 1024px) {
    .cini-track { width: 550px; height: 309px; }
    .cini-controls { padding: 0 3%; }
}
@media (max-width: 768px) {
    .cini-track { width: 360px; height: 202px; }
    .cini-slide.prev { transform: translateX(-40%) scale(0.7) translateZ(-100px) rotateY(20deg); }
    .cini-slide.next { transform: translateX(40%) scale(0.7) translateZ(-100px) rotateY(-20deg); }
    .cini-slide.prev-2, .cini-slide.next-2 { opacity: 0; visibility: hidden; }
    .cini-controls { padding: 0; justify-content: center; top: auto; bottom: 0; gap: 2rem; margin-bottom: 0; }
    .cinematic-slider { padding-bottom: 7rem; }
}
