/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0f172a;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.hero {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;

    &::after {
        content: "";
        position: absolute;
        width: 1026px;
        height: 330px;
        top: 72px;
	    left: 50%;
	    background: #5e3fb0;
	    border-radius: 100%;
	    filter: blur(384px);
	    z-index: -1;
        opacity: 0.7;
	    transform: translateX(-50%);
    }
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #374151;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #cbd5e1;
}

h4 {
    font-size: 1.25rem;
    color: #94a3b8;
}

p {
    margin-bottom: 1rem;
    color: #9ca3af;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #475569;
}

.feature-card h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
}

/* Code blocks */
pre {
    background: #111827;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    border: 1px solid #374151;
}

code {
    background: #374151;
    color: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

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

/* Demo section */
.demo {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.code-example {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.code-block h4 {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* Tabs */
.code-tabs {
    margin: 1rem 0;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    background: #374151;
    color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #4b5563;
}

.tab-button.active,
.tab-button:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #374151;
}

th {
    background: #374151;
    font-weight: 600;
    color: #f1f5f9;
}

td code {
    font-size: 0.85rem;
    background: #4b5563;
    color: #e5e7eb;
}

/* Cards */
.next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.next-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.next-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border-color: #475569;
}

.next-card h3 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.next-card p {
    margin-bottom: 1.5rem;
    color: #9ca3af;
}

/* Issues and troubleshooting */
.issue {
    background: #645e324d;
    border: 1px solid #aa643a5c;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.issue h4 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.issue p {
    color: #fef3cd;
    margin: 0;
}

/* Props and parameters lists */
.props-list {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #334155;
}

.props-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #374151;
    color: #e5e7eb;
}

.props-list li:last-child {
    border-bottom: none;
}

/* CTA sections */
.getting-started {
    background: #1e293b;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

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

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #374151;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-grid,
    .stats-grid,
    .next-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

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

.feature-card,
.next-card,
.code-block {
    animation: fadeIn 0.6s ease-out;
}

/* Focus states for accessibility */
.btn:focus,
.tab-button:focus,
a:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Dark mode enhancements */
::selection {
    background: #6366f1;
    color: white;
}

/* Scrollbar styling for dark mode */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Enhanced link styles for dark mode */
a {
    color: #818cf8;
    transition: color 0.3s ease;
}

a:hover {
    color: #a5b4fc;
}

/* Article and section styling */
article {
    margin-bottom: 2rem;
}

/* Enhanced list styling */
ul li, ol li {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

ul li strong, ol li strong {
    color: #e5e7eb;
}

/* Enhanced form elements for dark mode */
input, textarea, select {
    background: #374151;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}