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

body {
    font-family: 'Fira Code', monospace;
    background: #000000;
    color: #00ff00;
    overflow-x: hidden;
    cursor: crosshair;
    position: relative;
    min-height: 100vh;
}







@keyframes matrix-rain {
    0% { transform: translateY(-100vh) rotateZ(0deg); }
    100% { transform: translateY(100vh) rotateZ(360deg); }
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Enhanced Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(
            transparent 48%, 
            rgba(0, 255, 255, 0.04) 49%,
            rgba(255, 0, 255, 0.03) 50%,
            rgba(0, 255, 255, 0.04) 51%,
            transparent 52%
        ),
        linear-gradient(
            90deg,
            transparent 48%, 
            rgba(255, 20, 147, 0.02) 49%,
            rgba(0, 255, 127, 0.03) 50%,
            rgba(255, 20, 147, 0.02) 51%,
            transparent 52%
        ),
        linear-gradient(
            45deg,
            transparent 48%, 
            rgba(255, 215, 0, 0.02) 49%,
            rgba(138, 43, 226, 0.02) 50%,
            rgba(255, 215, 0, 0.02) 51%,
            transparent 52%
        );
    background-size: 100% 4px, 4px 100%, 8px 8px;
    animation: scanlines 0.1s linear infinite, hologram 4s ease-in-out infinite, chromatic-drift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chromatic-drift {
    0%, 100% { 
        filter: hue-rotate(0deg);
        transform: translateX(0);
    }
    25% { 
        filter: hue-rotate(90deg);
        transform: translateX(1px);
    }
    50% { 
        filter: hue-rotate(180deg);
        transform: translateX(-1px);
    }
    75% { 
        filter: hue-rotate(270deg);
        transform: translateX(0.5px);
    }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Terminal Styling */
.terminal-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(45, 45, 65, 0.95));
    border: 2px solid #00ffff;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.terminal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: header-scan 4s linear infinite;
    border-radius: 15px 15px 0 0;
}

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

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.close { background: #ff5f56; }
.btn.minimize { background: #ffbd2e; }
.btn.maximize { background: #27ca3f; }

.btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.terminal-title {
    color: #00ff00;
    font-weight: 500;
    text-shadow: 0 0 10px #00ff00;
}

.terminal-body {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 35, 0.95));
    border: 2px solid #00ffff;
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 15px;
    flex: 1;
    overflow-y: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 50px rgba(0, 100, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: terminal-sweep 6s linear infinite;
}

@keyframes terminal-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.file-content {
    margin: 10px 0;
}

.info-section {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.prompt-line {
    margin: 10px 0;
}

.input-line {
    margin-top: 10px;
}

.command-output {
    flex: 1;
    overflow-y: auto;
    margin: 10px 0;
}

/* Boot Sequence */
.boot-sequence {
    margin-bottom: 15px;
}

.boot-line {
    color: #00ff00;
    margin: 3px 0;
    opacity: 0;
    animation: fadeInText 0.5s ease forwards;
    text-shadow: 0 0 5px #00ff00;
    font-size: 14px;
}

.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; }
.boot-line:nth-child(5) { animation-delay: 2.5s; color: #ffff00; }

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

/* Typing Effect */
.typing-effect {
    border-right: 2px solid #00ff00;
    animation: typing 3s steps(30, 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: #00ff00; }
}

/* ASCII Art */
.ascii-art {
    color: #00ffff;
    font-size: 10px;
    line-height: 0.9;
    margin: 10px 0;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff;
    animation: holographic-glow 3s ease-in-out infinite alternate;
    position: relative;
    font-weight: bold;
    letter-spacing: 0.3px;
    white-space: pre;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.ascii-art::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    color: #ff00ff;
    opacity: 0.7;
    animation: glitch-shift 4s linear infinite;
}

@keyframes holographic-glow {
    from { 
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
        transform: scale(1);
    }
    to { 
        text-shadow: 
            0 0 10px #00ffff, 
            0 0 20px #00ffff, 
            0 0 30px #00ffff,
            0 0 40px #00ffff;
        transform: scale(1.01);
    }
}

@keyframes glitch-shift {
    0%, 90%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-1px); }
}

/* Info Section */
.info-section {
    margin: 20px 0;
    line-height: 1.8;
}

.label {
    color: #ffff00;
    font-weight: bold;
    text-shadow: 0 0 5px #ffff00;
}

.status-active {
    color: #00ff00;
    animation: pulse 1s infinite;
}

.clearance {
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 5px #ff0000;
}

.location {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.skills-list {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation Menu */
.navigation-menu {
    margin: 15px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.menu-item {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(0, 100, 255, 0.05),
        rgba(255, 0, 255, 0.08));
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    backdrop-filter: blur(5px);
    overflow: hidden;
    font-size: 14px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.menu-item::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(0, 100, 255, 0.05),
        rgba(255, 0, 255, 0.08));
    border-radius: 8px;
    z-index: -1;
}

.menu-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0, 255, 255, 0.3),
        0 0 50px rgba(255, 0, 255, 0.2);
}

.menu-item:hover::before {
    opacity: 1;
    animation: border-flow 2s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.menu-icon {
    font-size: 20px;
    filter: grayscale(100%) brightness(0) invert(1);
}

/* Command Input */
.prompt {
    color: #ffff00;
    margin-right: 10px;
    text-shadow: 0 0 5px #ffff00;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.command-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: #00ff00;
}

.command-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.command-output {
    flex: 1;
    overflow-y: auto;
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #00ff00;
    border-radius: 0 5px 5px 0;
    min-height: 50px;
}

/* System Info Bar */
.system-info {
    margin-top: 10px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.9), 
        rgba(20, 20, 40, 0.9), 
        rgba(0, 0, 0, 0.9));
    border-top: 2px solid #00ffff;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.info-bar {
    display: flex;
    justify-content: space-around;
    font-size: 11px;
    color: #00ffff;
    position: relative;
}

.info-bar::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00ffff 50%, 
        transparent 100%);
    animation: data-flow 3s linear infinite;
}

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

.info-bar span {
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff;
    position: relative;
}

.info-bar span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00ffff;
    animation: text-underline 2s ease-in-out infinite;
}

@keyframes text-underline {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

/* Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background: #0a0a0a;
    border: 2px solid #ff0000;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.popup-header {
    background: #1a0000;
    padding: 15px 20px;
    border-bottom: 1px solid #ff0000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ff0000;
    font-weight: bold;
}

.close-popup {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: scale(1.2);
}

.popup-body {
    padding: 20px;
    text-align: center;
}

.alert-text {
    color: #ff0000;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    animation: alertBlink 1s infinite;
}

.warning-text {
    color: #00ff00;
    margin-top: 15px;
}

@keyframes alertBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    
    .ascii-art {
        font-size: 7px;
        letter-spacing: 0.2px;
        overflow-x: scroll;
        padding: 6px;
        line-height: 0.8;
    }
    
    .navigation-menu {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px 0;
    }
    
    .menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .terminal-header {
        padding: 8px 15px;
    }
    
    .terminal-body {
        padding: 10px;
    }
    
    .boot-line {
        font-size: 12px;
        margin: 2px 0;
    }
}

/* Special Effects */
.glitch {
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.matrix-mode {
    background: linear-gradient(45deg, #000, #001100, #000);
    animation: matrix-bg 2s ease infinite;
}

@keyframes matrix-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}









/* Matrix Rain Background */
.matrix-rain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #000000 0%, #001100 50%, #000000 100%);
}

.matrix-column {
    position: absolute;
    top: 0;
    width: 20px;
    height: 100vh;
    overflow: hidden;
    animation: matrix-flicker 4s ease-in-out infinite;
}

.matrix-char {
    position: absolute;
    color: #00ff00;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
    animation: matrix-fall 3s linear infinite;
    opacity: 0;
}

.matrix-char.bright {
    color: #ffffff;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    opacity: 1;
}

.matrix-char.dim {
    color: #004400;
    opacity: 0.6;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes matrix-flicker {
    0%, 100% { 
        filter: brightness(1) contrast(1);
    }
    50% { 
        filter: brightness(1.2) contrast(1.1);
    }
}

/* Matrix glitch effect */
.matrix-glitch {
    animation: matrix-glitch-effect 0.1s linear infinite;
}

@keyframes matrix-glitch-effect {
    0% { transform: translateX(0); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}
