/* JetBrains Mono Font Faces */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../font/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../font/JetBrainsMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../font/JetBrainsMono-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../font/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* JetBrains Color Palette */
:root {
    --bg-primary: #1e1f22;
    --bg-secondary: #2b2d30;
    --bg-tertiary: #313438;
    --text-primary: #bcbec4;
    --text-secondary: #868a91;
    --text-accent: #ffffff;
    --accent-blue: #589df6;
    --accent-green: #59a869;
    --accent-orange: #c77dbb;
    --accent-yellow: #d5b778;
    --accent-red: #cf6679;
    --border-color: #43454a;
    --button-red: #f97583;
    --button-yellow: #ffb000;
    --button-green: #34d058;
    --syntax-keyword: #cf8e6d;
    --syntax-string: #6aab73;
    --syntax-comment: #7a7e85;
    --syntax-number: #2aacb8;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-secondary);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Terminal Header */
.header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    justify-content: space-between;
}

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

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

.btn.close {
    background: var(--button-red);
}

.btn.minimize {
    background: var(--button-yellow);
}

.btn.maximize {
    background: var(--button-green);
}

.btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 13px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Content */
.content {
    padding: 30px;
}

/* Prompt Styling */
.prompt {
    margin-bottom: 8px;
    user-select: none;
}

.user {
    color: var(--accent-green);
    font-weight: 600;
}

.separator {
    color: var(--text-secondary);
}

.path {
    color: var(--accent-blue);
    font-weight: 500;
}

.symbol {
    color: var(--text-primary);
    margin-left: 4px;
}

.command {
    display: inline-block;
    color: var(--text-accent);
    margin-left: 10px;
    font-weight: 500;
    line-height: 12px;
    font-size: 12px;
    animation: typewriter 1s steps(20) 1s both;
}

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

.output {
    margin-left: 20px;
    margin-bottom: 40px;
}

/* Intro Section */
.intro .name {
    color: var(--accent-blue);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(88, 157, 246, 0.3);
}

.description {
    color: var(--accent-yellow);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.quote {
    color: var(--syntax-comment);
    font-style: italic;
    font-size: 14px;
    border-left: 3px solid var(--accent-orange);
    padding-left: 15px;
    margin-top: 15px;
}

/* File List */
.file-list {
    margin-left: 20px;
    margin-bottom: 40px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 13px;
}

.file-item:hover {
    background: var(--bg-tertiary);
    padding-left: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.file-meta {
    display: contents;
}

.permissions {
    color: var(--syntax-comment);
    width: 120px;
    flex-shrink: 0;
}

.size {
    color: var(--accent-yellow);
    width: 60px;
    flex-shrink: 0;
    text-align: right;
}

.date {
    color: var(--text-secondary);
    width: 120px;
    flex-shrink: 0;
    margin-left: 15px;
}

.file-name {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    transition: color 0.2s ease;
}

.file-name:hover {
    color: var(--accent-blue);
}

.file-name.directory {
    color: var(--accent-blue);
    font-weight: 500;
}

.icon {
    font-size: 16px;
}

/* Projects Section */
.project-list {
    margin-left: 20px;
    margin-bottom: 40px;
}

.project-item {
    margin-bottom: 25px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(88, 157, 246, 0.1);
    transform: translateY(-2px);
}

.project-link {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.project-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.project-info {
    flex: 1;
}

.project-name {
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.project-item:hover .project-name {
    color: var(--accent-yellow);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

.tag {
    background: var(--bg-primary);
    color: var(--accent-green);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--accent-green);
}

/* Skills Section */
.skills-json {
    margin-left: 20px;
    margin-bottom: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.skills-json pre {
    margin: 0;
    font-family: inherit;
}

.skills-json code {
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
}

/* JSON Syntax Highlighting */
.skills-json code {
    background: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 50px;
}

.footer-note {
    color: var(--syntax-comment);
    font-size: 12px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .terminal-header {
        padding: 10px 15px;
    }
    
    .intro .name {
        font-size: 24px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .file-item .file-meta {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .permissions,
    .size,
    .date {
        width: auto;
        margin-left: 0;
    }
    
    .file-name {
        margin-left: 0;
        width: 100%;
    }
    
    .project-link {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-icon {
        margin-top: 0;
    }
    
    .skills-json {
        font-size: 12px;
    }
    
    .tag {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .terminal-title {
        display: none;
    }
    
    .intro .name {
        font-size: 20px;
    }
    
    .command {
        font-size: 13px;
    }
    
    .project-name {
        font-size: 14px;
    }
    
    .project-desc {
        font-size: 12px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .command {
        animation: none;
    }
    
    .project-item {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
}

/* Selection styling */
::selection {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Loading animation for better UX */
.command {
    overflow: hidden;
    white-space: nowrap;
}

/* Focus styles for better accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
