:root {
    --bg-color: #0b0f19;
    --terminal-bg: rgba(17, 24, 39, 0.85);
    --terminal-header: #1f2937;
    --text-color: #e5e7eb;
    --prompt-color: #10b981;
    --command-color: #60a5fa;
    --comment-color: #6b7280;
    --cursor-color: #10b981;
    --accent-color: #a855f7;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background gradient effect */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(11, 15, 25, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.terminal {
    background-color: var(--terminal-bg);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 65vh;
    min-height: 400px;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.2s;
}

.buttons span:hover {
    transform: scale(1.2);
}

.close { background-color: #ef4444; }
.minimize { background-color: #f59e0b; }
.maximize { background-color: #10b981; }

.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--comment-color);
    font-size: 0.85rem;
    user-select: none;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.line {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.prompt {
    color: var(--prompt-color);
    margin-right: 12px;
    font-weight: 500;
}

.command {
    color: var(--command-color);
    text-shadow: 0 0 2px rgba(96, 165, 250, 0.3);
}

.output {
    color: var(--text-color);
    width: 100%;
    margin-top: 4px;
    margin-bottom: 16px;
    padding-left: 2px;
}

.output-dim {
    color: var(--comment-color);
}

.output-highlight {
    color: var(--accent-color);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--cursor-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
    box-shadow: 0 0 8px var(--cursor-color);
}

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

.social-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-links a::before {
    content: "→";
    margin-right: 8px;
    color: var(--command-color);
    transition: transform 0.3s;
}

.social-links a:hover {
    color: var(--prompt-color);
}

.social-links a:hover::before {
    transform: translateX(4px);
    color: var(--prompt-color);
}

/* Scrollbar styles */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .terminal-body {
        font-size: 0.85rem;
        padding: 15px;
    }
    
    .terminal {
        height: 75vh;
    }
    
    .title {
        display: none;
    }
}
