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

html {
    font-size: 16px;
}

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Console Container */
.console {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

/* Console Header */
.console-header {
    background: #21262d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
    position: relative;
}

.console-controls {
    display: flex;
    gap: 8px;
}

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

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;  
}

.control.maximize {
    background: #28ca42;
}

.control:hover {
    opacity: 0.8;
}

.console-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #8b949e;
    font-weight: 500;
}

/* Console Content */
.console-content {
    padding: 24px;
    min-height: 500px;
}

.terminal {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Terminal Lines */
.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.prompt {
    color: #7c3aed;
    font-weight: 600;
    margin-right: 8px;
    user-select: none;
}

.command {
    color: #58a6ff;
    font-weight: 500;
}

.cursor {
    color: #7c3aed;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

/* Output Sections */
.output {
    margin: 12px 0 24px 24px;
    padding-left: 16px;
    border-left: 2px solid #30363d;
}

/* Name and Title */
.name {
    font-size: 2rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.125rem;
    color: #7d8590;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Profile Text */
.profile p {
    color: #c9d1d9;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Skills Grid */
.skills {
    margin-top: 8px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.skill {
    color: #7c3aed;
    font-weight: 500;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s ease;
}

.skill:hover {
    color: #a78bfa;
}

.skill::before {
    content: "├─ ";
    color: #30363d;
    margin-right: 4px;
}

.skill:last-child::before {
    content: "└─ ";
}

/* Contact Section */
.contact {
    margin-top: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.label {
    color: #f85149;
    font-weight: 600;
    min-width: 60px;
}

.value {
    color: #a5f3fc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.value:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.value:active {
    transform: scale(0.98);
}

/* Typing Animation */
.typing::after {
    content: '';
    animation: typing 3s infinite;
}

@keyframes typing {
    0% { content: ''; }
    5% { content: 'c'; }
    10% { content: 'cr'; }
    15% { content: 'cre'; }
    20% { content: 'crea'; }
    25% { content: 'creat'; }
    30% { content: 'create'; }
    35% { content: 'create '; }
    40% { content: 'create n'; }
    45% { content: 'create ne'; }
    50% { content: 'create new'; }
    55% { content: 'create new '; }
    60% { content: 'create new p'; }
    65% { content: 'create new pr'; }
    70% { content: 'create new pro'; }
    75% { content: 'create new proj'; }
    80% { content: 'create new proje'; }
    85% { content: 'create new projec'; }
    90% { content: 'create new project'; }
    95% { content: 'create new project'; }
    100% { content: ''; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .console {
        border-radius: 8px;
    }
    
    .console-content {
        padding: 16px;
    }
    
    .terminal {
        font-size: 0.8rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .label {
        min-width: auto;
    }
    
    .console-title {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .console-content {
        padding: 12px;
    }
    
    .terminal {
        font-size: 0.75rem;
    }
    
    .name {
        font-size: 1.25rem;
    }
    
    .output {
        margin-left: 16px;
        padding-left: 12px;
    }
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection styles */
::selection {
    background: #58a6ff;
    color: #0d1117;
}

::-moz-selection {
    background: #58a6ff;
    color: #0d1117;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .console {
        border-color: #58a6ff;
    }
    
    .name {
        color: #ffffff;
        background: none;
        -webkit-text-fill-color: unset;
    }
    
    .value {
        color: #ffffff;
    }
}

/* Reduced motion support */
/* Simple contact protection */

@media (prefers-reduced-motion: reduce) {
    .cursor {
        animation: none;
    }
    
    .typing::after {
        animation: none;
        content: 'create new project';
    }
    
    * {
        transition: none !important;
    }
}

