:root {
  --bg-color: rgb(81, 81, 240);
  --text-color: #1e1e1e;
  --header-bg: #5691d0;
  --border-color: rgb(0, 184, 245);
  --footer-bg: #5691d0;
  --btn-bg: #00bbff;
  --btn-hover: #f6fafc;
  --form-bg: aliceblue;
  --hover-bg: #ffcb00;
  --hover-text: #000;
  transition: background 0.8s ease, color 0.8s ease, box-shadow 0.8s ease;
}

/* Dark mode  */

.dark-mode {
  --bg-color: #1a1a2e;
  --text-color: #e0e7ff;
  --header-bg: #16213e;
  --border-color: #0f3460;
  --btn-bg: #0f3460;
  --btn-hover: #00adb5;
  --footer-bg: #16213e;
  --form-bg: #222831;
  --hover-bg: #00adb5;
  --hover-text: #ffffff;
}

/* General Styles */
body {
  font-family: ubuntu;
  margin: 0;
  padding: 0;
  background: #f9fafb;
  color: #2a2e35;
  line-height: 1.8;
  box-sizing: border-box;
  transition: background-color 1s ease, color 1s ease;
}

/* Nav style  */
.logo{
  display: flex;
  align-items: center;
  list-style: none;
  gap: 15px;
}

/* About Section Styling */
.about-container {
  height: auto;
  max-width: 1400px;
  margin: 40px auto;
  padding: 50px 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 80px;
  transition: transform 0.3s ease;
}

.about-container:hover {
  transform: translateY(-5px);
}

.about-container h2 {
  color: #5a67d8;
  font-family: "Playfair Display", serif;
  font-size: 40px;
  margin-bottom: 25px;
  text-transform: capitalize;
  letter-spacing: 2px;
  text-decoration: underline;
}

.about-container h3 {
  font-family: "Ubuntu", serif;
  margin: 40px 0 20px 0;
  letter-spacing: 1.2px;
  font-weight: 600;
  font-size: 24px;
}

.about-container p {
  color: #000000;
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Lists Styling */
.about-container ul,
.about-container ol {
  text-align: left;
  margin: 30px auto;
  padding-left: 30px;
  max-width: 800px;
}

.about-container ul li,
.about-container ol li {
  margin-bottom: 12px;
}

.why-choose-points li {
  list-style-type: none;
  padding-left: 10px;
  position: relative;
}

.why-choose-points li::before {
  content: '👉';
  position: absolute;
  left: -30px;
  font-size: 18px;
  color: #48bb78;
}

/* About Page Sections */
.about-page-sections {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2d3748;
  background: linear-gradient(135deg, #e9f5f9, #edf2f7);
  padding: 20px;
  border-radius: 12px;
  gap: 30px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: background 0.4s ease, transform 0.3s ease;
}

.about-page-sections:hover {
  cursor: pointer;
  background: linear-gradient(135deg, #dbeafe, #c6f6d5);
  transform: scale(1.02);
}

.about-page-sections h3 {
  padding-left: 10px;
  color: #4c51bf;
  text-decoration: underline;
  text-underline-offset: 6px;
  font-size: 22px;
  font-weight: bold;
}

.about-page-sections p {
  color: #4a5568;
  font-size: 20px;
  flex: 1;
}

/* Dark mode styling for this page  */

/* Navbar Dark Mode */
.dark-mode header {
  background: var(--header-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.dark-mode nav ul li a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.dark-mode nav ul li a:hover {
  color: var(--btn-hover);
}

/* About Section in Dark Mode */
.dark-mode .about-container {
  background: linear-gradient(135deg, #222831, #393e46);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.dark-mode .about-container h2,
.dark-mode .about-container h3 {
  color: #00adb5;
  /* Bright teal for headings */
}

.dark-mode .about-container p,
.dark-mode .about-container ul li,
.dark-mode .about-container ol li {
  color: var(--text-color);
}

/* About Section Hover Effect */
.dark-mode .about-page-sections {
  background: linear-gradient(135deg, #2b3137, #3b4047);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: background 0.8s ease, box-shadow 0.8s ease, transform 0.3s ease;
}

/* Dark Mode Link Styling */
.dark-mode .about-page-sections a {
  color: #00adb5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.dark-mode .about-page-sections a:hover {
  color: #ff6b6b;
  transform: scale(1.05);
}

.dark-mode .about-page-sections a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ff6b6b;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Reveal Underline on Hover */
.dark-mode .about-page-sections a:hover::after {
  transform: scaleX(1);
}

.dark-mode .about-page-sections:hover {
  background: linear-gradient(135deg, #00adb5, #222831);
  transform: scale(1.02);
}

.dark-mode .about-page-sections a:hover{
  color: white;
}

/* Footer Dark Mode */
.dark-mode footer {
  background: rgb(56, 51, 147);
  color: var(--text-color);
}

.dark-mode footer ul li a {
  color: var(--text-color);
}

.dark-mode footer ul li a:hover {
  color: var(--btn-hover);
}

/* Button in Dark Mode */
.dark-mode .dark-mode-toggle {
  background: var(--btn-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
}

.dark-mode .dark-mode-toggle:hover {
  background: var(--btn-hover);
  color: var(--hover-text);
}



/* Responsive Design */
@media (max-width: 992px) {
  .about-container {
    margin: 30px auto;
    padding: 40px 30px;
  }

  .about-page-sections {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .about-container h2 {
    font-size: 34px;
    text-decoration: underline;
  }

  .about-container p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .about-container {
    margin: 20px 0;
    padding: 30px 20px;
  }

  .about-container h2 {
    font-size: 30px;
  }

  .about-container p {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-page-sections h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 20px 15px;
  }

  .about-page-sections {
    padding: 15px;
  }

  .about-page-sections h3 {
    font-size: 16px;
  }

  .about-container h2 {
    font-size: 26px;
  }
}