/* ResonanceOS v6 - Neural Interface Stylesheet */

:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00ff;
    --accent-color: #00ffff;
    --warning-color: #ff6b00;
    --success-color: #00ff88;
    --danger-color: #ff0066;
    
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(22, 33, 62, 0.8);
    
    --text-primary: #e0e0ff;
    --text-secondary: #b0b0d0;
    --text-muted: #8080a0;
    
    --border-color: rgba(0, 255, 204, 0.3);
    --glow-color: rgba(0, 255, 204, 0.5);
    
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Space Mono', monospace;
}

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

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -1;
    animation: neuralPulse 10s ease-in-out infinite alternate;
}

@keyframes neuralPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.neural-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
    animation: corePulse 2s ease-in-out infinite;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.6;
}

.ring-1 {
    width: 40px;
    height: 40px;
    border-color: var(--primary-color);
    animation: ringRotate 3s linear infinite;
}

.ring-2 {
    width: 70px;
    height: 70px;
    border-color: var(--accent-color);
    animation: ringRotate 4s linear infinite reverse;
}

.ring-3 {
    width: 100px;
    height: 100px;
    border-color: var(--secondary-color);
    animation: ringRotate 5s linear infinite;
}

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

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.main-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary-color);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--primary-color);
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px var(--primary-color); }
    100% { text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--accent-color); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.version-tag {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--accent-color);
    background: rgba(0, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    display: inline-block;
}

/* Navigation */
.main-nav {
    margin-bottom: 60px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

.nav-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.nav-card h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(22, 33, 62, 0.5);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.layer {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.node {
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 15px 30px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.layer::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--primary-color);
    opacity: 0.5;
}

.output-layer::after {
    display: none;
}

/* Module Sections */
.module-section {
    margin-bottom: 60px;
}

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

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.module-card:hover::before {
    transform: translateX(0);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.2);
}

.module-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.module-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.module-card h3 a:hover {
    color: var(--accent-color);
}

.module-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Metrics Dashboard */
.metrics-dashboard {
    margin-bottom: 60px;
}

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

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

.metric-value {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.metric-label {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.status-online {
    color: var(--success-color);
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .architecture-diagram {
        padding: 20px 10px;
    }
    
    .node {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Selection Styling */
::selection {
    background: rgba(0, 255, 204, 0.3);
    color: var(--text-primary);
}

/* Focus Styling */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
