/* OneVoice Project Website - Shared Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --primary-dark: #1e3c72;
    --primary-light: #2a5298;
    --accent: #00ff88;
    --accent-alt: #ff00ff;
    --bg-dark: #0f0f1e;
    --bg-darker: #1a1a2e;
    --bg-card: #1a1a2e;
    --text-light: #e0e0e0;
    --text-muted: #a8d5ff;
    --border-color: rgba(0, 212, 255, 0.2);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--text-light);
    transform: scale(1.05);
}

.nav-logo img {
    width: 30px;
    height: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-item a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Header/Hero */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

header .subtitle {
    font-size: 1.1em;
    color: var(--text-muted);
}

/* Typography */
h1 {
    font-size: 2.2em;
    color: var(--primary);
    margin: 30px 0 20px 0;
}

h2 {
    font-size: 1.8em;
    color: var(--primary);
    margin: 25px 0 15px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3em;
    color: var(--text-muted);
    margin: 20px 0 12px 0;
}

h4 {
    font-size: 1.1em;
    color: var(--text-light);
    margin: 15px 0 10px 0;
}

p {
    margin: 12px 0;
    line-height: 1.8;
}

strong {
    color: var(--accent);
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.card.accent {
    border-left-color: var(--accent);
}

.card.alt {
    border-left-color: var(--accent-alt);
}

/* Layers */
.layer {
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.layer.layer1 {
    border-left-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
}

.layer.layer2 {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.05);
}

.layer.layer3 {
    border-left-color: var(--accent-alt);
    background: rgba(255, 0, 255, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin: 5px 5px 5px 0;
}

.badge.high {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent);
}

.badge.medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.badge.low {
    background: rgba(255, 0, 255, 0.2);
    color: var(--accent-alt);
}

/* Lists */
ul, ol {
    margin: 15px 0 15px 30px;
}

ul li, ol li {
    margin: 8px 0;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 15px 0;
}

.feature-list li {
    padding: 10px 0 10px 25px;
    position: relative;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    margin: 10px 10px 10px 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
    color: var(--primary);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Code */
code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

pre code {
    background: transparent;
    padding: 0;
    color: var(--primary);
}

/* Stats Box */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2em;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}

.timeline-item {
    padding: 15px 15px 15px 30px;
    margin: 10px 0;
    background: rgba(0, 212, 255, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    position: relative;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-darker);
}

/* Highlight */
.highlight {
    background: rgba(0, 212, 255, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary);
}

/* Box */
.box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.9em;
    }

    .grid-col-2 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }

    .nav-item a {
        padding: 5px 8px;
        font-size: 0.85em;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.4em;
    }

    h1 {
        font-size: 1.4em;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}
