/* =========================================
   1. CORE SECTION: STRUCTURAL POP
   ========================================= */

   .apex-showcase {
    background-color: #ffffff;
    /* Subtle diagonal stripe pattern for texture */
    background-image: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 10px,
        #ffffff 10px,
        #ffffff 20px
    );
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
    color: #000000;
    
    /* Top and Bottom bold borders */
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

.apex-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* =========================================
   2. HEADER: BOLD & GRAPHIC
   ========================================= */

.clean-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 80px;
    position: relative;
    background: #fff;
    border: 3px solid #000; /* Boxed Header */
    padding: 40px;
    box-shadow: 10px 10px 0px #000; /* Hard Shadow Block */
}

.clean-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 30px;
}

/* Left Column */
.clean-left-col {
    flex-shrink: 0;
}

.clean-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Replaced dot with a square for this theme */
.clean-status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80; /* Bright Green */
    border: 1px solid #fff;
}

.clean-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}

/* Right Column */
.clean-right-col {
    max-width: 400px;
    padding-top: 10px;
}

.clean-subtitle {
    font-size: 18px;
    color: #000;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    /* Typewriter style font contrast */
    font-family: 'Courier New', monospace; 
}

/* Divider Line (Thick & Bold) */
.clean-separator {
    width: 100%;
    height: 3px;
    background-color: #000;
    position: relative;
}

.clean-separator-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    /* Striped fill */
    background: repeating-linear-gradient(
        90deg,
        #000,
        #000 10px,
        #fff 10px,
        #fff 20px
    );
    opacity: 0.2;
}

/* =========================================
   3. STAGE
   ========================================= */

.apex-stage {
    position: relative;
    width: 100%;
    height: 560px;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.apex-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* =========================================
   4. CARDS: HARD EDGE POLAROIDS
   ========================================= */

.apex-card {
    position: absolute;
    width: 300px;
    aspect-ratio: 9/16;
    background: #ffffff;
    
    /* NO radius - Sharp corners */
    border-radius: 0px; 
    
    /* Thick borders and hard shadows */
    border: 3px solid #000;
    box-shadow: 12px 12px 0px #000;
    
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.3s ease,
                background 0.3s ease;
    will-change: transform;
}

.apex-card.no-transition {
    transition: none !important;
}

/* Media Area */
.apex-media {
    width: 100%;
    height: 75%;
    position: relative;
    background: #000;
    border-bottom: 3px solid #000;
}

.apex-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    /* Dither effect / Grayscale for idle cards */
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}

/* Active State */
.apex-card.active {
    z-index: 50;
    /* Shadow moves and changes color */
    box-shadow: 16px 16px 0px #3b82f6; /* Pop Blue Shadow */
    transform: translateY(-10px) scale(1.02);
}

.apex-card.active .apex-video {
    filter: grayscale(0%) contrast(1);
}

/* Info Area */
.apex-details {
    padding: 16px;
    height: 25%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apex-name {
    font-size: 20px;
    font-weight: 900;
    color: #000;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.apex-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.apex-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    padding: 4px 8px;
    box-shadow: 2px 2px 0px #000;
}

/* Overlay / Button */
.apex-overlay {
    position: absolute;
    inset: 0;
    /* No background fade, just the button */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.apex-card:hover .apex-overlay {
    opacity: 1;
}

.apex-action-btn {
    pointer-events: auto;
    padding: 14px 24px;
    background: #3b82f6; /* Pop Blue */
    color: #fff;
    border: 3px solid #000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.apex-action-btn:hover {
    transform: translate(2px, 2px); /* Button press effect */
    box-shadow: 2px 2px 0px #000;
}

/* =========================================
   5. CONTROLS: CHUNKY BUTTONS
   ========================================= */

.apex-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid #000;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.1s ease;
}

.apex-nav:hover {
    background: #000;
    color: #fff;
    transform: translateY(calc(-50% + 2px)) translateX(2px);
    box-shadow: 4px 4px 0px #000;
}

.apex-nav:active {
    transform: translateY(calc(-50% + 6px)) translateX(6px);
    box-shadow: 0px 0px 0px #000;
}

.apex-nav.prev { left: 0; }
.apex-nav.next { right: 0; }

/* Progress Bar */
.apex-progress-container {
    width: 100%;
    max-width: 300px;
    height: 12px;
    background: #fff;
    border: 3px solid #000;
    margin-top: 60px;
    position: relative;
    box-shadow: 4px 4px 0px #000;
}

.apex-progress-fill {
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #3b82f6,
        #3b82f6 10px,
        #2563eb 10px,
        #2563eb 20px
    );
    width: 0%;
    border-right: 3px solid #000;
    transition: width 0.1s linear;
}

/* =========================================
   6. RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .apex-showcase { padding: 100px 0; }
    .clean-header { padding: 30px; }
}

@media (max-width: 900px) {
    .clean-header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .clean-title { font-size: 48px; }
    
    .clean-right-col { max-width: 100%; }
}

@media (max-width: 600px) {
    .apex-container { padding: 0 20px; }
    
    .clean-header { 
        padding: 20px; 
        margin-bottom: 50px;
        box-shadow: 6px 6px 0px #000;
    }
    
    .clean-title { font-size: 36px; }
    
    /* Smaller cards */
    .apex-card { width: 240px; }
    .apex-stage { height: 460px; }
    
    .apex-nav {
        width: 44px;
        height: 44px;
        box-shadow: 4px 4px 0px #000;
    }
}

/* --- Mobile Centering Fix for Universal Compatibility --- */
@media (max-width: 768px) {
    /* 1. Force the track to be the reference point */
    .apex-track {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* 2. Force cards to start exactly at the center of the screen */
    /* The JS 'translateX(-50%)' will then pull them back to be perfectly centered */
    .apex-card {
        left: 50% !important;
        
        /* Adjust width to be safe for mobile screens */
        width: 260px !important; 
        max-width: 80vw !important;
    }
}