/* ==========================================================================
   🌓 EvEvDigital Dual Theme Engine (Dark & Light Mode Switcher)
   ========================================================================== */

/* Smooth Transition across the entire page when switching themes */
body, 
.th-header, 
.th-menu-area, 
.sticky-wrapper,
.service-card, 
.price-card, 
.testi-card, 
.team-card, 
.process-card, 
.feature-card,
.faq-card,
.accordion-item,
.footer-wrapper,
.th-btn,
.sec-title,
.sub-title,
p, h1, h2, h3, h4, h5, h6 {
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease !important;
}

/* ==========================================================================
   🌙 DARK THEME PALETTE ([data-theme="dark"])
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  
  /* Root color overrides */
  --theme-color: #0284C7;
  --theme-color2: #38BDF8;
  --title-color: #F8FAFC !important;
  --body-color: #94A3B8 !important;
  --smoke-color: #0B0F19 !important;
  --smoke-color2: #101827 !important;
  --white-color: #172235 !important;
  --black-color: #F8FAFC !important;
  --black-color2: #FFFFFF !important;
  --th-border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] body {
  background-color: #0B0F19 !important;
  color: #94A3B8 !important;
}

[data-theme="dark"] .th-header,
[data-theme="dark"] .sticky-wrapper,
[data-theme="dark"] .th-menu-area {
  background-color: rgba(11, 15, 25, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .main-menu > ul > li > a {
  color: #F8FAFC !important;
}

[data-theme="dark"] .main-menu > ul > li > a:hover {
  color: #38BDF8 !important;
}

/* Elevated Surfaces & Cards in Dark Mode */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-box,
[data-theme="dark"] .price-card,
[data-theme="dark"] .price-box,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .testi-box,
[data-theme="dark"] .process-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .appointment-form,
[data-theme="dark"] .widget {
  background-color: #172235 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .accordion-button {
  background-color: #172235 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: #1E293B !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .accordion-body {
  background-color: #172235 !important;
  color: #94A3B8 !important;
}

[data-theme="dark"] .bg-top-center,
[data-theme="dark"] .space,
[data-theme="dark"] .space-bottom,
[data-theme="dark"] .team-area,
[data-theme="dark"] .testi-area {
  background-color: #0B0F19 !important;
}

[data-theme="dark"] .cta-sec {
  background: linear-gradient(135deg, #0B0F19 0%, #172235 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-wrapper {
  background-color: #070A11 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #101827 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .sub-title {
  color: #38BDF8 !important;
}

[data-theme="dark"] .sec-title,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4 {
  color: #F8FAFC !important;
}

/* ==========================================================================
   ☀️ LIGHT THEME PALETTE ([data-theme="light"])
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;
  
  --theme-color: #0284C7;
  --theme-color2: #0369A1;
  --title-color: #0F172A !important;
  --body-color: #475569 !important;
  --smoke-color: #F8FAFC !important;
  --smoke-color2: #F1F5F9 !important;
  --white-color: #FFFFFF !important;
  --black-color: #0F172A !important;
  --black-color2: #1E293B !important;
  --th-border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] body {
  background-color: #F8FAFC !important;
  color: #475569 !important;
}

[data-theme="light"] .service-card,
[data-theme="light"] .price-card,
[data-theme="light"] .testi-card,
[data-theme="light"] .process-card,
[data-theme="light"] .team-card,
[data-theme="light"] .accordion-item {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   🔘 THEME TOGGLE BUTTON COMPONENT
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 125, 125, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-right: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
  outline: none;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: #0284C7;
  background: rgba(2, 132, 199, 0.12);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle-btn {
  background: #172235;
  color: #FDE047;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .theme-toggle-btn {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* EvEvDigital Official Footer Badge */
.footer-maker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
}

[data-theme="light"] .footer-maker {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
