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

:root {
    --terminal-bg: #0d1117;
    --terminal-header-bg: #161b22;
    --text-green: #00ff41;
    --text-cyan: #00d9ff;
    --text-yellow: #ffff00;
    --text-white: #e0e0e0;
    --text-gray: #8892b0;
    --prompt-color: #00ff41;
    --command-color: #00d9ff;
    --border-color: #30363d;
    --hover-bg: rgba(0, 255, 65, 0.1);
}

body {
    font-family: 'Fira Code', monospace;
    background: #000000;
    color: var(--text-white);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.terminal-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--terminal-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background: var(--terminal-header-bg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-header > div:first-child {
    display: flex;
    align-items: center;
}

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

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

.btn.close {
    background: #ff5f57;
}

.btn.minimize {
    background: #ffbd2e;
}

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

.terminal-title {
    color: var(--text-gray);
    font-size: 14px;
}

.lang-toggle {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--text-green);
    color: var(--text-green);
    padding: 6px 16px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--text-cyan);
    color: var(--text-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.lang-toggle:active {
    transform: scale(0.95);
}

.terminal-body {
    padding: 30px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section {
    margin-bottom: 40px;
}

.ascii-art {
    color: var(--text-green);
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 20px;
    overflow-x: auto;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.typing-text {
    font-size: 18px;
    margin: 20px 0;
}

.prompt {
    color: var(--prompt-color);
    font-weight: 600;
}

.command {
    color: var(--command-color);
    margin-left: 10px;
}

.cursor {
    color: var(--text-green);
    animation: blink 1s infinite;
}

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

.content-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.command-line {
    margin-bottom: 15px;
    font-size: 16px;
}

.output {
    margin-left: 20px;
    color: var(--text-white);
}

.output h2 {
    color: var(--text-cyan);
    margin-bottom: 15px;
    font-size: 24px;
}

.output h3 {
    color: var(--text-cyan);
    margin-bottom: 20px;
    font-size: 20px;
}

.output p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.description {
    line-height: 1.8;
    font-size: 16px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--text-green);
    background: rgba(0, 255, 65, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
}

.skill-category h3 {
    color: var(--text-green);
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-white);
    padding: 8px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.skill-category li:hover {
    color: var(--text-cyan);
    padding-left: 10px;
}

.file {
    color: var(--text-green);
    margin-right: 8px;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.project-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(0, 255, 65, 0.05);
    transform: translateX(10px);
    border-color: var(--text-cyan);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.project-icon {
    font-size: 24px;
}

.project-name {
    color: var(--text-cyan);
    font-size: 18px;
    font-weight: 600;
}

.project-item p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.tag {
    background: rgba(0, 255, 65, 0.2);
    color: var(--text-green);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--text-green);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-cyan);
    text-decoration: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-link:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--text-cyan);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.icon {
    font-size: 20px;
}

.terminal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-ok {
    color: var(--text-green);
    font-weight: 600;
}

.footer-text {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal-body {
        padding: 20px;
    }
    
    .terminal-header {
        padding: 10px 15px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .lang-toggle {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .typing-text {
        font-size: 14px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .output h2 {
        font-size: 20px;
    }
    
    .output h3 {
        font-size: 18px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-green);
    border-radius: 5px;
}

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

/* Selection */
::selection {
    background: var(--text-green);
    color: var(--terminal-bg);
}

::-moz-selection {
    background: var(--text-green);
    color: var(--terminal-bg);
}
