/* Add these at the top of the file */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

:root {
  --primary-color: #1a202c;
  --secondary-color: #d90429;
  --light-color: #f7fafc;
  --text-color: #2d3748;
  --header-bg: #ffffff;
  --border-color: #e2e8f0;
  --button-bg: var(--secondary-color);
  --button-text-color: #ffffff;
  --link-color: var(--primary-color);
  --link-hover-color: var(--secondary-color);
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  --font-family-base: 'Roboto', sans-serif;
  --font-family-heading: 'Merriweather', serif;
  --font-family-logo: 'Libre Baskerville', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Colors */
    --primary-color: #ffffff;
    --secondary-color: #ff4d4d;
    --light-color: #121212;  /* Apple black background */
    --text-color: #eeeeee;
    --header-bg: #1a1a1a;    /* Dark navbar/footer */
    --border-color: #444444;
    --button-bg: var(--secondary-color);
    --button-text-color: #ffffff;
    --link-color: var(--primary-color);
    --link-hover-color: var(--secondary-color);
    --box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  }
}



body {
  font-family: var(--font-family-base);
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.1rem;
  color: var(--text-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
}

.red-accent {
  color: var(--secondary-color);
}

.button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  color: var(--button-text-color);
  background-color: var(--button-bg);
  border-radius: 10px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.button:hover {
  background-color: color-mix(in srgb, var(--button-bg) 85%, black);
  color: var(--button-text-color);
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: none;
}

/* Default footer link styles */
footer a {
  color: var(--light-color); /* White links in footer */
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

/* Dark mode footer link styles */
@media (prefers-color-scheme: dark) {
  footer a {
    color: var(--light-color); /* Use light color for dark mode */
  }

  footer a:hover {
    color: var(--secondary-color); /* Highlight on hover */
  }
}

/* reCAPTCHA Badge */
.grecaptcha-badge {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-height: 0 !important;
  max-width: 0 !important;
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: -1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
