* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  cursor: inherit;
}
html,
body {
  scroll-behavior:auto;
  scroll-snap-type:mandatory;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: hsla(0, 0%, 10%, 0.5);
}
body {
  font-family: "Comic Sans MS", "Comic Sans", "Segoe UI", "Roboto", sans-serif;
  cursor: url("images/monkey-cursor.png"), default;
  background: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
}

/* header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: "Segoe UI", "Roboto", sans-serif;
  background: #fff;
  z-index: 1000;
  text-align: center;
  padding: 3rem 1rem 1.5rem;
  background-color: #1f1f1f;
  border-bottom: 3px solid #555555;
  margin-top: 40px;
  height: 160px;
  overflow: visible;
}

header h1 {
  margin-top: 0;
  font-size: 2.5rem;
  color: #fff;
}
header h4 {
  margin-bottom: 0;
}
.monkey-studios_banner {
  width: 393;
  height: 69;
  max-width: 393;
  max-height: 69;;
}
.banana {
  position: absolute;
  width: 64px;
  height: 64px;
}
.banana-left {
  top: 30%;
  left: 10%;
}
.banana-right {
  top: 30%;
  right: 10%;
}

/* Nav bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1f1f1f;
  padding: 10px 20px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  /* border-bottom: 2px solid #444; */
}
.nav-container a {
  color: #f8f8f8;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}
.nav-container a:hover {
  text-decoration: underline;
}

/* section */
section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Hero section */
.hero {
  width: 100vw;
  max-width: 100%;
  background: linear-gradient(to top, #ffeb3b, #fff176);
  color: #333;
}
.hero h1 {
  font-size: 2em;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.5em;
  margin-bottom: 30px;
}
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #1f1f1f;
  color: #f8f8f8;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  background-color: #555555;
}
.arrow-down {
  width: 0;
  height: 0;
  margin-top: .5%;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #1f1f1f;
  top: 100%;
  left: 50%;
}
.arrow-down:hover {
  transform: translateY(-1px) scale(1.01);
}

/* out-link sections and cards */
.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  width: 60%;
  align-self: center;
}
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card h2 {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  color: #fff;
}
.card p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #ccc;
}
.icon,
.card i {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}
.icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg);
  margin-bottom: 0.5rem;
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 10px;
  object-fit: contain;
}
.github {
  border-top: 4px solid #6e5494;
}
.curseforge {
  border-top: 4px solid #f16436;
}
.modrinth {
  border-top: 4px solid #00b371;
}
.github h2{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
.curseforge h2{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.modrinth h2{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Roboto, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
@media (min-width: 700px) {
  .links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About Section */
.about {
  color: #eee;
  padding: 80px 20px;
  text-align: center;
}
.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Featured projects Section */
.projects {
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}
.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 0.5rem;
  overflow: hidden;

  /* background: #222; */
  text-decoration: none;
  color: #fff;
  /* padding: 2rem; */
  /* border-radius: 12px; */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}
.project-card:hover {
  transform: scale(1.03);
}
.project-card img {
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: pixelated;
  width: 256px;
  height: 256px;
  padding: 1rem;
  object-fit: contain;
}
.project-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}
.project-links a {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  border-radius: .6rem;
  border: 1px solid #333;
  background: #222;
  color: #eee;
  background-color: #333;
  font-weight: bold;
  transition: background-color 0.3s;
}
.project-links a:hover {
  background-color: #555;
}
.project-links img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg);
  max-width: 48px;
  max-height: 24px;
  vertical-align: middle;
  object-fit: contain;
  padding: 2px 4px;
}
#project-github {
  filter: invert(100%) sepia(27%) saturate(2020%) hue-rotate(176deg) brightness(102%) contrast(98%);
}
#project-curseforge {
  filter: invert(56%) sepia(62%) saturate(4067%) hue-rotate(340deg) brightness(98%) contrast(92%);
}
#project-modrinth {
  filter: invert(52%) sepia(60%) saturate(3678%) hue-rotate(127deg) brightness(93%) contrast(101%);
}

/* Stats Section */
.stats {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 100px;
  height: calc(100vh - 80px);
  padding: 60px 20px;
  color: #fdd835;
  text-align: center;
}
.stat {
  font-size: 5rem;
  font-weight: bold;
}
.stat p {
  font-size: 2rem;
  color: #e6e6e6;
}
.stat h6 {
  font-size: .8rem;
  color: #e6e6e6;
}
.stat-banana {
  position: absolute;
  width: 256px;
  height: 256px;
}
.stat-banana-left {
  left: 20%;
}
.stat-banana-right {
  right: 20%;
}

/* Fab */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #ffeb3b;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s;
}
.fab:hover {
  background-color: #fdd835;
}
.fab img {
  width: 32px;
  height: 32px;
}

/* Footer */
footer {
  text-align: center;
}
.footer-snap {
  min-height: 0;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1f1f1f;
  color: #888;
  border-top: 2px solid #2a2a2a;
  font-size: 0.9rem;
}
.footer-snap img {
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: pixelated;
  height: 16px;
}

/* Unused Banana Hover */
.banana-hover {
  transition: transform 0.3s ease;
}
.banana-hover:hover {
  transform: rotate(-20deg) scale(1.1);
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bounce Animations */
.animated-header {
  animation: bounce 2s infinite alternate;
}
.bounce-animation {
  animation:
    spin 3s linear infinite,
    item-bounce 1s linear infinite alternate;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}
@keyframes item-bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}
@media (max-width: 600px) {
  .banana-left, .banana-right {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
  }
}
body.light-mode {
  background: #f0f0f0;
  color: #111;
}
body.light-mode .navbar {
  background: #fff;
  color: #000;
}