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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --terminal-bg: #0d1117;
    --terminal-border: #30363d;
    --text-primary: #00ff41;
    --text-secondary: #58a6ff;
    --text-muted: #8b949e;
    --prompt-color: #7ee787;
    --path-color: #79c0ff;
    --cursor-color: #00ff41;
    --link-hover: #ffa657;
    --shadow-color: rgba(0, 255, 65, 0.3);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(88, 166, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.terminal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    background: var(--terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--terminal-border);
    animation: terminalEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.terminal-header {
    background: linear-gradient(180deg, #21262d 0%, #161b22 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--terminal-border);
}

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

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

.btn-close {
    background: linear-gradient(135deg, #ff5f56 0%, #ff3b30 100%);
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.4);
}

.btn-minimize {
    background: linear-gradient(135deg, #ffbd2e 0%, #ff9500 100%);
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.4);
}

.btn-maximize {
    background: linear-gradient(135deg, #27c93f 0%, #00d084 100%);
    box-shadow: 0 0 8px rgba(0, 208, 132, 0.4);
}

.btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.terminal-title {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    text-align: center;
    margin-right: 60px;
}

.terminal-body {
    padding: 24px;
    min-height: 500px;
    background: var(--terminal-bg);
    position: relative;
}

.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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;
    animation: scanlines 8s linear infinite;
}

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

.terminal-line {
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInLine 0.4s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.4s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }

@keyframes fadeInLine {
    to { opacity: 1; }
}

.prompt {
    color: var(--prompt-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(126, 231, 135, 0.5);
}

.path {
    color: var(--path-color);
    font-weight: 600;
}

.ascii-art {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.2;
    margin: 20px 0;
    white-space: pre;
    font-weight: 500;
    opacity: 0;
    animation: fadeInAscii 0.6s ease forwards;
    animation-delay: 0.6s;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
}

@keyframes fadeInAscii {
    to { opacity: 1; }
}

.output {
    margin-left: 20px;
    margin-bottom: 16px;
    opacity: 0;
}

#name-output {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInOutput 0.5s ease forwards, glow 2s ease-in-out infinite;
    animation-delay: 1.8s, 2.3s;
    text-shadow: 0 0 30px var(--shadow-color);
}

@keyframes fadeInOutput {
    to { opacity: 1; }
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.social-links {
    animation: fadeInOutput 0.6s ease forwards;
    animation-delay: 2.8s;
}

.link-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.link-item:hover {
    background: rgba(88, 166, 255, 0.1);
    transform: translateX(8px);
}

.permissions {
    color: var(--text-muted);
    font-size: 13px;
    min-width: 100px;
}

.file-name a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.file-name a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--link-hover);
    transition: width 0.3s ease;
}

.file-name a:hover {
    color: var(--link-hover);
    text-shadow: 0 0 15px rgba(255, 166, 87, 0.6);
    transform: translateX(4px);
}

.file-name a:hover::after {
    width: 100%;
}

.icon {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.file-name a:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

.cursor-line {
    animation-delay: 3.2s;
}

.cursor {
    display: inline-block;
    background: var(--cursor-color);
    color: var(--terminal-bg);
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 10px var(--cursor-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        max-width: 100%;
    }
    
    .terminal-body {
        padding: 16px;
        min-height: 400px;
    }
    
    #name-output {
        font-size: 24px;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .permissions {
        display: none;
    }
    
    .terminal-title {
        font-size: 11px;
        margin-right: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    #name-output {
        font-size: 20px;
    }
    
    .terminal-body {
        padding: 12px;
    }
}
