/* Custom styles not in Dima Framework */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 5rem 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent, rgba(139, 92, 246, 0.1));
    pointer-events: none;
}

.hero-blob-1, .hero-blob-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-blob-1 {
    top: 0;
    right: 0;
    background: rgba(124, 58, 237, 0.2);
    transform: translate(30%, -30%);
}

.hero-blob-2 {
    bottom: 0;
    left: 0;
    background: rgba(139, 92, 246, 0.2);
    transform: translate(-30%, 30%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s;
}

.dark .header {
    background-color: rgba(15, 15, 26, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box .search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

/* Sidebar */
.sidebar {
    width: 288px;
    flex-shrink: 0;
    position: fixed;
    top: 64px;
    right: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--background);
    border-left: 1px solid var(--border);
    padding: 1rem;
    z-index: 40;
    transition: transform 0.3s;
}

.sidebar-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
}

.sidebar-separator {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.main-content {
    flex: 1;
    margin-right: 288px;
    min-height: calc(100vh - 64px);
    overflow-x: hidden;
    max-width: 100vw;
}

.section {
    padding: 5rem 1rem;
    scroll-margin-top: 80px;
    overflow-x: hidden;
}

.section-alt {
    background: var(--muted);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--secondary);
    color: var(--secondary-foreground);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Code Block */
.code-block {
    background: #1e1e2e;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 100%;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
}

.code-filename {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-family: 'Fira Code', monospace;
}

.code-copy {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.code-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.code-content {
    padding: 1rem;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    max-width: 100%;
}

.code-content pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cdd6f4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.inline-code {
    display: inline;
    padding: 0.125rem 0.375rem;
    background: var(--muted);
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875em;
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0.5rem;
    color: var(--foreground);
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--muted);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 35;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Install Steps */
.install-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.install-step {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.install-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.install-step-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.install-step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.install-step-content p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Color Palette */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
}

/* Feature Card */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
    background: var(--card);
}

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

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

/* Dropdown RTL Fix */
.dropdown-menu {
    right: 0;
    left: auto;
}

/* Responsive */
@media (min-width: 1025px) {
    .mobile-menu-btn {
display: none !important;
    }
}

@media (max-width: 1024px) {
    .sidebar {
transform: translateX(100%);
    }
    
    .sidebar.open {
transform: translateX(0);
    }
    
    .main-content {
margin-right: 0;
    }
    
    .mobile-menu-btn {
display: flex !important;
    }
    
    .search-box {
display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
font-size: 2rem;
    }
    
    .section-title {
font-size: 1.75rem;
    }
    
    .hero-stats {
grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
grid-template-columns: 1fr;
    }
    
    .footer-bottom {
flex-direction: column;
gap: 1rem;
text-align: center;
    }
    
    .section {
padding: 3rem 0.75rem;
    }
    
    .code-content pre {
font-size: 0.75rem;
    }
}
    