/* style.css */
:root {
    --primary-color: #0A0E17;
    --secondary-color: #131A2A;
    --accent-color: #00F5FF;
    --accent-secondary: #FF00A0;
    --text-color: #ffffff;
    --glass-bg: rgba(10, 25, 48, 0.3);
    --terminal-green: #00FF41;
}

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

body {
    font-family: 'Roboto Mono', monospace;
    background: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVfJ/YAAAACHRSTlMzMzMzMzMzM85JBgAAAA1JREFUOMdjGAWjgBQAAAIoAAE/71xwAAAAAElFTkSuQmCC');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.terminal-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, transparent 3px, rgba(0, 255, 65, 0.05) 3px, rgba(0, 255, 65, 0.05) 4px);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.matrix-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(180deg, 
        rgba(0, 245, 255, 0.1) 0%, 
        rgba(0, 245, 255, 0.05) 15%, 
        rgba(0, 0, 0, 0) 40%);
    animation: matrix-fall 20s linear infinite;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text.glitch {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both;
}

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

/* Glass Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin: 4rem auto;
    max-width: 1200px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.05);
}

/* Section Titles */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Manifesto Section */
.manifesto-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Phases Section */
.phases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.phase {
    position: relative;
    padding: 2rem;
    background: rgba(10, 25, 48, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.phase:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.1);
    border-color: var(--accent-color);
}

.phase-number {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    background: var(--primary-color);
    padding: 0 10px;
    border-radius: 10px;
}

.phase h3 {
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-color);
}

/* Principles Section */
.principles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle {
    position: relative;
    padding: 2rem;
    background: rgba(10, 25, 48, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.principle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.1);
    border-color: var(--accent-color);
}

.principle .number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.principle h3 {
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Join Section */
.join-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Glow Button */
.glow-button {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.glow-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Data Counter */
.data-counter {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.counter {
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.binary-signature {
    font-size: 0.8rem;
    opacity: 0.5;
    font-family: 'Roboto Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .glass-card {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    .phases-container, 
    .principles-container {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Terminal Text Animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}


/* Add these at the end of your CSS file */

/* Fade-in animation for cards */
.glass-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.glass-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for accent elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 245, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
    }
}

.glow-button {
    animation: pulse 2s infinite;
}

/* Data stream animation */
@keyframes dataStream {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.data-counter {
    position: relative;
}

.data-counter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--accent-color));
    animation: dataStream 2s linear infinite;
}
