/* Retro Terminal Portfolio - Paul Robello */
:root {
    --terminal-bg: #000000;
    --terminal-text: #00ff00;
    --terminal-accent: #00aa00;
    --terminal-dim: #008800;
    --terminal-error: #ff0000;
    --terminal-warn: #ffff00;
    --terminal-info: #00ffff;
    --terminal-border: #333333;
    --terminal-header: #1a1a1a;
    --scanline-color: rgba(0, 255, 0, 0.05);
    --glow-color: rgba(0, 255, 0, 0.3);
}

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

body {
    font-family: 'Space Mono', 'Courier Prime', monospace;
    background: var(--terminal-bg);
    color: var(--terminal-text);
    line-height: 1.4;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            var(--scanline-color) 2px,
            var(--scanline-color) 4px
        );
    pointer-events: none;
    z-index: 1000;
}

.terminal-container {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow: 
        0 0 20px var(--glow-color),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: powerOn 2s ease-in-out;
}

@keyframes powerOn {
    0% {
        transform: scale(1, 0.01);
        opacity: 0;
    }
    50% {
        transform: scale(1, 0.01);
        opacity: 1;
    }
    100% {
        transform: scale(1, 1);
        opacity: 1;
    }
}

.terminal-header {
    background: var(--terminal-header);
    padding: 10px 15px;
    border-bottom: 1px solid var(--terminal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn.close {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
}

.btn.minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.btn.maximize {
    background: #27ca3f;
    box-shadow: 0 0 5px #27ca3f;
}

.terminal-title {
    font-size: 14px;
    color: var(--terminal-text);
    text-shadow: 0 0 5px var(--glow-color);
}

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

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: var(--terminal-accent);
    font-weight: bold;
    text-shadow: 0 0 5px var(--glow-color);
}

.command {
    color: var(--terminal-text);
    font-weight: bold;
}

.typing-animation {
    color: var(--terminal-text);
    font-weight: bold;
    animation: blink 1s infinite;
}

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

.ascii-art {
    margin: 20px 0;
    color: var(--terminal-text);
    text-shadow: 0 0 10px var(--glow-color);
    font-size: 12px;
    line-height: 1.2;
}

.ascii-art pre {
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

.output-block {
    margin: 10px 0 20px 0;
    padding-left: 20px;
    border-left: 2px solid var(--terminal-dim);
}

.contact-line {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.field {
    color: var(--terminal-accent);
    font-weight: bold;
    min-width: 100px;
    margin-right: 10px;
}

.value {
    color: var(--terminal-text);
}

.value a {
    color: var(--terminal-info);
    text-decoration: none;
    text-shadow: 0 0 3px var(--terminal-info);
}

.value a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--terminal-info);
}

.log-entry {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timestamp {
    color: var(--terminal-dim);
    font-size: 12px;
    min-width: 120px;
}

.log-level {
    color: var(--terminal-info);
    font-weight: bold;
    min-width: 50px;
}

.log-message {
    color: var(--terminal-text);
}

.file-listing {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
}

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

.permissions {
    color: var(--terminal-dim);
    min-width: 80px;
}

.owner, .group {
    color: var(--terminal-accent);
    min-width: 50px;
}

.size {
    color: var(--terminal-text);
    min-width: 60px;
    text-align: right;
}

.date {
    color: var(--terminal-dim);
    min-width: 120px;
}

.filename {
    color: var(--terminal-text);
    font-weight: bold;
}

.filename.ai { color: var(--terminal-info); }
.filename.cloud { color: var(--terminal-warn); }
.filename.programming { color: var(--terminal-text); }
.filename.data { color: var(--terminal-accent); }

.skill-grid {
    display: grid;
    gap: 15px;
}

.skill-category {
    margin-bottom: 10px;
}

.category-header {
    color: var(--terminal-accent);
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--terminal-dim);
    color: var(--terminal-text);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-shadow: 0 0 3px var(--glow-color);
}

.project-listing {
    display: grid;
    gap: 15px;
}

.project-item {
    border: 1px solid var(--terminal-dim);
    padding: 15px;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
}

.project-path {
    color: var(--terminal-accent);
    font-weight: bold;
    margin-bottom: 5px;
}

.project-desc {
    color: var(--terminal-text);
    margin-bottom: 8px;
    font-size: 13px;
}

.project-tech {
    color: var(--terminal-dim);
    font-size: 12px;
    margin-bottom: 8px;
}

.project-link a {
    color: var(--terminal-info);
    text-decoration: none;
    font-size: 12px;
}

.project-link a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--terminal-info);
}

.cert-display {
    text-align: center;
    margin: 20px 0;
}

.cert-border {
    color: var(--terminal-accent);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    text-shadow: 0 0 5px var(--glow-color);
    display: inline-block;
    background: rgba(0, 255, 0, 0.05);
    margin: 0;
}

.system-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--terminal-border);
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--terminal-dim);
    backdrop-filter: blur(10px);
}

.info-line {
    margin-bottom: 3px;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--terminal-text), transparent);
    animation: scanline 2s linear infinite;
    z-index: 1001;
}

@keyframes scanline {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
        border-radius: 4px;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 12px;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .file-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .permissions, .owner, .group, .size, .date {
        min-width: auto;
    }
    
    .skill-tags {
        gap: 5px;
    }
    
    .tag {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    .system-info {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px auto;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .terminal-body {
        padding: 10px;
        font-size: 11px;
    }
    
    .ascii-art {
        font-size: 8px;
        overflow-x: auto;
    }
    
    .project-item {
        padding: 10px;
    }
    
    .contact-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .field {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 2px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --terminal-text: #ffffff;
        --terminal-accent: #00ff00;
        --terminal-dim: #cccccc;
        --glow-color: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .typing-animation,
    .scanline {
        animation: none;
    }
    
    .terminal-container {
        animation: none;
    }
}