[data-theme="dark"] {
  --primary-color: #ff6b35;
  --primary: #ff8c42;
  --primary-dark: #e65100;
  --secondary-color: #d6dde6;
  --text-dark: #e5e7eb;
  --text-light: #9aa3b2;
  --background-light: #161b22;
  --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] body {
  background: #0d1117;
  color: var(--text-dark);
}

body,
.navbar-area,
.single-services,
.portfolio-style,
.team-style,
.single-news,
.news-item,
.related-item,
.contact-item,
.single-image,
.footer-area,
.navbar-collapse,
.page-loader,
.gslide-inline,
.share-section {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

[data-theme="dark"] .page-loader {
  background: #0d1117;
}
[data-theme="dark"] .loader-spinner {
  border-color: #2a313c;
  border-top-color: var(--primary-color);
}

[data-theme="dark"] .navbar-area {
  background: rgba(13, 17, 23, 0.92);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .navbar-area.scrolled {
  background: rgba(13, 17, 23, 0.98);
}

[data-theme="dark"] .navbar-toggler .toggler-icon {
  background: var(--text-dark);
}

@media (max-width: 991.98px) {
  [data-theme="dark"] .navbar-collapse {
    background: #161b22 !important;
    box-shadow: var(--shadow-light);
  }
  [data-theme="dark"] .navbar-nav .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  }
}

[data-theme="dark"] .single-services,
[data-theme="dark"] .portfolio-style,
[data-theme="dark"] .team-style,
[data-theme="dark"] .single-news,
[data-theme="dark"] .news-item,
[data-theme="dark"] .related-item,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .single-image {
  background: #1c2230;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .filter-btn {
  color: var(--text-dark);
}
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  color: var(--primary-color);
}

[data-theme="dark"] .article-body h3 {
  color: var(--secondary-color);
  border-bottom-color: var(--primary-color);
}
[data-theme="dark"] .article-body strong {
  color: var(--secondary-color);
}
[data-theme="dark"] .article-image {
  box-shadow: var(--shadow-light);
}

[data-theme="dark"] .breadcrumb-area {
  background: var(--background-light);
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

[data-theme="dark"] .share-section {
  background: var(--background-light);
}

[data-theme="dark"] .related-articles {
  background: var(--background-light);
}

[data-theme="dark"] .contact-section {
  background: var(--background-light);
}

[data-theme="dark"] .single-image {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .footer-area {
  background: #0a0e14;
  color: var(--text-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  padding: 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.theme-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.theme-toggle i {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.4s ease;
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-dark);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 140, 66, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle.spinning i {
  transform: rotate(360deg);
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .theme-toggle-wrap {
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 4px !important;
  }

  .navbar-toggler {
    order: 3 !important;
    margin-left: 0 !important;
  }

  .theme-toggle-wrap .theme-toggle {
    margin-left: 0;
  }
}

[data-theme="dark"] .share-btn.email i,
[data-theme="dark"] .share-btn.email {
  color: #1a1a1a;
}