/* Base Styles & Variables */
:root {
    --neon-green: #39ff14;
    --neon-green-dim: #32d912;
    --dark-bg: #0a0a0a;
    --darker-bg: #060606;
    --lighter-bg: #1a1a1a;
    --glow-shadow: 0 0 5px rgba(57, 255, 20, 0.7);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--neon-green);
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Glitch Effects */
.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.glitch-ascii {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
    font-size: 1em;
    line-height: 1.2;
    white-space: pre;
    animation: textGlitch 3s infinite;
}

.glitch-text {
    position: relative;
    animation: textFlicker 3s linear infinite;
}

.glitch-box {
    position: relative;
    overflow: hidden;
}

.glitch-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    animation: glitchLine 2s linear infinite;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 6, 0.95);
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--neon-green);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    text-shadow: var(--glow-shadow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.ascii-title {
    font-family: monospace;
    font-size: 1.2em;
    margin-bottom: 2rem;
    display: inline-block;
    transform: scale(1.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
    color: var(--neon-green);
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
}

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

.btn:hover::before {
    left: 100%;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--darker-bg);
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    padding: 2rem;
    border: 1px solid var(--neon-green);
    background: rgba(57, 255, 20, 0.02);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Section Styles */
.section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* Cards and Grids */
.about-grid,
.tokenomics-grid,
.steps-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card,
.tokenomics-card,
.step-card,
.roadmap-card {
    padding: 2rem;
    border: 1px solid var(--neon-green);
    background: rgba(57, 255, 20, 0.02);
    transition: var(--transition);
    position: relative;
}

.about-card:hover,
.tokenomics-card:hover,
.step-card:hover,
.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes textFlicker {
    0% { opacity: 0.8; }
    2% { opacity: 1; }
    8% { opacity: 0.1; }
    9% { opacity: 1; }
    12% { opacity: 0.1; }
    20% { opacity: 1; }
    25% { opacity: 0.3; }
    30% { opacity: 1; }
    70% { opacity: 0.7; }
    72% { opacity: 0.2; }
    77% { opacity: 0.9; }
    100% { opacity: 0.9; }
}

@keyframes glitchLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes textGlitch {
    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); }
}

/* Copy Alert */
.copy-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--neon-green);
    color: var(--dark-bg);
    padding: 1rem;
    border-radius: 4px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ascii-title {
        font-size: 0.8em;
        transform: scale(1);
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green-dim);
}

/* Add these styles to your existing CSS */

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--neon-green);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--neon-green);
    transition: var(--transition);
}

/* Mobile Navigation Updates */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        background: rgba(6, 6, 6, 0.98);
        padding: 80px 2rem 2rem;
        transition: 0.3s ease-in-out;
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(57, 255, 20, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
        opacity: 0.8;
        width: 100%;
        text-align: left;
    }

    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Add overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}
