@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0a0e27;
    color: #00ff00;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 3px
        );
    pointer-events: none;
    z-index: 1;
}

.terminal {
    width: 90%;
    max-width: 800px;
    background: #1a1e2e;
    border-radius: 10px;
    box-shadow: 
        0 0 40px rgba(0, 255, 0, 0.1),
        0 0 80px rgba(0, 255, 0, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.terminal-header {
    background: #2d3142;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #00ff00;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.red {
    background: #ff5f56;
}

.terminal-button.yellow {
    background: #ffbd2e;
}

.terminal-button.green {
    background: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: #00ff00;
    font-size: 14px;
}

.terminal-body {
    padding: 20px;
    min-height: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1e2e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

.command-line {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.prompt {
    color: #00ff00;
    margin-right: 10px;
}

.command {
    color: #ffffff;
}

.typed {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1s steps(20, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.output {
    margin: 20px 0;
    color: #b8c5d6;
}

.ascii-art {
    color: #00ff00;
    margin: 20px 0;
    text-align: center;
}

.ascii-art pre {
    font-size: 12px;
    line-height: 1.2;
    display: inline-block;
    text-align: left;
}

.profile-info {
    margin: 20px 0;
    line-height: 1.8;
}

.profile-info p {
    margin: 5px 0;
}

.green {
    color: #00ff00;
}

.white {
    color: #ffffff;
}

.links-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: #b8c5d6;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    transition: width 0.3s ease;
}

.link-item:hover {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
    transform: translateX(10px);
}

.link-item:hover::before {
    width: 100%;
}

.link-item:hover .link-name {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.permissions {
    font-size: 12px;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
}

.icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.link-name {
    flex: 1;
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive design */
@media (max-width: 600px) {
    .terminal {
        width: 95%;
        margin: 10px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .ascii-art pre {
        font-size: 8px;
    }
    
    .link-item {
        padding: 10px;
        font-size: 14px;
    }
    
    .permissions {
        display: none;
    }
}

/* Glitch effect */
@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

.terminal-title:hover {
    animation: glitch 0.5s infinite;
}
