/* Base styles and variables */
:root {
    --font-primary: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  
    /* Light theme (default) */
    --color-bg: #ffffff;
    --color-text: #343541;
    --color-text-secondary: #6e6e80;
    --color-primary: #10a37f;
    --color-primary-hover: #0e8e6f;
    --color-border: #e5e5e5;
    --color-card-bg: #f7f7f8;
    --color-header-bg: rgba(255, 255, 255, 0.95);
    --color-button-bg: #f7f7f8;
    --color-button-hover: #ececf1;
    --color-code-bg: #f7f7f8;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  
    /* Add these to existing variables */
    --success: var(--color-primary);
    --danger: #dc2626;
    --space-md: 1rem;
    --border-radius-md: 8px;
  }
  
  /* Dark theme */
  [data-theme="dark"] {
    --color-bg: #343541;
    --color-text: #ececf1;
    --color-text-secondary: #c5c5d2;
    --color-primary: #10a37f;
    --color-primary-hover: #13c79a;
    --color-border: #4d4d4f;
    --color-card-bg: #444654;
    --color-header-bg: rgba(52, 53, 65, 0.95);
    --color-button-bg: #444654;
    --color-button-hover: #565869;
    --color-code-bg: #2d2d33;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  
    /* Add these to existing dark theme variables */
    --success: #13c79a;
    --danger: #ef4444;
  }
  
  /* Global styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
  
  body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* Typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  p {
    margin-bottom: 1.5rem;
  }
  
  a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
  }
  
  code {
    font-family: var(--font-mono);
    background-color: var(--color-code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
  }
  
  /* Header */
  header {
    position: sticky;
    top: 0;
    background-color: var(--color-header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    z-index: 100;
    box-shadow: var(--shadow);
  }
  
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  .nav-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
  }
  
  /* Main content */
  main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  
  /* Features and Use Cases */
  .features ul,
  .usecases ul,
  .tech ul {
    list-style-type: none;
    margin-left: 0.5rem;
  }
  
  .features li,
  .usecases li,
  .tech li {
    margin-bottom: 0.75rem;
    position: relative;
  }
  
  /* Instructions */
  .instructions ol {
    margin-left: 1.5rem;
  }
  
  .instructions li {
    margin-bottom: 1rem;
  }
  
  /* Demo */
  .demo-box {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
  }
  
  .demo-box img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow);
  }
  
  .note {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 1rem;
  }
  
  /* Footer */
  footer {
    background-color: var(--color-card-bg);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  /* Theme toggle button (to be added in JS) */
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
  }
  
  .theme-toggle:hover {
    background-color: var(--color-button-hover);
  }
  
  /* Add these styles after the existing CSS, before the media queries */
  
  /* Contact Form */
  .contact {
    margin-bottom: 4rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.2);
  }
  
  .btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .btn:hover {
    background-color: var(--color-primary-hover);
  }
  
  .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  .btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.4);
  }
  
  /* Success and error message styling */
  .success-message,
  .error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  
  .success-message {
    background-color: rgba(16, 163, 127, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(16, 163, 127, 0.2);
  }
  
  .error-message {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
  }
  
  /* Fix for the duplicate "Tech" link in nav */
  .nav-links a[href="#contact"] {
    color: var(--color-text);
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    header {
      padding: 1rem;
    }
  
    .header-content {
      flex-direction: column;
      gap: 1rem;
    }
  
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
    }
  
    main {
      padding: 1rem;
    }
  
    section {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .logo-title {
      flex-direction: column;
      text-align: center;
    }
  
    h1 {
      font-size: 1.75rem;
    }
  
    h2 {
      font-size: 1.5rem;
    }
  
    .nav-links {
      font-size: 0.9rem;
    }
  
    section {
      padding: 1.25rem;
    }
  }
  