:root {
  /* Computated variable for the whole page's background */
  --current-background: var(--hero-background-color);

  /* Light theme gradient */
  --hero-gradient: linear-gradient(
  90deg, #10326f, #1a4ba3, #0c53aa, #1a4ba3, #10326f);
  --hero-background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  --hero-background-color: #66a6ffaa;
  --background-color: #FFFFFF;

  --popup-background: rgba(230, 230, 230, 0.5);

  /* Text colors (light theme) */
  --text-color-primary: #000000;
  --text-color-secondary: #333333;
  --text-color-accent: #1a4ba3;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Computated variable for the whole page's background */
    --current-background: var(--hero-background-color);

    /* Dark theme gradient */
    --hero-gradient: linear-gradient(90deg, #89f7fe, #66a6ff);
    --hero-background: linear-gradient(135deg, #2B6674, #194082);
    --hero-background-color: #194082aa;
    --background-color: #1E1E1E;

    --popup-background: rgba(100, 100, 100, 0.5);

     /* Text colors (dark theme) */
     --text-color-primary: #FFFFFF;
     --text-color-secondary: #CCCCCC;
     --text-color-accent: #89f7fe;
  }
}


/* Ensure full height and prevent overflow */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;

  flex-direction: column;
  background-color: var(--current-background);

  transition: background-color 0.4s ease;
  will-change: background-color;
}
  
/* Body already has flex centering, keep that */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;

  -webkit-overflow-scrolling: touch;
}

.section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Keyframes */
@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes scaleInBlur {
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes slideFadeIn {
  to {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}
  
  /* Responsive headings */
  h1 {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-color-primary);
  }

  h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color-primary);
  }

  h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color-primary);
  }

  h4 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color-primary);
  }

  p {
    font-size: 18px;
    color: var(--text-color-primary);
  }

  a {
    color: var(--text-color-accent);
  }

  .body-text {
    font-size: 18px;
    color: var(--text-color-primary);
  }

  .body-small-text {
    font-size: 14px;
    color: var(--text-color-primary);
  }

  .caption-text {
    font-size: 12px;
    color: var(--text-color-primary);
  }

  label {
    font-size: 12px;
    font-weight: medium;
    color: var(--text-color-primary);
  }

  .quote-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-color-primary);
  }

  .button-text {
    font-size: 14px;
    font-weight: medium;
    color: var(--text-color-primary);
  }

  /* Mobile */
  @media (max-width: 600px) {
    h1 {
      font-size: 32px;
    }

    h2 {
      font-size: 28px;
    }

    h3 {
      font-size: 22px;
    }

    h4 {
      font-size: 28px;
    }

    .body-text {
      font-size: 16px;
    }

    .body-small-text {
      font-size: 12px;
    }

    .caption-text {
      font-size: 10px;
    }

    label {
      font-size: 10px;
    }

    .quote-text {
      font-size: 12px;
    }

    .button-text {
      font-size: 12px;
    }
}

.section-title-bar {
  text-align: left;
  width: auto;
  padding: 0 30px;
}