/* ═══════════════════════════════════════════
   Flowing Website — Base Styles
   ═══════════════════════════════════════════ */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.60);
  --text-tertiary: rgba(255, 255, 255, 0.40);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.10);
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --font-logo: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Menlo', monospace;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

html {
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Selection */
::selection { background: rgba(59, 130, 246, 0.3); }

/* Links */
a { color: inherit; text-decoration: none; }

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Prevent content overflow on mobile */
section { overflow: hidden; }
pre { overflow-x: auto; }
.editor-mockup, .terminal { min-width: 0; overflow: hidden; }
.grid > * { min-width: 0; }
.flex > * { min-width: 0; }

/* Logo font */
.logo-font {
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Code font */
.code-font {
  font-family: var(--font-code);
}

/* ── Mobile Hamburger Menu ── */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 49;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu .mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}
