:root {
  --primary: #b51119;
  --secondary-light: #f0f2f5;
  --secondary-dark: #0a0d12;
  --card-dark: #161b22;
  --accent: #b51119;
  --background-dark: #0d1117;
  --background-light: #ffffff;
  --text-light: #212529;
  --text-dark: #e6edf3;
  --text-muted-light: #617589;
  --text-muted-dark: #8b949e;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

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

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: flex-end;
  display: flex;
  padding: 0.9rem 2rem;
}

.logo {
  position: absolute;
  left: 0;
  padding-left: 1.5rem;
  align-items: center;
}

.logo h2 {
  font-weight: 900;
  margin: 0;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
}
nav a:hover {
  color: #b51119;
  transition: color 0.3s;
}

.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  padding-left: 0;
  padding-right: 0;
  gap: 3rem;
}

.typed-text {
  font-size: 1.2rem;
}

.cursor {
  display: inline-block;
  width: 4px;
  margin-left: 1px;
}

.cursor.blink {
  animation: blink 0.8s ease-in-out infinite;
}

.typing-container {
  min-height: 0.5em;
}

.hero-content {
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#hero-image {
  max-height: 210px;
  max-width: 100%;
  border-radius: 1rem;
}
.hero h1 {
  font-weight: 900;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.groups {
  align-items: center;
  padding: 4rem;
  padding-left: 0rem;
  padding-right: 0rem;
  max-width: 100%;
}

.groups h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.groups p {
  text-align: center;
  margin-bottom: 2rem;
}

.group-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
  padding: 0 2rem;
  justify-content: center;
}

.group-card {
  border-radius: 1rem;
  width: 260px;
  height: 160px;
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.group-card:hover {
  transform: translateY(2px);
  background-color: var(--accent);
}
.group-card:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(181, 17, 25, 0.8);
}

.group-card h3 {
  text-align: left;
  font-weight: 700;
  font-size: 1.425rem;
  line-height: 1.4;
  word-wrap: normal;
}
.group-card p {
  font-size: 1rem;
  text-align: left;
  font-weight: 400;
  margin: 0;
}

.rtb-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rtb-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.rtb-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.rtb-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.5rem 1.2rem;
  background-color: var(--accent);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rtb-download-btn:hover {
  background-color: #e0242e;
  transform: translateY(-1px);
  color: #fff;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

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

.footer-container {
  display: flex;
}
.socials {
  justify-content: center;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.footer-container a[data-icon="github"]::before {
  content: "\f09b";
  font-family: "Font Awesome 6 Brands";
  font-size: 24px;
}
.footer-container a[data-icon="email"]::before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-size: 24px;
}
.links {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  text-align: start;
  justify-content: start;
}

@media screen and (min-width: 500px) {
  .hero-content {
    width: 494px;
    height: 210px;
  }
}

@media screen and (min-width: 560px) {
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 0.9rem 2rem;
  }
  .group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 900px) {
  .hero {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .group-card {
    min-height: 120px;
  }
}

@media screen and (min-width: 1200px) {
  nav a {
    font-size: medium;
  }
  .hero {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }
  .hero-content {
    width: 500px;
    height: 210px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: rgb(from var(--background-dark) r g b/100%);
    color: var(--text-dark);
  }
  header {
    background: var(--background-dark);
    border-bottom: 1px solid rgb(from var(--text-muted-dark) r g b/20%);
  }
  .logo h2 {
    color: var(--text-dark);
  }
  nav a {
    color: var(--text-muted-dark);
    font-weight: 500;
  }
  .hero-content {
    background-color: var(--card-dark);
    border: 1px solid var(--accent);
  }
  .hero p {
    color: var(--text-muted-dark);
  }
  #hero-image {
    border: 1px solid var(--accent);
  }
  .typed-text {
    color: var(--text-dark);
    font-size: 1.5rem;
  }
  .cursor {
    background: var(--text-dark);
  }
  .groups {
    background-color: var(--secondary-dark);
  }
  .groups p {
    color: var(--text-muted-dark);
  }
  .avatar-container,
  .group-card {
    background-color: var(--card-dark);
    border: 1px solid rgb(from var(--accent) r g b/20%);
    box-shadow: 0px 9px 5px var(--accent);
  }
  .group-card:hover {
    box-shadow: 0 4px 15px rgba(181, 17, 25, 0.25);
    background-color: var(--accent);
    border-top-color: #e0242e;
    border-bottom-color: #b51119;
  }

  .group-card:hover p,
  .group-card:hover h3 {
    color: var(--text-dark);
  }
  .group-card p,
  .group-card h4 {
    color: var(--text-muted-dark);
  }
  .rtb-inline {
    background-color: var(--card-dark);
    border: 1px solid rgb(from var(--accent) r g b/20%);
  }
  .rtb-text {
    color: var(--text-muted-dark);
  }
  footer {
    background-color: var(--background-dark);
    border-top: 1px solid rgb(from var(--text-muted-dark) r g b/10%);
    color: white;
  }
  footer a {
    color: var(--text-muted-dark);
  }
}

@media (prefers-color-scheme: light) {
  body {
    background: rgb(from var(--background-light) r g b / 100%);
    color: var(--text-light);
  }
  header {
    background: rgb(from var(--background-light) r g b / 80%);
    border-bottom: 1px solid rgb(from var(--text-muted-light) r g b/10%);
  }
  .logo h2 {
    color: var(--text-light);
  }
  nav a {
    color: var(--text-muted-light);
    font-weight: 500;
  }
  .hero-content {
    border: 1px solid var(--accent);
    box-shadow: 0px 10px 6px var(--accent);
  }
  .hero p {
    color: var(--text-muted-light);
  }
  #hero-image {
    border: 1px solid var(--accent);
    box-shadow: 0px 10px 6px var(--accent);
  }
  .typed-text {
    color: var(--text-light);
    font-size: 1.5rem;
  }
  .cursor {
    background: var(--text-light);
  }
  .groups {
    background-color: var(--secondary-light);
  }
  .groups p {
    color: var(--text-muted-light);
  }
  .group-card {
    background-color: var(--background-light);
    border: 1px solid rgb(from var(--accent) r g b/20%);
    box-shadow: 0px 9px 5px var(--accent);
  }
  .group-card:hover {
    box-shadow: 0 12px 15px rgba(181, 17, 25, 0.25);
    background-color: var(--accent);
    border-top-color: #e0242e;
    border-bottom-color: #b51119;
  }
  .group-card:hover h3 {
    color: var(--text-dark);
  }
  .group-card:hover p,
  .group-card:hover h3 {
    color: var(--text-dark);
  }
  .group-card p,
  .group-card h4 {
    color: var(--text-muted-light);
  }
  .rtb-inline {
    background-color: var(--background-light);
    border: 1px solid rgb(from var(--accent) r g b/20%);
  }
  .rtb-text {
    color: var(--text-muted-light);
  }
  footer {
    background-color: var(--background-light);
    border-top: 1px solid rgb(from var(--text-muted-light) r g b/10%);
    color: var(--text-muted-light);
  }
}
