:root {
  --body-bg: #f8f9fa; /* Soft light gray */
  --hero-bg: #ffffff; /* Clean white section */
  --navbar-bg: #f1f3f5; /* Subtle off-white navbar */
  --input-bg: white;
  --primary-text-color: #1a1a1a; /* Strong neutral black */
  --secondary-text-color: #4a4a4a; /* Dimmed for readability */
  --icon-color: #1a1a1a; /* Dark neutral for icons */

  --hover-color: #a4ccd9; /* Premium blue for links/buttons */
  --img-shadow-color: #1a1a1e; /* Subtle image elevation */
}

body.dark-mode {
  --body-bg: #0f0f11; /* Deep black-blue */
  --hero-bg: #1a1a1e; /* Slightly raised dark */
  --navbar-bg: #12141a; /* Differentiated darker top navbar */
  --input-bg: #393e46;
  --primary-text-color: #f3f4f6; /* Soft light text */
  --secondary-text-color: #b0b3ba; /* Comfortable body text */
  --icon-color: #e2e8f0; /* Cool slate for icons */

  --hover-color: #a4ccd9; /* Premium violet highlight */
  --img-shadow-color: #12141a; /* Subtle white shadow */
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--body-bg);
  color: var(--primary-text-color);
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  transition: background-color 0.3s, color 0.3s;
  font-family: "Poppins", sans-serif;
}

/* ====== Global Fonts ====== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  background-color: var(--navbar-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toggle {
  background-color: transparent;
  border: none;
  letter-spacing: 1px;
  width: auto;
  padding: 5px;
  margin-right: 20px;
  color: var(--icon-color);
}

.toggle:hover,
.toggle:active {
  color: var(--secondary-text-color);
}

.menu {
  font-size: 24px;
  cursor: pointer;
  margin-left: 15px;
  color: var(--icon-color);
  text-decoration: none;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--hero-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

/* ====== Headings ====== */
h1,
h2 {
  color: var(--primary-text-color);
  margin-top: 40px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid var(--secondary-text-color);
}

h2 {
  /* font-size: 1.6rem; */
  margin-bottom: 10px;
  display: inline-block;
  padding-bottom: 4px;
}

/* ====== Paragraphs and Lists ====== */
.p {
  color: var(--secondary-text-color);
  margin-bottom: 15px;
  font-size: 14px;
}

ul.p {
  padding-left: 1.5em;
}

ul.p li {
  margin-bottom: 10px;
  color: var(--secondary-text-color);
}

/* ====== Icon Row ====== */
.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.icon-row a {
  font-size: 1.5rem;
  color: var(--icon-color);
  transition: color 0.3s;
}

.icon-row a:hover {
  color: var(--hover-color);
}
