/* ==========================================================================
   AMAR AUTOMATION — ULTRA-PREMIUM CYBER-OCEAN DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Tokens */
    --bg-dark: #030712;
    --bg-abyss: #020617;
    --cyan-glow: #06b6d4;
    --cyan-neon: #22d3ee;
    --blue-primary: #3b82f6;
    --violet-accent: #8b5cf6;
    --emerald-accent: #10b981;
    --rose-danger: #f43f5e;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Glass Surfaces */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(6, 182, 212, 0.4);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: none; /* Custom interactive pointer */
}

/* ==========================================================================
   CANVAS & BACKGROUND FX
   ========================================================================== */

#abyss-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
}

.water-refraction {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15), transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08), transparent 60%);
    pointer-events: none;
    transition: background 1s ease;
}

.vignette-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 40%, rgba(2, 6, 23, 0.8) 100%);
    pointer-events: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--cyan-neon);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 0 0 10px var(--cyan-neon);
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor-ring.active {
    width: 55px;
    height: 55px;
    border-color: var(--cyan-neon);
    background: rgba(6, 182, 212, 0.15);
}

.cursor-ring.danger {
    border-color: var(--rose-danger);
    background: rgba(244, 63, 94, 0.15);
}

/* ==========================================================================
   TOP NAVIGATION HEADER
   ========================================================================== */

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cyan-neon);
    position: relative;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--cyan-neon);
    animation: logoPulse 2.5s infinite;
}

@keyframes logoPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: #fff;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan-neon);
    letter-spacing: 1px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Search Box */
.search-box {
    position: relative;
    width: 260px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 0.55rem 2.2rem 0.55rem 2.4rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    width: 300px;
}

.clear-search {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
}

.clear-search:hover { color: #fff; }

/* Filter Pills */
.filter-group {
    display: flex;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.7);
    padding: 4px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn .badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--cyan-glow), var(--blue-primary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* View Switcher */
.view-toggle-group {
    display: flex;
    background: rgba(15, 23, 42, 0.7);
    padding: 4px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.view-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--cyan-neon);
}

/* Sound Toggle */
.sound-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    color: var(--cyan-neon);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.sound-toggle.active {
    background: var(--cyan-neon);
    color: #000;
}

/* ==========================================================================
   FLOATING TELEMETRY HUD & RADAR
   ========================================================================== */

.hud-telemetry {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.25rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.sonar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonar-ring-outer {
    position: absolute;
    width: 70%; height: 70%;
    border-radius: 50%;
    border: 1px dashed rgba(6, 182, 212, 0.4);
}

.sonar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(6, 182, 212, 0.5), transparent 60deg);
    animation: sonarSpin 4s linear infinite;
}

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

.sonar-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-neon);
}

.telemetry-info {
    display: flex;
    flex-direction: column;
}

.depth-badge {
    display: flex;
    flex-direction: column;
}

.depth-badge .label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.depth-badge .value {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--cyan-neon);
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.depth-badge .value small {
    font-size: 0.8rem;
    margin-left: 2px;
}

.zone-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.depth-nav-dropdown {
    position: relative;
}

.depth-nav-trigger {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.depth-nav-trigger:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan-neon);
}

.depth-nav-menu {
    position: absolute;
    bottom: 120%;
    right: 0;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--glass-shadow);
}

.depth-nav-dropdown:hover .depth-nav-menu {
    display: flex;
}

.depth-jump-link {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.depth-jump-link:hover {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan-neon);
}

/* ==========================================================================
   SCROLL CONTAINER & SNAP SECTIONS
   ========================================================================== */

.scroll-container {
    width: 100vw;
    height: 100vh;
    padding-top: 76px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container.mode-dive {
    scroll-snap-type: y mandatory;
}

.snap-section {
    width: 100vw;
    height: calc(100vh - 76px);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 4rem;
}

.content-wrapper {
    width: 100%;
    max-width: 1350px;
    display: grid;
    gap: 4rem;
    align-items: center;
}

.layout-left {
    grid-template-columns: 1fr 1.25fr;
}

.layout-right {
    grid-template-columns: 1.25fr 1fr;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 1.5rem;
    perspective: 1000px;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan-neon);
    letter-spacing: 1px;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-neon);
    box-shadow: 0 0 8px var(--cyan-neon);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan-neon) 50%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
}

.hero-stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--glass-shadow);
}

.stat-num {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 2rem;
    color: var(--cyan-neon);
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.scroll-indicator {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.indicator-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--cyan-neon);
}

.arrow-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--cyan-neon);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ==========================================================================
   PROJECT CARDS & 3D TILT SHOWCASE
   ========================================================================== */

.text-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.snap-section.active .text-content {
    opacity: 1;
    transform: translateY(0);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
}

.tag-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tag-ai {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--cyan-neon);
}

.tag-auto {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
}

.tag-media {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.tag-utility {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.tag-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: var(--rose-danger);
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

.title-red {
    color: #ffe4e6;
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-stack-row span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
}

.action-row {
    display: flex;
    gap: 1rem;
}

.btn-inspect {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid var(--cyan-neon);
    color: var(--cyan-neon);
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.btn-inspect:hover {
    background: var(--cyan-neon);
    color: #000;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.btn-red {
    border-color: var(--rose-danger);
    color: var(--rose-danger);
    background: rgba(244, 63, 94, 0.15);
}

.btn-red:hover {
    background: var(--rose-danger);
    color: #fff;
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.6);
}

/* 3D Glass Card Container */
.image-card-container {
    perspective: 1200px;
    width: 100%;
}

.glass-card {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.snap-section.active .glass-card {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.15);
}

.glass-card:hover {
    border-color: var(--cyan-neon);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(6, 182, 212, 0.3);
}

.card-glow-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.glow-red {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.3), transparent 70%);
}

.project-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.7));
    transition: transform 0.5s ease;
}

.glass-card:hover .project-img {
    transform: scale(1.03);
}

.card-overlay-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--cyan-neon);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-red {
    border-color: var(--rose-danger);
    color: var(--rose-danger);
}

/* ==========================================================================
   RESTRICTED GATE SECTION
   ========================================================================== */

.gate-card-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 28px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 50px rgba(6, 182, 212, 0.2);
    overflow: hidden;
}

.gate-scanner-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-neon), transparent);
    animation: scanLine 3s infinite linear;
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(350px); }
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--rose-danger);
    color: var(--rose-danger);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.gate-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.gate-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.btn-unlock-abyss {
    background: linear-gradient(135deg, var(--cyan-glow), var(--blue-primary));
    border: none;
    color: #fff;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.5);
    transition: all 0.3s ease;
}

.btn-unlock-abyss:hover {
    transform: scale(1.06);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.8);
}

.hidden-depths {
    display: none;
}

/* ==========================================================================
   FINALE SECTION
   ========================================================================== */

.finale-wrapper {
    text-align: center;
    max-width: 700px;
}

.finale-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    color: var(--rose-danger);
    text-shadow: 0 0 30px rgba(244, 63, 94, 0.6);
    margin-bottom: 1rem;
}

.finale-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.btn-warp-surface {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid var(--rose-danger);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-warp-surface:hover {
    background: var(--rose-danger);
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.8);
    transform: scale(1.05);
}

/* ==========================================================================
   MATRIX GRID VIEW (TOGGLEABLE MODE)
   ========================================================================== */

.matrix-grid-view {
    padding: 3rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.grid-header h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
}

.grid-header p {
    color: var(--text-muted);
}

.grid-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.grid-card-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s ease;
    cursor: pointer;
}

.grid-card-item:hover {
    border-color: var(--cyan-neon);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px rgba(6, 182, 212, 0.25);
}

.grid-card-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    background: rgba(3, 7, 18, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.grid-card-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.grid-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.grid-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   MODAL INSPECTOR LIGHTBOX
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(25px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-window {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.95), 0 0 60px rgba(6, 182, 212, 0.25);
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--rose-danger);
    border-color: var(--rose-danger);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.modal-media {
    position: relative;
    width: 100%;
    height: 420px;
    background: rgba(3, 7, 18, 0.8);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.modal-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-badge {
    position: absolute;
    bottom: 1rem; left: 1rem;
    background: rgba(3, 7, 18, 0.9);
    border: 1px solid var(--cyan-neon);
    color: var(--cyan-neon);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    margin-top: 0.4rem;
}

.modal-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cyan-neon);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.modal-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-features-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.modal-features-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--cyan-neon);
}

.modal-footer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-modal-action {
    background: var(--cyan-neon);
    border: none;
    color: #000;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-modal-close-sec {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-modal-close-sec:hover { color: #fff; border-color: #fff; }

/* Utility */
.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .top-header { padding: 0 1rem; }
    .search-box { width: 180px; }
    .search-box input:focus { width: 220px; }
    .filter-group { display: none; } /* Show in mobile filter drawer if needed */
    .snap-section { padding: 2rem 1.5rem; }
    .content-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .layout-right .image-card-container { order: -1; }
    .glass-card { height: 350px; }
    .modal-content-grid { grid-template-columns: 1fr; }
    .modal-media { height: 260px; }
}
