/* ================================================
   EVIL BANE — v22 · Full Prototype Polish
   ================================================ */

/* ... (Base / Preloader / Canvas - Keep Previous) ... */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f1923;
    --accent: #ff4655;
    --text-white: #ece8e1;
    --text-gray: #768079;
    --font-head: 'Tungsten', 'Bebas Neue', sans-serif;
    --font-ui: 'Orbitron', 'Space Mono', monospace;
    --font-body: 'Manrope', sans-serif;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* CURSOR FIX: Mask system cursor on interactive elements */
body,
a,
button,
input,
.menu-item,
.flip-card,
.action-btn {
    cursor: none !important;
}

body {
    background: var(--bg-dark);
    margin: 0;
    overflow-x: hidden;
    color: var(--text-white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.scroll-locked {
    overflow: hidden !important;
}

/* ... (Preloader / Boot / Canvas - Keep Previous) ... */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, background 0.2s;
    mix-blend-mode: exclusion;
}

#custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* Hover State for Custom Cursor */
body.hovering #custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 70, 85, 0.2);
    border-color: #fff;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pre-shape {
    width: 60px;
    height: 60px;
    border: 4px solid var(--accent);
    margin: 0 auto 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.pre-text {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.pre-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    overflow: hidden;
}

.pre-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s;
}

#cinema-boot {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

#cinema-boot.done {
    display: none;
}

.shutter-col {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #000;
    width: 33.333%;
    transform-origin: center;
}

.sc-1 {
    left: 0;
}

.sc-2 {
    left: 33.333%;
}

.sc-3 {
    right: 0;
}

.rotator-square {
    width: 100px;
    height: 100px;
    border: 8px solid #fff;
    background: transparent;
    transform: rotate(0deg);
}

.shutter-rotator {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.rotator-text {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #fff;
    opacity: 0;
}

#hero-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg-dark);
    will-change: transform, opacity;
}

#zoom-flash {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

/* REMOVED TERMINAL STYLES */

/* ==============================
   VALORANT MENU OVERLAY (Glass)
   ============================== */
#menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 25, 35, 0.9);
    backdrop-filter: blur(40px) saturate(120%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
}

/* Header */
.menu-header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

.ping-dot {
    width: 6px;
    height: 6px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 10px #0f0;
}

.menu-close-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-ui);
    color: var(--accent);
    font-size: 0.9rem;
    padding: 12px 25px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.menu-close-btn:hover {
    background: rgba(255, 70, 85, 0.1);
    border-color: rgba(255, 70, 85, 0.3);
}

.menu-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-head);
    font-size: 18vw;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    letter-spacing: -0.05em;
}

/* Sidebar */
.menu-container {
    flex: 1;
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 90px);
    position: relative;
    z-index: 5;
}

.menu-sidebar {
    padding: 50px 0 50px 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-brand {
    font-family: var(--font-head);
    font-size: 4.5rem;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 40px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
    position: relative;
}

.menu-item:hover,
.menu-item.active {
    opacity: 1;
}

.mi-line {
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    position: absolute;
    left: -20px;
}

.menu-item.active .mi-line {
    width: 40px;
    box-shadow: 0 0 10px var(--accent);
}

.mi-text {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 0.1em;
    transition: transform 0.3s;
}

.menu-item:hover .mi-text {
    transform: translateX(10px);
    color: var(--accent);
}

/* Socials */
.menu-socials {
    display: flex;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
}

.ms-link {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.ms-link:hover {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* Content Area */
.menu-content {
    position: relative;
    padding: 60px;
    overflow: hidden;
    perspective: 1500px;
}

.content-panel {
    position: absolute;
    inset: 0;
    padding: 40px 80px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
    overflow-y: auto;
    scrollbar-width: none;
}

.content-panel::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar inside panels */
.content-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.panel-title {
    font-family: var(--font-head);
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    right: 40px;
    pointer-events: none;
    z-index: 0;
}

/* ... (Home - Keep Previous) ... */
.home-hero {
    max-width: 900px;
    margin-top: 10vh;
    position: relative;
    z-index: 1;
}

.hh-title {
    font-size: 9rem;
    line-height: 0.85;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hh-subtitle {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 50px;
    letter-spacing: 0.25em;
    font-family: var(--font-disp);
}

.hh-actions {
    display: flex;
    gap: 20px;
}

.action-btn {
    padding: 18px 45px;
    font-family: var(--font-head);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 90% 100%, 0 100%);
}

.action-btn.primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 40px rgba(255, 70, 85, 0.5);
    transform: translateY(-3px);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.action-btn.secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* CRAZY SCROLLBAR & DECK */
.p-container {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
}

.crazy-scrollbar {
    width: 30px;
    height: 400px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-track {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.cs-thumb {
    width: 8px;
    height: 40px;
    background: var(--accent);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.3s ease-out;
    box-shadow: 0 0 10px var(--accent);
}

.cs-ticks {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.cs-tick {
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: auto;
    margin-right: auto;
}

.cs-tick.active {
    background: #fff;
    width: 12px;
    box-shadow: 0 0 5px #fff;
}

.flip-deck-container {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.deck-desc {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.flip-deck {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
}

.flip-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: bottom center;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.flip-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: rotateX(0deg) translateZ(0);
    z-index: 10;
}

.flip-card.prev {
    opacity: 0;
    transform: rotateX(60deg) translateY(-100px) translateZ(-100px);
    z-index: 5;
}

.flip-card.next {
    opacity: 0;
    transform: rotateX(-60deg) translateY(100px) translateZ(-100px);
    z-index: 5;
}

.fc-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.flip-card:hover .fc-inner {
    transform: rotateY(180deg);
}

.fc-front,
.fc-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background: rgba(20, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.fc-front {
    justify-content: flex-end;
}

.fc-back {
    transform: rotateY(180deg);
    background: rgba(255, 70, 85, 0.95);
    border-color: var(--accent);
    padding: 50px;
    justify-content: center;
    text-align: center;
}

.fc-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    mix-blend-mode: overlay;
    transition: all 0.5s;
}

.flip-card:hover .fc-img {
    opacity: 0.8;
    transform: scale(1.05);
}

.fc-info {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.fc-tech {
    font-family: var(--font-ui);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.fc-title {
    font-family: var(--font-head);
    font-size: 5rem;
    color: #fff;
    line-height: 0.9;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.fc-back h3 {
    font-family: var(--font-head);
    font-size: 4rem;
    color: #000;
    margin-bottom: 20px;
}

.fc-back p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.6;
}

.fc-btn {
    padding: 15px 40px;
    background: #000;
    color: #fff;
    border: none;
    font-family: var(--font-head);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.1em;
}

.fc-btn:hover {
    background: #fff;
    color: var(--accent);
    transform: scale(1.05);
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: 200px;
    padding-bottom: 50px;
}

.g-item {
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.g-item:hover {
    transform: scale(0.98);
    border-color: var(--accent);
}

.g-item.span-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.g-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.g-item:hover .g-img {
    transform: scale(1.1);
}

/* AGENT & ARSENAL UI */
.agent-layout {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 40px;
}

.agent-model-placeholder {
    flex: 1;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.am-silhouette {
    width: 60%;
    height: 90%;
    background: #333;
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
    opacity: 0.5;
}

.agent-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ag-card {
    border-left: 2px solid var(--accent);
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(255, 70, 85, 0.05), transparent);
    padding: 15px;
}

.ag-label {
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.ag-val {
    font-family: var(--font-head);
    font-size: 2rem;
    letter-spacing: 0.1em;
}

.ag-bio p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 10px;
}

.ag-abilities {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ab-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.ab-icon:hover,
.ab-icon.ult {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 70, 85, 0.05);
}

.sc-icon {
    font-size: 3rem;
    color: #fff;
}

.sc-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.sc-level {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.sc-fill {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

/* ... (Scroll Spacer - Keep) ... */
#scroll-spacer {
    height: 350vh;
}

#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 300;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

#landing-scroll-hint {
    position: fixed;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(45deg);
    animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@media(max-width: 900px) {
    .menu-container {
        grid-template-columns: 1fr;
        display: block;
        overflow-y: auto;
    }

    .menu-sidebar {
        padding: 30px;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-content {
        padding: 30px;
        height: auto;
        overflow: visible;
    }

    .hh-title {
        font-size: 5rem;
    }

    .flip-deck-container {
        width: 100%;
        height: 400px;
    }

    .flip-deck {
        width: 100%;
        height: 350px;
    }

    .crazy-scrollbar {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .g-item.span-2 {
        grid-column: auto;
        grid-row: auto;
    }

    .agent-layout {
        flex-direction: column;
    }

    .arsenal-grid {
        grid-template-columns: 1fr;
    }
}