@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Share+Tech+Mono&family=Courier+Prime:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    background: #000000;
    color: #00ff41;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    font-weight: normal;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Retro CRT effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 65, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 3px
        );
    pointer-events: none;
    z-index: 1000;
    animation: scanlines 2s linear infinite;
}

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

/* Terminal Container */
.terminal-container {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #001100 0%, #000000 50%, #001100 100%);
    display: flex;
    flex-direction: column;
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 50px rgba(0, 255, 65, 0.5),
        inset 0 0 50px rgba(0, 255, 65, 0.1);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header Layout */
.header-layout {
    display: flex;
    background: linear-gradient(90deg, #003300 0%, #001100 50%, #003300 100%);
    border-bottom: 2px solid #00ff41;
    padding: 15px 20px;
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.3);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.logo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ascii-logo pre {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 9px;
    color: #00ff41;
    text-shadow: 
        0 0 5px rgba(0, 255, 65, 0.8),
        0 0 10px rgba(0, 255, 65, 0.6),
        0 0 15px rgba(0, 255, 65, 0.4);
    animation: glow-pulse 3s ease-in-out infinite;
    line-height: 1.0;
    margin: 0;
    white-space: pre;
    letter-spacing: -1px;
    font-weight: normal;
}

.logo-subtitle {
    margin-top: 10px;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
}

.corp-name {
    color: #00ff41;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
    margin-bottom: 3px;
}

.user-info {
    color: #ffaa00;
    font-size: 10px;
    margin-bottom: 2px;
}

.system-info {
    color: #ff4400;
    font-size: 10px;
    animation: security-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 3px rgba(0, 255, 65, 0.6),
            0 0 6px rgba(0, 255, 65, 0.4),
            0 0 9px rgba(0, 255, 65, 0.2);
    }
    50% { 
        text-shadow: 
            0 0 5px rgba(0, 255, 65, 0.8),
            0 0 10px rgba(0, 255, 65, 0.6),
            0 0 15px rgba(0, 255, 65, 0.4);
    }
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid #00ff41;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 99;
    flex-shrink: 0;
}

.status-left, .status-right {
    display: flex;
    gap: 20px;
}

.status-item {
    color: #00ff41;
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.8);
}

.status-online {
    color: #00ff00;
    animation: blink 2s ease-in-out infinite;
}

.security-level {
    color: #ff4400;
    animation: security-pulse 1.5s ease-in-out infinite;
}

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

@keyframes security-pulse {
    0%, 100% { color: #ff4400; }
    50% { color: #ff8800; }
}

/* Main Terminal */
.main-terminal {
    flex: 1;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    margin: 20px;
    border-radius: 3px;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 65, 0.2),
        0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.terminal-output {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.95);
    color: #00ff41;
    font-family: 'Courier Prime', 'Courier New', monospace;
    letter-spacing: 0;
    font-weight: bold;
    white-space: pre-wrap;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    text-shadow: 0 0 1px rgba(0, 255, 65, 0.5);
    filter: brightness(1.1);
}

.terminal-output::-webkit-scrollbar {
    width: 12px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #00ff41;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff41 0%, #007722 100%);
    border-radius: 6px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ff88 0%, #00aa44 100%);
}

/* Terminal Input */
.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #00ff41;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 0, 0, 0.9) 10%);
}

.prompt {
    color: #00ff41;
    margin-right: 10px;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 255, 65, 0.4);
    white-space: nowrap;
    font-family: 'Courier Prime', 'Courier New', monospace;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 15px;
    outline: none;
    text-shadow: 0 0 1px rgba(0, 255, 65, 0.3);
    letter-spacing: 0;
    font-weight: bold;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.terminal-input::selection {
    background: rgba(0, 255, 65, 0.3);
}

.cursor {
    width: 8px;
    height: 18px;
    background: #00ff41;
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

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

/* Command Output Styling */
.command-output {
    margin: 5px 0;
    padding: 0;
    animation: command-fade-in 0.3s ease-out;
}

@keyframes command-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-output.command-output {
    color: #00ff41;
    opacity: 1;
    filter: brightness(1.2);
}

.command-output.system-output {
    color: #00ff41;
    font-style: italic;
    filter: brightness(1.1);
}

.command-output.error-output {
    color: #ff4444;
    text-shadow: 0 0 2px rgba(255, 68, 68, 0.5);
    filter: brightness(1.1);
}

/* ASCII Footer */
/* Media Section */
.media-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.media-title {
    color: #00ff41;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
    margin-bottom: 5px;
}

.media-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.media-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 6px;
    border: 1px solid;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 9px;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    min-width: 50px;
}

.media-btn::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.5s;
}

.media-btn:hover::before {
    left: 100%;
}

.media-icon {
    width: 20px;
    height: 20px;
    transition: filter 0.3s ease;
}

/* Media Button Colors */
.media-btn.telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.media-btn.telegram:hover {
    background: #0088cc;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.6);
    transform: translateY(-2px);
}

.media-btn.telegram .media-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(67%) saturate(3456%) hue-rotate(186deg) brightness(93%) contrast(96%);
}

.media-btn.telegram:hover .media-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.media-btn.youtube {
    border-color: #ff0000;
    color: #ff0000;
}

.media-btn.youtube:hover {
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}

.media-btn.youtube .media-icon {
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(7482%) hue-rotate(0deg) brightness(104%) contrast(115%);
}

.media-btn.youtube:hover .media-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.media-btn.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.media-btn.twitter:hover {
    background: #1da1f2;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.6);
    transform: translateY(-2px);
}

.media-btn.twitter .media-icon {
    filter: brightness(0) saturate(100%) invert(58%) sepia(94%) saturate(1478%) hue-rotate(182deg) brightness(96%) contrast(94%);
}

.media-btn.twitter:hover .media-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.media-btn.github {
    border-color: #ffffff;
    color: #ffffff;
}

.media-btn.github:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.media-btn.github .media-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.media-btn.github:hover .media-icon {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #001100 0%, #000000 100%);
    border: 2px solid #00ff41;
    border-radius: 5px;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
    position: relative;
    box-shadow: 
        0 0 50px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #00ff41;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

.modal-close:hover {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 1);
    transform: scale(1.2);
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    display: block;
    margin: 0 auto;
}

.modal-body iframe {
    border: 1px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Enhanced Command Styling */
.ascii-art {
    font-family: 'Courier Prime', 'Courier New', monospace;
    white-space: pre;
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
    margin: 10px 0;
    line-height: 1.0;
    letter-spacing: 0;
    font-size: 13px;
}

.project-info {
    padding-left: 15px;
    margin: 10px 0;
}

.skill-bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.skill-name {
    width: 120px;
    color: #00ff41;
}

.skill-progress {
    flex: 1;
    height: 8px;
    background: rgba(0, 255, 65, 0.2);
    position: relative;
    margin: 0 10px;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41 0%, #007722 100%);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        border: 1px solid #00ff41;
    }
    
    .header-layout {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 13px 10px;
    }
    
    .logo-section {
        align-items: center;
    }
    
    .ascii-logo pre {
        font-size: 7px;
        letter-spacing: -1px;
    }
    
    .corp-name {
        font-size: 11px;
    }
    
    .user-info, .system-info {
        font-size: 8px;
    }
    
    .media-section {
        align-items: center;
    }
    
    .media-title {
        font-size: 9px;
    }
    
    .media-links {
        justify-content: center;
        gap: 7px;
    }
    
    .media-btn {
        padding: 7px 5px;
        min-width: 40px;
        font-size: 7px;
    }
    
    .media-icon {
        width: 16px;
        height: 16px;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 8px 10px;
        font-size: 9px;
    }
    
    .status-left, .status-right {
        justify-content: center;
        gap: 8px;
    }
    
    .main-terminal {
        margin: 10px;
        min-height: 300px;
    }
    
    .terminal-output {
        padding: 15px;
        font-size: 12px;
    }
    
    .terminal-input-line {
        padding: 15px 20px;
    }
    
    .terminal-input {
        font-size: 12px;
    }
    
    .prompt {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-layout {
        padding: 17px 10px;
        gap: 13px;
    }
    
    .ascii-logo pre {
        font-size: 5px;
        letter-spacing: -1px;
    }
    
    .corp-name {
        font-size: 12px;
    }
    
    .user-info, .system-info {
        font-size: 9px;
    }
    
    .media-title {
        font-size: 11px;
    }
    
    .media-btn {
        padding: 8px 7px;
        min-width: 47px;
        font-size: 8px;
        gap: 3px;
    }
    
    .media-icon {
        width: 19px;
        height: 19px;
    }
    
    .status-bar {
        font-size: 9px;
        padding: 8px 10px;
    }
    
    .main-terminal {
        margin: 8px;
        min-height: 250px;
    }
    
    .terminal-output {
        font-size: 10px;
        padding: 15px;
        line-height: 1.3;
    }
    
    .terminal-input {
        font-size: 10px;
    }
    
    .prompt {
        font-size: 10px;
        margin-right: 5px;
    }
    
    .cursor {
        width: 8px;
        height: 18px;
    }
}

@media (max-width: 320px) {
    .ascii-logo pre {
        font-size: 4px;
        letter-spacing: -1px;
    }
    
    .corp-name {
        font-size: 11px;
    }
    
    .user-info, .system-info {
        font-size: 8px;
    }
    
    .media-btn {
        min-width: 40px;
        font-size: 7px;
        padding: 7px 5px;
    }
    
    .media-icon {
        width: 16px;
        height: 16px;
    }
    
    .terminal-output {
        font-size: 8px;
        padding: 15px;
    }
    
    .terminal-input, .prompt {
        font-size: 8px;
    }
}