/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
    background: #000;
    color: #00FF00;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #00FF00;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
}

/* Variables for consistency */
:root {
    --neon-green: #00FF00;
    --black-bg: #000;
    --terminal-border: 2px solid #00FF00;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--black-bg);
    border-bottom: var(--terminal-border);
    animation: pulseBorder 2s infinite alternate;
}

.navbar.scrolled {
    background: var(--black-bg);
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.2);
}

.navbar .logo,
.navbar .nav-toggle,
.navbar .nav-links a {
    font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    color: var(--neon-green);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a.active {
    text-shadow: 0 0 5px #00FF00;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        padding: 1rem;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black-bg);
        flex-direction: column;
        padding: 1rem;
        border-left: var(--terminal-border);
        border-right: var(--terminal-border);
        z-index: 999; /* Ensure navbar is above other content */
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    .nav-links a {
        padding: 1rem;
    }
}

/* Animations */
@keyframes pulseBorder {
    from { border-color: #00FF00; }
    to { border-color: #00CC00; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

/* Hero section styles */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--black-bg);
    overflow: hidden;
    border: var(--terminal-border);
    animation: pulseBorder 3s infinite alternate;
    z-index: 1; /* Ensure hero is below navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/noisy.png');
    opacity: 0.1;
    z-index: 2;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: typeWriter 2s steps(40, end);
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid #00FF00;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out 0.5s backwards;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: var(--black-bg);
    color: #00FF00;
    border: var(--terminal-border);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: rgba(0, 255, 0, 0.2);
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    z-index: 0;
}

.cta-button:hover::after {
    width: 100%;
}

.cta-button:hover {
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
    transform: translateY(-2px);
}

/* Mobile-specific hero and button styles */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    .hero-content {
        padding: 1rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.8rem 1.5rem;
        margin: 1rem auto;
        display: block;
    }
    .youtube-link {
        padding: 0.8rem 1.5rem;
        margin: 1rem auto;
        display: block;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* Animations */
@keyframes borderPulse {
    from { border-color: #00FF00; }
    to { border-color: #00CC00; }
}

@keyframes typeWriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Counters section styles */
.counters {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--black-bg);
    border-top: var(--terminal-border);
    border-bottom: var(--terminal-border);
}

.counters h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 2rem;
    border: 1px dashed #00FF00;
    animation: gridPulse 4s infinite alternate;
}

.counter {
    background: rgba(0, 255, 0, 0.05);
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

.counter:hover {
    transform: scale(1.05);
}

.counter .counter-value {
    font-size: 2rem;
    color: #00FF00;
    font-weight: 700;
}

.counter p {
    font-size: 1rem;
    color: #00FF00;
    opacity: 0.7;
}

.fund-established {
    margin-top: 1rem;
    font-size: 1rem;
    color: #00FF00;
    opacity: 0.5;
}

@keyframes gridPulse {
    from { box-shadow: 0 0 0 #00FF00; }
    to { box-shadow: 0 0 20px #00FF00; }
}

/* YouTube section styles */
.youtube {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--black-bg);
    border-top: var(--terminal-border);
    border-bottom: var(--terminal-border);
}

.youtube h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.youtube p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.youtube-link {
    padding: 0.8rem 1.5rem;
    background: var(--black-bg);
    color: #00FF00;
    border: var(--terminal-border);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.youtube-link:hover {
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
    transform: translateY(-2px);
}

/* About, Strategy, and Contact section styles */
.about {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--black-bg);
    border-top: var(--terminal-border);
    border-bottom: var(--terminal-border);
    z-index: 1; /* Ensure section is below navbar */
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 255, 0, 0.05);
    border: var(--terminal-border);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.terminal-header {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: glitch 2s infinite;
}

.terminal-subheader {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    opacity: 0.9;
}

.terminal-card {
    background: rgba(0, 255, 0, 0.1);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.terminal-card:hover {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.terminal-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.terminal-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

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

.section-divider {
    border-top: 1px dashed var(--neon-green);
    width: 100%;
    margin: 2rem auto;
    opacity: 0.5;
}

.cta-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.social-button {
    padding: 0.8rem 1.5rem;
    background: var(--black-bg);
    color: #00FF00;
    border: var(--terminal-border);
    border-radius: 10px;
    font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: rgba(0, 255, 0, 0.2);
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    z-index: 0;
}

.social-button:hover::after {
    width: 100%;
}

.social-button:hover {
    text-shadow: 0 0 10px #00FF00;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .social-button {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: backwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.2s; }
.fade-in-up:nth-child(2) { animation-delay: 0.4s; }
.fade-in-up:nth-child(3) { animation-delay: 0.6s; }

/* Funds page specific styles */
.funds-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.fund-box {
    background: rgba(0, 255, 0, 0.05);
    border: var(--terminal-border);
    border-radius: 5px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fund-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.fund-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fund-box p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer styles */
.footer {
    padding: 2rem;
    text-align: center;
    background: var(--black-bg);
}

.footer-content p {
    font-size: 1rem;
    color: #00FF00;
    opacity: 0.7;
    margin-bottom: 1rem;
}