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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a1a1a;
}

/* Top Bar */
.top-bar {
    background-color: #2d2d2d;
    padding: 12px 0;
    border-bottom: 1px solid #404040;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input {
    background-color: #404040;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    width: 200px;
    font-size: 14px;
}

.search-input::placeholder {
    color: #888;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.github-link:hover {
    color: #ff6b35;
}

.jac-gpt-button {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    margin-right: 4px;
}

.jac-gpt-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Floating Navigation */
.floating-nav {
    padding: 12px 0;
    display: flex;
    justify-content: center;
}

.nav-container {
    background-color: #2d2d2d;
    border-radius: 50px;
    padding: 8px 12px;
    border: 1px solid #404040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
    background-color: #404040;
}

.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

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

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title img {
    vertical-align: middle;
    margin-right: 14px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

.hero-subtitle {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #cccccc;
    padding: 14px 32px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* Quick Access Cards */
.quick-access,
.vertical-tabs {
    padding: 0 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
}

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

.access-card {
    background-color: #2d2d2d;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #404040;
    position: relative;
    overflow: hidden;
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    opacity: 0;
    transition: opacity 0.3s;
}

.access-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.access-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-description {
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 14px;
}

.fancy-link {
    color: #ff6b35;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.card-link:hover {
    color: #f7931e;
}

.card-link::after {
    content: "→";
    font-size: 16px;
}

/* Playground Section */
.playground-section {
    padding: 60px 0;
    background-color: #222222;
}

.playground-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

.playground-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

}

.code-editor {
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background-color: #3d3d3d;
    padding: 12px 20px;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: 1px solid #555;
}

.editor-title {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
}

.editor-buttons {
    display: flex;
    gap: 10px;
}

.editor-btn {
    background-color: #4a4a4a;
    border: none;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.editor-btn:hover {
    background-color: #555;
}

.editor-btn.primary {
    background-color: #ff6b35;
    color: white;
}

.editor-btn.primary:hover {
    background-color: #e55a2b;
}

.code-content {
    flex: 1;
    padding: 20px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
    background-color: #2d2d2d;
}

.code-line {
    margin-bottom: 2px;
}

.line-number {
    color: #666;
    margin-right: 20px;
    user-select: none;
}

.keyword {
    color: #ff79c6;
}

.string {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
}

.function {
    color: #50fa7b;
}

.variable {
    color: #8be9fd;
}

.output-panel {
    background-color: #2d2d2d;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.output-header {
    background-color: #3d3d3d;
    padding: 12px 20px;
    border-bottom: 1px solid #555;
    border-radius: 12px 12px 0 0;
}

.output-content {
    flex: 1;
    padding: 20px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.output-area {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 200px;
    border: 1px solid #404040;
}

.examples-sidebar {
    flex: 1;
}

.examples-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #cccccc;
}

.example-item {
    background-color: #3d3d3d;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid #555;
}

.example-item:hover {
    background-color: #4a4a4a;
}

.example-item.active {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.example-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.example-desc {
    font-size: 11px;
    color: #888;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #222222;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background-color: #2d2d2d;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #404040;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
    display: inline-block;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-header {
    margin-bottom: 40px;
}

.about-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-tagline {
    font-size: 18px;
    color: #ff6b35;
    font-style: italic;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-logo {
    flex-shrink: 0;
}

.about-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-description {
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 20px;
}

.about-mission {
    font-size: 15px;
    line-height: 1.6;
    color: #aaaaaa;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.about-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    color: #ff6b35;
    padding: 12px 24px;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    border-top: 1px solid #404040;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    color: #888;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

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

.footer-links a:hover {
    color: #ff6b35;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding-top: 14px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    gap: 30px;
    padding: 0 10px;
}

.carousel-slide .access-card,
.carousel-slide .feature-card {
    flex: 1;
    min-width: 280px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: bold;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.carousel-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    transform: scale(1.2);
}

/* Auto-play animation */
.carousel-container.auto-play .carousel-wrapper {
    animation: autoSlide 12s infinite;
}

@keyframes autoSlide {

    0%,
    30% {
        transform: translateX(0);
    }

    35%,
    65% {
        transform: translateX(-100%);
    }

    70%,
    100% {
        transform: translateX(-200%);
    }
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
        align-items: center;
    }

    .carousel-slide .access-card,
    .carousel-slide .feature-card {
        min-width: 100%;
        max-width: 400px;
    }
}

/* Enhanced card hover effects for carousel - RESTORED */
.carousel-slide .access-card {
    transform: translateY(0);
    transition: all 0.4s ease;
}

.carousel-slide .access-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.4);
}

/* Enhanced Interactive Code Demo */
.interactive-demo {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 24px;
    padding: 40px;
    margin: 50px 0;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.interactive-demo::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ff6b35, #f7931e);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 24px;
    animation: gradient-border 4s ease infinite;
}

@keyframes gradient-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.demo-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    color: #cccccc;
    font-size: 16px;
    margin-bottom: 25px;
}

.demo-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-tab {
    background: linear-gradient(145deg, #404040, #353535);
    border: 2px solid #555;
    color: #cccccc;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
}

.demo-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.6s;
}

.demo-tab:hover::before {
    left: 100%;
}

.demo-tab:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.demo-tab.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 400px;
}

.demo-code-panel,
.demo-output-panel {
    background: linear-gradient(145deg, #1a1a1a, #0d1117);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.demo-panel-header {
    background: linear-gradient(135deg, #333, #2a2a2a);
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-panel-title::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

/* FIXED: Enhanced Code Content Styling */
.demo-code-content {
    padding: 25px;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #e1e4e8;
    background: #0d1117;
    min-height: 320px;
    max-height: 450px;
    overflow-y: auto;
    position: relative;
    transition: all 0.3s ease;
    text-align: left;
}

.demo-code-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.demo-code-content code {
    font-family: inherit;
    font-size: inherit;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    display: block;
}

.demo-code-content.executing {
    background: linear-gradient(45deg, #0d1117, #1a1a2e);
    border-left: 4px solid #ff6b35;
}

/* Enhanced Syntax Highlighting */
.jac-comment {
    color: #8b949e;
    font-style: italic;
}

.jac-keyword {
    color: #ff7b72;
    font-weight: 600;
}

.jac-string {
    color: #a5c261;
}

.jac-function {
    color: #d2a8ff;
    font-weight: 500;
}

.jac-variable {
    color: #79c0ff;
}

.jac-number {
    color: #79c0ff;
}

.jac-operator {
    color: #ff7b72;
}

.jac-node {
    color: #ffa657;
    font-weight: 600;
}

.jac-edge {
    color: #7ee68c;
    font-weight: 600;
}

.jac-walker {
    color: #f69d50;
    font-weight: 600;
}

/* FIXED: Output Content Styling */
.demo-output-content {
    padding: 25px;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #0d1117;
    height: 100%;
    color: #58a6ff;
    position: relative;
    overflow-y: auto;
}

.output-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInLine 0.5s ease forwards;
    padding: 4px 0;
    border-radius: 4px;
}

.output-line:nth-child(1) {
    animation-delay: 0.1s;
}

.output-line:nth-child(2) {
    animation-delay: 0.3s;
}

.output-line:nth-child(3) {
    animation-delay: 0.5s;
}

.output-line:nth-child(4) {
    animation-delay: 0.7s;
}

.output-line:nth-child(5) {
    animation-delay: 0.9s;
}

.output-line:nth-child(6) {
    animation-delay: 1.1s;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-line {
    color: #7ee68c;
    background: rgba(126, 230, 140, 0.1);
    padding-left: 8px;
    border-left: 3px solid #7ee68c;
}

.info-line {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding-left: 8px;
    border-left: 3px solid #58a6ff;
}

.warning-line {
    color: #f1c232;
    background: rgba(241, 194, 50, 0.1);
    padding-left: 8px;
    border-left: 3px solid #f1c232;
}

.error-line {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding-left: 8px;
    border-left: 3px solid #ff6b6b;
}

.demo-run-btn {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-run-btn:hover {
    background: linear-gradient(135deg, #2ea043, #238636);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3);
}

.demo-run-btn::before {
    content: '▶';
    font-size: 10px;
}

.execution-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.execution-indicator.active {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Custom scrollbars for code and output */
.demo-code-content::-webkit-scrollbar,
.demo-output-content::-webkit-scrollbar {
    width: 8px;
}

.demo-code-content::-webkit-scrollbar-track,
.demo-output-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.demo-code-content::-webkit-scrollbar-thumb,
.demo-output-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.demo-code-content::-webkit-scrollbar-thumb:hover,
.demo-output-content::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

.typing-container {
    height: 36px;
}

/* Mobile responsiveness for demo content */
@media (max-width: 768px) {
    .demo-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .demo-code-panel,
    .demo-output-panel {
        min-height: 300px;
    }

    .demo-tabs {
        gap: 8px;
    }

    .demo-tab {
        padding: 10px 16px;
        font-size: 12px;
        min-width: auto;
    }

    .demo-code-content,
    .demo-output-content {
        font-size: 12px;
        padding: 15px;
        min-height: 250px;
        max-height: 300px;
    }

    .interactive-demo {
        padding: 20px;
        margin: 30px 0;
    }

    .demo-title {
        font-size: 22px;
    }

    .demo-subtitle {
        font-size: 14px;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .top-bar-content {
        gap: 14px;
    }

    .hero-title {
        font-size: 42px;
        text-align: center;
    }

    .hero-title img {
        vertical-align: sub;
        width: 46px;
        height: 46px;
    }

    .demo-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .demo-tab {
        margin-bottom: 5px;
        width: 100%;
    }

    .demo-code-content,
    .demo-output-content {
        min-height: 200px;
    }

    .interactive-demo {
        padding: 15px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        text-align: justify;
    }

    .about-mission {
        text-align: justify;
    }

    .github-link span:last-child {
        display: none;
    }

    .nav-container {
        width: 90%;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 0px 12px;
        ;
    }

}


.vt-container {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #1a1a1a;
}

.vt-main-content {
    flex: 1 1 0;
    background: #2d2d2d;
    padding: 40px 48px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 465px;
    border-radius: 0 16px 16px 0;
    order: 2;
}

.vt-content-heading {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
    line-height: 1.4;
    min-height: 60px;

}

.vt-editor {
    background: #282C34;
    border-radius: 12px;
    padding: 0;
    margin-top: 16px;
    flex: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    max-height: 380px;
    position: relative;
    overflow: hidden;
}

.vt-editor-titlebar {
    background: #3c4043;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.vt-window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vt-window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5a5a5a;
}

.vt-window-control.close {
    background: #5a5a5a;
}

.vt-window-control.minimize {
    background: #5a5a5a;
}

.vt-window-control.maximize {
    background: #5a5a5a;
}

.vt-editor-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 14px;
    color: #ABB2BF;
    font-weight: 500;
}

.vt-play-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vt-play-toggle-btn:hover {
    background: #45a049;
    transform: translateY(-50%) scale(1.05);
}

.vt-play-toggle-btn.code-mode {
    background: #2196F3;
}

.vt-play-toggle-btn.code-mode:hover {
    background: #1976D2;
}

.vt-play-toggle-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.vt-learn-more-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.vt-editor pre {
    color: #ABB2BF;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 14px;
    background: linear-gradient(to right, #282C34 50px, #3c4043 50px, #3c4043 51px, #282C34 51px);
    margin: 0;
    padding: 12px 12px 12px 62px;
    border: none;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    height: calc(100% - 50px);
    transition: height 0.3s ease-out;
    position: relative;
    counter-reset: line-number;
}

/* Custom scrollbar for the code editor only */
#code-block::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#code-block::-webkit-scrollbar-track {
    background: #282C34;
    border-radius: 4px;
}

#code-block::-webkit-scrollbar-thumb {
    background: #5a5a5a;
    border-radius: 4px;
    border: 1px solid #3c4043;
}

#code-block::-webkit-scrollbar-thumb:hover {
    background: #6a6a6a;
}

#code-block::-webkit-scrollbar-corner {
    background: #282C34;
}

/* Firefox scrollbar for code editor */
#code-block {
    scrollbar-width: thin;
    scrollbar-color: #5a5a5a #282C34;
}

.vt-editor pre code {
    background: transparent !important;
    color: #ABB2BF;
    display: block;
    position: relative;
    white-space: pre;
    line-height: 1.5;
}

.vt-editor pre code .vt-line {
    display: block;
    position: relative;
    counter-increment: line-number;
}

.vt-editor pre code .vt-line::before {
    content: counter(line-number);
    position: absolute;
    left: -48px;
    top: 0;
    width: 40px;
    text-align: right;
    color: #5C6370;
    font-size: 12px;
    line-height: inherit;
}

/* Custom syntax highlighting to match Mojo theme */
.hljs {
    background: transparent !important;
    color: #ABB2BF !important;
}

.hljs-comment {
    color: #5C6370 !important;
}

.hljs-keyword {
    color: #C678DD !important;
}

.hljs-function .hljs-title,
.hljs-title.function_ {
    color: #61AFEF !important;
}

.hljs-params {
    color: #D19A66 !important;
}

.hljs-type,
.hljs-built_in {
    color: #56B6C2 !important;
}

.hljs-punctuation,
.hljs-operator {
    color: #ABB2BF !important;
}

.hljs-variable {
    color: #D19A66 !important;
}

.hljs-string {
    color: #98C379 !important;
}

.hljs-number {
    color: #D19A66 !important;
}

.vt-output-section {
    display: none;
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 16px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vt-output-header {
    color: #00ff00;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Fira Mono', 'Consolas', monospace;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-left: 8px;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

.vt-output-header::before {
    content: ">";
    color: #00ff00;
    margin-right: 6px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5);
}

.vt-output-content {
    color: #e6edf3;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 13px;
    background: transparent;
    margin: 0;
    padding: 8px 0;
    border: none;
    white-space: pre-wrap;
    line-height: 1.6;
    position: relative;
}

.vt-output-content::after {
    content: "█";
    color: #00ff00;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Custom scrollbar for output section */
.vt-output-section::-webkit-scrollbar {
    width: 12px;
}

.vt-output-section::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 6px;
}

.vt-output-section::-webkit-scrollbar-thumb {
    background: #21262d;
    border-radius: 6px;
    border: 2px solid #161b22;
}

.vt-output-section::-webkit-scrollbar-thumb:hover {
    background: #30363d;
}

.vt-output-section::-webkit-scrollbar-corner {
    background: #161b22;
}

/* Firefox scrollbar for output */
.vt-output-section {
    scrollbar-width: thin;
    scrollbar-color: #21262d #161b22;
}

.vt-vertical-tabs {
    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #000000;
    padding: 32px 0;
    border-radius: 16px 0 0 16px;
    order: 1;
    justify-content: space-around;
}

.vt-tab-btn {
    background: transparent;
    color: #6b7280;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 32px;
    text-align: left;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    outline: none;
    position: relative;
    line-height: 1.2;

}

.vt-tab-btn::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: calc(60% + 6px);
    background: #6b7280;
    border-radius: 0 2px 2px 0;
    opacity: 0.3;
}

.vt-tab-btn:hover:not(.active) {
    background: transparent;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.vt-tab-btn:hover:not(.active)::before {
    opacity: 0.5;
}

.vt-tab-btn.active {
    background: transparent;
    color: #ffffff;

    font-weight: 500;
}

.vt-tab-btn.active::before {
    background: #ff6b35;
    opacity: 1;
}

.vt-learn-more-link {
    display: inline-block;
    margin-left: 8px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    opacity: 0.7;
    vertical-align: text-top;
}

.vt-learn-more-link:hover {
    color: #ff6b35;
    opacity: 1;
}

.vt-tab-btn.active .vt-learn-more-link {
    color: #9ca3af;
}

.vt-tab-btn.active .vt-learn-more-link:hover {
    color: #ff6b35;
    opacity: 1;
}



/* Mobile First - Small phones (320px-480px) */
@media (max-width: 480px) {
    .vt-container {
        flex-direction: column;
        border-radius: 12px;
        margin: 20px 16px;
        min-height: auto;
    }

    .vt-vertical-tabs {
        width: auto;
        order: 2;
        border-radius: 0 0 12px 12px;
        padding: 16px 0;
        background: #1a1a1a;
    }

    .vt-main-content {
        order: 1;
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 12px 12px 0 0;
        min-height: auto;
    }

    .vt-content-heading {
        font-size: 14px;
        line-height: 1.3;
        min-height: auto;
        margin-bottom: 16px;
    }

    .vt-editor {
        min-height: 250px;
        max-height: 400px;
        margin-top: 12px;
    }

    .vt-editor-titlebar {
        height: 36px;
        padding: 0 12px;
    }

    .vt-editor-title {
        font-size: 12px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vt-play-toggle-btn {
        right: 12px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .vt-window-control {
        width: 10px;
        height: 10px;
    }

    .vt-editor pre {
        font-size: 12px;
        padding: 8px 8px 8px 48px;
        background: linear-gradient(to right, #282C34 40px, #3c4043 40px, #3c4043 41px, #282C34 41px);
        height: calc(100% - 36px);
    }

    .vt-editor pre code .vt-line::before {
        left: -38px;
        width: 32px;
        font-size: 10px;
    }

    .vt-output-section {
        padding: 12px;
    }

    .vt-output-header {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .vt-output-content {
        font-size: 12px;
    }



    .vt-tab-btn.active .vt-learn-more-link {
        right: 16px;
        font-size: 14px;
    }
}

/* Tablets and larger phones (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .vt-container {
        flex-direction: column;
        border-radius: 16px;
        margin: 30px 20px;
    }

    .vt-vertical-tabs {
        width: auto;
        order: 2;
        border-radius: 0 0 16px 16px;
        padding: 20px 0;
        background: #1a1a1a;
    }

    .vt-main-content {
        order: 1;
        max-width: 100%;
        padding: 32px 24px;
        border-radius: 16px 16px 0 0;
    }

    .vt-content-heading {
        font-size: 15px;
        min-height: auto;
    }

    .vt-editor {
        min-height: 280px;
        max-height: 350px;
    }

    .vt-editor-titlebar {
        height: 38px;
    }

    .vt-editor-title {
        font-size: 13px;
    }

    .vt-play-toggle-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }






}

/* Small tablets and landscape phones (769px-900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .vt-container {
        flex-direction: column;
        border-radius: 16px;
        margin: 40px 30px;
    }

    .vt-vertical-tabs {
        width: auto;
        order: 2;
        border-radius: 0 0 16px 16px;
        padding: 24px 0;
        background: #1a1a1a;
    }

    .vt-main-content {
        order: 1;
        max-width: 100%;
        padding: 36px 32px;
        border-radius: 16px 16px 0 0;
    }
}

/* Affiliations Section */
/* .affiliations-section {
    margin: 48px 0 32px 0;
}

.affiliations-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fc772e;
}

.affiliations-description {
    margin-bottom: 24px;
    text-align: center;
}

.affiliations-logos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}

/* .affiliation-logo {
    width: 330px;
    height: 190px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    background: #222;
} */

/* .affiliation-logo {
    width: 280px;
    height: 160px;
    object-fit: contain;
    border-radius: 12px;
}

.affiliation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    max-width: 350px;
    text-align: center;
}

.affiliation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.affiliation-text {
    font-size: 1 rem;
    color: #cccccc;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 8px;
}

/* Responsive design for affiliations */
/* @media (max-width: 1200px) {
    .affiliations-logos {
        gap: 30px;
    }

    .affiliation-logo {
        width: 260px;
        height: 150px;
    }

    .affiliation-item {
        max-width: 320px;
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .affiliations-logos {
        gap: 20px;
    }

    .affiliation-logo {
        width: 240px;
        height: 140px;
    }

    .affiliation-item {
        max-width: 300px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .affiliations-logos {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

        .affiliation-logo {
        width: 280px;
        height: 160px;
    }

    .affiliation-item {
        max-width: 350px;
        width: 100%;
    }

    .affiliations-title {
        font-size: 24px;
    }
}
*/

.affiliations-section {
    text-align: center;
    padding: 40px 20px;
    background: #1a1a1a;
    border-radius: 12px;
}

.affiliations-description {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 600;
}

.affiliations-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.affiliation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 330px;
}

.affiliation-logo {
    height: 100px;
    width: auto;
}


.affiliation-text {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-align: center;
    max-width: 330px;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .affiliations-logos {
        gap: 40px;
    }

    .affiliation-logo {
        height: 70px;
    }

    .affiliation-text {
        font-size: 11px;
        max-width: 100px;
    }
}