/* Modern Documentation Site Styles - Inspired by docs.flutter.dev */
/* Works on ANY web server - Pure HTML/CSS/JS */

/* ============================================
   CSS CUSTOM PROPERTIES (THEMING)
   ============================================ */

:root {
    /* Light mode colors - Flutter docs style */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #eef1f5;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --border-color: #e8eaed;
    --accent-color: #0175c2;
    --accent-hover: #0d5ba6;
    --code-bg: #f8f9fa;
    --sidebar-bg: #fafbfc;
    --info-bg: #e8f4fd;
    --info-border: #1967d2;
    --info-text: #1967d2;
    --warning-bg: #fef7e0;
    --warning-border: #f9ab00;
    --warning-text: #b06000;
    --success-bg: #e6f4ea;
    --success-border: #1e8e3e;
    --success-text: #137333;
    --shadow-sm: 0 1px 2px rgba(60,64,67,0.1);
    --shadow: 0 1px 3px rgba(60,64,67,0.12), 0 1px 2px rgba(60,64,67,0.08);
    --shadow-md: 0 4px 6px rgba(60,64,67,0.12);
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --accent-color: #4dabf7;
    --accent-hover: #74c0fc;
    --code-bg: #2d2d2d;
    --sidebar-bg: #242424;
    --info-bg: #1a2332;
    --info-border: #4dabf7;
    --warning-bg: #332a1a;
    --warning-border: #ffa726;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    min-height: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 0;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1rem;
    height: 64px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 0 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo {
    font-size: 1.75rem;
}

.ppdf-logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: #000000;
    letter-spacing: -0.5px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] .ppdf-logo {
    color: #ffffff;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.nav-search {
    flex: 0 1 300px;
}

.nav-search input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(1, 117, 194, 0.1);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.main-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(200px, 15%) minmax(0, 85%);
    column-gap: 2rem;
    padding: 2.5rem 1rem 2.5rem 2rem;
    align-items: start;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    background-color: transparent;
    padding: 0.25rem 1rem 1.5rem 0;
    border-radius: 0;
    align-self: start;
    max-width: 280px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

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

.sidebar-section ul li {
    margin-bottom: 0.25rem;
}

.sidebar-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    display: block;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-size: 1rem;
    border-left: 2px solid transparent;
}

.sidebar-section ul li a:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content {
    display: block;
}

article {
    max-width: 1000px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3.5rem 0 4rem;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero .lead {
    font-size: 1.375rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Typography */
article h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-left: 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Step containers */
.step-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.step-description {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.step-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* Landing page styles */
.landing-title {
    font-size: 24px;
    padding-bottom: 0px;
    margin-top: 20px;
    margin-left: 1.5rem;
    line-height: 65px;
    margin-bottom: 0px;
    font-weight: 400;
}

.landing-tagline {
    padding-top: 0px;
    font-size: 25px;
    padding-bottom: 20px;
    margin-top: 10px;
    margin-left: 1.5rem;
    margin-right: 2rem;
    line-height: 25px;
}

.landing-images {
    margin-left: 1rem;
    margin-right: 1rem;
}

.landing-button {
    margin-left: 1.5rem;
    padding-top: 15px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

article h2 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 3rem 0 1.25rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.3px;
}

article h3 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

article h4 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

article p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--text-primary);
}

article a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

article a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

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

article li {
    margin-bottom: 0.625rem;
    line-height: 1.75;
}

article li p {
    margin-bottom: 0.5rem;
}

/* Responsive images */
article img,
img {
    max-width: 100%;
    height: auto;
    display: block;
}

article code {
    background-color: var(--code-bg);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: 'Roboto Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    letter-spacing: 0.25px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    text-decoration: none;
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.code-block {
    background-color: var(--code-bg);
    border-radius: 4px;
    margin: 1.75rem 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.code-lang {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.copy-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.copy-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

.code-block pre {
    padding: 1.25rem;
    overflow-x: auto;
    margin: 0;
    -webkit-overflow-scrolling: touch;
}

.code-block code {
    font-family: 'Roboto Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: none;
    padding: 0;
}

/* Syntax highlighting */
.tag { color: #d73a49; }
.attr { color: #005cc5; }
.string { color: #032f62; }
.keyword { color: #d73a49; }
.method { color: #6f42c1; }
.property { color: #005cc5; }
.value { color: #032f62; }
.comment { color: #6a737d; }
.number { color: #005cc5; }
.selector { color: #6f42c1; }

[data-theme="dark"] .tag { color: #ff7b72; }
[data-theme="dark"] .attr { color: #79c0ff; }
[data-theme="dark"] .string { color: #a5d6ff; }
[data-theme="dark"] .keyword { color: #ff7b72; }
[data-theme="dark"] .method { color: #d2a8ff; }
[data-theme="dark"] .property { color: #79c0ff; }
[data-theme="dark"] .value { color: #a5d6ff; }
[data-theme="dark"] .comment { color: #8b949e; }
[data-theme="dark"] .selector { color: #d2a8ff; }

/* ============================================
   INFO & WARNING BOXES
   ============================================ */

.info-box, .warning-box, .success-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    border-left: 3px solid;
    box-shadow: var(--shadow-sm);
}

.info-box {
    background-color: var(--info-bg);
    border-color: var(--info-border);
}

.info-box strong,
.info-box a {
    color: var(--info-text);
}

.warning-box {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
}

.warning-box strong,
.warning-box a {
    color: var(--warning-text);
}

.success-box {
    background-color: var(--success-bg);
    border-color: var(--success-border);
}

.success-box strong,
.success-box a {
    color: var(--success-text);
}

.note-box {
    background-color: var(--bg-secondary);
    border-color: var(--text-light);
    border-left: 3px solid var(--text-light);
}

.info-icon, .warning-icon, .success-icon, .note-icon {
    font-size: 1.375rem;
    flex-shrink: 0;
    line-height: 1;
}

.info-content, .warning-content {
    flex: 1;
}

/* ============================================
   FEATURE GRID
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ============================================
   STEPS / NUMBERED LIST
   ============================================ */

.steps-container {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.step-number {
    background-color: var(--accent-color);
    color: white;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.step-content p {
    margin-bottom: 1rem;
}

/* ============================================
   DEPLOYMENT CARDS
   ============================================ */

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

.deployment-card {
    background-color: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.deployment-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.deployment-card ol {
    padding-left: 1.5rem;
}

.deployment-card li {
    margin-bottom: 0.5rem;
}

/* ============================================
   API DOCUMENTATION
   ============================================ */

.api-block {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.api-block h3 {
    margin-top: 0;
}

.api-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

.api-table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
}

.api-table code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* ============================================
   CHECKLIST
   ============================================ */

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.625rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   TABLE OF CONTENTS (TOC)
   ============================================ */

.toc {
    width: 100%;
    max-width: 140px;
    position: sticky;
    top: 84px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.toc h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 0.875rem;
    font-weight: 500;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc ul li {
    margin-bottom: 0.5rem;
}

.toc ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
    display: block;
    padding: 0.25rem 0;
    line-height: 1.4;
}

.toc ul li a:hover {
    color: var(--accent-color);
    padding-left: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* ============================================
   FLUTTER-STYLE NUMBERED STEPS
   ============================================ */

.numbered-steps-alt {
    margin: 2.5rem 0;
}

.step-alt {
    display: block;
    margin-bottom: 3rem;
    position: relative;
}

.step-number-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.step-content-alt {
    display: inline-block;
    width: calc(100% - 2.5rem);
    vertical-align: top;
}

.step-content-alt h3 {
    display: inline;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    vertical-align: middle;
}

.step-content-alt > p,
.step-content-alt > ol,
.step-content-alt > .info-box {
    margin-top: 1rem;
}

.substeps {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.substeps li {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.substeps li ol {
    list-style: lower-alpha;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.substeps li ol li {
    margin-bottom: 0.5rem;
}

.code-inline-block {
    display: inline-block;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
}

/* ============================================
   JOURNEY CARDS (CONTINUE SECTION)
   ============================================ */

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.journey-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.journey-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.journey-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.journey-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1rem 0;
    color: var(--text-primary);
}

.journey-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journey-list li {
    margin-bottom: 0.625rem;
}

.journey-list li a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.journey-list li a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and smaller desktops */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: minmax(200px, 18%) minmax(0, 82%);
        gap: 2rem 1.5rem;
        padding: 2rem 1.5rem;
    }
}

/* Tablet portrait and larger phones */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .sidebar {
        max-width: 200px;
        padding: 0 0.5rem 1rem 0;
    }

    article h1 {
        font-size: 1.65rem;
        margin-left: 0;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.25rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .navbar {
        padding: 0 0.75rem;
        height: auto;
        min-height: 64px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .ppdf-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        order: 3;
        flex-basis: auto;
        gap: 0.25rem;
        justify-content: flex-start;
    }

    .nav-links a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }

    .nav-search {
        flex: 1;
        min-width: 150px;
    }

    .nav-search input {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }

    .theme-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 1rem;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .sidebar {
        position: static;
        max-width: 100%;
        padding: 1rem;
        background-color: var(--bg-secondary);
        border-radius: 4px;
        border: 1px solid var(--border-color);
        margin-bottom: 1rem;
    }

    article {
        max-width: 100%;
    }

    article h1 {
        font-size: 1rem;
        margin-bottom: 1rem;
        margin-left: 0;
    }

    article h2 {
        font-size: 1.375rem;
        margin: 2rem 0 1rem;
    }

    article h3 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem;
    }

    article p {
        margin-bottom: 0.875rem;
    }

    .lead {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .feature-grid, .deployment-options, .journey-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hero {
        padding: 2rem 0 2.5rem;
        margin-bottom: 2rem;
    }

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

    .hero .lead {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-actions .btn {
        width: auto;
        text-align: center;
    }
    
    .landing-title {
        font-size: 24px;
        line-height: 40px;
        margin-left: 1rem;
    }
    
    .landing-tagline {
        font-size: 20px;
        line-height: 24px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .landing-images {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
    
    .landing-button {
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Additional mobile improvements for tablets and phones */
@media (max-width: 768px) {
    .info-box, .warning-box, .success-box, .note-box {
        padding: 1rem;
        margin: 1.5rem 0;
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .info-icon, .warning-icon, .success-icon, .note-icon {
        font-size: 1.25rem;
    }

    .api-table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .api-table th,
    .api-table td {
        padding: 0.5rem;
    }

    .api-block {
        padding: 1.25rem;
    }

    .numbered-steps-alt {
        margin: 1.5rem 0;
    }

    .journey-card, .feature-card, .deployment-card {
        padding: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .ppdf-logo {
        font-size: 1.1rem;
    }

    .nav-links {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        text-align: center;
        padding: 0.5rem;
    }

    .main-container {
        padding: 0.75rem;
        gap: 1rem;
    }

    .sidebar {
        padding: 0.75rem;
    }

    article h1 {
        font-size: 1.2rem;
        margin-left: 0;
    }
    
    article h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    article h3 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    article p {
        margin-bottom: 0.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    article ul, article ol {
        padding-left: 1.5rem;
    }
    
    .landing-title {
        font-size: 20px;
        line-height: 32px;
        margin-left: 0.75rem;
    }
    
    .landing-tagline {
        font-size: 18px;
        line-height: 22px;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        margin-top: 20px;
    }
    
    .landing-images {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .landing-button {
        margin-left: 0.75rem;
    }
    
    .step-alt {
        margin-bottom: 2rem;
    }
    
    .step-number-alt {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.875rem;
        margin-right: 0.5rem;
    }
    
    .step-content-alt {
        width: calc(100% - 2rem);
    }
    
    .step-content-alt h3 {
        font-size: 1.125rem;
        display: block;
        margin-top: 0.5rem;
    }
    
    .substeps {
        padding-left: 1.25rem;
    }
    
    .info-box, .warning-box, .success-box, .note-box {
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .code-block {
        margin: 1.25rem 0;
    }
    
    .code-block pre {
        padding: 0.875rem;
        font-size: 0.8125rem;
    }
    
    .journey-card, .feature-card, .deployment-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   FOCUS STYLES (ACCESSIBILITY)
   ============================================ */

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

