@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

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

body {
    background: #000;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-container {
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    background: #0c0c0c;
    border: 1px solid #00ff41;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    overflow: hidden;
    position: relative;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f57; }
.minimize { background: #ffbd2e; }
.maximize { background: #28ca42; }

.terminal-title {
    color: #00ff41;
    font-size: 14px;
    font-weight: 500;
}

.terminal-body {
    height: calc(100% - 50px);
    position: relative;
    overflow: hidden;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.1) 2px,
        rgba(0, 255, 65, 0.1) 4px
    );
    animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.ascii-logo {
    color: #00ff41;
    text-align: center;
    margin-bottom: 30px;
    font-size: 8px;
    line-height: 1;
}

.ascii-logo pre {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.terminal-output {
    color: #00ff41;
    font-size: 14px;
    line-height: 1.6;
}

.line {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #00ff41;
    margin-right: 5px;
}

.command {
    color: #ffffff;
}

.typing {
    overflow: hidden;
    border-right: 2px solid #00ff41;
    white-space: nowrap;
    animation: typing 3s steps(30) 1s both, blink 1s infinite;
}

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

@keyframes blink {
    50% { border-color: transparent; }
}

.output-text {
    margin: 20px 0;
    padding-left: 20px;
}

.output-text p {
    margin-bottom: 8px;
    color: #cccccc;
}

.glitch-text {
    position: relative;
    color: #00ff41 !important;
    animation: glitch 2s 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.5s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

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

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(6% 0 9% 0); }
    40% { clip-path: inset(71% 0 8% 0); }
    60% { clip-path: inset(95% 0 15% 0); }
    80% { clip-path: inset(54% 0 86% 0); }
    100% { clip-path: inset(25% 0 58% 0); }
}

.highlight {
    color: #ff6b6b !important;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    font-weight: 500;
}

.connections {
    margin: 20px 0;
    padding-left: 20px;
}

.connection-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-type {
    color: #666;
    font-size: 12px;
    width: 120px;
}

.connection-item a {
    color: #00ff41;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.connection-item a:hover {
    text-shadow: 0 0 10px currentColor;
    transform: translateX(5px);
}

.connection-item a::before {
    content: './';
    margin-right: 5px;
    opacity: 0.7;
}

.link-twitter:hover { color: #1da1f2; }
.link-email:hover { color: #ea4335; }
.link-discord:hover { color: #7289da; }

.cursor-line {
    margin-top: 30px;
}

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Responsive design */
@media (max-width: 768px) {
    .terminal-container {
        width: 95vw;
        height: 95vh;
    }
    
    .ascii-logo {
        font-size: 6px;
    }
    
    .terminal-output {
        font-size: 12px;
    }
    
    .content {
        padding: 15px;
    }
}

/* Loading effect for the entire page */
.terminal-container {
    animation: terminal-boot 2s ease-out;
}

@keyframes terminal-boot {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}