/*
 * CIMPLE Industry-Level Stylesheet
 * FINAL & POLISHED VERSION 8.0
 * --------------------------------
 */

/* -- 1. THEMES AND GLOBAL VARIABLES -- */
:root {
  --bg-dark-1: #0D1117;
  --bg-dark-2: #010409;
  --border-color: rgba(255, 255, 255, 0.1);
  --surface-color: rgba(20, 20, 22, 0.7);
  --text-primary: #e6edf3;
  --text-secondary: #848d97;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
}

body[data-theme='default'] {
  --accent: #448aff;
  --glow: rgba(68, 138, 255, 0.6);
}

body[data-theme='emerald'] {
  --accent: #00e676;
  --glow: rgba(0, 230, 118, 0.6);
}

body[data-theme='ruby'] {
  --accent: #ff4081;
  --glow: rgba(255, 64, 129, 0.6);
}

body[data-theme='amber'] {
  --accent: #ffc107;
  --glow: rgba(255, 193, 7, 0.6);
}

body[data-theme='violet'] {
  --accent: #ab47bc;
  --glow: rgba(171, 71, 188, 0.6);
}

body[data-theme='cyan'] {
  --accent: #00bcd4;
  --glow: rgba(0, 188, 212, 0.6);
}

/* -- 2. BASE SETUP & ADVANCED EFFECTS -- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-dark-2);
  overflow-x: hidden;
  position: relative;
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s 0.5s, background-color 0.5s ease;
}

#page-loader.loading {
  transform: scaleX(1);
}

#page-loader.finished {
  opacity: 0;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

body.particles-active #cursor-canvas {
  opacity: 1;
}


/* --- GRADIENT FIX: DUAL PSEUDO-ELEMENTS --- */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: opacity 0.8s ease;
  animation-duration: 15s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Default "accent" background layer */
body::before {
  background: radial-gradient(circle at 10% 20%, var(--accent), transparent 50%), radial-gradient(circle at 90% 80%, var(--glow), transparent 50%);
  animation-name: var(--bg-accent-animation);
  background-size: 300% 300%;
  opacity: 1;
}

/* "Gradient" background layer (initially hidden) */
body::after {
  background-size: 400% 400%;
  animation-name: var(--bg-gradient-animation);
  opacity: 0;
}

/* --- GRADIENT FIX: Bulletproof pre-defined gradient styles --- */
body[data-gradient-theme="default"]::after { background-image: linear-gradient(-45deg, #448aff, var(--bg-dark-2)); }
body[data-gradient-theme="emerald"]::after { background-image: linear-gradient(-45deg, #00e676, var(--bg-dark-2)); }
body[data-gradient-theme="ruby"]::after   { background-image: linear-gradient(-45deg, #ff4081, var(--bg-dark-2)); }
body[data-gradient-theme="amber"]::after  { background-image: linear-gradient(-45deg, #ffc107, var(--bg-dark-2)); }
body[data-gradient-theme="violet"]::after { background-image: linear-gradient(-45deg, #ab47bc, var(--bg-dark-2)); }
body[data-gradient-theme="cyan"]::after   { background-image: linear-gradient(-45deg, #00bcd4, var(--bg-dark-2)); }


/* Cross-fade logic */
body.gradient-mode::before {
  opacity: 0;
}

body.gradient-mode::after {
  opacity: 1;
}


/* --- ENHANCED KEYFRAMES FOR ACCENT MOTION --- */
@keyframes pulse-bg {
  0%, 100% { background-size: 200% 200%; background-position: 20% 80%; }
  50% { background-size: 300% 300%; background-position: 80% 20%; }
}
@keyframes orbit-bg {
  0%, 100% { background-position: 0% 50%; } 25% { background-position: 50% 100%; } 50% { background-position: 100% 50%; } 75% { background-position: 50% 0%; }
}
@keyframes sweep-grad {
  0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; }
}
@keyframes flow-grad {
  0%, 100% { background-position: 10% 0%; } 50% { background-position: 90% 100%; }
}
@keyframes diagonal-grad {
  0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
p {
  line-height: 1.7;
  color: var(--text-secondary);
}
p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.2s, color 0.2s;
}
p a:hover {
  text-decoration: underline;
  color: var(--text-primary);
}


/* -- 3. HEADER AND NAVIGATION -- */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  background-color: transparent;
  transition: background-color 0.4s ease, border-bottom-color 0.4s ease;
}
#main-header.scrolled {
  background-color: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-decoration: none;
}
.main-nav {
  display: flex;
  list-style: none;
  gap: 35px;
  position: relative;
}
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a.current-page {
  color: var(--text-primary);
}
#nav-underline {
  position: absolute;
  bottom: -5px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1), width 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.5s ease;
  pointer-events: none;
}


/* -- 3.1. MOBILE NAVIGATION -- */
.hamburger-btn {
  display: none;
  width: 28px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
body.mobile-nav-open .hamburger-line:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
body.mobile-nav-open .hamburger-line:nth-child(2) { opacity: 0; }
body.mobile-nav-open .hamburger-line:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 4, 9, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.mobile-nav-open .mobile-nav {
  transform: translateX(0);
}
.mobile-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.mobile-nav-open .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
}
body.mobile-nav-open .mobile-nav a:nth-child(1) { transition-delay: 0.2s; }
body.mobile-nav-open .mobile-nav a:nth-child(2) { transition-delay: 0.25s; }
body.mobile-nav-open .mobile-nav a:nth-child(3) { transition-delay: 0.3s; }
body.mobile-nav-open .mobile-nav a:nth-child(4) { transition-delay: 0.35s; }


/* -- 4. HERO SECTION & PAGE HEADERS -- */
.hero {
  text-align: center;
  padding: 120px 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-container {
  padding-top: 60px;
  padding-bottom: 80px;
}
.hero h1,
.page-container h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
  text-align: center;
}
.hero h1 { min-height: 120px; }
@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent); }
}
.hero .subtitle,
.page-container .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 50px;
  text-align: center;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.btn {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--bg-dark-2);
  box-shadow: 0 0 15px var(--glow), 0 0 20px var(--glow) inset;
  animation: pulse-btn 2.5s infinite;
}
@keyframes pulse-btn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--glow); }
  50% { transform: scale(1.03); box-shadow: 0 0 25px var(--glow); }
}
.btn-primary:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 30px var(--glow);
  filter: brightness(1.1);
}
.btn-secondary {
  background-color: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* -- 5. CONTENT BLOCKS (CODE, FEATURES, ETC) -- */
section {
  padding: 80px 0;
}
h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
}
.code-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 0;
}
.tilt-card {
  perspective: 1000px;
  transition: transform 0.1s linear;
}
.code-block {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.tilt-card:hover .code-block {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 2px 1px var(--accent);
  transform: scale(1.02);
  border-color: var(--accent);
}
.code-header {
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.code-title {
  flex-grow: 1;
  text-align: center;
  padding-right: 40px;
}
.copy-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.2s ease;
  width: 30px;
  height: 30px;
  position: relative;
  margin-left: auto;
}
.copy-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  position: absolute;
  stroke: var(--text-secondary);
}
.copy-btn .success-icon {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
}
.copy-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
.copy-btn:hover .copy-icon { stroke: #fff; }
.copy-btn.copied { background-color: #00e676; }
.copy-btn.copied .copy-icon { opacity: 0; transform: scale(0.5) rotate(45deg); }
.copy-btn.copied .success-icon { opacity: 1; transform: scale(1) rotate(0deg); stroke: var(--bg-dark-2); }
pre {
  padding: 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-code);
  font-size: 0.95rem;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background-color: rgba(30, 30, 30, 0.7);
  padding: 35px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: block;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}
.feature-card:hover::before { opacity: 0.2; }
.feature-icon {
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover .feature-icon {
  color: var(--accent);
  transform: scale(1.1);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.feature-card p {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.feature-card:hover p { color: var(--text-primary); }


/* -- 6. PAGE-SPECIFIC STYLES -- */
/* 6.1: Get Started Page */
.step-guide {
  position: relative;
  padding-left: 50px;
  border-left: 2px solid var(--border-color);
  margin-top: 60px;
}
.step {
  position: relative;
  margin-bottom: 80px;
}
.step:last-child { margin-bottom: 0; }
.step-number {
  position: absolute;
  left: -75px; top: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background-color: var(--bg-dark-1);
  border: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}
.step.is-visible .step-number {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--glow);
  color: var(--accent);
}
.step-content h2 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 15px;
}
.step-content h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  color: var(--accent);
}
.step-content .code-block { margin-top: 20px; }
.next-steps { margin-top: 100px; }

/* 6.2: Documentation Page */
.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  align-items: flex-start;
  margin-top: 40px;
}
/* --- SIDEBAR FIX: Correctly applied sticky position --- */
.docs-sidebar {
  position: sticky;
  top: 100px;
}
.docs-sidebar h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 10px;
  margin-bottom: 15px;
}
.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.docs-sidebar nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
}
.docs-sidebar nav a:hover {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border-left-color: var(--accent);
}
.docs-sidebar nav a.active-section {
  color: var(--accent);
  background-color: var(--surface-color);
  border-left-color: var(--accent);
}
.docs-content article {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 100px;
}
.docs-content article:last-child { border-bottom: none; margin-bottom: 0; }
.docs-content h2 {
  text-align: left;
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.docs-content article p,
.docs-content article .tilt-card { margin-bottom: 25px; }
#docs-menu-btn { display: none; }


/* -- 7. UTILITIES & THEME SWITCHER -- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion) {
  .animate-on-scroll, .tilt-card, .btn-primary, body::before, body::after, #page-loader, #nav-underline {
    transition: none; animation: none;
  }
}

#theme-switcher-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1001;
}
#theme-switcher-btn {
  width: 50px;
  height: 50px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#theme-switcher-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--glow);
  border-color: var(--accent);
}
#theme-switcher-btn svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  position: absolute;
}
#theme-switcher-icon-maximized { opacity: 0; transform: rotate(-90deg) scale(0.5); }
#theme-switcher-container.is-open #theme-switcher-icon-minimized { opacity: 0; transform: rotate(90deg) scale(0.5); }
#theme-switcher-container.is-open #theme-switcher-icon-maximized { opacity: 1; transform: rotate(0deg) scale(1); }

#theme-palette {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background: rgba(20, 20, 22, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#theme-switcher-container.is-open #theme-palette {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#theme-palette fieldset { border: none; padding: 0; margin: 0; }
#theme-palette legend { float: left; width: 100%; font-size: 0; }
#theme-palette h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 10px;
}
.theme-color,
.grad-color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset;
}
.theme-color:hover, .grad-color:hover { transform: scale(1.15); }
.theme-color.active, .grad-color.active {
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px #fff;
}
.palette-section {
  padding-top: 15px;
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
}
.palette-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
}
.collapsible-header h4 { margin-bottom: 0; }
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}
.collapsible-section.is-open .collapsible-content {
  max-height: 500px;
  padding-top: 15px;
}
.motion-controls, .gradient-selectors {
  display: flex;
  justify-content: space-around;
  padding-top: 5px;
}
.motion-controls label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.motion-controls input { display: none; }
.motion-controls label:hover { background-color: rgba(255, 255, 255, 0.1); }
.motion-controls input:checked+label { color: var(--accent); border-color: var(--accent); }
.particle-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  cursor: pointer;
}
.particle-select { position: relative; }
.particle-select::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
  color: var(--text-secondary);
}


/* -- 8. RESPONSIVENESS -- */
@media (max-width: 900px) {
  #docs-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 100px;
    left: -1px;
    z-index: 999;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  #docs-menu-btn:hover { background-color: var(--accent); color: var(--bg-dark-2); }
  .docs-sidebar-container {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 300px; height: 100%;
    padding: 80px 30px 30px 30px;
    z-index: 1001;
    background-color: rgba(1, 4, 9, 0.95);
    backdrop-filter: blur(15px);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  body.docs-sidebar-open .docs-sidebar-container { transform: translateX(0); }
  .docs-layout { display: block; max-width: none; }
  .step-guide { padding-left: 20px; }
  .step-number { left: -45px; }
}

@media (max-width: 768px) {
  .main-nav, #nav-underline { display: none; }
  .hamburger-btn { display: flex; }
  body.mobile-nav-open .mobile-nav { display: flex; }
  .hero { min-height: 70vh; }
  .hero h1 { min-height: 80px; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 15px; }
  .btn { width: 80%; max-width: 300px; text-align: center; }
  .code-comparison, .syntax-grid { display: flex; flex-direction: column; }
  #theme-switcher-container { bottom: 20px; right: 20px; }
  #theme-palette { width: calc(100vw - 40px); left: 20px; right: 20px; bottom: 85px; transform-origin: bottom center; }
  h2 { font-size: 2.1rem; }
}


/* -- 9. FOOTER -- */
footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  background: #010409;
}
footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover { text-decoration: underline; }
footer p { margin-bottom: 10px; }```