@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0d1117;
    color: #c9d1d9;
    height: 100vh;
    overflow: hidden;
    text-align: justify;
    
}

.terminal {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin: 20px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: #21262d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
}

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

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27ca3f; }

.terminal-title {
    color: #8b949e;
    font-size: 14px;
}

.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #161b22;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

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

.prompt {
    color: #7ee787;
    margin-right: 8px;
    flex-shrink: 0;
}

.user-input {
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    min-width: 0;
}

.output {
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
section{
     white-space: normal;
}
.error {
    color: #ff7b72;
}

.success {
    color: #7ee787;
}

.info {
    color: #58a6ff;
}

.warning {
    color: #ffa657;
}

.directory {
    color: #58a6ff;
    font-weight: 600;
}

.file {
    color: #c9d1d9;
}

.executable {
    color: #7ee787;
}

.cursor {
    animation: blink 1s infinite;
}

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

.help-table {
    color: #8b949e;
    margin: 10px 0;
    display: table;
    width: 100%;
}

.help-row {
    display: table-row;
}

.help-command {
    color: #58a6ff;
    display: inline-block;
    width: 120px;
}

.help-command-cell {
    display: table-cell;
    padding-right: 20px;
    vertical-align: top;
    width: 100px;
    color: #58a6ff;
}

.help-desc-cell {
    display: table-cell;
    vertical-align: top;
}

.ascii-art {
    color: #7ee787;
    font-size: 12px;
    line-height: 1.2;
    margin: 10px 0;
    overflow-x: auto;
    white-space: pre;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terminal {
        margin: 15px;
        height: calc(100vh - 30px);
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .help-command {
        width: 100px;
    }
    
    .help-command-cell {
        width: 80px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .terminal {
        margin: 10px;
        height: calc(100vh - 20px);
        border-radius: 4px;
    }
    
    .terminal-header {
        padding: 10px 12px;
        border-radius: 4px 4px 0 0;
    }
    
    .terminal-buttons {
        gap: 6px;
        margin-right: 12px;
    }
    
    .terminal-button {
        width: 10px;
        height: 10px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .terminal-content {
        font-size: 12px;
        padding: 12px;
        line-height: 1.3;
    }
    
    .help-command {
        width: 80px;
    }
    
    .help-command-cell {
        width: 60px;
        padding-right: 10px;
    }
    
    .ascii-art {
        font-size: 10px;
    }
    
    .command-line {
        flex-wrap: wrap;
    }
    
    .prompt {
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .terminal {
        margin: 8px;
        height: calc(100vh - 16px);
        border-radius: 2px;
    }
    
    .terminal-header {
        padding: 8px 10px;
        border-radius: 2px 2px 0 0;
    }
    
    .terminal-buttons {
        gap: 4px;
        margin-right: 8px;
    }
    
    .terminal-button {
        width: 8px;
        height: 8px;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .terminal-content {
        font-size: 11px;
        padding: 8px;
        line-height: 1.2;
    }
    
    .help-table {
        margin: 8px 0;
    }
    
    .help-command {
        width: 60px;
    }
    
    .help-command-cell {
        width: 50px;
        padding-right: 8px;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .output {
        margin-bottom: 10px;
    }
    
    .command-line {
        margin-bottom: 8px;
    }
    
    .prompt {
        margin-right: 4px;
        font-size: 10px;
    }
    
    .user-input {
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .terminal {
        margin: 5px;
        height: calc(100vh - 10px);
    }
    
    .terminal-header {
        padding: 6px 8px;
    }
    
    .terminal-content {
        font-size: 10px;
        padding: 6px;
    }
    
    .help-command {
        width: 50px;
    }
    
    .help-command-cell {
        width: 40px;
        padding-right: 6px;
    }
    
    .ascii-art {
        font-size: 8px;
    }
    
    .terminal-title {
        font-size: 10px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .terminal {
        margin: 5px;
        height: calc(100vh - 10px);
    }
    
    .terminal-header {
        padding: 6px 12px;
    }
    
    .terminal-content {
        padding: 10px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .terminal-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .terminal-button {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .terminal-button {
        width: 14px;
        height: 14px;
    }
    
    .terminal-content::-webkit-scrollbar {
        width: 12px;
    }
    
    .terminal-content::-webkit-scrollbar-thumb {
        background: #484f58;
        border-radius: 6px;
    }
}
.info a {
  color: inherit;
  text-decoration: none;
}

.info a:hover {
  text-decoration: underline;
}

.info a:visited {
  color: inherit;
}

.skill-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-bottom: 20px;
}
