:root {
    /* Light theme variables */
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #4f46e5;
    --secondary-color: #6b7280;
    --accent-color: #818cf8;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --code-bg: #f3f4f6;
    --terminal-bg: #1e293b;
    --terminal-text: #e2e8f0;
    --terminal-prompt: #10b981;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --highlight-color: #4f46e5;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --bg-color: #111827;
    --text-color: #f3f4f6;
    --primary-color: #818cf8;
    --secondary-color: #9ca3af;
    --accent-color: #6366f1;
    --card-bg: #1f2937;
    --border-color: #374151;
    --code-bg: #1f2937;
    --terminal-bg: #0f172a;
    --terminal-text: #e2e8f0;
    --terminal-prompt: #10b981;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --highlight-color: #818cf8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--text-color);
}

.highlight {
    color: var(--highlight-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-right: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--highlight-color);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--highlight-color);
}

/* Mobile theme toggle for small screens */
.mobile-theme-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
    z-index: 1001;
}

.mobile-theme-toggle:hover {
    color: var(--highlight-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.install-command {
    display: flex;
    align-items: center;
    background-color: var(--code-bg);
    padding: 12px 16px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
}

.install-command code {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: var(--highlight-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.terminal {
    width: 100%;
    max-width: 500px;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons span:nth-child(1) {
    background-color: #ef4444;
}

.terminal-buttons span:nth-child(2) {
    background-color: #f59e0b;
}

.terminal-buttons span:nth-child(3) {
    background-color: #10b981;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--terminal-text);
    font-size: 0.8rem;
    font-weight: 500;
}

.terminal-content {
    padding: 16px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--terminal-text);
    line-height: 1.5;
    text-align: left;
}

.terminal-line {
    margin-bottom: 4px;
}

.prompt {
    color: var(--terminal-prompt);
    margin-right: 8px;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.feature-icon {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--secondary-color);
}

/* Installation Section */
.installation {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.installation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.install-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.install-option {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.install-option h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.code-block {
    background-color: var(--code-bg);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow-x: auto;
    cursor: pointer;
}

.code-block code {
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
    display: block;
}

.code-block-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 8px;
    padding-right: 4px;
    transition: color 0.3s ease;
}

.code-block:hover .code-block-footer {
    color: var(--primary-color);
}

.code-block-footer i {
    font-size: 1rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        padding-bottom: 70px; /* Space for mobile nav */
        overflow-x: hidden; /* Prevent horizontal scroll */
        width: 100%;
        max-width: 100%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 20px;
        width: 100%;
    }

    .hero-content {
        width: 100%;
        padding: 0 15px;
    }

    .mobile-theme-toggle {
        display: block;
    }

    header {
        position: relative;
    }

    .desktop-nav .theme-toggle {
        display: none;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 15px;
        width: 100%;
        max-width: 100%;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0;
        width: 100%;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-image {
        width: 100%;
        margin: 20px 0 0;
        padding: 0 15px;
    }

    .terminal {
        max-width: 100%;
        margin: 0 auto;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        padding: 10px 5px;
        border-top: 1px solid var(--border-color);
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    nav.desktop-nav {
        display: none;
    }

    .mobile-nav ul {
        display: flex;
        justify-content: space-around;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 5px;
    }

    .mobile-nav i {
        font-size: 1.1rem;
    }

    .features, .installation, .usage {
        padding: 40px 0;
    }

    .feature-grid, .install-options, .usage-examples {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .feature-card, .install-option, .usage-example {
        padding: 15px;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .code-block {
        font-size: 0.75rem;
        padding: 10px;
        margin: 10px 0;
    }

    .code-block code {
        white-space: pre-wrap;
        word-break: break-word;
    }

    footer {
        padding: 20px 0;
        margin-bottom: 60px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .footer-copyright {
        text-align: center;
    }

    .toast {
        bottom: 80px; /* Above mobile navigation */
    }

    .terminal-content {
        padding: 12px;
        font-size: 0.9rem;
        text-align: left;
    }
    
    .terminal-line {
        text-align: left;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    .container header {
        padding: 1rem 1rem;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.5rem;
        padding: 0;
    }

    .hero-image {
        padding: 0 10px;
    }

    .feature-icon {
        font-size: 1.3rem;
    }

    .terminal-content {
        font-size: 0.7rem;
    }

    .install-command {
        margin: 15px 0;
        font-size: 0.7rem;
    }

    .mobile-nav a {
        font-size: 0.65rem;
    }

    .mobile-nav i {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }
}

/* Add fade-in animation classes */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px; /* Above mobile nav */
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 99;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .scroll-to-top {
        bottom: 20px; /* Lower position on desktop */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Add any additional mobile styles here */
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--primary-color);
    padding-bottom: 1px;
}

.footer-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

[data-theme="dark"] .footer-link {
    color: var(--primary-color);
    border-bottom: 1px dotted var(--primary-color);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .footer-copyright:first-child::after {
        content: "";
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 16px;
        background-color: var(--border-color);
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none; /* Hide by default */
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        padding: 10px 5px;
        border-top: 1px solid var(--border-color);
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Usage Section */
.usage {
    padding: 80px 0;
}

.usage h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.usage h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    margin-top: 40px;
}

.usage-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.usage-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Usage grid for desktop layout */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 960px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .usage {
        padding: 40px 15px;
    }
    
    .usage h2 {
        margin-bottom: 30px;
    }
    
    .usage-card {
        padding: 20px;
        margin-bottom: 25px;
        border-radius: 8px;
    }
    
    .usage-card h3 {
        margin-top: 0;
        margin-bottom: 15px;
        padding-left: 0;
    }
    
    .usage .code-block {
        margin: 15px 0;
        padding: 18px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .usage .code-block code {
        line-height: 1.5;
        word-break: break-word;
        white-space: pre-wrap;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .usage {
        padding: 30px 15px;
    }
    
    .usage-card {
        padding: 15px 15px 20px 15px;
    }
    
    .usage .code-block {
        font-size: 0.8rem;
        padding: 15px;
    }
} 