:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e293b;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white !important;
    border-radius: var(--radius);
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 4rem;
    background: linear-gradient(to bottom, #f0f9ff, white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Code Blocks */
.code-block {
    background: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.code-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.code-header span {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-header span::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #10b981;
}

.copy-btn {
    background: #404040;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #4a5568;
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    background: #1a1a1a;
    margin: 0;
}

code {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* API Reference Section */
.api {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.api h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.api-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.api-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.api-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.api-header h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.api-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.api-params, .api-returns {
    margin-top: 2rem;
}

.api-params h4, .api-returns h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-params h4::before {
    content: '→';
    color: var(--primary-color);
}

.api-returns h4::before {
    content: '←';
    color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border-radius: var(--radius);
    overflow: hidden;
}

th {
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
}

th, td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

td code {
    background: #f1f5f9;
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.api-returns p {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* Method type indicators */
.method-get .api-badge { background: #10b981; }
.method-post .api-badge { background: #3b82f6; }
.method-put .api-badge { background: #f59e0b; }
.method-delete .api-badge { background: #ef4444; }

/* Add syntax highlighting */
.token.string { color: #10b981; }
.token.number { color: #3b82f6; }
.token.keyword { color: #8b5cf6; }
.token.comment { color: #64748b; }

/* Installation & Usage Sections */
.installation, .usage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.installation h2, .usage h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}


/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Show More Button Styles */
.show-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 1rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: var(--background-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.show-more-btn i {
    transition: transform 0.2s ease;
}

.show-more-btn.active i {
    transform: rotate(180deg);
}

/* Show More Content Styles */
.show-more-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.show-more-content.active {
    display: block;
}

.show-more-content h5 {
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
}

.show-more-content h5:first-child {
    margin-top: 0;
}

.returns-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.returns-table th,
.returns-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.returns-table th {
    background: var(--background-color);
    font-weight: 600;
}

.returns-table td code {
    background: var(--background-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* View Docs Button Styles */
.view-docs-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.view-docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-docs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-docs-btn i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.view-docs-btn:hover i {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .view-docs-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Footer */
footer {
    background: var(--secondary-color);
    padding: 6rem 1rem 2rem;
    color: #f8fafc;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 1rem 2rem;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        text-align: center;
    }
}

.about-hero {
    text-align: center;
    padding: 8rem 0 4rem; /* Increased padding */
    background: linear-gradient(to bottom, #f0f9ff, white); /* Added gradient background */
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8); /* Added gradient text */
    -webkit-background-clip: text;
    color: transparent;
}

.version {
    display: inline-block;
    font-size: 1.1rem;
    color: white;
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    margin-bottom: 2.5rem;
}

.npm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 800px;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform 0.2s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.creator-profile {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.creator-avatar {
    width: 180px;
    height: 180px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.social-link {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.support-section {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.support-button {
    position: relative;
    overflow: hidden;
}

.support-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.support-button:hover::after {
    transform: translateX(0);
}

/* About the Project Section */
.about-description {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, white, #f8fafc);
}

.about-description h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
}

.about-description > p {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #64748b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature i {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature p {
    color: #64748b;
    line-height: 1.6;
}

/* Meet the Creator Section */
.team-section {
    padding: 6rem 2rem;
    background: white;
}

.team-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
}

.creator-profile {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.creator-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), transparent);
    filter: blur(40px);
    z-index: -1;
}

.creator-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary-color);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.creator-profile:hover .creator-avatar {
    transform: scale(1.05);
}

.creator-profile h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.creator-role {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.creator-bio {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Support Section */
.support-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8fafc, white);
    text-align: center;
}

.support-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    color: transparent;
}

.support-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.support-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.support-button:first-child {
    background: #238636;
    color: white;
}

.support-button:last-child {
    background: #4f46e5;
    color: white;
}

.support-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.support-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.support-button:hover::after {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .support-options {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }
    
    .support-button {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Loading Animation - Only for home page */
#homeLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#homeLoader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-icon {
    width: 50px;
    height: 50px;
    animation: rotate 2s linear infinite;
}

.loader-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 64;
    stroke-dashoffset: 64;
    animation: dash 2s ease-in-out infinite;
}

.loader-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 64;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -64;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hide scrollbar during loading */
body.home-loading {
    overflow: hidden;
}

