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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 25% 25%, #111 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #111 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

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

.container {
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal {
    background: #000;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 
        0 20px 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    from { box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    to { box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 16px;
    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%;
    animation: buttonPulse 2s ease-in-out infinite;
}

.btn.close {
    background: #ff5f57;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.maximize {
    background: #28ca42;
}

@keyframes buttonPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.terminal-title {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.terminal-body {
    padding: 20px;
    min-height: 400px;
}

.code-line {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: typeIn 0.8s ease-out;
}

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

.prompt {
    color: #1100ff;
    font-weight: 600;
}

.command {
    color: #fff;
    font-weight: 400;
}

.profile-section {
    margin: 20px 0;
    animation: slideIn 1.2s ease-out 0.5s both;
}

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

.ascii-art {
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    margin: 20px 0;
}

.ascii-art pre {
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.links-section {
    margin: 20px 0;
}

.file-entry {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInLeft 0.6s ease-out;
    transition: all 0.3s ease;
}

.file-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    border-left: 3px solid #1100ff;
}

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

.permissions {
    color: #666;
    font-size: 11px;
    width: 80px;
    flex-shrink: 0;
}

.date {
    color: #888;
    font-size: 11px;
    width: 80px;
    flex-shrink: 0;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-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 ease;
}

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

.link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.file-icon {
    font-size: 16px;
}

.file-name {
    font-weight: 400;
    flex: 1;
}

.arrow {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #001eff;
}

.link-btn:hover .arrow {
    opacity: 1;
}

.typing-animation {
    animation: typing 3s steps(15) infinite;
}

@keyframes typing {
    0%, 90%, 100% { width: 0; }
    30%, 60% { width: 15ch; }
}

.cursor {
    animation: blink 1s infinite;
    color: #2f00ff;
}

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

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    animation: fadeIn 2s ease-out 1s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

.status-item {
    transition: color 0.3s ease;
}

.status-item:hover {
    color: #1100ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .file-entry {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .permissions,
    .date {
        width: auto;
        font-size: 10px;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .ascii-art pre {
        font-size: 8px;
    }
    
    .link-btn {
        padding: 12px;
    }
    
    .terminal-header {
        padding: 10px 12px;
    }
}