/* Flite style.css */

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

html {
    font-size: 16px; /* Base font size for rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle, #ff4500 0%, #ff6b35 25%, #ff8c00 50%, #ff1744 100%);
    min-height: 100vh;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Main Home Container */
.home-main-container {
    background: radial-gradient(circle, #ff4500 0%, #ff6b35 25%, #ff8c00 50%, #ff1744 100%);
    min-height: 100vh;
    position: relative;
}

.container-3d {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    background: transparent;
}

.content-3d {
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.title-3d {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00, #ff4500);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-gradient 3s infinite;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 0 60px rgba(255, 140, 0, 0.6);
    margin-bottom: 20px;
    letter-spacing: 10px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.title-3d.fire-gradient {
    will-change: background-position, filter;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.subtitle-3d {
    font-size: 1.8rem;
    color: #ffff00;
    margin-bottom: 40px;
    text-shadow: 0 0 20px #ff8c00, 0 0 40px #ff4500;
    font-weight: 300;
    letter-spacing: 3px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.status-3d {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-3d h3 {
    color: #ffff00;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ff8c00;
    font-weight: 600;
}

.status-3d p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

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

.cta-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    color: #fff;
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.cta-btn.primary:hover {
    background: linear-gradient(45deg, #ff6b35, #ff8c00);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: #ffff00;
    border-color: #ffff00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
    transform: translateY(-2px);
}

.cta-btn:focus {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
    transform: translateY(-2px);
}

.cta-btn.primary:focus {
    background: linear-gradient(45deg, #ff6b35, #ff8c00);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.cta-btn.secondary:focus {
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

@keyframes fire-gradient {
    0%, 100% { 
        background-position: 0% 50%; 
        filter: hue-rotate(0deg); 
    }
    25% { 
        background-position: 50% 0%; 
        filter: hue-rotate(5deg); 
    }
    50% { 
        background-position: 100% 50%; 
        filter: hue-rotate(10deg); 
    }
    75% { 
        background-position: 50% 100%; 
        filter: hue-rotate(5deg); 
    }
}

/* Optimize animations for performance */
.fire-gradient {
    will-change: background-position, filter;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
    .title-3d { 
        font-size: 2.5rem; 
        letter-spacing: 2px; 
        line-height: 1.2;
    }
    .subtitle-3d { 
        font-size: 1.1rem; 
        letter-spacing: 1px; 
        line-height: 1.4;
    }
    .status-3d { 
        padding: 1rem; 
        margin: 1rem; 
        border-radius: 10px;
    }
    .cta-buttons { 
        flex-direction: column; 
        align-items: center;
        gap: 0.75rem;
    }
    .cta-btn { 
        width: 100%; 
        max-width: 200px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .title-3d { 
        font-size: 3.5rem; 
        letter-spacing: 3px; 
        line-height: 1.1;
    }
    .subtitle-3d { 
        font-size: 1.2rem; 
        letter-spacing: 1.5px; 
        line-height: 1.3;
    }
    .status-3d { 
        padding: 1.5rem; 
        margin: 1.5rem; 
        border-radius: 12px;
    }
    .cta-buttons { 
        flex-direction: column; 
        align-items: center;
        gap: 1rem;
    }
    .cta-btn { 
        width: 100%; 
        max-width: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .title-3d { 
        font-size: 4.5rem; 
        letter-spacing: 4px; 
    }
    .subtitle-3d { 
        font-size: 1.4rem; 
        letter-spacing: 2px; 
    }
    .status-3d { 
        padding: 2rem; 
        margin: 2rem; 
    }
}

/* Simple Home Content Styles */
.home-content {
    background: transparent;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00, #ff4500);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-gradient 3s infinite;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.quick-start-section {
    margin-bottom: 2rem;
}

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

.step {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    border-color: #ff8c00;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.step h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.step .code-block {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #ff6b35;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.step .code-block pre {
    margin: 0;
    padding: 0.8rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.step .code-block code {
    color: #ffffff;
    background: none;
    padding: 0;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.6);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-content {
        padding: 2rem 0;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Footer Styles */
.site-footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #ff6b35;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-gradient 3s infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.footer-brand p {
    color: #ffcc99;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

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

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

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-section a:hover {
    color: #ff8c00;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #ffcc99;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* 404 Error Page Styles */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    background: transparent;
}

.error-content {
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00, #ff4500);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-gradient 3s infinite;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 0 60px rgba(255, 140, 0, 0.6);
    margin-bottom: 20px;
    letter-spacing: 15px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.error-subtitle {
    font-size: 2.2rem;
    color: #ffff00;
    margin-bottom: 40px;
    text-shadow: 0 0 20px #ff8c00, 0 0 40px #ff4500;
    font-weight: 300;
    letter-spacing: 4px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.error-status {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.error-status h3 {
    color: #ffff00;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #ff8c00;
    font-weight: 600;
}

.error-status p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Mobile Responsive for 404 page */
@media (max-width: 480px) {
    .error-title { 
        font-size: 4rem; 
        letter-spacing: 5px; 
        line-height: 1.2;
    }
    .error-subtitle { 
        font-size: 1.3rem; 
        letter-spacing: 2px; 
        line-height: 1.4;
    }
    .error-status { 
        padding: 1rem; 
        margin: 1rem; 
        border-radius: 10px;
    }
    .error-buttons { 
        flex-direction: column; 
        align-items: center;
        gap: 0.75rem;
    }
    .cta-btn { 
        width: 100%; 
        max-width: 200px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .error-title { 
        font-size: 5rem; 
        letter-spacing: 8px; 
        line-height: 1.1;
    }
    .error-subtitle { 
        font-size: 1.5rem; 
        letter-spacing: 2.5px; 
        line-height: 1.3;
    }
    .error-status { 
        padding: 1.5rem; 
        margin: 1.5rem; 
        border-radius: 12px;
    }
    .error-buttons { 
        flex-direction: column; 
        align-items: center;
        gap: 1rem;
    }
    .cta-btn { 
        width: 100%; 
        max-width: 250px;
    }
}


/* Documentation Styles */
.docs-container {
    min-height: 100vh;
    background: radial-gradient(circle, #ff4500 0%, #ff6b35 25%, #ff8c00 50%, #ff1744 100%);
    color: #fff;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

:root {
    --docs-max-width: 1400px;
    --sidebar-width: 260px;
    --sidebar-gap: 24px; /* gap between sidebar and main content */
}

.docs-nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff6b35;
    box-shadow: 0 2px 20px rgba(255, 107, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand .brand-link {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: fire-gradient 3s infinite;
}

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

.nav-link {
    color: #ffcc99;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffff00;
    background: rgba(255, 107, 53, 0.2);
    text-shadow: 0 0 10px #ff8c00;
}

.nav-link:focus {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
    color: #ffff00;
    background: rgba(255, 107, 53, 0.3);
    text-shadow: 0 0 10px #ff8c00;
}

.docs-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.docs-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00, #ff4500);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-gradient 3s infinite;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.docs-subtitle {
    font-size: 1.5rem;
    color: #ffff00;
    text-shadow: 0 0 20px #ff8c00;
    font-weight: 300;
    letter-spacing: 2px;
}

.docs-content {
    /* Centered docs container with proper responsive behavior */
    max-width: var(--docs-max-width);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    /* Ensure content stays centered */
    position: relative;
    z-index: 1;
}

/* Floating sidebar with independent container */
.docs-sidebar {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff6b35;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    box-shadow: 
        0 0 40px rgba(255, 107, 53, 0.6),
        0 0 80px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.docs-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.1) 0%, 
        rgba(255, 107, 53, 0.05) 25%, 
        rgba(255, 140, 0, 0.1) 50%, 
        rgba(255, 69, 0, 0.05) 75%, 
        rgba(255, 107, 53, 0.1) 100%);
    border-radius: 18px;
    pointer-events: none;
    z-index: -1;
}

/* Tablet and Desktop Layout */
@media (min-width: 769px) {
    /* Floating sidebar container */
    .docs-sidebar {
        position: fixed;
        left: 1.25rem; /* 20px */
        top: 6.25rem; /* 100px */
        width: 17.5rem; /* 280px */
        height: calc(100vh - 7.5rem); /* 120px */
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        /* Custom scrollbar */
        scrollbar-width: thin;
        scrollbar-color: #ff6b35 rgba(0, 0, 0, 0.3);
        /* Ensure sidebar stays in place during scroll */
        will-change: transform;
        backface-visibility: hidden;
        /* Prevent sidebar from affecting document flow */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .docs-sidebar:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 
            0 0 50px rgba(255, 107, 53, 0.8),
            0 0 100px rgba(255, 69, 0, 0.4),
            inset 0 1px 0 rgba(255, 140, 0, 0.3);
        border-color: #ff8c00;
    }

    /* Custom scrollbar for webkit browsers */
    .docs-sidebar::-webkit-scrollbar {
        width: 10px;
    }

    .docs-sidebar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 6px;
        border: 1px solid rgba(255, 107, 53, 0.2);
    }

    .docs-sidebar::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #ff4500, #ff6b35, #ff8c00, #ff4500);
        background-size: 200% 200%;
        border-radius: 6px;
        box-shadow: 
            0 0 15px rgba(255, 107, 53, 0.6),
            inset 0 1px 0 rgba(255, 140, 0, 0.3);
        animation: fire-gradient 2s infinite;
    }

    .docs-sidebar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(45deg, #ff8c00, #ff4500, #ff6b35, #ff8c00);
        box-shadow: 
            0 0 20px rgba(255, 107, 53, 0.8),
            inset 0 1px 0 rgba(255, 140, 0, 0.5);
    }

    .docs-sidebar::-webkit-scrollbar-corner {
        background: rgba(0, 0, 0, 0.4);
    }

    /* Main content area - properly centered with floating sidebar */
    .docs-content {
        max-width: var(--docs-max-width);
        margin: 0 auto;
        padding: 0 2rem 4rem;
        /* Create space for floating sidebar while maintaining centering */
        margin-left: 20rem; /* 320px - Space for floating sidebar */
        margin-right: 0; /* No right margin to maintain centering */
        /* Ensure content stays centered during scroll */
        position: relative;
        z-index: 1;
    }

    /* Ensure main content area is properly sized and centered */
    .docs-main {
        width: 100%;
        min-width: 37.5rem; /* 600px */
        max-width: calc(var(--docs-max-width) - 20rem); /* 320px */
        margin: 0 auto;
        /* Ensure content stays centered within available space */
        position: relative;
        /* Prevent content from shifting during scroll */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

.docs-sidebar h3 {
    background: linear-gradient(45deg, #ff4500, #ff6b35, #ffff00, #ff8c00, #ff4500);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire-gradient 3s infinite;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin: 0;
    border-bottom: 2px solid #ff6b35;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: center;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

.toc {
    list-style: none;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    margin: 0;
}

.toc li {
    margin-bottom: 0.6rem;
}

.toc a {
    color: #ffcc99;
    text-decoration: none;
    padding: 0.9rem 1.3rem;
    border-radius: 12px;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    position: relative;
    margin-bottom: 0.5rem;
    border-left: 4px solid transparent;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transform-style: preserve-3d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.toc a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.1) 0%, 
        rgba(255, 107, 53, 0.05) 50%, 
        rgba(255, 140, 0, 0.1) 100%);
    border-radius: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.toc a:hover {
    color: #ffff00;
    background: rgba(255, 107, 53, 0.2);
    text-shadow: 0 0 15px #ff8c00, 0 0 30px #ff4500;
    transform: translateX(12px) translateY(-2px) rotateY(5deg);
    border-left-color: #ff6b35;
    box-shadow: 
        0 4px 20px rgba(255, 107, 53, 0.4),
        0 0 30px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 140, 0, 0.3);
    border-color: #ff8c00;
}

.toc a:hover::before {
    opacity: 1;
}

.toc a.active {
    color: #ffff00;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.3) 0%, 
        rgba(255, 107, 53, 0.2) 50%, 
        rgba(255, 140, 0, 0.3) 100%);
    text-shadow: 0 0 20px #ff8c00, 0 0 40px #ff4500;
    transform: translateX(8px) scale(1.02);
    border-left-color: #ffff00;
    box-shadow: 
        0 6px 25px rgba(255, 107, 53, 0.5),
        0 0 40px rgba(255, 69, 0, 0.4),
        inset 0 1px 0 rgba(255, 140, 0, 0.4);
    border-color: #ffff00;
    font-weight: 700;
}

.toc a.active::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.2) 0%, 
        rgba(255, 107, 53, 0.1) 50%, 
        rgba(255, 140, 0, 0.2) 100%);
}

.toc a:focus {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
    color: #ffff00;
    background: rgba(255, 107, 53, 0.3);
    text-shadow: 0 0 15px #ff8c00;
    transform: translateX(5px);
    border-left-color: #ffff00;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.docs-main {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
    min-height: 200vh;
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.docs-section h2 {
    color: #ffff00;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px #ff8c00;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.docs-section h3 {
    color: #ffcc99;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-shadow: 0 0 15px #ff8c00;
}

.docs-section h4 {
    color: #ffcc99;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    text-shadow: 0 0 10px #ff8c00;
}

.docs-section p {
    color: #ffdd99; /* Improved contrast */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #ff6b35;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.code-block.small {
    margin: 1rem 0;
}

.code-header {
    background: rgba(255, 107, 53, 0.2);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ff6b35;
}

.code-title {
    color: #ffff00;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 10px #ff8c00;
}

.copy-btn {
    background: rgba(255, 69, 0, 0.8);
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 69, 0, 1);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
}

.code-block code {
    color: #ffcc99;
    background: none;
    padding: 0;
}

.info-box {
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid #ff8c00;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.info-box h4 {
    color: #ffff00;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.info-box code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #ffcc99;
    font-family: 'Courier New', monospace;
}

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

.feature-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
    border-color: #ff8c00;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #ffff00;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px #ff8c00;
}

.feature-card p {
    color: #ffcc99;
    font-size: 1rem;
    margin: 0;
}

.command-list {
    margin: 2rem 0;
}

.command-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff6b35;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.command-item h4 {
    color: #ffff00;
    margin-bottom: 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.command-item h4 code {
    background: rgba(255, 107, 53, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: #ffff00;
    font-weight: bold;
}

.example-section {
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.config-section {
    margin: 2rem 0;
}

.troubleshoot-item {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid #ff4500;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
}

.troubleshoot-item h3 {
    color: #ff4500;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.docs-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #ff6b35;
    text-align: center;
}

.footer-content p {
    color: #ffcc99;
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #ffff00;
    text-decoration: none;
    text-shadow: 0 0 10px #ff8c00;
}

.footer-content a:hover {
    text-shadow: 0 0 20px #ff8c00;
}

.footer-note {
    font-size: 0.9rem;
    color: #ff8c00 !important;
    margin-top: 1rem;
}

/* Mobile Layout - Sidebar above content */
@media (max-width: 480px) {
    .docs-content {
        max-width: 100%;
        margin: 0;
        padding: 0 0.75rem 2rem;
    }

    .docs-sidebar {
        width: 100%;
        margin-bottom: 1rem;
        position: relative;
        height: auto;
        max-height: none;
        padding: 0;
        border-radius: 15px;
    }

    .docs-main {
        width: 100%;
        min-width: auto;
        padding: 1.5rem;
    }

    .docs-title {
        font-size: 2rem;
        letter-spacing: 2px;
        line-height: 1.2;
    }

    .docs-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .docs-content {
        max-width: 100%;
        margin: 0;
        padding: 0 1rem 3rem;
    }

    .docs-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
        position: relative;
        height: auto;
        max-height: none;
        padding: 0;
        border-radius: 18px;
    }

    .docs-main {
        width: 100%;
        min-width: auto;
        padding: 2rem;
    }

    .docs-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .docs-subtitle {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }
}

/* Large Desktop Layout */
@media (min-width: 1200px) {
    .docs-sidebar {
        left: 2.5rem; /* 40px */
        width: 18.75rem; /* 300px */
    }

    .docs-content {
        margin-left: 22.5rem; /* 360px - Adjust for wider sidebar */
        /* Ensure centering is maintained on larger screens */
        max-width: var(--docs-max-width);
    }

    .docs-main {
        max-width: calc(var(--docs-max-width) - 22.5rem); /* 360px */
    }
}

/* Ultra wide screens: better centering */
@media (min-width: 1600px) {
    .docs-content {
        /* On very wide screens, ensure content doesn't get too spread out */
        max-width: min(var(--docs-max-width), 75rem); /* 1200px */
    }
}

/* High DPI and zoom support */
@media (min-resolution: 2dppx) {
    .docs-sidebar {
        border-width: 1px; /* Thinner borders on high DPI */
    }
    
    .docs-main {
        border-width: 1px;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fire-gradient {
        animation: none !important;
    }
}

