/* =========================================================================
   [ NX MATRIX HERO SLIDER ]
   ========================================================================= */

.nx-hero-matrix {
    --nx-cyber-red: #ff2851;
    --nx-void: #0a0a0c;
    --nx-panel: #18181c;
    --nx-text: #fff;
    --nx-mineral: #94a3b8;
    
    position: relative;
    width: 100%;
    height: 89vh; 
    min-height: 580px;
    margin-top: -2rem;
    background-color: var(--nx-void);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

.nx-hero-track {
    display: flex;
    flex-wrap: nowrap;
    height: calc(100% - 60px); 
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.nx-hero-card {
    position: relative;
    flex: 0 0 25%;
    min-width: 300px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-right: 1px solid #000;
    cursor: pointer;
}

.nx-hero-card::before {
    content: '';
    position: absolute;
    inset: -10%; 
    background: inherit; 
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
    filter: brightness(0.8) contrast(1.1);
}

.nx-hero-card:hover::before {
    transform: scale(1.08); 
    filter: brightness(1) contrast(1.1);
}

.nx-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.05) 0%, rgba(10, 10, 12, 0.5) 60%, rgba(10, 10, 12, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2.5rem; 
    transition: background 0.4s ease;
}

.nx-hero-card:hover .nx-hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.0) 0%, rgba(10, 10, 12, 0.3) 60%, rgba(10, 10, 12, 0.9) 100%);
}

.nx-hero-title {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--nx-text);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.9);
    transform: translateY(0);
    opacity: 1;
}

.nx-hero-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    transform: translateY(0);
    opacity: 1;
}

.nx-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
    transform: translateY(0);
    opacity: 1;
}

.nx-hero-card:hover .nx-hero-meta {
    border-top-color: var(--nx-cyber-red);
}

.nx-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--nx-mineral);
    letter-spacing: 0.1em;
}

.nx-btn-readmore {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: var(--nx-text);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    border: 1px solid var(--nx-cyber-red);
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nx-hero-card:hover .nx-btn-readmore {
    opacity: 1;
    transform: translateY(0);
}

.nx-btn-readmore::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--nx-cyber-red);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nx-btn-readmore:hover::before { width: 100%; }
.nx-btn-readmore:hover { color: #fff; box-shadow: 0 0 20px rgba(255, 40, 81, 0.4); }

.nx-hero-controls {
    height: 60px;
    background: var(--nx-panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nx-ctrl-btn {
    background: transparent;
    border: none;
    color: var(--nx-mineral);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color 0.3s;
}

.nx-ctrl-btn:hover { color: var(--nx-cyber-red); }

.btn-angle { display: block; width: 15px; height: 1px; background: currentColor; position: relative;}
.btn-angle::after { content:''; position: absolute; width: 6px; height: 1px; background: currentColor; transform-origin: right; }
.btn-angle.left::after { right: 100%; transform: rotate(45deg) scaleX(1.5); transform-origin: left;}
.btn-angle.right::after { left: 100%; transform: rotate(45deg) scaleX(1.5); transform-origin: right;}

.nx-hero-indicators { display: flex; gap: 8px; }

.nx-indicator {
    width: 35px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nx-indicator.active {
    background: var(--nx-cyber-red);
    box-shadow: 0 0 10px rgba(255, 40, 81, 0.5);
    border-color: #ff859d;
}

.nx-indicator:hover:not(.active) { background: rgba(255, 40, 81, 0.3); }

@media screen and (max-width: 768px) {
    .nx-hero-matrix { height: 60vh; min-height: 450px; margin-top: 0rem; }
    .nx-hero-overlay { padding: 1.5rem 1.2rem; justify-content: flex-end; }
    .nx-hero-title { font-size: 1.8rem; word-wrap: break-word; hyphens: auto; }
    .nx-hero-excerpt { display: none; } 
    .nx-hero-meta { flex-direction: column; align-items: flex-start; gap: 15px; }
    .nx-btn-readmore { width: 100%; text-align: center; opacity: 1; transform: translateY(0); }
    .nx-hero-controls { padding: 0 1rem; }
    .nx-ctrl-btn { font-size: 0; gap: 0;} 
    .nx-ctrl-btn .btn-angle { width: 30px; }
    .nx-indicator { width: 20px; } 
}