/* ==================== TERMINAL PORTFOLIO - PITCH BLACK THEME ==================== */

/* Base Reset & Variables */
:root {
    --neon-green: #00ff88;
    --neon-cyan: #00d9ff;
    --neon-pink: #ff006e;
    --neon-purple: #bd00ff;
    --pitch-black: #000000;
    --dark-gray: #0a0a0a;
    --terminal-gray: #1a1a1a;
    --text-primary: #00ff88;
    --text-secondary: #00d9ff;
    --text-dim: #44ff88;
    --glow-intensity: 0 0 5px, 0 0 10px, 0 0 15px, 0 0 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--pitch-black);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D Canvas Background */
#neon-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Terminal Window */
.terminal-window {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.3),
        0 0 40px rgba(0, 255, 136, 0.2),
        inset 0 0 60px rgba(0, 255, 136, 0.05);
    backdrop-filter: blur(10px);
    animation: terminalBoot 0.5s ease-out;
}

@keyframes terminalBoot {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 217, 255, 0.1));
    border-bottom: 1px solid var(--neon-green);
    border-radius: 6px 6px 0 0;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close {
    background: #ff006e;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.btn-minimize {
    background: #ffd000;
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

.btn-maximize {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.terminal-buttons span:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.terminal-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    flex: 1;
}

.language-switcher {
    margin-left: auto;
}

.language-switcher select {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher select:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.language-switcher select option {
    background: #000;
    color: var(--text-primary);
}

/* Terminal Content */
.terminal-content {
    padding: 30px;
    min-height: 70vh;
    position: relative;
}

/* Scanline Effect */
.terminal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 255, 136, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 136, 0.03) 3px);
    pointer-events: none;
    z-index: 100;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(20px);
    }
}

/* Terminal Sections */
.terminal-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.terminal-section:nth-child(1) {
    animation-delay: 0.1s;
}

.terminal-section:nth-child(2) {
    animation-delay: 0.2s;
}

.terminal-section:nth-child(3) {
    animation-delay: 0.3s;
}

.terminal-section:nth-child(4) {
    animation-delay: 0.4s;
}

.terminal-section:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Command Prompt */
.prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.prompt-symbol {
    color: var(--neon-pink);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.command {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Output */
.output {
    padding-left: 30px;
    border-left: 2px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 30px;
}

/* ASCII Art */
.ascii-art {
    font-size: 0.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
    margin-bottom: 20px;
    overflow-x: auto;
    line-height: 1.2;
}

/* Typing Text */
.typing-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: var(--glow-intensity) var(--neon-green);
    margin: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-green);
    animation: blink 0.75s step-end infinite;
}

.typing-text.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-shadow: var(--glow-intensity) var(--neon-cyan);
    border-right-color: var(--neon-cyan);
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Info Blocks */
.info-block {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 1rem;
}

.label {
    color: var(--neon-cyan);
    font-weight: 600;
    min-width: 120px;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

.value {
    color: var(--text-dim);
}

.bio {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-left: 3px solid var(--neon-green);
    color: var(--text-dim);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.3),
        0 0 40px rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.file-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.project-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.project-media {
    width: 100%;
    margin: 15px 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-media img,
.project-media video,
.project-media iframe {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-media img,
.project-card:hover .project-media video {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.video-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 315px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    color: var(--text-dim);
    font-size: 1rem;
    text-align: center;
}

.video-unavailable p {
    margin: 0;
    padding: 20px;
}

.description {
    color: var(--text-dim);
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    padding: 4px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.link-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    transform: translateX(5px);
}

.link-btn .icon {
    font-weight: bold;
}

/* Skills Container */
.skills-container {
    display: grid;
    gap: 40px;
    margin-top: 20px;
}

.skill-category {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
}

.category-name {
    color: var(--neon-cyan);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
    padding-bottom: 10px;
}

.skills-list {
    display: grid;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(10px);
}

.skill-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.skill-info {
    flex: 1;
}

.skill-name {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-green);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.skill-percent {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--pitch-black);
    font-weight: 700;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.contact-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: scale(1.05);
}

.contact-link .icon {
    color: var(--neon-pink);
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-link .contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: contrast(1.2) brightness(1.1) drop-shadow(0 0 3px var(--neon-green));
}

/* Cursor Blink */
.cursor-blink {
    display: inline-block;
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--neon-green);
    animation: blink 1s step-end infinite;
}

/* Glitch Effect */
.glitch-box {
    position: relative;
}

.glitch-box:hover::after,
.glitch-box:hover::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-box:hover::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--neon-cyan);
    z-index: -1;
}

.glitch-box:hover::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: var(--neon-pink);
    z-index: -2;
}

@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);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-window {
        margin: 20px;
    }

    .terminal-content {
        padding: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .typing-text.subtitle {
        font-size: 1rem;
    }

    .ascii-art {
        font-size: 0.35rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pitch-black);
    border-left: 1px solid rgba(0, 255, 136, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-green), var(--neon-cyan));
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-green);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 20px var(--neon-cyan);
}