/* === CYBERPUNK / SCI-FI UI THEME === */
/* Inspired by: The Matrix, Terminator 2, Edge of Tomorrow */

:root {
    --primary: #00ff41;           /* Matrix green */
    --primary-dim: #00ff4180;
    --secondary: #00d9ff;         /* T-800 cyan */
    --accent: #ff3366;            /* Terminator red */
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --bg-panel: rgba(0, 20, 0, 0.85);
    --text-primary: #00ff41;
    --text-secondary: #00d9ff;
    --text-muted: #44ff4480;
    --border: #00ff4130;
    --glow: 0 0 10px var(--primary), 0 0 20px var(--primary-dim);
    --glow-strong: 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 60px var(--primary-dim);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-display: 'Orbitron', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* === MATRIX RAIN BACKGROUND === */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* === SCANLINES OVERLAY === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.75; }
}

/* === HUD FRAME === */
.hud-frame {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: radial-gradient(ellipse at center, rgba(0, 20, 0, 0.4) 0%, transparent 70%);
}

/* HUD Corners */
.hud-corner {
    position: fixed;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    z-index: 100;
}

.hud-corner.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-corner.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.hud-corner.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* === HEADER === */
.hud-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.hud-nav {
    display: flex;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.nav-item {
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    box-shadow: var(--glow);
}

/* === HERO SECTION === */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Glitch Effect */
.glitch-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.glitch {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--primary);
    text-shadow: var(--glow-strong);
    position: relative;
    animation: glitch-skew 3s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary);
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0%, 100% { clip-path: inset(20% 0 30% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(10% 0 80% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(30% 0 40% 0); }
}

@keyframes glitch-anim-2 {
    0%, 100% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    10% { transform: skew(0.5deg); }
    20% { transform: skew(-0.5deg); }
    30% { transform: skew(0.3deg); }
    40% { transform: skew(-0.3deg); }
    50% { transform: skew(0.2deg); }
}

/* Subtitle */
.subtitle-container {
    margin-bottom: 2rem;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-shadow: 0 0 10px var(--secondary);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 600px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow);
}

/* Mission Statement */
.mission-statement {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.mission-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    color: rgba(0, 255, 65, 0.9);
    text-shadow: 0 0 5px var(--primary-dim);
}

.typing-effect {
    border-right: 2px solid var(--primary);
    animation: blink 1s step-end infinite;
    display: inline-block;
    white-space: pre-wrap;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* === CTA BUTTONS === */
.cta-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hud-button {
    position: relative;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}

.hud-button:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.2), var(--glow);
    transform: translateY(-2px);
}

.hud-button.primary {
    border-color: var(--primary);
    color: var(--primary);
}

.hud-button.secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.hud-button.secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.2), 0 0 20px var(--secondary);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* === PILLARS SECTION === */
.pillars-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    color: var(--primary);
    text-shadow: var(--glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title.compact {
    margin-bottom: 2rem;
}

.title-prefix,
.title-suffix {
    color: var(--accent);
    font-weight: 400;
}

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

.pillar-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--primary-dim);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pillar-icon {
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.pillar-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.pillar-content {
    margin-bottom: 1.5rem;
}

.pillar-content p {
    color: rgba(0, 255, 65, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.pillar-stats {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-bar {
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    box-shadow: var(--glow);
    transition: width 1s ease;
}

/* === MANIFESTO SECTION === */
.manifesto-section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    position: relative;
}

.manifesto-section::before,
.manifesto-section::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
}

.manifesto-section::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.manifesto-section::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.manifesto-text {
    margin: 2rem 0;
}

.manifesto-line {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    color: rgba(0, 255, 65, 0.9);
}

.manifesto-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-mark {
    color: var(--accent);
    font-size: 1.5rem;
    vertical-align: middle;
}

.signature {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 8px;
    color: var(--primary);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sig-line {
    color: var(--text-muted);
}

.sig-text {
    text-shadow: var(--glow);
}

/* === FOOTER === */
.hud-footer {
    position: relative;
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.footer-status {
    display: flex;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.separator {
    color: var(--accent);
}

.tagline {
    color: var(--secondary);
    font-weight: bold;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hud-corner {
        width: 40px;
        height: 40px;
    }

    .hud-nav {
        gap: 1rem;
        font-size: 0.65rem;
    }

    .hero-section {
        padding: 1rem;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
    }

    .hud-button {
        width: 100%;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* === SELECTION STYLING === */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === ANIMATIONS ON SCROLL === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
