/* Custom Properties */
:root {
    --primary-color: #c41e3a;
    --secondary-color: #002868;
    --accent-color: #ffffff;
    --gold-color: #ffd700;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-red: #c41e3a;
    --text-blue: #002868;
    --text-white: #ffffff;
    --border-color: #333333;
    --terminal-bg: rgba(10, 10, 20, 0.95);
    --glow-color: #c41e3a;
    
    --font-mono: 'Courier Prime', monospace;
    --font-tech: 'Orbitron', monospace;
    
    --shadow-glow: 0 0 20px rgba(196, 30, 58, 0.4);
    --shadow-red: 0 0 20px rgba(196, 30, 58, 0.4);
    --shadow-blue: 0 0 20px rgba(0, 40, 104, 0.4);
    --shadow-white: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: crosshair;
}

/* Particles Background */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: 
        radial-gradient(ellipse at 25% 25%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 75%, rgba(0, 40, 104, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(196, 30, 58, 0.02) 0%, rgba(0, 40, 104, 0.02) 50%, rgba(255, 255, 255, 0.02) 100%);
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.08;
    pointer-events: none;
    background: 
        linear-gradient(0deg, transparent 0%, rgba(196, 30, 58, 0.04) 30%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 40, 104, 0.04) 70%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.01) 50%, transparent 100%);
    animation: matrix-scroll 25s linear infinite;
}

@keyframes matrix-scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(196, 30, 58, 0.015) 2px,
        rgba(196, 30, 58, 0.015) 3px,
        transparent 3px,
        transparent 5px,
        rgba(0, 40, 104, 0.01) 5px,
        rgba(0, 40, 104, 0.01) 6px
    );
    animation: scanline-move 0.12s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

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

/* Header */
.terminal-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-ascii {
    font-size: 8px;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: var(--shadow-glow);
    animation: ascii-glow 2s ease-in-out infinite alternate;
}

@keyframes ascii-glow {
    0% { text-shadow: 0 0 5px var(--primary-color); }
    100% { text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color); }
}

.subtitle-glitch {
    font-family: var(--font-tech);
    font-size: 12px;
    color: var(--text-white);
    font-weight: 700;
    position: relative;
    margin-top: 5px;
    animation: glitch 3s infinite;
    text-shadow: var(--shadow-white);
}

.subtitle-glitch::before,
.subtitle-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.subtitle-glitch::before {
    color: var(--text-blue);
    animation: glitch-1 0.3s infinite;
}

.subtitle-glitch::after {
    color: var(--text-red);
    animation: glitch-2 0.3s infinite;
}

@keyframes glitch {
    0%, 96%, 100% { transform: translate(0); }
    2% { transform: translate(2px, 1px); }
    4% { transform: translate(-2px, -1px); }
    6% { transform: translate(1px, 2px); }
}

@keyframes glitch-1 {
    0%, 96%, 100% { transform: translate(0); }
    2% { transform: translate(-2px, 1px); opacity: 1; }
    4% { transform: translate(2px, -1px); opacity: 0; }
    6% { transform: translate(-1px, 2px); opacity: 1; }
}

@keyframes glitch-2 {
    0%, 96%, 100% { transform: translate(0); }
    2% { transform: translate(1px, -1px); opacity: 0; }
    4% { transform: translate(-1px, 2px); opacity: 1; }
    6% { transform: translate(2px, 1px); opacity: 0; }
}

.nav-terminal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.nav-link:hover::before {
    left: 0;
}

/* Hero Terminal */
.hero-terminal {
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.terminal-window {
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-glow);
    margin-bottom: 40px;
    overflow: hidden;
    animation: terminal-boot 3s ease-out;
}

@keyframes terminal-boot {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.terminal-header-bar {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5555; }
.control.yellow { background: #ffff55; }
.control.green { background: #55ff55; }

.terminal-title {
    font-weight: 700;
    font-size: 14px;
}

.terminal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-line {
    margin: 8px 0;
    animation: type-line 0.5s ease-in-out;
}

@keyframes type-line {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.prompt {
    color: var(--primary-color);
    font-weight: 700;
}

.command {
    color: var(--text-blue);
}

.output {
    color: var(--text-light);
}

.output.success {
    color: var(--primary-color);
}

.terminal-variable {
    color: var(--text-blue);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 40, 104, 0.5);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.blinking .cursor {
    animation: blink 1s infinite;
}

/* Hero CTA */
.hero-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Wojak Mascot */
.wojak-mascot {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.wojak-image {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wojak-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 
        0 0 30px rgba(196, 30, 58, 0.5),
        0 0 60px rgba(0, 40, 104, 0.3);
    animation: pulse 2s ease-in-out infinite;
    object-fit: cover;
    object-position: center top;
    filter: brightness(1.1) contrast(1.2);
}

.wojak-speech {
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 15px 25px;
    color: var(--text-white);
    font-family: var(--font-tech);
    font-weight: 700;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
    animation: bounce-text 4s ease-in-out infinite;
}

.wojak-speech::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--primary-color);
}

@keyframes bounce-text {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(-2px); }
    75% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-button {
    background: transparent;
    border: 3px solid var(--text-blue);
    color: var(--text-blue);
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 900;
    padding: 20px 40px;
    margin-bottom: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button:hover {
    color: var(--text-white);
    box-shadow: var(--shadow-blue);
    transform: scale(1.05);
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--text-blue), var(--primary-color), var(--text-blue));
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover .button-bg {
    left: 0;
}

/* Contract Display */
.contract-display {
    max-width: 500px;
    margin: 0 auto;
}

.contract-display label {
    display: block;
    color: var(--text-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-tech);
    text-align: center;
}

.contract-box {
    display: flex;
    background: var(--terminal-bg);
    border: 2px solid var(--text-blue);
    border-radius: 4px;
    padding: 15px;
    align-items: center;
    gap: 15px;
    word-break: break-all;
    box-shadow: var(--shadow-blue);
}

.contract-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-light);
}

.copy-btn {
    background: var(--text-blue);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-tech);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.copy-feedback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.copy-btn.copied .copy-feedback {
    transform: translateY(0);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-blue);
    text-shadow: var(--shadow-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.glitch {
    position: relative;
    animation: title-glitch 4s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
}

.glitch::before {
    color: var(--text-blue);
    animation: glitch-1 0.5s infinite;
}

.glitch::after {
    color: var(--text-red);
    animation: glitch-2 0.5s infinite;
}

@keyframes title-glitch {
    0%, 95%, 100% { transform: translate(0); }
    5% { transform: translate(2px, 1px); }
    10% { transform: translate(-1px, -2px); }
    15% { transform: translate(-3px, 1px); }
}

/* Data Section */
.data-section {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(0, 40, 104, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    position: relative;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.data-card {
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.1), rgba(255, 255, 255, 0.05), rgba(0, 40, 104, 0.1), transparent);
    transition: all 0.8s ease;
}

.data-card:hover::before {
    left: 100%;
}

.data-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.3);
}

.data-label {
    font-family: var(--font-tech);
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.data-value {
    font-family: var(--font-tech);
    font-size: 36px;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 0 0 10px currentColor;
}

.data-change {
    font-size: 14px;
    color: var(--gold-color);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Manifesto Section */
.manifesto-section {
    background: var(--bg-darker);
}

.manifesto-terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--text-red);
    border-radius: 8px;
    box-shadow: var(--shadow-red);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.manifesto-content {
    padding: 40px;
}

.manifesto-title {
    font-family: var(--font-tech);
    font-size: 32px;
    color: var(--text-red);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: var(--shadow-red);
}

.manifesto-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.manifesto-text p {
    margin-bottom: 20px;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.manifesto-signature {
    text-align: right;
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--text-red);
    font-size: 16px;
    border-top: 1px solid var(--text-red);
    padding-top: 20px;
}

.typed-text {
    animation: typing 3s steps(22, end), blink-caret 0.75s step-end infinite;
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
}

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

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

/* Freedom Section */
.freedom-section {
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.08) 0%, rgba(196, 30, 58, 0.05) 50%, rgba(255, 215, 0, 0.03) 100%);
}

.freedom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.freedom-stat {
    text-align: center;
    background: var(--terminal-bg);
    border: 2px solid var(--text-blue);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-blue);
    transition: all 0.3s ease;
}

.freedom-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 40, 104, 0.3);
}

.stat-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-number {
    font-family: var(--font-tech);
    font-size: 48px;
    font-weight: 900;
    color: var(--text-blue);
    margin-bottom: 15px;
    text-shadow: var(--shadow-blue);
}

.stat-label {
    font-family: var(--font-tech);
    font-size: 16px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Join Section */
.join-section {
    background: var(--bg-darker);
}

.join-terminal {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.join-title {
    font-family: var(--font-tech);
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 60px;
    text-shadow: var(--shadow-glow);
    letter-spacing: 3px;
}

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

.social-card {
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.5s ease;
    animation: rotate 2s linear infinite;
}

.social-card:hover::before {
    opacity: 0.1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.social-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--text-white);
    box-shadow: var(--shadow-white);
}

.social-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.social-label {
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.social-desc {
    color: var(--text-light);
    font-size: 16px;
}

/* Footer */
.footer-terminal {
    background: var(--bg-darker);
    border-top: 2px solid var(--primary-color);
    padding: 40px 0;
    text-align: center;
}

.footer-ascii {
    color: var(--primary-color);
    font-size: 12px;
    margin-bottom: 20px;
    text-shadow: var(--shadow-glow);
}

.disclaimer {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.built-by {
    margin-top: 10px;
    font-family: var(--font-tech);
}

.built-by a {
    color: var(--text-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.built-by a:hover {
    color: var(--text-white);
    text-shadow: 0 0 5px rgba(0, 40, 104, 0.5);
    transform: translateY(-1px);
}

.built-by a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-blue);
    transition: width 0.3s ease;
}

.built-by a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-ascii {
        font-size: 6px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 15px 30px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-terminal {
        justify-content: center;
    }
    
    .terminal-body {
        font-size: 12px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .freedom-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .contract-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-ascii {
        font-size: 4px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .manifesto-title {
        font-size: 24px;
    }
    
    .join-title {
        font-size: 32px;
    }
    
    .hero-terminal {
        padding-top: 140px;
    }
}