@import url(https://fonts.bunny.net/css?family=atkinson-hyperlegible:700i|ibm-plex-sans:200,400,500,600);

:root {
  --bg: #f5f5f5;
  --navbar-bg: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --text: #1a1a1a;
  --btn-primary-bg: #1a1a1a;
  --btn-primary-text: #ffffff;
  --btn-outlined-text: #1a1a1a;
  --btn-outlined-border: #1a1a1a;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --footer-bg: #e8e8e8;
  --footer-text: #1a1a1a;
}

[data-theme="dark"] {
  --bg: #242222;
  --navbar-bg: #242222;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --btn-outlined-text: #ffffff;
  --btn-outlined-border: #ffffff;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.45);
  --footer-bg: #1c1b1b;
  --footer-text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  font-family: 'IBM Plex Sans', sans-serif;
  transition: background-color 0.2s ease;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 20%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.navbar-logo {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 28px;
  color: var(--text);
  transition: color 0.2s ease;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.2s ease;
}

.navbar-links a:hover {
  opacity: 1;
}

.navbar-theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  opacity: 0.75;
  padding: 4px;
  line-height: 1;
  transition: opacity 0.15s ease, color 0.2s ease;
}

.navbar-theme-toggle:hover {
  opacity: 1;
}

.navbar-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
  opacity: 0.75;
  padding: 4px;
  line-height: 1;
  transition: opacity 0.15s ease, color 0.2s ease;
}

.navbar-burger:hover {
  opacity: 1;
}

.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.navbar-mobile-menu.is-open {
  display: flex;
}

.navbar-mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  opacity: 0.75;
  text-align: center;
  padding: 8px 0;
  transition: opacity 0.15s ease, color 0.2s ease;
}

.navbar-mobile-menu a:hover {
  opacity: 1;
}

.hero {
  text-align: center;
  width: 100%;
  height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  width: 60%;
  margin: auto;
  padding: 20px;
  font-size: 32px;
  color: var(--text);
  transition: color 0.2s ease;
}

.hero-buttons {
  padding-top: 40px;
}

.hero-buttons a {
  margin: 10px;
  padding: 14px;
  border-radius: 5px;
  font-size: 17px;
  text-decoration: none;
}

.hero-buttons-full {
  border: none;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-buttons-outlined {
  background-color: transparent;
  color: var(--btn-outlined-text);
  border: 1px solid var(--btn-outlined-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cards {
  margin: auto;
  width: 60%;
}

.cards-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.cards-card {
  border-radius: 5px;
  background-color: #ffffff;
  padding: 20px;
  margin: 10px;
  width: 30%;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.cards-card-title {
  padding-bottom: 20px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
}

.cards-card-dash {
  height: 1.5px;
  width: 20%;
  background-color: black;
}

.cards-card-icon {
  font-size: 35px;
  padding-bottom: 20px;
}

.cards-card-description {
  padding-top: 20px;
}

.goal {
  width: 50%;
  margin: 60px auto;
  padding: 40px;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.goal-title {
  font-size: 30px;
  font-weight: 500;
}

.goal-description {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 200;
}

.open-source {
  width: 50%;
  margin: 60px auto;
  padding: 40px;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.open-source-title {
  font-size: 30px;
  font-weight: 500;
}

.open-source-description {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 200;
}

.open-source-description a {
  color: var(--text);
  transition: color 0.2s ease;
}

.open-source-button {
  margin-top: 80px;
  margin-bottom: 20px;
}

.open-source-inner-button {
  border: none;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.open-source-button a {
  margin: 10px;
  padding: 20px;
  border-radius: 5px;
  font-size: 24px;
  text-decoration: none;
}

.footer {
  text-align: center;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-text {
  font-size: 20px;
  padding: 20px;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 5%;
  }

  .navbar-links {
    display: none;
  }

  .navbar-burger {
    display: block;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .hero-title {
    width: 90%;
    font-size: 26px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 30px;
  }

  .hero-buttons a {
    margin: 0;
    font-size: 18px;
    padding: 14px 20px;
    width: 240px;
    text-align: center;
    box-sizing: border-box;
  }

  .cards {
    width: 90%;
  }

  .cards-row {
    flex-direction: column;
  }

  .cards-card {
    width: auto;
  }

  .goal {
    width: 90%;
    margin: 30px auto;
  }

  .goal-title {
    font-size: 28px;
  }

  .goal-description {
    font-size: 20px;
  }

  .open-source {
    width: 90%;
    margin: 30px auto;
  }

  .open-source-title {
    font-size: 28px;
  }

  .open-source-description {
    font-size: 20px;
    margin-bottom: 60px;
  }

  .open-source-button a {
    font-size: 18px;
    padding: 14px 20px;
  }
}
