@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600&display=swap');

:root {
    --primary-green: #00ff88;
    --secondary-green: #00cc6a;
    --dark-green: #003d1a;
    --neural-blue: #00d4ff;
    --deep-blue: #0a1a33;
    --dark-bg: #0d1117;
    --card-bg: #161b22;
    --border-color: #21262d;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-purple: #a855f7;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--deep-blue) 50%, var(--dark-bg) 100%);
}

#neuralCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(13, 17, 23, 0.8);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-green), var(--neural-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary-green);
}

.main {
    padding-top: 80px;
    min-height: 100vh;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.glitch {
    position: relative;
    display: block;
    color: var(--text-primary);
    animation: glitch 3s infinite;
}

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

.glitch::before {
    animation: glitch-1 3s infinite;
    color: var(--neural-blue);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: var(--primary-green);
    z-index: -2;
}

.highlight {
    background: linear-gradient(45deg, var(--primary-green), var(--neural-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.neural-network-display {
    position: relative;
    height: 80px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neural-blue), var(--deep-blue));
    border: 2px solid var(--primary-green);
    position: relative;
    margin: 0 2rem;
    animation: nodeGlow 2s infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-node.active {
    box-shadow: 0 0 30px var(--primary-green);
    animation: activeNode 1.5s infinite;
}

.network-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: innerPulse 1s infinite;
}

.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection {
    stroke: url(#connectionGradient);
    stroke-width: 2;
    opacity: 0.8;
    filter: url(#glow);
    stroke-dasharray: 10 5;
    animation: dataFlow 2s infinite linear;
}

.status-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    width: 100%;
}

.status-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-value {
    color: var(--primary-green);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.status-value.online {
    animation: statusBlink 2s infinite;
}

.features {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon {
    filter: grayscale(0);
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.neural-pulse {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(5px); }
    20% { transform: translateX(-5px); }
    30% { transform: translateX(5px); }
    40% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    70% { transform: translateX(5px); }
    80% { transform: translateX(-5px); }
    90% { transform: translateX(5px); }
}

@keyframes nodeGlow {
    from { box-shadow: 0 0 10px var(--neural-blue); }
    to { box-shadow: 0 0 20px var(--primary-green); }
}

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

@keyframes innerPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes dataFlow {
    0% { 
        stroke-dashoffset: 15;
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% { 
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 1rem;
        min-height: 70vh;
    }
    
    .neural-network-display {
        height: 80px;
        margin: 2rem 0;
    }
    
    .network-node {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }
    
    .network-node::after {
        width: 12px;
        height: 12px;
    }
    
    .network-connections {
        transform: scale(0.8);
    }
    
    .status-display {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .features {
        padding: 2rem 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .neural-pulse {
        display: none;
    }
}