/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  background-color: #f5f7fa;
  color: #1a1a1a;
  line-height: 1.8;
  letter-spacing: 0.3px;
  padding: 2rem;
  max-width: 960px;
  margin: auto;
}

/* Toggle Button */
.toggle-container {
  text-align: right;
  margin-bottom: 1rem;
}

#darkModeToggle {
  background-color: #ff3d3d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#darkModeToggle:hover {
  background-color: #e22e2e;
}

/* Header */
header {
  background: linear-gradient(to right, #ff3d3d, #ff7b00);
  text-align: center;
  padding: 60px 20px;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 10px;
  color: #fff;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

header p {
  font-size: 1rem;
  font-weight: 500;
  color: #ffece0;
}

/* Sections */
section {
  padding: 40px;
  margin: 60px auto;
  max-width: 900px;
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease-in-out;
}

section:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

section h2 {
  color: #ff3d3d;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

section p {
  font-size: 1.2em;
  margin: 20px 0;
  font-weight: 400;
}

/* List Styles */
section ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

section ul li {
  font-size: 1.1em;
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
}

section ul li::before {
  content: '✔';
  color: #ff7b00;
  font-size: 1.1em;
  position: absolute;
  left: 0;
  top: 0;
}

/* Emphasis */
strong {
  color: #1a1a1a;
}

em {
  color: #6c757d;
  font-style: italic;
}

/* Links */
a {
  color: #ff3d3d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  font-size: 0.95em;
  border-top: 1px solid #e0e0e0;
  color: #999;
}

footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.5rem;
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode header {
  background: linear-gradient(to right, #bb86fc, #ff7b00);
  border-color: #333;
  color: #fff;
}

body.dark-mode header p {
  color: #f0d0b0;
}

body.dark-mode section {
  background-color: #1e1e1e;
  color: #ddd;
  border-color: #444;
}

body.dark-mode section h2 {
  color: #ffab91;
  border-bottom-color: #555;
}

body.dark-mode section p,
body.dark-mode section li {
  color: #ddd;
}

body.dark-mode section ul li::before {
  color: #ffaa33;
}

body.dark-mode footer {
  background-color: #1e1e1e;
  border-color: #444;
  color: #aaa;
}

body.dark-mode em {
  color: #bbbbbb;
}
