*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Basic Reset and Typography */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333; /* Dark grey text for readability */
  background-color: #f4f7f6; /* Light background */
  word-wrap: break-word; /* Prevent long words from breaking layout */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Add a class to body to prevent scrolling when menu is active */
body.menu-active {
  overflow: hidden;
}

h1,
h2,
h3 {
  color: #1a1a1a; /* Very dark grey for headings */
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.2; /* Tighter line height for headings */
}

h1 {
  font-size: 2.5em;
  font-weight: 700;
  /* Adjust font size for smaller screens in media query */
}

h2 {
  font-size: 2em;
  font-weight: 700;
  /* Adjust font size for smaller screens in media query */
}

h3 {
  font-size: 1.5em;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 600;
}

a {
  text-align: center;
  text-decoration: none;
  color: #4285f4; /* Default link color */
}

a:hover {
  text-decoration: none;
}

/* Layout and Structure */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Add some padding on the sides */
}

.site-header {
  background-color: #ffffff; /* White header background */
  padding: 15px 0; /* Reduced padding */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  position: sticky; /* Sticky header */
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensure it stays on top */
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.8em;
  font-weight: 700;
  text-decoration: none; /* Ensure link decoration is removed */
}

.site-header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex; /* Display as flex for desktop */
  align-items: center;
}

.site-header nav li {
  margin-left: 20px;
  margin-bottom: 0; /* Reset mobile margin */
}

.site-header nav a {
  text-decoration: none;
  color: #555; /* Dark grey link color */
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 5px 15px; /* Add padding for easier clicking on touch devices */
}

.site-header nav a:hover {
  color: #4285f4; /* Highlight on hover */
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none; /* Hide by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Above the navigation */
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger:last-child {
  margin-bottom: 0;
}

/* Rotate hamburger into a cross when menu-active */
body.menu-active .menu-toggle .hamburger:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

body.menu-active .menu-toggle .hamburger:nth-child(2) {
  opacity: 0; /* Hide middle bar */
}

body.menu-active .menu-toggle .hamburger:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

.section {
  padding: 60px 0; /* Vertical spacing for sections */
}

.section-alt {
  background-color: #eef2f7; /* Alternate section background */
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../imgs/danny-howe-bn-D2bCvpik-unsplash.jpg") no-repeat center center / cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* Make it at least 60% of viewport height */
  background-attachment: scroll; /* Change to 'fixed' for parallax effect, but scroll is better for mobile performance */
}

.hero-section h2 {
  text-align: center;
  color: #fff;
  font-size: 3em;
  margin-bottom: 0.5em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Add text shadow for readability on background */
}

.hero-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Add text shadow */
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease; /* Added border-color to transition */
  margin: 0 5px;
  text-align: center; /* Center text in buttons */
}

.btn-primary {
  background-color: #4285f4 !important; /* Primary button color */
  color: #fff !important;
  border: 2px solid #4285f4 !important;
}

.btn-primary:hover {
  background-color: #0056b3 !important; /* Darker shade on hover */
  border-color: #0056b3 !important;
}

.btn-secondary {
  background-color: transparent !important;
  color: #4285f4 !important; /* Secondary button text color */
  border: 2px solid #4285f4 !important;
}

.btn-secondary:hover {
  background-color: #4285f4 !important;
  color: #fff !important;
}

/* Section Specific Styling */
.section ul {
  list-style: disc; /* Use discs for lists in sections */
  padding-left: 20px;
}

.section ul li {
  margin-bottom: 0.8em;
}

/* Thank You Section */
.thank-you-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.thank-you-section p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555;
}

/* Footer */
.site-footer {
  background-color: #333; /* Dark footer */
  color: #fff;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9em;
}

.site-footer p {
  margin: 0;
}

/* Responsive Design - Mobile Menu Implementation */
@media (max-width: 768px) {
  /* Show the menu toggle button */
  .menu-toggle {
    display: block;
  }

  .site-header .container {
    flex-wrap: nowrap; /* Prevent wrapping in the header container */
  }

  /* Hide the navigation by default on mobile */
  .site-navigation {
    display: none;
    flex-direction: column; /* Stack navigation items */
    background-color: #fff; /* Background for the mobile menu */
    position: absolute; /* Position the menu */
    top: 100%; /* Position below the header */
    left: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 999; /* Below the toggle button */
    overflow-y: auto; /* Add scrolling if menu is too long */
    max-height: calc(
      100vh - 60px
    ); /* Limit height based on viewport height minus header height (approx) */
  }

  /* Style the navigation when it's open */
  .site-navigation.nav-open {
    display: flex; /* Show the navigation */
  }

  .site-header nav ul {
    flex-direction: column; /* Stack list items */
    width: 100%;
    text-align: center; /* Center text */
  }

  .site-header nav li {
    margin: 10px 0; /* Add space between stacked list items */
    width: 100%;
  }

  .site-header nav a {
    padding: 10px 15px; /* Increase padding for touch targets */
    width: 100%; /* Make links full width */
    display: block; /* Make links block level */
    text-align: center;
  }

  /* Ensure buttons also behave well in the mobile menu */
  .site-navigation .btn-primary,
  .site-navigation .btn-secondary {
    display: block; /* Stack buttons */
    margin: 10px auto; /* Center and add space */
    width: 80%; /* Example width, adjust as needed */
    max-width: 250px; /* Max width for buttons */
  }

  /* Adjust section padding for mobile */
  .section {
    padding: 40px 0;
  }

  .hero-section {
    padding: 80px 20px;
    min-height: 50vh;
  }

  .hero-section h2 {
    font-size: 2em;
  }

  .hero-section p {
    font-size: 1em;
  }
}
@media (min-width: 992px) {
  /* Define default (light mode) colors */
  :root {
    --scrollbar-track-color: #f1f1f1;
    --scrollbar-thumb-color: #888;
    --scrollbar-thumb-hover-color: #555;
  }

  /* Override colors for dark mode system preference */
  @media (prefers-color-scheme: dark) {
    :root {
      --scrollbar-track-color: #2c2c2c;
      --scrollbar-thumb-color: #666;
      --scrollbar-thumb-hover-color: #888;
    }
  }

  /* Override colors again if the .light-mode class is *explicitly* set */
  .light-mode {
    --scrollbar-track-color: #f1f1f1;
    --scrollbar-thumb-color: #888;
    --scrollbar-thumb-hover-color: #555;
  }

  /* Override colors again if the .dark-mode class is *explicitly* set */
  .dark-mode {
    --scrollbar-track-color: #2c2c2c;
    --scrollbar-thumb-color: #666;
    --scrollbar-thumb-hover-color: #888;
  }

  /* Apply styles using the CSS variables (same as Method 2) */
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
  }

  :-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color);
  }

  /* For Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
  }
  
}