:root {
    --neon-green: #0f0;
    --neon-cyan: #0ff;
    --dark-bg: #050505;
    --terminal-bg: #0a0a0a;
    --text-color: #e0e0e0;
    --border-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) var(--dark-bg);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    line-height: 1.6;
}

/* CRT Overlay Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--neon-green);
    background: rgba(5, 5, 5, 0.9);
    position: relative;
    z-index: 10;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

nav a {
    margin-left: 20px;
    font-size: 1.1rem;
}

/* Ticker */
.ticker-tape {
    width: 100%;
    overflow: hidden;
    background: var(--neon-green);
    color: #000;
    padding: 5px 0;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
}

.text-side {
    flex: 1;
}

.h1 {
    font-family: 'Orbitron', sans-serif;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    color: white;
    text-shadow: 2px 2px var(--neon-cyan), -2px -2px var(--neon-green);
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.status-box {
    border: 1px solid var(--neon-green);
    padding: 15px;
    display: inline-block;
    margin-bottom: 30px;
    background: rgba(0, 255, 0, 0.05);
}

.blink {
    animation: blinker 1s linear infinite;
    color: var(--neon-green);
}

@keyframes blinker {
    50% { opacity: 0; }
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hologram-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.hologram-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--neon-cyan)) hue-rotate(180deg) brightness(1.2); /* Adjust hue if needed */
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 255, 255, 0.2) 50%, transparent 60%);
    background-size: 100% 200%;
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Terminal */
.terminal-section {
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-window {
    background: #000;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: var(--neon-green);
    color: #000;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.terminal-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    color: var(--neon-green);
    font-size: 0.9rem;
}

.line {
    margin-bottom: 5px;
}

.system-msg { color: #888; }
.ai-msg { color: var(--neon-cyan); margin-top: 10px; margin-bottom: 10px; }
.user-msg { color: #fff; }
.success { color: var(--neon-green); }

.terminal-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #333;
}

.prompt {
    color: var(--neon-green);
    margin-right: 10px;
}

#user-input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* Live Feed */
.live-feed {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    border: 1px dashed #333;
}

.live-feed h2 {
    color: var(--neon-green);
    margin-bottom: 20px;
    text-align: center;
}

.tx-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #888;
    font-size: 0.8rem;
}

.tx-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #111;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease;
}

.tx-item.buy { color: var(--neon-green); }
.tx-item.sell { color: #ff3333; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shelves */
.shelves-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.shelves-section h2 {
    text-align: center;
    color: var(--neon-cyan);
    margin-bottom: 40px;
    font-size: 2rem;
}

.shelves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.shelf {
    border: 1px solid #333;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.shelf:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.shelf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.shelf:hover::before {
    transform: scaleX(1);
}

.shelf h3 {
    color: var(--neon-green);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stats-list {
    list-style: none;
}

.stats-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #333;
    padding-bottom: 5px;
}

.link-grid {
    display: grid;
    gap: 10px;
}

.link-grid a {
    display: block;
    padding: 10px;
    border: 1px solid #333;
    text-align: center;
}

.link-grid a:hover {
    background: var(--neon-cyan);
    color: #000;
}

/* Footer */
footer {
    border-top: 1px solid #333;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    color: #666;
}

.footer-logo {
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hologram-container {
        width: 300px;
        height: 300px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    
    .tx-header, .tx-item {
        font-size: 0.7rem;
    }
}
