/* --- CSS VARIABLES FOR THEME & REUSABILITY --- */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Neutrals */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;

  /* Spacing */
  --space-xs: 0.2rem;
  --space-sm: 0.35rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 2.5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Dark theme variables */
[data-theme="dark"] {
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --border: #475569;
  --border-light: #334155;
  --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--gradient-bg);
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- TYPOGRAPHY ENHANCEMENTS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  position: relative;
  padding-bottom: 0.25rem;
  margin-top: var(--space-md);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: var(--space-lg);
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.accent-display {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

/* --- BUTTON ENHANCEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-nav:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- TUTORIAL CONTAINER --- */
.tutorial-container {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.mttop {
  margin-top: 5.5rem;
  padding-left: 0;
  padding-right: 0;
}

/* --- ENHANCED SIDEBAR --- */
.sidebar {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  width: 300px;
  flex-shrink: 0;
  position: fixed;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: var(--z-sticky);
  border-radius: var(--radius-xl) 0 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-tertiary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sidebar:hover {
  box-shadow: var(--shadow-xl);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

.sidebar::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.sidebar-header {
  padding: var(--space-lg);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-radius: var(--radius-xl) 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sidebar-header h3, .sidebar-header h4 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.sidebar-list {
  list-style: none;
  padding: var(--space-sm) 0;
}

.sidebar-list li {
  margin: 0;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.sidebar-list a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  padding-left: calc(var(--space-lg) + 4px);
}

.sidebar-list a.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

.sidebar-list a.active::before {
  content: '';
  position: absolute;
  right: var(--space-lg);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.sidebar-list a.completed {
  position: relative;
  color: var(--success);
}

.sidebar-list a.completed::after {
  content: '✓';
  position: absolute;
  right: var(--space-lg);
  color: var(--success);
  font-weight: bold;
  background: rgba(16, 185, 129, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

/* --- ENHANCED CONTENT AREA --- */
.content-area {
  flex: 1;
  margin-top: 82px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  margin-left: 300px;
  min-height: 600px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-area:hover {
  box-shadow: var(--shadow-xl);
}

section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

section:last-of-type {
  border-bottom: none;
}

.topic-section {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.topic-section.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CODE & EXAMPLE STYLING --- */
.example {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--space-md) 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.example:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.example-title {
  background: var(--bg-tertiary);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

pre {
  margin: 0;
  padding: var(--space-md);
  overflow-x: auto;
  background: #1a1b26;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  font-size: 0.9rem;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Inline code */
:not(pre) > code {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Code inside pre */
pre code {
  color: #e5e7eb;
  background: transparent;
}

pre code .keyword { color: #c586c0; }
pre code .string { color: #ce9178; }
pre code .number { color: #b5cea8; }
pre code .comment { color: #6a9955; }
pre code .function { color: #dcdcaa; }
pre code .tag { color: #569cd6; }

/* --- COMPONENTS: CARDS, ALERTS, BADGES --- */
.cm-card {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.cm-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cm-card__header {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  background: var(--bg-secondary);
}

.cm-card__body { padding: var(--space-md); }
.cm-card__footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.cm-alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  border-left: 3px solid;
  background: var(--bg-secondary);
  margin: var(--space-sm) 0;
}

.cm-alert--primary {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.cm-alert--success {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.cm-alert--warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.cm-alert--danger {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.cm-alert--info {
  border-color: var(--info);
  background: rgba(59, 130, 246, 0.05);
}

.cm-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cm-badge--primary { background: var(--primary); color: #fff; }
.cm-badge--secondary { background: var(--secondary); color: #fff; }
.cm-badge--accent { background: var(--accent); color: #1f2937; }
.cm-badge--success { background: var(--success); color: #fff; }
.cm-badge--warning { background: var(--warning); color: #3b1d00; }
.cm-badge--danger { background: var(--danger); color: #fff; }
.cm-badge--info { background: var(--info); color: #fff; }

/* Tables */
.css-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.css-table th, .css-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.css-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.css-table tr:last-child td {
  border-bottom: none;
}

.css-table tr:hover {
  background: var(--bg-tertiary);
}

/* Live Examples */
.live-example {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.box-model-demo {
  height: 150px;
  width: 150px;
  margin: 0 auto;
  position: relative;
  background: conic-gradient(#4cc9f0 0% 25%, #4361ee 25% 50%, #3f37c9 50% 75%, #7209b7 75% 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.box-model-label {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-xs) 0.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.content-label { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.padding-label { top: 10px; left: 10px; }
.border-label { bottom: 10px; right: 10px; }
.margin-label { top: -30px; left: 50%; transform: translateX(-50%); }

.flex-container {
  display: flex;
  gap: 8px;
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.flex-item {
  flex: 1;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform var(--transition);
}

.flex-item:hover {
  transform: scale(1.03);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.grid-item {
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform var(--transition);
}

.grid-item:hover {
  transform: scale(1.03);
}

/* Navigation Controls */
.navigation-controls {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  gap: var(--space-sm);
}

/* Completion Checkbox */
.completion-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.completion-checkbox:hover {
  background: var(--bg-tertiary);
}

.completion-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
  transform: scale(1.1);
  cursor: pointer;
}

.completion-checkbox label {
  cursor: pointer;
  font-weight: 500;
  flex: 1;
  font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  z-index: var(--z-fixed);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  right: 16px;
  top: 80px;
  z-index: var(--z-fixed);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.theme-toggle .theme-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}

@media (max-width: 992px) {
  .tutorial-container { flex-direction: column; }
  .sidebar {
    position: fixed;
    left: -300px;
    top: 70px;
    height: calc(100% - 70px);
    transition: left 0.3s ease;
    z-index: var(--z-modal);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open { left: 0; }
  .content-area {
    margin-left: 0;
    margin-top: 20px;
    padding: var(--space-md);
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-modal) - 1);
    display: none;
  }

  .sidebar.open + .sidebar-overlay {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 var(--space-sm);
  }
  .content-area {
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
  }
  .sidebar {
    width: 90vw;
    max-width: 300px;
  }
  .tutorial-container{
    margin-top: 4rem;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  .lead { font-size: 1rem; }
}

@media (max-width: 576px) {
  .btn, .btn-nav {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }
  .sidebar { top: 55px; }
  .content-area { padding: 0.5rem; }
  .navigation-controls {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* --- FOOTER ENHANCEMENTS --- */
.lp-footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  position: relative;
  z-index: var(--z-sticky);
  font-family: var(--font-primary);
  border-top: 2px solid var(--primary);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.lp-footer h5, .lp-footer h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: .4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.lp-footer__divider {
  border: none;
  height: 1px;
  background: var(--border);
}

.lp-footer .footer-logo {
  max-height: 52px;
  filter: drop-shadow(var(--shadow-sm));
}

.lp-footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.lp-footer .social-icon:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lp-footer .footer-links li {
  margin-bottom: .35rem;
}

.lp-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .9rem;
  transition: all var(--transition);
  display: inline-block;
}

.lp-footer .footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.lp-footer .quick-link {
  color: var(--text-secondary);
  text-decoration:none;
  font-size:.9rem;
  transition: all var(--transition);
}

.lp-footer .quick-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.lp-footer .newsletter-form .form-control {
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition);
  font-size: 0.95rem;
}

.lp-footer .newsletter-form .form-control:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.lp-footer .newsletter-form .btn {
  background: var(--gradient-primary);
  color: white;
  border: 1px solid var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.lp-footer .newsletter-form .btn:hover {
  background: var(--gradient-secondary);
  border-color: var(--secondary);
}

.lp-footer .form-check-input {
  border: 1px solid var(--border);
}

.lp-footer .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.lp-footer .footer-legal {
  color: var(--text-muted);
  font-size: .8rem;
  text-decoration:none;
  transition: color var(--transition);
}

.lp-footer .footer-legal:hover {
  color: var(--primary);
}

.lp-footer p, .lp-footer li, .lp-footer a {
  line-height: 1.5;
  font-size: 0.9rem;
}

@media (max-width: 768px){
  .lp-footer .footer-brand, .lp-footer .social-icons {
    text-align:center;
  }
  .lp-footer .social-icons .d-flex {
    justify-content:center;
  }
}

/* Mobile footer columns - 2 per row */
@media (max-width: 767px) {
  .lp-footer .col-lg-2.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Utility classes for spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }

.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .sidebar, .theme-toggle, .navigation-controls, .lp-footer {
    display: none;
  }

  .content-area {
    margin: 0;
    box-shadow: none;
    padding: 0;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .btn {
    background: white;
    color: black;
    border: 1px solid black;
  }
}
