/* body */
body {
  margin: 0;
  font-family: Archivo Narrow, sans-serif;
  background: url('./assets/images/hero_background.png') center center / cover fixed no-repeat;
  color: #f9edbc;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -2;
}

.highlight {
  color: #8ffede;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

/* header */
header {
  font-family: Fjalla One, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

header.transparent {
  background: transparent;
  backdrop-filter: none;
}

/* scrolled properties */
header.scrolled {
  background: rgba(143, 254, 222, 0.2);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(143, 254, 222, 0.4);
  padding: 0.8rem 2rem;
}

header.scrolled .logo img {
  width: 40%;
  transition: width 0.3s ease, filter 0.3s ease;
}

/* header logo */
.logo img {
  margin-left: 2rem;
  width: 60%;
  transition: all 0.3s ease;
}

.logo img:hover {
  filter: drop-shadow(0 0 8px #8ffede) drop-shadow(0 0 4px #8ffede);
  transform: scale(1.1);
}

/* header text */
nav a:not(.btn-link) {
  margin-right: 2rem;
  text-decoration: none;
  color: #f9edbc;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
  position: relative;
}

nav a:not(.btn-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #8ffede;
  transition: width 0.3s ease;
}

nav a:not(.btn-link):hover::after {
  width: 100%;
}

nav a:not(.btn-link):hover {
  color: #8ffede;
}

/* header button */
nav .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Fjalla One, sans-serif;
  padding: 10px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: #8ffede;
  font-size: 1rem;
  color: black;
  text-decoration: none;
  transition: all 0.1s ease;
}

nav .btn-link img {
  width: 25px;
  height: 25px;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

nav .btn-link:hover {
  background: #7289da;
  color: #f9edbc;
  box-shadow: 0 0 12px #7289da, 0 0 24px #7289da;
}

nav .btn-link:hover img {
  content: url("./assets/icons/discord_white.png");
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #f9edbc;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.2);
}

/* For tablets and smaller (<= 1024px) */
@media (max-width: 1024px) {
  .logo img {
    margin-left: 0.5rem;
    width: 50%;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
  }

  nav a, nav .btn-link {
    margin: 0;
    font-size: 1.5rem;
  }

  nav .btn-link {
    margin-right: 30px;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  nav.show {
    display: flex;
  }
}

/* hero */
.hero {
  font-family: "Oswald", sans-serif;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f9edbc;
  overflow: hidden;
}

.hero h1 {
  margin-top: 20px;
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero h2 {
  margin-top: 20px;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 200;
}

/* progress bar */
.hero .progress-container {
  width: 100%;
  max-width: 500px;
  height: 25px;
  background-color: #f9f9f9;
  border: 2px solid #8ffede;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  left: 0;
  right: 0;
}

.hero .progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8ffede);
  animation: loading 10s infinite;
}

@keyframes loading {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

/* For tablets and smaller (<= 1024px) */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero .progress-container {
    max-width: 400px;
  }
}

.main-content {
  text-align: center;
  font-family: "Oswald", sans-serif;
  z-index: 10;
}

.main-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  margin-top: 40px;
}

.main-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.main-content hr {
  width: 80px;
  height: 3px;
  background: #8ffede;
  border: none;
  margin: 0 auto;
}

.main-content p {
  width: 50%;
  font-size: 1.25rem;
  text-align: center;
  margin: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Frequently Asked Questions (Accordion) */
.accordion {
  margin-top: 30px;
  margin-bottom: 40px;
  z-index: 10;  
}

/* Questions */
.accordion-question {
  width: 85%;
  border: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 16px 20px;
  font-size: 1.3rem;
  text-align: left;
  cursor: pointer;
  color: #f9edbc;
  position: relative;
  font-weight: 500;
  transition: background-color 0.2s ease;
  font-family: "Oswald", sans-serif;
}

.accordion-item.active .accordion-question {
  background-color: rgba(143, 254, 222, 0.1);
  border: 4px solid rgba(143, 254, 222, 0.4);
  color: #8ffede; 
  border-radius: 0;
}

.accordion-question:hover {
  background: rgba(143, 254, 222, 0.1);
}

/* Pointer Symbol */
.accordion-question::after {
  content: "◂";
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-question::after {
  transform: rotate(-90deg);
}

/* Answer content */
.accordion-answer {
  max-height: 0;
  overflow: hidden;
  color: #f9edbc;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  border-radius: 6px;   
}

.accordion-answer p {
  margin-left: auto;
  text-align: left;
  width: 80%;
  border-bottom: 1px solid #f9edbc;
  font-size: 1.3rem;
  font-weight: 350;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 16px;
  border-radius: 6px;
}

.accordion-answer li {
  text-align: left;
  width: 85%;
  border-bottom: 1px solid #f9edbc;
  font-size: 1.3rem;
  font-weight: 350;
}

.accordion-item.active .accordion-answer {
  max-height: 200px;
  opacity: 1;
  padding: 10px 0;
}

/* For tablets and smaller (<= 1024px) */
@media (max-width: 1024px) {
  .accordion-item.active .accordion-answer {
    max-height: 500px;
  }

  .accordion-question::after {
    right: 0.6rem;
  }
}

/* footer section */
.site-footer {
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    rgba(143, 254, 222, 0.5);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(143, 254, 222, 0.4);
  padding: 10px;
  font-family: "Oswald", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 20px auto 20px;
}

/* left footer content */
.footer-left h3 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1.2rem;
}

.footer-left p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
}

.footer-left .highlight {
  font-weight: 300;
}

/* right footer content */
.footer-right .icon-link img {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
}

.footer-right .icon-link img:hover {
  content: url("./assets/icons/github_white.png");
}

/* For tablets and smaller (<= 1024px) */
@media (max-width: 1024px) {
  .footer-left h3 {
    font-size: 1rem;
  }

  .footer-left p {
    font-size: 0.8rem;
  }

  .footer-right .icon-link img {
    width: 30px;
    height: 30px;
  }
}