/* Neo4j-Swift Website Styles */

:root {
    --neo4j-blue: #008cc1;
    --neo4j-dark: #0a1628;
    --swift-orange: #f05138;
    --text-color: #333;
    --bg-light: #f5f7fa;
    --bg-code: #1e1e1e;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background: var(--neo4j-dark);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--neo4j-dark) 0%, #1a365d 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.requirements {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn.primary {
    background: var(--swift-orange);
    color: var(--white);
}

.btn.secondary {
    background: var(--white);
    color: var(--neo4j-dark);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--neo4j-dark);
}

/* Getting Started */
.getting-started {
    background: var(--bg-light);
    max-width: none;
}

.getting-started > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.getting-started p {
    margin-bottom: 1rem;
}

pre {
    background: var(--bg-code);
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Projects */
.projects {
    display: grid;
    gap: 2rem;
}

.project {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.2s;
}

.project:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.project h3 {
    color: var(--neo4j-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project .description {
    margin-bottom: 1rem;
    color: #666;
}

.project .features {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.project .features li {
    margin-bottom: 0.5rem;
}

.project .links {
    margin-top: 1.5rem;
}

.project .btn {
    background: var(--neo4j-blue);
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

/* Code Examples */
.code-examples {
    background: var(--bg-light);
    max-width: none;
}

.code-examples > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.example {
    margin-bottom: 2rem;
}

.example h3 {
    margin-bottom: 1rem;
    color: var(--neo4j-dark);
}

/* Compatibility Table */
.compatibility table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.compatibility th,
.compatibility td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.compatibility th {
    background: var(--neo4j-dark);
    color: var(--white);
}

.compatibility tr:last-child td {
    border-bottom: none;
}

.compatibility tr:hover {
    background: var(--bg-light);
}

/* Footer */
footer {
    background: var(--neo4j-dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

footer a {
    color: var(--neo4j-blue);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    section {
        padding: 2rem 1rem;
    }
}
