/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #00ff88;
    --secondary: #ff0080;
    --accent: #00d4ff;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --error: #ff4444;
    --success: #00ff88;
    --warning: #ffaa00;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--primary));
    --gradient-bg: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0a0a0a);
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(0, 255, 136, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(var(--shadow-glow));
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--shadow-glow);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: var(--shadow-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar CA Section */
.nav-ca {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all 0.3s ease;
}

.nav-ca:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: var(--shadow-glow);
}

.ca-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ca-address {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.ca-copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 2px;
    border-radius: 4px;
}

.ca-copy-btn:hover {
    color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
    animation: matrixPulse 4s ease-in-out infinite;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 136, 0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 212, 255, 0.03) 100%);
    animation: glitchScan 2s linear infinite;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    margin-bottom: var(--spacing-xl);
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-glow-strong);
    animation: titleGlow 3s ease-in-out infinite;
}

.subtitle {
    font-size: 0.4em;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    text-shadow: var(--shadow-glow);
}

/* Undo Button */
.undo-button-container {
    margin: var(--spacing-xxl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.undo-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.7);
    animation: none;
}

.undo-button:active {
    transform: scale(0.95);
}

.undo-button {
    position: relative;
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-glow-strong);
    animation: buttonPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-logo {
    width: 100%;
    height: 100%;
    animation: iconRotate 2s ease-in-out infinite;
    transition: all 0.3s ease;
    object-fit: cover;
    border-radius: 50%;
}

.button-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-top: var(--spacing-sm);
    text-align: center;
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: buttonRotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.undo-button:hover .button-glow {
    opacity: 1;
}

.undo-button:hover .button-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}




.button-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    position: relative;
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: var(--background);
    box-shadow: var(--shadow-glow);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.action-btn.primary:hover {
    background: var(--gradient-secondary);
}

.btn-glow {
    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 ease;
}

.action-btn:hover .btn-glow {
    left: 100%;
}

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--surface);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Terminal Window */
.terminal-window {
    background: var(--background);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.terminal-header {
    background: var(--surface-light);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: var(--error); }
.btn.yellow { background: var(--warning); }
.btn.green { background: var(--success); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
}

.terminal-content {
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.prompt {
    color: var(--primary);
    font-weight: 600;
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    margin-left: calc(var(--spacing-sm) + 1ch);
}

.output.error {
    color: var(--error);
}

.output.success {
    color: var(--success);
}

/* Meme Section */
.meme-section {
    padding: var(--spacing-xxl) 0;
    background: var(--background);
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.meme-card {
    background: var(--surface);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.meme-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.meme-screenshot {
    background: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.screenshot-content {
    padding: var(--spacing-md);
}

.screenshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.screenshot-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.screenshot-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.trade-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.trade-result.bad {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.trade-result.good {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.trade-text {
    color: var(--text-primary);
    font-weight: 500;
}

.trade-loss {
    color: var(--error);
    font-weight: 600;
}

.trade-gain {
    color: var(--success);
    font-weight: 600;
}

.undo-action {
    display: flex;
    justify-content: center;
    margin: var(--spacing-sm) 0;
}

.screenshot-undo {
    background: var(--gradient-primary);
    color: var(--background);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-undo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.portfolio-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(0, 255, 136, 0.05);
    border-radius: var(--radius-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--success);
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(0, 255, 136, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.username {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.message {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.meme-caption {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}


/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Undo Popup */
.undo-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.undo-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    max-width: 400px;
    margin: var(--spacing-md);
    box-shadow: var(--shadow-glow-strong);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.undo-popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.popup-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.popup-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.popup-btn {
    background: var(--gradient-primary);
    color: var(--background);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes matrixPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes glitchScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes titleGlow {
    0%, 100% { text-shadow: var(--shadow-glow-strong); }
    50% { text-shadow: 0 0 60px rgba(0, 255, 136, 0.8); }
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: var(--shadow-glow-strong); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 136, 0.7); }
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

@keyframes buttonRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-logo {
        align-self: flex-start;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .nav-ca {
        display: none;
    }
    
    .hero {
        padding-top: 200px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .undo-button {
        width: 150px;
        height: 150px;
    }
    
    
    .button-text {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .meme-grid {
        grid-template-columns: 1fr;
    }
    
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo .logo-image {
        height: 35px;
    }
    
    .footer-logo .logo-text {
        font-size: 1.3rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .undo-button {
        width: 120px;
        height: 120px;
    }
    
    
    .button-text {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .popup-content {
        margin: var(--spacing-sm);
        padding: var(--spacing-lg);
    }
}
