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

:root {
    --primary-color: #e5e7eb;
    --secondary-color: #9ca3af;
    --accent-color: #60a5fa;
    --bg-color: #0f0f0f;
    --terminal-bg: #1a1a1a;
    --terminal-header: #2d2d2d;
    --text-color: #e5e7eb;
    --text-secondary: #9ca3af;
    --border-color: #404040;
    --linkedin-color: #0077b5;
    --github-color: #fff;
    --medium-color: #00ab6c;
    --credly-color: #ff6b00;
    --email-color: #60a5fa;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    z-index: -1;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(96, 165, 250, 0.03) 2px,
            rgba(96, 165, 250, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(96, 165, 250, 0.03) 2px,
            rgba(96, 165, 250, 0.03) 4px
        );
    animation: matrix-scroll 20s linear infinite;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Terminal Window */
.terminal-window {
    background: var(--terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(96, 165, 250, 0.3);
    animation: slideIn 0.8s ease-out;
}

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

.terminal-header {
    background: var(--terminal-header);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 30px;
    font-size: 14px;
    line-height: 1.6;
}

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

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

.command {
    color: #fff;
    animation: typewriter 0.5s steps(20);
}

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

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

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

.output {
    margin: 20px 0 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

.ascii-art {
    font-size: 10px;
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 400;
    white-space: pre;
    overflow-x: auto;
}

.info-section {
    margin-top: 20px;
}

.role {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.description {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Links Container */
.links-container {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.link-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.link-card[data-type="linkedin"]:hover {
    border-color: var(--linkedin-color);
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.3);
}

.link-card[data-type="github"]:hover {
    border-color: #fff;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.link-card[data-type="medium"]:hover {
    border-color: var(--medium-color);
    box-shadow: 0 5px 20px rgba(0, 171, 108, 0.3);
}

.link-card[data-type="credly"]:hover {
    border-color: var(--credly-color);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
}

.link-card[data-type="email"]:hover {
    border-color: var(--email-color);
    box-shadow: 0 5px 20px rgba(234, 67, 53, 0.3);
}

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.2) rotate(5deg);
}

.link-card[data-type="linkedin"] .link-icon {
    color: var(--linkedin-color);
}

.link-card[data-type="github"] .link-icon {
    color: #fff;
}

.link-card[data-type="medium"] .link-icon {
    color: var(--medium-color);
}

.link-card[data-type="credly"] .link-icon {
    color: var(--credly-color);
}

.link-card[data-type="email"] .link-icon {
    color: var(--email-color);
}

.link-icon svg {
    width: 100%;
    height: 100%;
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.link-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.link-arrow {
    color: var(--accent-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
}

/* Skills Output */
.skills-output {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skills-output pre {
    color: var(--text-secondary);
    font-size: 13px;
    overflow-x: auto;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .terminal-body {
        padding: 20px 15px;
        font-size: 12px;
    }
    
    .ascii-art {
        font-size: 8px;
    }
    
    .link-card {
        padding: 15px;
    }
    
    .link-title {
        font-size: 14px;
    }
    
    .link-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        font-size: 6px;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
    }
}

/* Glowing effects */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--accent-color),
                     0 0 10px var(--accent-color);
    }
    50% {
        text-shadow: 0 0 10px var(--accent-color),
                     0 0 20px var(--accent-color),
                     0 0 30px rgba(96, 165, 250, 0.5);
    }
}

.prompt {
    animation: glow 2s ease-in-out infinite;
}
