/* Light mode (default) */
    :root {
      --bg-primary: #f8fafc;
      --bg-secondary: #ffffff;
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --border: #e2e8f0;
      --card-bg: #ffffff;
      --code-bg: #1e293b;
      --code-text: #e2e8f0;
      --accent: #3b82f6;
      --accent-hover: #2563eb;
    }

    /* Dark mode */
    [data-theme="dark"] {
      --bg-primary: #0f172a;
      --bg-secondary: #1e293b;
      --text-primary: #f1f5f9;
      --text-secondary: #94a3b8;
      --border: #334155;
      --card-bg: #1e293b;
      --code-bg: #0f172a;
      --code-text: #cbd5e1;
      --accent: #60a5fa;
      --accent-hover: #3b82f6;
    }
   * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: system-ui, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.5; transition: background 0.3s, color 0.3s; }

    /* Navbar */
    /* Dark Navbar Background with Light Color Font*/
    .navbar { background: #1e293b; padding: 1rem 2rem; position: relative; z-index: 1000; }
    .nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
    .logo { font-size: 1.5rem; font-weight: bold; color: white; text-decoration: none; }
    .nav-menu { display: flex; gap: 2rem; list-style: none; }
    .nav-menu li a { color: #cbd5e1; text-decoration: none; font-weight: 500; transition: color 0.2s; }
    .nav-menu li a:hover { color: white; }
    .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
    .hamburger span { display: block; width: 25px; height: 3px; background: white; margin: 5px 0; border-radius: 2px; }
    @media (max-width: 768px) {
      .hamburger { display: block; }
      .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: #1e293b; width: 100%; text-align: center; transition: 0.3s ease; padding: 2rem 0; gap: 1.5rem; z-index: 999; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
      .nav-menu.active { left: 0; }
    }

    /* Light (White) Navbar Background*/
    /*.navbar { background: var(--bg-secondary); padding: 1rem 2rem; border-bottom: 1px solid var(--border); position: relative; z-index: 1000; }
    .navbar { background: #1e293b; padding: 1rem 2rem; position: relative; z-index: 1000; }
    .nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
    .logo { font-size: 1.5rem; font-weight: bold; color: var(--text-primary); text-decoration: none; }
    .nav-menu { display: flex; gap: 2rem; list-style: none; }
    .nav-menu li a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
    .nav-menu li a:hover { color: var(--accent); }
    .nav-menu li a.active { color: var(--accent); }
    .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
    .hamburger span { display: block; width: 25px; height: 3px; background: var(--text-primary); margin: 5px 0; border-radius: 2px; }
    @media (max-width: 768px) {
      .hamburger { display: block; }
      .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: var(--bg-secondary); width: 100%; text-align: center; transition: 0.3s ease; padding: 2rem 0; gap: 1.5rem; z-index: 999; border-bottom: 1px solid var(--border); }
      .nav-menu.active { left: 0; }
    }
   */
    .container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
    .section-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; border-left: 5px solid var(--accent); padding-left: 1rem; }
    .section-sub { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }

    .container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
    
    .section-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; border-left: 5px solid #3b82f6; padding-left: 1rem; }
    
    .snippets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
    .snippet-card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: transform 0.2s; }
    .snippet-card:hover { transform: translateY(-4px); }
    
    .demo-link { display: inline-block; background: #3b82f6; color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.9rem; margin-top: 1rem; }
    
    .support-btn { display: inline-block; background: #f59e0b; color: white; padding: 0.6rem 1.2rem; border-radius: 2rem; text-decoration: none; font-weight: 600; }
    
     footer { text-align: center; padding: 2rem; border-top: 1px solid #e2e8f0; margin-top: 3rem; color: #64748b; }
     pre { background: var(--code-bg); color: var(--code-text); padding: 1rem; border-radius: 0.75rem; overflow-x: auto; font-size: 0.8rem; margin: 1rem 0; }
    .btn-copy { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); padding: 0.3rem 0.8rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.8rem; float: right; }
   
    /* CTA Sections */
    .cta-pro { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 1rem; padding: 2rem; margin: 2rem 0; text-align: center; color: white; }
    .cta-pro .btn { display: inline-block; margin-top: 1rem; background: #f59e0b; color: white; padding: 0.6rem 1.5rem; border-radius: 2rem; text-decoration: none; font-weight: 600; }
    .support-card { background: #fef9c3; border-radius: 1rem; padding: 1.5rem; margin: 2rem 0; text-align: center; color: #0f172a; }
    .support-card a { background: #ffdd00; color: #000; padding: 0.6rem 1.2rem; border-radius: 2rem; text-decoration: none; font-weight: 600; display: inline-block; margin-top: 0.5rem; }
   
    .back-link { display: inline-block; margin-top: 2rem; color: var(--accent); text-decoration: none; }
    footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border); margin-top: 3rem; color: var(--text-secondary); }
    footer a { color: var(--accent); text-decoration: none; }

/* ====== NAVBAR DROPDOWN ====== */
.dropdown-nav {
  position: relative;
}
.dropbtn-nav {
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
}
.dropdown-nav-content {
  display: none;
  position: absolute;
  background: #1e293b;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  z-index: 10;
  top: 100%;
  left: 0;
  border: 1px solid #334155;
}
.dropdown-nav-content li {
  list-style: none;
}
.dropdown-nav-content a {
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.dropdown-nav-content a:hover {
  background: #334155;
  color: white;
}

/* Mobile: dropdown as part of the nav menu */
@media (max-width: 768px) {
  .dropdown-nav {
    position: static;
  }
  .dropdown-nav-content {
    position: static;
    display: none;
    background: #0f172a;
    box-shadow: none;
    border: none;
    width: 100%;
    padding: 0.5rem 0;
  }
  .dropdown-nav-content a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  .dropdown-nav-content a:hover {
    background: #1e293b;
  }
}
