/* Enhanced Black Ops Market Styles */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000000;
    color: #ccfaff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Enhanced Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 225, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 74, 51, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 30%, rgba(138, 43, 226, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #001122 25%, #000a0f 50%, #001122 75%, #000000 100%);
    animation: bgPulse 12s ease-in-out infinite alternate, bgShift 20s linear infinite;
}

@keyframes bgPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes bgShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Enhanced Vertical Navigation Sidebar */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    border-right: 3px solid transparent;
    border-image: linear-gradient(45deg, #00ffcc, #00ffe1, #ff4a33) 1;
    z-index: 1000;
    padding: 2rem 0;
    box-shadow: 
        0 0 40px rgba(0, 255, 204, 0.4),
        inset -1px 0 20px rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
}

.nav-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 255, 204, 0.05) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(255, 74, 51, 0.05) 100%);
    pointer-events: none;
}

.nav-logo {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    position: relative;
}

.logo-glow {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #00ffcc;
    text-shadow: 
        0 0 10px #00ffcc,
        0 0 20px #00ffcc,
        0 0 30px #00ffcc,
        0 0 40px #00ffcc;
    animation: logoFlicker 4s ease-in-out infinite alternate, logoGlow 6s ease-in-out infinite;
    position: relative;
}

.logo-glow::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoSweep 3s ease-in-out infinite;
}

.logo-sub {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #00ffe1;
    margin-top: 0.5rem;
    letter-spacing: 4px;
    opacity: 0.9;
    animation: logoSubPulse 3s ease-in-out infinite alternate;
}

@keyframes logoFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes logoGlow {
    0%, 100% { 
        text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc, 0 0 40px #00ffcc; 
    }
    50% { 
        text-shadow: 0 0 20px #00ffcc, 0 0 30px #00ffcc, 0 0 40px #00ffcc, 0 0 50px #00ffcc, 0 0 60px #00ffcc; 
    }
}

@keyframes logoSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes logoSubPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin: 0.3rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    color: #ccfaff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #00ffcc;
    border-left-color: #00ffcc;
    background: rgba(0, 255, 204, 0.12);
    box-shadow: 
        inset 0 0 25px rgba(0, 255, 204, 0.15),
        0 0 15px rgba(0, 255, 204, 0.2);
    transform: translateX(8px);
}

.nav-link.active {
    color: #00ffcc;
    border-left-color: #00ffcc;
    background: rgba(0, 255, 204, 0.18);
    box-shadow: 
        inset 0 0 30px rgba(0, 255, 204, 0.25),
        0 0 20px rgba(0, 255, 204, 0.3);
    transform: translateX(12px);
}

.nav-icon {
    font-size: 1.3rem;
    margin-right: 1.2rem;
    width: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 10px currentColor;
}

.nav-text {
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

/* Enhanced Main Content */
.main-content {
    margin-left: 300px;
    min-height: 100vh;
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 20%, rgba(0, 255, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(255, 74, 51, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    color: #00ffcc;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    0% { width: 100px; opacity: 0.5; }
    100% { width: 150px; opacity: 1; }
}

.neon-glow {
    text-shadow: 
        0 0 10px #00ffcc,
        0 0 20px #00ffcc,
        0 0 30px #00ffcc,
        0 0 40px #00ffcc,
        0 0 50px #00ffcc;
    animation: neonPulse 3s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% { 
        text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc, 0 0 40px #00ffcc; 
    }
    100% { 
        text-shadow: 0 0 20px #00ffcc, 0 0 30px #00ffcc, 0 0 40px #00ffcc, 0 0 50px #00ffcc, 0 0 60px #00ffcc; 
    }
}

/* Enhanced Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(45deg, rgba(0, 255, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(0, 255, 225, 0.12) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300ffcc" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    color: #00ffcc;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    position: relative;
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.8s infinite;
    color: #ff4a33;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.8s infinite;
    color: #8a2be2;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-3px, -3px); }
    20% { transform: translate(3px, 3px); }
    30% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(-1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(3px, 3px); }
    20% { transform: translate(-3px, -3px); }
    30% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    50% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    70% { transform: translate(1px, -1px); }
    80% { transform: translate(-1px, 1px); }
    90% { transform: translate(1px, 1px); }
}

.hero-subtitle {
    font-size: 1.6rem;
    color: #ccfaff;
    margin-bottom: 3rem;
    opacity: 0.95;
    border-right: 2px solid #00ffcc;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ffcc; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 204, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.3);
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    color: #00ffe1;
    text-shadow: 0 0 15px #00ffe1;
    animation: statCounter 2s ease-out;
}

@keyframes statCounter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-label {
    font-size: 1.1rem;
    color: #ccfaff;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Enhanced Card Styles */
.feature-card, .security-card, .level-card, .warning-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before, .security-card::before, .level-card::before, .warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before, .security-card:hover::before, 
.level-card:hover::before, .warning-card:hover::before {
    left: 100%;
}

/* Enhanced Onion Links Section */
.onion-section {
    background: rgba(0, 255, 204, 0.03);
    border-top: 2px solid rgba(0, 255, 204, 0.2);
    border-bottom: 2px solid rgba(0, 255, 204, 0.2);
    position: relative;
}

.onion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(0, 255, 204, 0.01) 50px,
            rgba(0, 255, 204, 0.01) 100px
        );
    pointer-events: none;
}

.onion-link {
    display: block;
    color: #00ffe1;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    margin: 0.8rem 0;
    background: rgba(0, 255, 225, 0.08);
    border: 2px solid rgba(0, 255, 225, 0.3);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.onion-link::before {
    content: '🔗';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: all 0.4s ease;
    opacity: 0;
}

.onion-link:hover::before {
    left: 15px;
    opacity: 1;
}

.onion-link:hover {
    color: #ffaa88;
    background: rgba(255, 170, 136, 0.15);
    border-color: #ffaa88;
    box-shadow: 
        0 0 20px rgba(255, 170, 136, 0.4),
        inset 0 0 20px rgba(255, 170, 136, 0.1);
    transform: translateX(15px) scale(1.02);
    padding-left: 3rem;
}

/* Enhanced Status Indicator */
.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 
        0 0 15px #00ffcc,
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    animation: statusPulse 2.5s ease-in-out infinite, statusGlow 4s ease-in-out infinite alternate;
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #00ffcc;
    border-radius: 50%;
    opacity: 0;
    animation: statusRipple 2s ease-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

@keyframes statusGlow {
    0% { box-shadow: 0 0 15px #00ffcc, inset 0 0 5px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 25px #00ffcc, 0 0 35px #00ffcc, inset 0 0 10px rgba(255, 255, 255, 0.5); }
}

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

/* Enhanced Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    background: rgba(0, 255, 204, 0.2);
    border: 3px solid #00ffcc;
    border-radius: 12px;
    padding: 0.8rem;
    color: #00ffcc;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.nav-toggle:hover {
    background: rgba(0, 255, 204, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .nav-sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
    }
    
    .nav-sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content::before {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffcc, #00ffe1);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ffe1, #ffaa88);
    box-shadow: 0 0 15px rgba(0, 255, 225, 0.7);
}

/* Enhanced Selection */
::selection {
    background: rgba(0, 255, 204, 0.4);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}

::-moz-selection {
    background: rgba(0, 255, 204, 0.4);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 204, 0.3);
    border-top: 3px solid #00ffcc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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