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

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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 144, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
}

.terminal-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(30, 144, 255, 0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(138, 43, 226, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.terminal-header {
    background: rgba(20, 20, 20, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.terminal-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.5px;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.minimize {
    background: #ffbd2e;
    color: #8a6500;
}

.maximize {
    background: #28ca42;
    color: #0f5323;
}

.close {
    background: #ff5f56;
    color: #8b2635;
}

.control:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.terminal-content {
    padding: 2rem;
    height: calc(100% - 60px);
    overflow-y: auto;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

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

.terminal-content::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.boot-sequence {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.boot-line {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #666;
    animation: bootTyping 0.5s ease-in;
}

@keyframes bootTyping {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

.prompt-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.prompt {
    color: #4a9eff;
    font-weight: 500;
    white-space: nowrap;
}

.command {
    color: #e0e0e0;
    font-weight: 400;
}

.output {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    color: #b8b8b8;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 3px solid rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(74, 158, 255, 0.6);
    transform: translateX(5px);
}

.project-name {
    color: #ffffff;
    font-weight: 500;
}

.project-desc {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

.skills-display {
    margin-top: 0.5rem;
}

.skill-category {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: center;
    gap: 1rem;
}

.skill-title {
    color: #4a9eff;
    font-weight: 600;
    min-width: 120px;
    font-size: 0.85rem;
}

.skill-items {
    color: #e0e0e0;
    font-weight: 400;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.terminal-link {
    color: #4a9eff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 4px;
    background: rgba(74, 158, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.terminal-link:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

.cursor {
    color: #4a9eff;
    animation: blink 1s infinite;
    font-weight: bold;
}

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

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

@keyframes pulse {
    0%, 100% {
        color: #4a9eff;
    }
    50% {
        color: #66b3ff;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .terminal-container {
        height: 95vh;
        max-width: none;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skill-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Subtle animations for immersion */
.terminal-container {
    animation: terminalGlow 4s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 20px rgba(74, 158, 255, 0.1);
    }
}
