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

:root {
    --primary: #00ff41;
    --secondary: #0f0;
    --bg: #0a0e0a;
    --terminal-bg: #0d1117;
    --error: #ff0040;
    --warning: #ffaa00;
    --info: #00d4ff;
    --dark-green: #1a3d2e;
    --darker-green: #0d1f16;
    --cyber-purple: #bd00ff;
    --cyber-pink: #ff006e;
}

body {
    font-family: 'Fira Code', monospace;
    background: #0a0a1a;
    color: #33ff88;
    overflow: hidden;
    cursor: none;
    position: relative;
}

/* Cyberpunk Cityscape Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(10, 10, 26, 0.7) 0%, rgba(10, 31, 22, 0.9) 100%),
        url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=1920&q=80') center/cover;
    z-index: -2;
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { filter: brightness(0.6) contrast(1.2); }
    50% { filter: brightness(0.7) contrast(1.3); }
}

/* Neon Grid Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 26, 0.5) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(51, 255, 136, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(51, 255, 136, 0.03) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(51, 255, 136, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(51, 255, 136, 0.03) 3px
        );
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #33ff88;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s, opacity 0.3s;
    box-shadow: 0 0 15px #33ff88, 0 0 30px rgba(51, 255, 136, 0.5);
}

#cursor.clicking {
    transform: scale(0.8);
    background: #33ff88;
}

/* Matrix Rain Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    z-index: 0;
}

/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1f16 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    animation: fadeOut 1s ease 3s forwards;
}

#boot-screen.hidden {
    display: none;
}

.boot-line {
    color: #33ff88;
    margin: 0.3rem 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    text-shadow: 0 0 10px rgba(51, 255, 136, 0.8);
}

/* Terminal Container */
.terminal-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    margin: 7.5vh auto;
    background: rgba(10, 20, 30, 0.85);
    border: 2px solid #33ff88;
    border-radius: 12px;
    box-shadow: 
        0 0 60px rgba(51, 255, 136, 0.4),
        0 0 100px rgba(189, 0, 255, 0.2),
        inset 0 0 100px rgba(51, 255, 136, 0.03);
    display: flex;
    flex-direction: column;
    z-index: 1;
    backdrop-filter: blur(15px);
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(135deg, rgba(26, 61, 46, 0.6), rgba(10, 31, 46, 0.6));
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(51, 255, 136, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px 10px 0 0;
}

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

.btn-close { 
    background: var(--error); 
    box-shadow: 0 0 10px var(--error); 
}

.btn-minimize { 
    background: var(--warning); 
    box-shadow: 0 0 10px var(--warning); 
}

.btn-maximize { 
    background: #33ff88; 
    box-shadow: 0 0 10px #33ff88; 
}

.terminal-title {
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(51, 255, 136, 0.5);
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #33ff88 rgba(10, 20, 30, 0.85);
}

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

.terminal-content::-webkit-scrollbar-track {
    background: rgba(10, 20, 30, 0.85);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #33ff88, #1a8f5a);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(51, 255, 136, 0.5);
}

.output-line {
    margin: 0.5rem 0;
    line-height: 1.6;
    animation: glitchIn 0.1s ease;
}

.prompt {
    color: var(--info);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.command {
    color: var(--warning);
}

.error {
    color: var(--error);
    text-shadow: 0 0 10px rgba(255, 0, 64, 0.6);
}

.success {
    color: #33ff88;
    text-shadow: 0 0 10px rgba(51, 255, 136, 0.4);
}

.info {
    color: var(--info);
}

/* Input Line */
.input-line {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1.5rem 1rem;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #33ff88;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    outline: none;
    caret-color: #33ff88;
    text-shadow: 0 0 8px rgba(51, 255, 136, 0.4);
}

/* Animations */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitchIn {
    0% { 
        opacity: 0;
        transform: translateX(-10px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

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

.cursor-blink {
    animation: blink 1s infinite;
}

.ascii-art {
    color: #33ff88;
    line-height: 1.2;
    font-size: 0.7rem;
    opacity: 0.9;
    margin: 1rem 0;
    text-shadow: 0 0 15px rgba(51, 255, 136, 0.6), 0 0 30px rgba(189, 0, 255, 0.3);
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 61, 46, 0.3), rgba(10, 31, 46, 0.4));
    border-left: 3px solid #33ff88;
    border-right: 1px solid rgba(51, 255, 136, 0.2);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(51, 255, 136, 0.15);
    transition: all 0.3s ease;
}

.project-card:hover {
    background: linear-gradient(135deg, rgba(26, 61, 46, 0.4), rgba(10, 31, 46, 0.5));
    box-shadow: 0 0 35px rgba(51, 255, 136, 0.25);
    transform: translateX(5px);
}

.project-card .output-line {
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.3);
}

.project-card .warning {
    color: #ffaa00;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

.project-card .info {
    color: #00d4ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.project-card .success {
    color: #33ff88;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(51, 255, 136, 0.8);
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.skill-name {
    width: 200px;
    color: var(--info);
}

.bar-container {
    flex: 1;
    height: 20px;
    background: rgba(10, 31, 46, 0.6);
    border: 1px solid rgba(51, 255, 136, 0.4);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a8f5a, #33ff88, #00d4ff);
    box-shadow: 0 0 20px rgba(51, 255, 136, 0.8);
    transition: width 1s ease;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.help-section {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 61, 46, 0.15), rgba(10, 31, 46, 0.2));
    border: 1px solid rgba(51, 255, 136, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(51, 255, 136, 0.1);
}

.command-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.cmd-item {
    color: var(--warning);
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
}

a {
    color: var(--info);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    transition: all 0.3s ease;
}

a:hover {
    color: #33ff88;
    text-shadow: 0 0 15px rgba(51, 255, 136, 0.8);
}

/* Experience Images with Hover Effect */
.experience-img {
    border-radius: 8px;
    border: 1px solid rgba(51, 255, 136, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(51, 255, 136, 0.2);
}

.experience-img:hover {
    transform: scale(1.3);
    border: 2px solid rgba(51, 255, 136, 0.8);
    box-shadow: 0 0 30px rgba(51, 255, 136, 0.6);
    z-index: 100;
}

/* Scanline Effect */
.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(51, 255, 136, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scanline 8s linear infinite;
    border-radius: 12px;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* CRT Flicker */
.terminal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    pointer-events: none;
    animation: flicker 0.15s infinite;
    border-radius: 12px;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
    }

    .ascii-art {
        font-size: 0.5rem;
    }

    .command-list {
        grid-template-columns: 1fr;
    }

    .skill-name {
        width: 120px;
        font-size: 0.85rem;
    }
}