/* Dark Mode Styles */
html.dark-mode {
  background-color: #111;
  color: #eee;
}

html.dark-mode body {
  background-color: transparent;
  color: #eee;
}

html.dark-mode .header,
html.dark-mode .introsection,
html.dark-mode .introcontainer,
html.dark-mode .footer {
  background-color: #111;
  color: #eee;
  border-color: #333 !important;
}

html.dark-mode .thesection {
  background-color: transparent;
  color: #eee;
  border-color: #333 !important;
}

html.dark-mode a {
  color: #eee;
}

html.dark-mode .thumb {
  border-color: #333;
  background-color: transparent;
  color: #eee;
}

html.dark-mode .projectbar100.cover {
  background-color: #222;
}

html.dark-mode .thumb:hover {
  background-color: #333;
}

html.dark-mode .project-info {
  background-color: #1a1a1a;
  border-top-color: #333 !important;
}

html.dark-mode .tag {
  background-color: #eee;
  color: #111;
}

html.dark-mode .thumbtag {
  border-color: #333;
  background-color: #222;
  color: #eee;
}

html.dark-mode .projectbar100.uxdemo {
  background-color: #222;
}

html.dark-mode .mysig-light-bg {
  background-color: #222;
}

html.dark-mode .mysig-dark-bg {
  background-color: #111;
  color: #eee;
}

html.dark-mode .projectbar100.grey {
  background-color: #222;
  color: #eee;
}

html.dark-mode .headerplaceholder {
  background-color: #111;
}

html.dark-mode .inheadertitlebox {
  background-color: #111;
  border-color: #333 !important;
}

html.dark-mode .chaosorder {
  border-color: #333;
}

html.dark-mode .coselectorwrap {
  border-color: #333 !important;
}

html.dark-mode .cotext {
  color: #eee;
}

html.dark-mode .theblackcircle {
  background-color: #eee;
  border-color: #333 !important;
}

html.dark-mode .contactbye {
  border-color: #333 !important;
}

html.dark-mode .contactblock,
html.dark-mode .me {
  border-color: #333 !important;
}

html.dark-mode .contact {
  color: #eee !important;
}

html.dark-mode .paragraphdiv {
  border-color: #333 !important;
}

html.dark-mode .imagearrow,
html.dark-mode .eezaaki,
html.dark-mode .mt-matrix-img {
  filter: invert(1);
}

/* Global Border Overrides for Dark Mode */
html.dark-mode .cv-body,
html.dark-mode .cv-side,
html.dark-mode .cv-section,
html.dark-mode .cv-section.cveducation,
html.dark-mode .cv-circle-shape,
html.dark-mode .cv-oval-shape,
html.dark-mode .cv-thumb,
html.dark-mode .file-item,
html.dark-mode .file-download,
html.dark-mode .footer .contactbye,
html.dark-mode .projectbar100,
html.dark-mode .projectblock50,
html.dark-mode .projectbar50-50,
html.dark-mode .sidebar,
html.dark-mode .image-17,
html.dark-mode .kysimage,
html.dark-mode .image-7,
html.dark-mode .download,
html.dark-mode .inheadertitlebox,
html.dark-mode .paragraphdiv,
html.dark-mode .contactblock,
html.dark-mode .me {
  border-color: #333 !important;
}

/* Tag Overrides */
html.dark-mode .skill_subcategory_badge {
  background-color: #eee;
  color: #111;
}

html.dark-mode #awards-summary > div > div > div {
  background-color: #333 !important;
  color: #eee;
}

html.dark-mode .cta-button {
  background: #eee;
  color: #111;
  border-color: #333;
}

html.dark-mode .cta-button:hover {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Live Demo Button Dark Mode */
html.dark-mode .live-demo-btn {
  background: #eee;
  color: #111;
  border-color: #eee;
}

html.dark-mode .live-demo-btn:hover {
  background: #fff;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* About Button Styles */
.about-header-btn {
  text-decoration: none;
  margin-left: auto;
  margin-right: 12px;
  border: 1px solid black;
  padding: 5px 10px;
  border-radius: 5px;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.about-header-btn:hover {
  background-color: #e0e0e0;
}

html.dark-mode .about-header-btn {
  border-color: #333;
  color: #eee;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

html.dark-mode .about-header-btn:hover {
  background-color: #333;
}

/* Toggle Button Style */
#theme-toggle-btn {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  cursor: pointer;
  margin-right: 15px;
  position: relative;
  overflow: visible;
  display: none;
  align-items: center;
  justify-content: center;
  color: inherit;
}

@media (min-width: 1001px) {
  #theme-toggle-btn {
    display: flex;
  }
}

#theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

#theme-toggle-btn .icon-sun {
  display: block !important;
}

#theme-toggle-btn .icon-moon {
  display: none !important;
}

html.dark-mode #theme-toggle-btn {
  border-color: transparent;
  background: transparent;
}

html.dark-mode #theme-toggle-btn .icon-sun {
  display: none !important;
}

html.dark-mode #theme-toggle-btn .icon-moon {
  display: block !important;
}

#theme-toggle-btn::after {
  display: none;
}

html.dark-mode #theme-toggle-btn::after {
  display: none;
}

/* More/Less Button Override */
html.dark-mode #collapse-awards {
  background-color: #eee !important;
  color: #111 !important;
}

/* Muted Text & Elements Override */
html.dark-mode .cv-city,
html.dark-mode .skill_subcategory,
html.dark-mode [style*="color: lightgray"],
html.dark-mode [style*="COLOR: LIGHTGRAY"] {
  color: #444 !important;
}

html.dark-mode [style*="background-color: lightgray"] {
  background-color: #444 !important;
}

/* Available for Projects Tag Override */
html.dark-mode .cv-institution span[style*="background-color: #f3f3f3"] {
  background-color: #333 !important;
  color: #eee !important;
}

/* CV Thumb Override */
html.dark-mode .cv-thumb {
  background-color: #333 !important;
  color: #eee !important;
}

html.dark-mode .cv-thumb:hover {
  background-color: #555 !important;
  color: #fff !important;
  transition: 0.3s;
}

/* AV Thumb & Project Bar Override */
html.dark-mode .av-tbn,
html.dark-mode .projectbar100.av {
  background-color: #111 !important;
}

/* Break Section Override */
html.dark-mode .break {
  border-color: #333 !important;
}

/* Aslide Border Override */
html.dark-mode .aslide,
html.dark-mode .aslide.blacklines {
  border-color: #333 !important;
}

/* Additional Border Overrides */
html.dark-mode .theproject,
html.dark-mode .calendarbye {
  border-color: #333 !important;
}
