/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06d6a0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-code: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Header Styles */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 0 1rem;
}

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

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-icon {
    margin-right: 0.5rem;
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.github-link {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.github-link:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6rem 1rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 6rem 1rem;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Code Blocks */
pre {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 1.5rem 0;
}

code {
    font-family: var(--font-mono);
    background: var(--bg-code);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

pre code {
    background: none;
    padding: 0;
}

/* Content Styles */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 2rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
}

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

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--primary-color);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content th,
.content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: start;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Syntax Highlighting */
.highlight {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.highlight pre {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Enhanced code block styling */
.language-bash,
.language-yaml,
.language-json,
.language-go {
    display: block;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.badge:hover {
    background: var(--primary-dark);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Rouge Syntax Highlighting */
.highlight .c { color: #6a737d; font-style: italic; } /* Comment */
.highlight .err { color: #f85149; } /* Error */
.highlight .k { color: #ff7b72; } /* Keyword */
.highlight .o { color: #f85149; } /* Operator */
.highlight .cm { color: #6a737d; font-style: italic; } /* Comment.Multiline */
.highlight .cp { color: #79c0ff; font-weight: bold; } /* Comment.Preproc */
.highlight .c1 { color: #6a737d; font-style: italic; } /* Comment.Single */
.highlight .cs { color: #6a737d; font-style: italic; } /* Comment.Special */
.highlight .gd { color: #f85149; background-color: #40262e; } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gh { color: #79c0ff; font-weight: bold; } /* Generic.Heading */
.highlight .gi { color: #7ee787; background-color: #26432c; } /* Generic.Inserted */
.highlight .gp { color: #6a737d; } /* Generic.Prompt */
.highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: #79c0ff; } /* Generic.Subheading */
.highlight .kc { color: #ff7b72; } /* Keyword.Constant */
.highlight .kd { color: #ff7b72; } /* Keyword.Declaration */
.highlight .kn { color: #ff7b72; } /* Keyword.Namespace */
.highlight .kp { color: #ff7b72; } /* Keyword.Pseudo */
.highlight .kr { color: #ff7b72; } /* Keyword.Reserved */
.highlight .kt { color: #ffa657; } /* Keyword.Type */
.highlight .m { color: #a5d6ff; } /* Literal.Number */
.highlight .s { color: #a5d6ff; } /* Literal.String */
.highlight .na { color: #79c0ff; } /* Name.Attribute */
.highlight .nb { color: #d2a8ff; } /* Name.Builtin */
.highlight .nc { color: #ffa657; } /* Name.Class */
.highlight .no { color: #ffa657; } /* Name.Constant */
.highlight .nd { color: #d2a8ff; } /* Name.Decorator */
.highlight .ni { color: #ffa657; } /* Name.Entity */
.highlight .ne { color: #f85149; } /* Name.Exception */
.highlight .nf { color: #d2a8ff; } /* Name.Function */
.highlight .nl { color: #79c0ff; } /* Name.Label */
.highlight .nn { color: #ffa657; } /* Name.Namespace */
.highlight .nx { color: #79c0ff; } /* Name.Other */
.highlight .py { color: #79c0ff; } /* Name.Property */
.highlight .nt { color: #7ee787; } /* Name.Tag */
.highlight .nv { color: #79c0ff; } /* Name.Variable */
.highlight .ow { color: #ff7b72; } /* Operator.Word */
.highlight .w { color: #6a737d; } /* Text.Whitespace */
.highlight .mf { color: #a5d6ff; } /* Literal.Number.Float */
.highlight .mh { color: #a5d6ff; } /* Literal.Number.Hex */
.highlight .mi { color: #a5d6ff; } /* Literal.Number.Integer */
.highlight .mo { color: #a5d6ff; } /* Literal.Number.Oct */
.highlight .sb { color: #a5d6ff; } /* Literal.String.Backtick */
.highlight .sc { color: #a5d6ff; } /* Literal.String.Char */
.highlight .sd { color: #a5d6ff; } /* Literal.String.Doc */
.highlight .s2 { color: #a5d6ff; } /* Literal.String.Double */
.highlight .se { color: #a5d6ff; } /* Literal.String.Escape */
.highlight .sh { color: #a5d6ff; } /* Literal.String.Heredoc */
.highlight .si { color: #a5d6ff; } /* Literal.String.Interpol */
.highlight .sx { color: #a5d6ff; } /* Literal.String.Other */
.highlight .sr { color: #7ee787; } /* Literal.String.Regex */
.highlight .s1 { color: #a5d6ff; } /* Literal.String.Single */
.highlight .ss { color: #a5d6ff; } /* Literal.String.Symbol */
.highlight .bp { color: #d2a8ff; } /* Name.Builtin.Pseudo */
.highlight .vc { color: #79c0ff; } /* Name.Variable.Class */
.highlight .vg { color: #79c0ff; } /* Name.Variable.Global */
.highlight .vi { color: #79c0ff; } /* Name.Variable.Instance */
