* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
}

/* DIGITAL GRID EFFECT */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 0, 0.02) 0%, transparent 50%);
    animation: digitalPulse 8s ease-in-out infinite;
}

@keyframes digitalPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* SCANNER LINES */
.scanner-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.scanner-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: scanner-move 3s ease-in-out infinite;
    box-shadow: 0 0 20px #00ff00;
}

@keyframes scanner-move {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(100vh); opacity: 1; }
}

/* NOISE OVERLAY */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noise-flicker 0.1s infinite;
}

@keyframes noise-flicker {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

/* NAVIGATION */
.darknet-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #00aa00;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 20px;
}

.logo-text {
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
}

.logo-domain {
    color: #00aa00;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #00aa00;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff00;
    border-color: #00aa00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #00ff00;
    transition: all 0.3s ease;
}

/* TERMINAL CONTAINER */
.terminal-container {
    margin-top: 80px;
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    min-height: 80vh;
    margin: 10vh auto 5vh;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 
        0 0 50px rgba(0, 255, 0, 0.3),
        inset 0 0 50px rgba(0, 255, 0, 0.1);
    animation: terminal-glow 2s ease-in-out infinite alternate;
}

@keyframes terminal-glow {
    from { box-shadow: 0 0 50px rgba(0, 255, 0, 0.3), inset 0 0 50px rgba(0, 255, 0, 0.1); }
    to { box-shadow: 0 0 80px rgba(0, 255, 0, 0.5), inset 0 0 80px rgba(0, 255, 0, 0.2); }
}

/* TERMINAL HEADER */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(90deg, #001100, #002200);
    border-bottom: 1px solid #00ff00;
    border-radius: 8px 8px 0 0;
}

.terminal-buttons {
    display: flex;
    gap: 10px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #00ff00;
}

.btn-close { background: #ff0000; }
.btn-minimize { background: #ffff00; }
.btn-maximize { background: #00ff00; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

/* TERMINAL CONTENT */
.terminal-content {
    padding: 20px;
    min-height: calc(80vh - 60px);
}

/* BOOT SEQUENCE */
.boot-sequence {
    margin-bottom: 30px;
}

.boot-line {
    opacity: 0;
    animation: boot-appear 0.5s ease-in forwards;
    margin-bottom: 5px;
    color: #00aa00;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.5s; }
.boot-line:nth-child(4) { animation-delay: 2s; color: #00ff00; }

@keyframes boot-appear {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ASCII LOGO */
.ascii-logo {
    text-align: center;
    margin: 30px 0;
    font-size: 8px;
    line-height: 1;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* STATUS DISPLAY */
.status-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #00aa00;
    background: rgba(0, 255, 0, 0.05);
}

.status-label {
    color: #00aa00;
}

.status-value {
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
}

.status-value.encrypted { color: #00ff00; animation: status-blink 2s infinite; }
.status-value.active { color: #00ff00; animation: status-blink 2s infinite 0.5s; }
.status-value.hidden { color: #00ff00; animation: status-blink 2s infinite 1s; }

@keyframes status-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* ACCESS PANEL */
.access-panel {
    margin: 40px 0;
}

.panel-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.access-card {
    padding: 20px;
    border: 2px solid #00aa00;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.access-card:hover::before {
    left: 100%;
}

.access-card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 30px;
    text-align: center;
    margin-bottom: 15px;
    filter: grayscale(100%);
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
    color: #00ff00;
}

.card-desc {
    text-align: center;
    color: #00aa00;
    margin-bottom: 15px;
    font-size: 12px;
}

.card-status {
    text-align: center;
    color: #00ff00;
    font-weight: bold;
    font-size: 10px;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* COMMAND LINE */
.command-line {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 10px;
    border-top: 1px solid #00aa00;
    background: rgba(0, 0, 0, 0.8);
}

.prompt {
    color: #00aa00;
    margin-right: 10px;
}

.cursor {
    animation: cursor-blink 1s infinite;
    color: #00ff00;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* FLOATING PARTICLES */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* GLITCH OVERLAY */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.1) 50%, transparent 100%);
    animation: glitch-sweep 10s infinite;
}

@keyframes glitch-sweep {
    0%, 90% { opacity: 0; transform: translateX(-100%); }
    95% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
    }
    
    .ascii-logo {
        font-size: 6px;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .status-display {
        grid-template-columns: 1fr;
    }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00aa00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}

/* DARKNET SECTIONS */
.darknet-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #00aa00;
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #00aa00;
    font-weight: 300;
}
