/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --color-background: #fff;
  --color-text-primary: #000;
  --color-text-secondary: #696969;

  --color-card-background: #fff;
  --color-footer-background: #dbdbdb;

  --gradient-background: linear-gradient(to right, #367fdf, #3067df);

  --icon-tint: brightness(0) invert(1); /* makes it white */

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  --icon-white-display: inline-block;
  --icon-black-display: none;

  --text-size-d1: 3.5625rem; /* 57sp -> 57px */
  --text-size-d2: 2.8125rem; /* 45sp -> 45px */
  --text-size-d3: 2.25rem; /* 36sp -> 36px */
  --text-size-h1: 1.75rem; /* 28sp -> 28px */
  --text-size-h2: 1.5rem; /* 24sp -> 24px */
  --text-size-h3: 1.375rem; /* 22sp -> 22px */
  --text-size-b1: 1.25rem; /* 20sp -> 20px */
  --text-size-b2: 1.125rem; /* 18sp -> 18px */
  --text-size-b3: 1rem; /* 16sp -> 16px */
  --text-size-c1: 0.875rem; /* 14sp -> 14px */
  --text-size-c2: 0.75rem; /* 12sp -> 12px */
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-text-primary: #ffffff;
    --color-text-secondary: #9c9c9c;

    --color-card-background: #fff;
    --color-footer-background: #1b1b1b;

    --icon-tint: brightness(0) saturate(100%); /* makes it black */

    --icon-white-display: none;
    --icon-black-display: inline-block;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
}

/* UTILITY CLASSES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
}

/* HEADER */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 16px;
  margin-top: 128px;
}

.header-info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.header-info img {
  width: 120px;
  height: 120px;
}

.header-info h1 {
  font-size: var(--text-size-d2);
  font-weight: bold;
}

.header-info h2 {
  font-size: var(--text-size-b2);
  font-weight: normal;
}

.download-btn {
  background: var(--gradient-background);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 32px;
  min-width: 160px;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  font-size: var(--text-size-b3);
  cursor: pointer;

  transform-origin: center center;
  transition: transform var(--transition-fast);
}

.download-btn:hover {
  transform: scale(1.1);
}

.download-btn:active {
  transform: scale(1);
}

.header-img img {
  width: 260px;
}

#short-desc p {
  text-align: center;
}

#desc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0px auto;
}

#short-desc h3,
#desc h3,
#screenshots h3 {
  font-size: var(--text-size-h2);
  margin-bottom: 16px;
  text-align: center;
}

#screenshots .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.screenshot-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  overflow-x: auto; /* horizontal scrolling only */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  padding-bottom: 8px; /* room for scrollbar on some browsers */
}

/* keep each image from shrinking and make it a snap point */
.screenshot-group img {
  flex: 0 0 auto; /* do not shrink, keep natural width */
  width: 240px;
  border-radius: 16px;
  scroll-snap-align: start; /* optional: align snaps to start */
}

/* optional: hide thin scrollbars but keep scroll behavior */
.screenshot-group::-webkit-scrollbar {
  height: 8px;
}
.screenshot-group::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
}
.screenshot-group {
  -ms-overflow-style: none;
  scrollbar-width: thin;
  margin-top: 32px;
  margin-bottom: 64px;
} /* Firefox & IE tweaks */

/* Footer */
footer {
  background-color: var(--color-footer-background);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 64px;
  border-top: 1px solid var(--color-text-secondary);
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer a {
  text-decoration: underline;
  text-decoration-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  #hero {
    margin: 0;
  }

  header .container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    gap: 64px;
  }

  .header-info h1 {
    font-size: 76px;
    line-height: 1;
  }

  .header-img img {
    width: 400px;
  }

  #short-desc {
    padding: 64px;
  }

  #short-desc h3,
  #desc h3,
  #screenshots h3 {
    font-size: var(--text-size-d3);
    margin-bottom: 16px;
    text-align: center;
  }



}
