:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #43485c;
  --muted: #6a708e;
  --accent: #b636ff;
  --border: #e9ebf2;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.section-heading h2,
h1,h2,h3,h4,h5,h6,
p,
a,
nav.navbar.bootsnav ul.nav > li > a {
  transition: color 0.25s ease;
}

nav.navbar.bootsnav {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-text p {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.header-text a,
.contact-form button,
.theme-toggle {
  border-radius: 999px;
}

.about,
.education,
.skills,
.profiles,
.portfolio,
.contact {
  background: var(--surface);
}

.single-about-txt h3,
.single-about-txt p,
.single-contact-add-info p,
.timeline-content p.description {
  color: var(--muted);
}

.theme-toggle-item {
  display: flex;
  align-items: center;
  padding: 24px 0 0 10px;
}

.theme-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.dark-mode {
  --bg: #0f1220;
  --surface: #11162a;
  --text: #e7e9f2;
  --muted: #b0b6cc;
  --accent: #c36bff;
  --border: #2a3150;
}

body.dark-mode .welcome-hero:before {
  background: rgba(8, 10, 20, 0.72);
}

body.dark-mode nav.navbar.bootsnav,
body.dark-mode .single-about-img,
body.dark-mode .single-profile,
body.dark-mode .item,
body.dark-mode .single-contact-box,
body.dark-mode .footer-copyright,
body.dark-mode .profile-border,
body.dark-mode .timeline,
body.dark-mode .single-horizontal-timeline {
  background: var(--surface) !important;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #0f1220;
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 991px) {
  .theme-toggle-item {
    padding: 0 20px 12px;
  }
}
