@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --primary: #E95420;
    --primary-dark: #C74415;
    --secondary: #772953;
    --secondary-dark: #5E2042;
    --accent: #00A9BE;
    /* Cyan accent */

    /* Neutral / Surface */
    --bg-body: #FDFDFD;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.95);

    --text-main: #1A1A1A;
    --text-muted: #666666;
    --text-light: #FFFFFF;

    /* Metrics */
    --nav-height: 70px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(233, 84, 32, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    padding-top: var(--nav-height);
    /* Space for sticky nav */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    height: 100%;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 24px 0;
    /* Full height click area */
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Align to very bottom of navbar */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.btn-github {
    background-color: var(--text-main);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-github:hover {
    background-color: black;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at top right, rgba(233, 84, 32, 0.1), transparent 60%),
        radial-gradient(circle at bottom left, rgba(119, 41, 83, 0.1), transparent 60%);
    padding: 6rem 1rem 4rem;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 60%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(233, 84, 32, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(233, 84, 32, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Hero Split Layout --- */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
}

.hero-content {
    flex: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-image img {
        transform: none;
        max-width: 80%;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* --- Generic Grid Layouts --- */
.container {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-link {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* --- Cards --- */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(233, 84, 32, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
}

.arch-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* --- Documentation Content Styles (Improved) --- */
.docs-content {
    background: white;
    padding: 4rem 5rem;
    /* More generous padding */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    /* Larger base font size for reading */
    color: #333;
}

.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
}

.docs-content h2 {
    font-size: 2rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.docs-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.docs-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    /* Relaxed line height */
    color: #444;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.docs-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.docs-content blockquote {
    background: #FFF5F2;
    /* Subtle orange tint */
    border-left: 6px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

.docs-content code {
    font-family: 'JetBrains Mono', monospace;
    background: #F0F2F5;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.95em;
    color: var(--secondary-dark);
}

.docs-content pre {
    background: #111;
    color: #e0e0e0;
    padding: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.docs-content a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.docs-content a:hover {
    border-bottom-color: var(--primary);
}

/* Enhanced Table Styling */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.docs-content th {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
}

.docs-content td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #444;
}

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

.docs-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.docs-content tr:hover {
    background-color: #f1f3f5;
}

/* --- Footer --- */
footer {
    background: #F4F4F4;
    border-top: 1px solid #E1E1E1;
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
}