/* Additional Custom Styles for Portfolio Terminal */

/* Terminal Window Styling */
.terminal-window {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.2),
        0 0 60px rgba(6, 182, 212, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Glow Effects */
.neon-glow {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
}

.border-glow {
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 
        0 0 20px rgba(34, 197, 94, 0.3),
        inset 0 0 20px rgba(34, 197, 94, 0.1);
}

/* Scrollbar Styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22c55e, #06b6d4);
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #16a34a, #0891b2);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .ascii-art-mobile {
        font-size: 0.6rem;
        line-height: 0.8rem;
    }
}

/* Animation Enhancements */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Terminal Prompt Styling */
.terminal-prompt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22c55e;
    font-weight: 600;
}

.terminal-prompt::before {
    content: ">";
    color: #06b6d4;
    font-weight: bold;
}

/* Command History Styling */
.command-line {
    padding: 0.25rem 0;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.command-line:hover {
    background-color: rgba(34, 197, 94, 0.1);
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: #22c55e;
    font-weight: bold;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    animation: glitch-anim 0.3s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-anim2 0.3s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-anim {
    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 glitch-anim2 {
    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) }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .mobile-terminal {
        margin: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    .mobile-input {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(34, 197, 94, 0.3);
        padding: 1rem;
    }
    
    .mobile-output {
        padding-bottom: 5rem;
    }
}

/* Hyperland-inspired window decorations */
.hyperland-border {
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(6, 182, 212, 0.1)) padding-box,
                linear-gradient(135deg, #22c55e, #06b6d4) border-box;
    border-radius: 0.5rem;
}

/* Cyberpunk loading animation */
.cyber-loading {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(34, 197, 94, 0.4) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: cyber-scan 2s infinite;
}

@keyframes cyber-scan {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Terminal cursor styling */
.terminal-cursor {
    background: #22c55e;
    animation: cursor-blink 1s infinite;
    width: 2px;
    height: 1.2em;
    display: inline-block;
    margin-left: 1px;
    vertical-align: baseline;
}

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