/* ==========================================================================
   Portfolio Dark Theme (Peach + Cream + Electric Blue on Obsidian #100f0e)
   Activated via <html data-theme="dark">
   ========================================================================== */

html[data-theme="dark"] {
  --_color---bg-warm: #100f0e;
  --_color---bg-grey: #181614;
  --_color---bg-cold: #141724;
  --_color---grey: #ede6de;
  color-scheme: dark;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .body,
html[data-theme="dark"] .main,
html[data-theme="dark"] .section,
html[data-theme="dark"] .seo-overview-section,
html[data-theme="dark"] .seo-faq-section,
html[data-theme="dark"] .news-section {
  background-color: #100f0e !important;
  color: #ede6de;
}

/* Smooth ambient peach + subtle electric-blue edge glow */
html[data-theme="dark"] .top-glow {
  box-shadow:
    inset 0 2px 45px rgba(255, 188, 149, 0.22),
    inset 0 1px 110px 4px rgba(46, 84, 254, 0.14);
}

/* Dark-studio optimization for 3D floating shapes:
   Tones down bright white highlights into moody satin graphite & rich peach
   while keeping electric-blue accents vivid and navbar text legible. */
html[data-theme="dark"] .wrapper-icons img:not(.blue-circle):not(.blue-pill):not(.blue-hex),
html[data-theme="dark"] .about-floating-shapes .floating-shape {
  filter: brightness(0.42) contrast(1.18) saturate(1.28) drop-shadow(0 20px 42px rgba(0, 0, 0, 0.72));
  opacity: 0.9;
}

html[data-theme="dark"] .wrapper-icons .blue-circle,
html[data-theme="dark"] .wrapper-icons .blue-pill,
html[data-theme="dark"] .wrapper-icons .blue-hex {
  filter: drop-shadow(0 10px 24px rgba(46, 84, 254, 0.35));
}

/* Secondary body copy & subtle captions */
html[data-theme="dark"] .body-copy.title,
html[data-theme="dark"] .seo-section-lead,
html[data-theme="dark"] .seo-faq-lead,
html[data-theme="dark"] .seo-card-body,
html[data-theme="dark"] .seo-faq-a,
html[data-theme="dark"] .news-lead,
html[data-theme="dark"] .news-card-summary,
html[data-theme="dark"] .news-updated {
  color: #b5aca5 !important;
}

html[data-theme="dark"] .seo-section-title,
html[data-theme="dark"] .seo-card-title,
html[data-theme="dark"] .seo-faq-title,
html[data-theme="dark"] .seo-faq-q,
html[data-theme="dark"] .news-heading,
html[data-theme="dark"] .news-card-title,
html[data-theme="dark"] .service-headline,
html[data-theme="dark"] .service-h2,
html[data-theme="dark"] .click-scroll-text,
html[data-theme="dark"] .heading {
  color: #faf6ef;
}

/* Smoked Liquid Glass cards (Disciplines, FAQ, News) */
html[data-theme="dark"] .seo-card,
html[data-theme="dark"] .seo-faq-item,
html[data-theme="dark"] .news-card {
  background: rgba(24, 21, 19, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .seo-card:hover,
html[data-theme="dark"] .news-card:hover {
  border-color: rgba(255, 188, 149, 0.32) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58) !important;
}

/* Work page tags, project cards & dividers */
html[data-theme="dark"] .main-project-wrapper,
html[data-theme="dark"] .cont-project-content {
  background-color: #161412 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .headline-project {
  color: #faf6ef !important;
}

html[data-theme="dark"] .pill-service,
html[data-theme="dark"] .pill-year,
html[data-theme="dark"] .service-tag,
html[data-theme="dark"] .tag-service {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8e1da;
}

/* CTA box ("Let's build something people remember") */
html[data-theme="dark"] .main-cta-wrapper,
html[data-theme="dark"] .cta-wrapper {
  background-color: #161412;
  border-color: rgba(255, 188, 149, 0.26);
}

html[data-theme="dark"] .heading-cta,
html[data-theme="dark"] .heading-cta.main {
  color: #faf6ef;
}

html[data-theme="dark"] .body-copy-cta {
  color: #ffbc95;
}

/* Navbar & logo legibility on dark canvas */
html[data-theme="dark"] .nav-name-jm,
html[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .nav-link:not(.is-peach):not(:hover):not(.w--current),
html[data-theme="dark"] .nav-social-link:not(.is-peach):not(:hover):not(.w--current),
html[data-theme="dark"] .nav-link-mobile:not(.is-peach):not(:hover):not(.w--current) {
  color: #faf6ef;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .nav-link:not(.is-peach),
html[data-theme="dark"] .nav-social-link:not(.is-peach),
html[data-theme="dark"] .nav-link-mobile:not(.is-peach) {
  box-shadow:
    inset 0 0.75px 0.75px rgba(255, 255, 255, 0.28),
    inset 0 -0.75px 0.75px rgba(255, 255, 255, 0.1),
    0 0 0 0.5px rgba(255, 255, 255, 0.12),
    0 8px 20px -6px rgba(0, 0, 0, 0.42);
}

/* ==========================================================================
   Theme Toggle Button (Desktop in navbar + Mobile top-right pill)
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: Goga, Arial, sans-serif;
  padding: 0 12px;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--_color---grey, #96908c);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  color: var(--_color---blue, #2e54fe);
}

.theme-toggle-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.theme-toggle-mobile {
  display: none;
}

@media screen and (max-width: 767px) {
  .theme-toggle-mobile {
    display: inline-flex;
    position: fixed;
    top: 4vw;
    right: 4vw;
    z-index: 995;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: var(--_color---grey, #96908c);
  }

  html[data-theme="dark"] .theme-toggle-mobile {
    color: #ffbc95;
  }
}
