/* ===== Import Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&family=Merriweather:ital@1&display=swap');

/* ===== Base reset ===== */
body {
  font-family: 'Quicksand', sans-serif;
  background-color: #ffffff;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

.blockquote {
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ===== Dark mode ===== */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode a {
  color: #9ecbff;
}

body.dark-mode .text-dark {
  color: #f0f0f0 !important;
}

body.dark-mode .text-muted {
  color: #adb5bd !important;
}

body.dark-mode .bg-light {
  background-color: #1f1f1f !important;
}

body.dark-mode .bg-white {
  background-color: #2c2c2c !important;
}

/* ===== Sections ===== */
section:nth-of-type(even) {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

section:nth-of-type(odd) {
  background: linear-gradient(135deg, #f3f3f3, #ffffff);
}

body.dark-mode section:nth-of-type(even),
body.dark-mode section:nth-of-type(odd) {
  background: #1f1f1f;
}

/* ===== Navbar + Buttons ===== */
.navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .navbar {
  background: rgba(26, 26, 26, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
}

body.dark-mode .navbar-brand {
  color: #f0f0f0 !important;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.btn-outline-secondary {
  border-color: #3b4c63;
  color: #3b4c63;
}

.btn-outline-secondary:hover {
  background-color: #3b4c63;
  color: white;
}

/* Contact form button fix */
body.dark-mode .btn-light {
  background-color: #333;
  color: white;
  border-color: #444;
}

body.dark-mode .card {
  background-color: #2c2c2c;
  color: #f0f0f0;
  border-color: #444;
}

body.dark-mode .card-header {
  border-bottom-color: #444;
}

/* Dark Mode Forms */
body.dark-mode .form-control {
  background-color: #333;
  border-color: #444;
  color: #f0f0f0;
}

body.dark-mode .form-control::placeholder {
  color: #adb5bd;
}

body.dark-mode .form-control:focus {
  background-color: #444;
  border-color: #9ecbff;
  color: #fff;
}

/* Dark Mode Dropdown */
body.dark-mode .dropdown-menu {
  background-color: #2c2c2c;
  border-color: #444;
}

body.dark-mode .dropdown-item {
  color: #f0f0f0;
}

body.dark-mode .dropdown-item:hover {
  background-color: #444;
  color: #fff;
}

/* ===== Testimonials ===== */
.testimonial-card {
  border-left: 4px solid #D4A373;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

body.dark-mode .testimonial-card {
  background-color: #2c2c2c;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== FAQ Accordion Styling ===== */
.accordion-button {
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: #e6f0ff;
  color: #222;
}

/* Dark Mode FAQ */
body.dark-mode .accordion-item {
  background-color: #2c2c2c;
  color: #f0f0f0;
  border-color: #444;
}

body.dark-mode .accordion-button:not(.collapsed) {
  background-color: #333;
  color: #f0f0f0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

body.dark-mode .accordion-button.collapsed {
  background-color: #2c2c2c;
  color: #f0f0f0;
}

body.dark-mode .accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===== Utility Classes ===== */
.max-w-250 {
  max-width: 100%;
}

@media (min-width: 500px) {
  .max-w-250 {
    max-width: 500px;
  }
}

/* 2. Scroll Progress Bar */
.progress-container {
  width: 100%;
  height: 4px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.progress-bar {
  height: 4px;
  background: #0d6efd;
  width: 0%;
  transition: width 0.1s ease;
}

body.dark-mode .progress-bar {
  background: #9ecbff;
}

/* 3. Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #0d6efd;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: #0b5ed7;
  transform: translateY(-3px);
}

body.dark-mode #backToTop {
  background-color: #444;
  color: #f0f0f0;
}

body.dark-mode #backToTop:hover {
  background-color: #555;
}

/* 4. Card Hover Effects */
.card,
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .card:hover,
body.dark-mode .testimonial-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 5. Button Ripple & Hover */
.btn {
  position: relative;
  overflow: hidden;
}

/* 6. Blog Styles */
.blog-card-img {
  height: 200px;
  object-fit: cover;
}

/* 7. 404 Page Styles */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: #0d6efd;
}

body.dark-mode .error-code {
  color: #9ecbff;
}