/* CSS Variables for theme system */
:root {
    --primary-color: #00ff88;
    --secondary-color: #00cc66;
    --accent-color: #66ffaa;
    --bg-gradient-start: #0a0a0a;
    --bg-gradient-end: #1a1a2e;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(0, 255, 136, 0.3);
}

/* Theme variations */
[data-theme="cyber-blue"] {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #66d9ff;
    --bg-gradient-start: #0a0a1a;
    --bg-gradient-end: #1a1a3e;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(0, 212, 255, 0.3);
}

[data-theme="neon-pink"] {
    --primary-color: #ff0080;
    --secondary-color: #cc0066;
    --accent-color: #ff66b3;
    --bg-gradient-start: #1a0a1a;
    --bg-gradient-end: #3e1a3e;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 0, 128, 0.3);
}

[data-theme="electric-purple"] {
    --primary-color: #8000ff;
    --secondary-color: #6600cc;
    --accent-color: #b366ff;
    --bg-gradient-start: #0f0a1a;
    --bg-gradient-end: #2e1a3e;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(128, 0, 255, 0.3);
}

[data-theme="golden-amber"] {
    --primary-color: #ffaa00;
    --secondary-color: #cc8800;
    --accent-color: #ffcc66;
    --bg-gradient-start: #1a1a0a;
    --bg-gradient-end: #3e3e1a;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 170, 0, 0.3);
}

/* Theme selector button */
.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 20px;
}

.theme-selector:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

.theme-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.theme-menu.active {
    display: flex;
}

.theme-option {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    border: 1px solid transparent;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.theme-option.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.theme-color.green { background: #00ff88; }
.theme-color.blue { background: #00d4ff; }
.theme-color.pink { background: #ff0080; }
.theme-color.purple { background: #8000ff; }
.theme-color.amber { background: #ffaa00; }

/* Suggestion box styling */
.suggestion-box {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-bottom: 10px;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(0, 255, 136, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

.cmd-icon {
    color: var(--primary-color);
    font-weight: bold;
}

/* Update existing colors to use CSS variables */
body {
    color: var(--primary-color);
}

.header h1 {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
}

.commands span {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.commands span:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.prompt {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

#terminal-input {
    color: var(--primary-color);
}

#terminal-input:focus {
    text-shadow: 0 0 5px var(--primary-color);
}

.terminal-footer {
    border-top-color: var(--primary-color);
    color: var(--primary-color);
}

.left-panel {
    border-right-color: var(--primary-color);
}

.terminal-container {
    border-color: var(--primary-color);
    box-shadow: 
        0 8px 32px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.terminal-output {
    border-color: var(--primary-color);
}

.terminal-input-line {
    border-color: var(--primary-color);
}

#interactive-card {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color);
}

.lanyard-line {
    border-left-color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.lanyard-clip {
    border-color: var(--primary-color);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #16213e 100%);
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
    overflow: auto;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00ff88, transparent),
        radial-gradient(2px 2px at 40px 70px, #0099ff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ff0099, transparent),
        radial-gradient(1px 1px at 130px 80px, #00ff88, transparent),
        radial-gradient(2px 2px at 160px 30px, #0099ff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Root app container */
#app {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Main terminal layout */
.terminal-container {
    flex: 1;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    margin: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: terminalGlow 3s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% { box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

.left-panel {
    width: 35%;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    border-right: 1px solid rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.05) 50%, transparent 70%);
    animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.right-panel {
    width: 65%;
    padding: 20px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: none;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.badge {
    width: 70%;
    border: 1px solid #00ff00;
    border-radius: 10px;
    margin-bottom: 10px;
}

.caption {
    color: #00ff00;
    font-size: 0.9em;
    text-align: center;
}


/* Terminal header section */
.header {
    margin-bottom: 20px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 153, 255, 0.1), rgba(255, 0, 153, 0.1));
    border-radius: 10px;
    z-index: -1;
    animation: headerPulse 2s ease-in-out infinite alternate;
}

@keyframes headerPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.02); }
}

.header h1 {
    color: #00ff88;
    font-size: 1.8em;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
    100% { text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.3); }
}

.header p {
    color: #0099ff;
    margin-top: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

.commands {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.commands span {
    color: #00ff88;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    background: rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.commands span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.commands span:hover {
    color: #ffffff;
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

.commands span:hover::before {
    left: 100%;
}

.terminal-output {
    flex-grow: 1;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 0.5em;
    white-space: pre-wrap;
    font-size: 0.95em;
    scroll-behavior: smooth;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
}

.terminal-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.terminal-output p {
    margin-bottom: 8px;
    line-height: 1.5;
    animation: fadeInUp 0.5s ease-out;
}

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

.terminal-output a {
    color: #0099ff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.terminal-output a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0099ff, #00ff88);
    transition: width 0.3s ease;
}

.terminal-output a:hover {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.terminal-output a:hover::after {
    width: 100%;
}

/* Input line */
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 25px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.terminal-input-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: inputScan 3s linear infinite;
}

@keyframes inputScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.prompt {
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    position: relative;
    z-index: 1;
}

#terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #00ff88;
    font-family: inherit;
    font-size: 1em;
    outline: none;
    position: relative;
    z-index: 1;
}

#terminal-input::placeholder {
    color: rgba(0, 255, 136, 0.5);
    opacity: 0.7;
}

#terminal-input:focus {
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.terminal-output a {
    color: #0ff;
    text-decoration: none;
}

.terminal-output a:hover {
    text-decoration: underline;
}

/* Blinking cursor animation */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

input#terminal-input::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 1em;
    background-color: #00ff00;
    animation: blink 1s step-start infinite;
    margin-left: 4px;
    vertical-align: bottom;
}

/* Scrollbar styling */
.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background-color: #0f0;
}

.terminal-output::-webkit-scrollbar-track {
    background-color: #111;
}

/* Error text */
.error {
    color: #f00;
}

.cmd-blue {
    color: #41a1f6;
}

.terminal-output .emoji {
    color: #0ff;
    font-weight: bold;
}

.terminal-output .section-title {
    color: #f5f5f5;
    font-weight: bold;
}

.terminal-output p {
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.terminal-footer {
    width: 100%;
    padding: 5px 20px;
    border-top: 1px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    background-color: #000;
    color: #00ff00;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
}

.footer-prompt {
    color: #00ff00;
    font-weight: bold;
}

.footer-time {
    color: #00ff00;
}

@media screen and (max-width: 768px) {
    .terminal-container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        border-right: none;
        border-left: none;
    }

    .right-panel {
        padding: 10px;
        padding-bottom: 80px;
        /* Still keep room for footer */
    }

    .terminal-footer {
        font-size: 0.75em;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.card-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    /* space from top of page */
    position: relative;
}

.lanyard-line {
    width: 6px;
    height: 100px;
    background-color: #000;
    border-left: 2px solid #00ff00;
    border-right: 2px solid #00ff00;
}

.lanyard-clip {
    width: 14px;
    height: 14px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    background: #000;
    margin-bottom: 10px;
}

.card-wrapper {
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    user-select: none;
}

#interactive-card {
    width: 220px;
    height: 320px;
    border-radius: 16px;
    border: 1px solid #00ff00;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 30px #00ff00;
    transform-origin: top center;
    transition: transform 0.1s ease-out;
    position: relative;
    cursor: grab;
    will-change: transform;
}

#interactive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.lanyard-line {
    width: 6px;
    background-color: #000;
    border-left: 2px solid #00ff00;
    border-right: 2px solid #00ff00;
    transition: height 0.2s ease;
}

.lanyard-clip {
    width: 14px;
    height: 14px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    background: #000;
    margin-bottom: 10px;
    z-index: 2;
}