:root {
    /* Dracula Theme Colors */
    --background: #282a36;     /* Background */
    --current-line: #44475a;   /* Current Line */
    --selection: #44475a;      /* Selection */
    --foreground: #f8f8f2;     /* Foreground */
    --comment: #6272a4;        /* Comment */
    --cyan: #8be9fd;           /* Cyan */
    --green: #50fa7b;          /* Green */
    --orange: #ffb86c;         /* Orange */
    --pink: #ff79c6;           /* Pink */
    --purple: #bd93f9;         /* Purple */
    --red: #ff5555;            /* Red */
    --yellow: #f1fa8c;         /* Yellow */
    
    /* Apply Dracula theme to existing variables */
    --primary-color: var(--purple);    /* Primary - Purple */
    --secondary-color: var(--cyan);    /* Secondary - Cyan */
    --accent-color: var(--pink);       /* Accent - Pink */
    --dark-color: var(--background);   /* Dark - Background */
    --darker-color: #191a21;           /* Darker than Background */
    --light-color: var(--foreground);  /* Light - Foreground */
    --success-color: var(--green);     /* Success - Green */
    --error-color: var(--red);         /* Error - Red */
    --terminal-bg: var(--background);  /* Terminal background */
    --terminal-text: var(--foreground); /* Terminal text */
    --terminal-prompt: var(--green);   /* Terminal prompt */
    --terminal-command: var(--foreground); /* Terminal command */
    --terminal-output: var(--comment); /* Terminal output */
    --terminal-ai: var(--cyan);        /* AI text */
    --terminal-code: var(--orange);    /* Code */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.logo span {
    color: var(--primary-color);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 40px;
    margin-right: 10px;
}

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s;
    color: #ffffff;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    margin-right: 0;
}

.mobile-menu .nav-links li a {
    font-size: 1.5rem;
    color: var(--foreground);
    font-weight: 600;
}

.mobile-menu .nav-links li a:hover {
    color: var(--purple);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background-color: var(--purple);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: var(--purple);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--background) 0%, var(--current-line) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--foreground);
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--purple);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: rgba(248, 248, 242, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn.primary {
    background-color: var(--purple);
    color: var(--foreground);
    border: 2px solid var(--purple);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--purple);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--cyan);
    color: var(--background);
    border: 2px solid var(--cyan);
}

.btn.secondary:hover {
    background-color: transparent;
    color: var(--cyan);
    transform: translateY(-2px);
}

/* Terminal Styling - Updated for a darker theme */
.terminal {
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    background-color: var(--terminal-bg);
    border: 1px solid var(--selection);
}

.terminal-header {
    background-color: var(--selection);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

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

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

.terminal-buttons span:nth-child(3) {
    background-color: var(--green);
}

.terminal-body {
    display: flex;
    height: 320px;
    min-height: unset;
    color: var(--terminal-text);
}

.terminal-left {
    flex: 1;
    padding: 15px;
    background-color: var(--terminal-bg);
    border-right: 1px solid #44475a;
    overflow-y: auto;
}

.terminal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #2b2d3a;
    overflow-y: auto;
}

.terminal-right-header {
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid #44475a;
    background-color: #121218;
}

.ai-response-area {
    padding: 12px;
}

.ai-input-area {
    display: flex;
    padding: 0;
    border-top: 1px solid #44475a;
    background-color: #121218;
    height: 40px;
    position: relative;
}

.ai-input-area::before {
    content: ">";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terminal-prompt);
    font-weight: bold;
}

.ai-input-area input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: white;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    padding: 10px 10px 10px 30px;
    outline: none;
}

/* Hide the button */
.ai-input-area button {
    display: none;
}

.user-query,
.ai-response {
    margin-bottom: 8px;
    padding: 8px 10px;
}

.user-query {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    max-width: 80%;
}

.ai-response {
    background-color: #44475a;
    padding: 12px;
    border-radius: 4px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(248, 248, 242, 0.95);
}

.ai-response pre {
    background-color: var(--darker-color);
    padding: 10px;
    border-radius: 4px;
    margin: 8px 0;
    overflow-x: auto;
}

.ai-response code {
    color: var(--terminal-code);
}

.line {
    display: flex;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

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

.command {
    color: var(--terminal-command);
}

.terminal-output {
    color: rgba(248, 248, 242, 0.85);
    font-size: 0.85rem;
    margin: 5px 0 10px 20px;
    white-space: pre-wrap;
    line-height: 1.3;
}

/* Demo terminal styling */
.demo-terminal .terminal-body {
    height: 400px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--background);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--foreground);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--current-line);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(189, 147, 249, 0.05) 0%, 
        rgba(139, 233, 253, 0.05) 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 0;
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-card .feature-icon {
    position: relative;
    z-index: 1;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--comment);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--foreground);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--foreground);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: rgba(248, 248, 242, 0.75);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Demo Section */
.demo {
    padding: 100px 0;
    background-color: var(--background);
}

.demo h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--foreground);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    background-color: var(--current-line);
}

.video-container video {
    width: 100%;
    display: block;
    background-color: var(--background);
}

.demo-terminal {
    max-width: 900px;
    margin: 50px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.demo-interaction {
    margin-top: 40px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--background);
    color: rgba(248, 248, 242, 0.9);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.github-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--foreground);
    font-weight: 500;
    background-color: var(--current-line);
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.github-footer-link:hover {
    transform: translateY(-3px);
}

.github-footer-link i {
    font-size: 1.2rem;
}

.github-footer-link span {
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--current-line);
    color: rgba(248, 248, 242, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    .hero-image {
        margin: 0 auto;
        max-width: 90%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-options {
        flex-direction: column;
    }

    .download-card {
        margin: 15px 0;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .demo-terminal {
        flex-direction: column;
    }

    .video-container {
        padding: 0;
    }

    .github-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .github-button {
        width: 100%;
        justify-content: center;
    }

    .features, .demo, .downloads, .github-cta, #ollama-guide, .installation-help {
        padding: 60px 0;
    }

    .features h2, .demo h2, .downloads h2, .github-cta h2, #ollama-guide .title, .installation-help .title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    #ollama-guide pre {
        padding: 15px;
        overflow-x: auto;
    }

    #ollama-guide code {
        font-size: 14px;
    }

    .terminal-screen-image {
        max-width: 100%;
        height: auto;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .terminal-title {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 25px;
    }

    .download-card {
        padding: 20px;
    }

    .github-stats {
        flex-direction: column;
        gap: 10px;
    }

    .terminal-screen-image {
        max-width: 100%;
        border-radius: 8px;
    }

    #ollama-guide pre code {
        font-size: 12px;
        white-space: pre-wrap;
    }

    .download-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .download-info {
        margin-top: 10px;
        flex-direction: column;
        gap: 5px;
    }

    .github-cta h2 {
        font-size: 1.8rem;
    }

    .github-cta p {
        font-size: 1rem;
    }
}

/* Ensure very small screens don't have horizontal scrollbars */
@media (max-width: 320px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .download-card h3 {
        font-size: 1.3rem;
    }
    
    #ollama-guide .subtitle {
        font-size: 1.1rem;
    }
}

/* Terminal header styling - increased contrast for title */
.terminal-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    margin-left: 5px;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

/* Updated GitHub CTA Section without the star background */
.github-cta {
    padding: 80px 0;
    background-color: var(--current-line);
    position: relative;
    overflow: hidden;
}

.github-cta::before {
    content: "";
}

.github-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.github-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--foreground);
}

.github-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(248, 248, 242, 0.85);
}

.github-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.github-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--purple);
    color: var(--foreground);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--purple);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.github-button:hover {
    background-color: transparent;
    color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.github-button.secondary {
    background-color: var(--cyan);
    color: var(--background);
    border: 2px solid var(--cyan);
}

.github-button.secondary:hover {
    background-color: transparent;
    color: var(--cyan);
}

.github-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(248, 248, 242, 0.8);
}

.stat i {
    color: #f0f6fc;
}

.stat:first-child i {
    color: #ffdf5d;
    /* Gold color for star icon */
}

@media (max-width: 768px) {
    .github-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Downloads Section */
.downloads {
    padding: 100px 0;
    background-color: var(--background);
}

.downloads h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--foreground);
}

.section-description {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(248, 248, 242, 0.8);
}

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

.download-card {
    background-color: var(--current-line);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--foreground);
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--foreground);
}

.download-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: rgba(248, 248, 242, 0.8);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--purple);
    color: var(--foreground);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 2px solid var(--purple);
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
    background-color: transparent;
    color: var(--purple);
}

.download-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(248, 248, 242, 0.7);
}

.download-note {
    background-color: rgba(189, 147, 249, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--purple);
}

.download-note p {
    color: rgba(248, 248, 242, 0.9);
}

.download-note a {
    color: var(--cyan);
    font-weight: 600;
}

.download-note a:hover {
    text-decoration: underline;
}

.download-button.disabled {
    background-color: var(--comment);
    color: var(--foreground);
    opacity: 0.7;
    cursor: not-allowed;
    border: 2px solid var(--comment);
}

.download-button.disabled:hover {
    background-color: var(--comment);
    color: var(--foreground);
    transform: none;
}

/* Interactive Terminal Input */
.terminal-input .command[contenteditable="true"] {
    outline: none;
    min-width: 1px;
    caret-color: var(--primary-color);
}

.terminal-input .command[contenteditable="true"]:focus::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Typing Animation */
.typing-animation .command {
    position: relative;
    overflow: hidden;
    border-right: 0.15em solid var(--terminal-prompt);
    white-space: nowrap;
    margin: 0;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--terminal-prompt) }
}

/* Particle Background for Hero Section */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.3;
}

/* Add animated counters for GitHub stats */
.github-stats .stat span {
    display: inline-block;
    min-width: 30px;
}

.counter-animation {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix terminal resizing during typing animation - more comprehensive solution */
.hero .terminal {
    width: 100%;
    height: 320px;
    /* Fixed height instead of min-height */
}

.hero .terminal-body {
    height: 280px;
    /* Fixed height for the terminal body */
}

.hero .terminal-left {
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

/* Make all terminal output elements have fixed dimensions */
.hero .terminal-output {
    width: 100%;
    max-height: none;
    /* Don't limit the height */
    overflow: visible;
    /* Allow content to be visible */
    box-sizing: border-box;
}

/* Ensure commands have consistent width */
.hero .terminal-body .terminal-left .line {
    width: 100%;
    box-sizing: border-box;
}

.hero .terminal-body .terminal-left .line .command {
    width: calc(100% - 20px);
    /* Account for prompt width */
    min-width: 300px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ollama Guide Section - Fixed and Enhanced */
#ollama-guide {
    padding: 100px 0;
    background-color: var(--current-line);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#ollama-guide .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

#ollama-guide .title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--foreground);
    font-weight: 700;
}

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

#ollama-guide .column {
    display: flex;
    flex-direction: column;
}

#ollama-guide .box {
    background-color: var(--background);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#ollama-guide .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#ollama-guide .subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--foreground);
    font-weight: 600;
    border-bottom: 2px solid var(--purple);
    padding-bottom: 10px;
}

#ollama-guide ol, #ollama-guide ul {
    padding-left: 20px;
}

#ollama-guide li {
    margin-bottom: 20px;
    color: rgba(248, 248, 242, 0.9);
}

#ollama-guide li strong {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-weight: 600;
}

#ollama-guide pre {
    background-color: var(--selection);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

#ollama-guide code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--green);
}

#ollama-guide p {
    color: rgba(248, 248, 242, 0.9);
    margin-bottom: 10px;
}

#ollama-guide ul li {
    color: rgba(248, 248, 242, 0.9);
}

#ollama-guide ol li {
    color: rgba(248, 248, 242, 0.9);
}

#ollama-guide li p {
    color: rgba(248, 248, 242, 0.9);
}

#ollama-guide a {
    color: var(--cyan);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s;
}

#ollama-guide a:hover {
    color: var(--pink);
    text-decoration: none;
}

@media (max-width: 768px) {
    #ollama-guide .columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #ollama-guide .column {
        width: 100%;
    }
    
    #ollama-guide .box {
        padding: 20px;
    }
    
    #ollama-guide .subtitle {
        font-size: 1.3rem;
    }
    
    #ollama-guide ol, #ollama-guide ul {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    #ollama-guide pre {
        padding: 10px;
        font-size: 0.8rem;
        margin: 8px 0;
    }
    
    #ollama-guide code {
        font-size: 0.8rem;
    }
    
    #ollama-guide li {
        margin-bottom: 15px;
    }
    
    #ollama-guide p {
        font-size: 0.9rem;
    }
    
    #ollama-guide .subtitle {
        font-size: 1.2rem;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }
}

/* Active menu link */
.nav-links li a.active {
    color: var(--purple);
    font-weight: 700;
}

.nav-links li a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--purple);
    margin-top: 3px;
    border-radius: 2px;
}

/* Copyable Code Block */
.code-block {
    background-color: var(--current-line);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--green);
    display: block;
    overflow-x: auto;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--selection);
    color: var(--comment);
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-button:hover {
    opacity: 1;
    background-color: var(--comment);
    color: var(--foreground);
}

.copy-button:active {
    transform: scale(0.95);
}

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

.terminal-screen-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

/* Dracula Theme Default Styles */
body.dracula-theme {
    background-color: var(--background);
    color: var(--foreground);
}

/* Override all light theme elements to ensure Dracula theme persistence */
body.dracula-theme .hero {
    background: linear-gradient(135deg, var(--background) 0%, var(--current-line) 100%);
}

body.dracula-theme .features,
body.dracula-theme .demo,
body.dracula-theme .downloads,
body.dracula-theme footer {
    background-color: var(--background);
}

body.dracula-theme .github-cta {
    background-color: var(--current-line);
}

body.dracula-theme #ollama-guide {
    background-color: var(--current-line);
}

body.dracula-theme .terminal {
    background-color: var(--terminal-bg);
    border: 1px solid var(--selection);
}

body.dracula-theme .download-card,
body.dracula-theme .feature-card {
    background-color: var(--current-line);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ensure all links in the Dracula theme are properly colored */
body.dracula-theme a:not(.btn):not(.download-button):not(.github-button) {
    color: var(--cyan);
}

body.dracula-theme a:not(.btn):not(.download-button):not(.github-button):hover {
    color: var(--pink);
}

/* Purple glow for important buttons */
body.dracula-theme .btn.primary:hover,
body.dracula-theme .download-button:not(.disabled):hover,
body.dracula-theme .github-button:not(.secondary):hover {
    box-shadow: 0 6px 15px rgba(189, 147, 249, 0.4);
}

/* Cyan glow for secondary buttons */
body.dracula-theme .btn.secondary:hover,
body.dracula-theme .github-button.secondary:hover {
    box-shadow: 0 6px 15px rgba(139, 233, 253, 0.4);
}

/* Add a class for subtitles to ensure consistent styling across the website */
.subtitle, h3 {
    color: var(--foreground);
}

/* Override for specific subtitle cases that need to be different */
#ollama-guide .subtitle {
    color: var(--foreground);
    border-bottom: 2px solid var(--purple);
}

/* For download note and other info sections */
.download-note p {
    color: rgba(248, 248, 242, 0.9);
}

/* Make sure all links stand out against the lighter text */
a:not(.btn):not(.download-button):not(.github-button) {
    color: var(--cyan);
    transition: color 0.3s;
}

a:not(.btn):not(.download-button):not(.github-button):hover {
    color: var(--pink);
}

#ollama-guide p code {
    background-color: var(--selection);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--pink);
    font-family: 'Fira Code', monospace;
}

#ollama-guide .content {
    color: rgba(248, 248, 242, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

#ollama-guide p {
    color: rgba(248, 248, 242, 0.9);
    margin-bottom: 10px;
}

#ollama-guide ul li {
    color: rgba(248, 248, 242, 0.9);
}

#ollama-guide ol li {
    color: rgba(248, 248, 242, 0.9);
}

#ollama-guide li p {
    color: rgba(248, 248, 242, 0.9);
}

/* Installation Help Section */
.installation-help {
    padding: 100px 0;
    background-color: var(--background);
}

.installation-help .title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.installation-help .help-card {
    background-color: var(--current-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(189, 147, 249, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.installation-help .help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.installation-help .help-header {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(90deg, var(--pink) 0%, var(--purple) 100%);
    gap: 15px;
}

.installation-help .help-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.installation-help .help-icon i {
    font-size: 28px;
    color: white;
}

.installation-help .help-header h3 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.installation-help .help-content {
    padding: 30px;
}

.installation-help .help-intro {
    font-size: 1.1rem;
    color: var(--foreground);
    margin-bottom: 30px;
}

.installation-help .numbered-steps {
    counter-reset: step-counter;
    list-style-type: none;
    padding: 0;
}

.installation-help .step {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    position: relative;
}

.installation-help .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 45px;
    height: calc(100% - 20px);
    width: 2px;
    background-color: rgba(189, 147, 249, 0.5);
    z-index: 1;
}

.installation-help .step-number {
    width: 40px;
    height: 40px;
    background-color: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    z-index: 2;
    flex-shrink: 0;
}

.installation-help .step-content {
    flex: 1;
}

.installation-help .step-content strong {
    color: var(--cyan);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
}

.installation-help .step-content p {
    color: var(--foreground);
    margin-bottom: 15px;
}

.installation-help .step-content code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: var(--orange);
}

.installation-help .method-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.installation-help .method {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.installation-help .method h4 {
    color: var(--pink);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.installation-help .method ul {
    padding-left: 20px;
    list-style-type: disc;
}

.installation-help .method ul li {
    color: var(--foreground);
    margin-bottom: 8px;
}

.installation-help .info-box {
    margin-top: 30px;
    background-color: rgba(139, 233, 253, 0.1);
    border-left: 4px solid var(--cyan);
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.installation-help .info-box i {
    font-size: 24px;
    color: var(--cyan);
}

.installation-help .info-box p {
    color: var(--foreground);
    margin: 0;
    font-size: 0.95rem;
}

/* Media queries for Installation Help section */
@media (max-width: 768px) {
    .installation-help .method-container {
        grid-template-columns: 1fr;
    }
    
    .installation-help .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .installation-help .step:not(:last-child)::after {
        display: none;
    }
    
    .installation-help .step-number {
        margin-bottom: 10px;
    }
    
    .installation-help .help-header {
        padding: 15px 20px;
    }
    
    .installation-help .help-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .installation-help .title {
        font-size: 2rem;
    }
    
    .installation-help .help-header h3 {
        font-size: 1.4rem;
    }
    
    .installation-help .help-icon {
        width: 40px;
        height: 40px;
    }
    
    .installation-help .help-icon i {
        font-size: 22px;
    }
    
    .installation-help .step-content strong {
        font-size: 1.1rem;
    }
    
    .installation-help .method h4 {
        font-size: 1rem;
    }
}

.linux-download-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.linux-download-options .download-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--purple);
    color: var(--foreground);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--purple);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.linux-download-options .download-button:hover {
    background-color: transparent;
    color: var(--purple);
    transform: translateY(-2px);
}

.linux-download-options .download-button.linux-download-arm {
    background-color: var(--cyan);
    border-color: var(--cyan);
    color: var(--background);
}

.linux-download-options .download-button.linux-download-arm:hover {
    background-color: transparent;
    color: var(--cyan);
}

/* Dark theme specific styles */
.dracula-theme .linux-download-options .download-button {
    background-color: var(--purple);
    color: var(--foreground);
    border-color: var(--purple);
}

.dracula-theme .linux-download-options .download-button:hover {
    background-color: transparent;
    color: var(--purple);
}

.dracula-theme .linux-download-options .download-button.linux-download-arm {
    background-color: var(--cyan);
    border-color: var(--cyan);
    color: var(--background);
}

.dracula-theme .linux-download-options .download-button.linux-download-arm:hover {
    background-color: transparent;
    color: var(--cyan);
}