/* ─── Theme Variables ─── */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --nav-link-color: white;
    --box-bg: #1e293b;
    --box-border: #334155;
    --code-bg: #0d1117;
  }
  
  [data-theme="light"] {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --nav-link-color: #0f172a;
    --box-bg: #ffffff;
    --box-border: #cbd5e1;
    --code-bg: #e2e8f0;
  }
  
  /* ─── Smooth Scroll ─── */
  html {
    scroll-behavior: smooth;
  }
  
  /* ─── General Reset ─── */
  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
  }
  
  /* ─── Home Page Only ─── */
  .home-body {
    background: none;
  }
  
  /* ─── Demonstration Page ─── */
  .demo-body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  /* ─── Navbar ─── */
  header {
    padding: 15px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
  }
  
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  nav ul li {
    margin: 0 20px;
  }
  
  nav ul li a, .theme-toggle {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  nav ul li a:hover, .theme-toggle:hover {
    background-color: #1e40af;
    color: white;
  }
  
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* ─── Home Content ─── */
  .video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
    z-index: -1;
  }
  
  #bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .home-content {
    position: relative;
    top: 30%;
    text-align: center;
    color: white;
    padding: 0 20px;
  }
  
  .home-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .home-content p {
    font-size: 24px;
  }
  
  /* ─── Demonstration Page Content ─── */
  .demo-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
    padding-top: 100px;
  }
  
  .search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }
  
  .select-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  input#search-box {
    width: 300px;
    max-width: 90%;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #0f172a;
    padding: 8px;
  }
  
  .btn-primary {
    background-color: #38bdf8;
    color: #0f172a;
    font-weight: bold;
    border: none;
    border-radius: 9999px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .btn-primary:hover {
    background-color: #0ea5e9;
  }
  
  /* ─── Box Layout ─── */
  .flow-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  
  .top-box {
    width: 100%;
  }
  
  .bottom-boxes {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .model-box {
    flex: 1;
    min-width: 400px;
  }
  
  /* ─── Box Styles ─── */
  .box {
    background-color: var(--box-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: 1px solid var(--box-border);
    transition: all 0.3s ease;
  }
  
  .box:hover {
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    transform: translateY(-4px);
  }
  
  .box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Added space between header and code */
  }
  
  .box-header h2 {
    margin: 0;
    font-size: 22px;
  }
  
  /* ─── Copy Button ─── */
  .copy-btn {
    background: #38bdf8;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    color: #0f172a;
    font-weight: bold;
  }
  
  .copy-btn:hover {
    background: #0ea5e9;
  }
  
  /* ─── Code Block ─── */
  .code-block {
    background-color: var(--code-bg);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0;
    overflow-x: auto;
    min-height: 150px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: inherit;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .code-block.visible {
    opacity: 1;
  }
  
  .code-block pre {
    margin: 0;
    padding: 16px;
    flex: 1;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* ─── Responsive Tweaks ─── */
  @media (max-width: 600px) {
    .demo-wrapper {
      padding: 1rem;
      padding-top: 80px;
    }
  
    .select-wrapper {
      flex-direction: column;
      gap: 15px;
      padding: 15px;
    }
  
    input#search-box {
      width: 100%;
    }
  
    .bottom-boxes {
      flex-direction: column;
    }
  
    .box {
      padding: 15px;
    }
  
    .box-header h2 {
      font-size: 20px;
    }
  }
  