:root {
  --bg-color-primary: #572866;
  --bg-color-secondary: #3d2a5d;
  --text-color-primary: #2b103c;
  --text-color-secondary: #ac91c0;
  --side-color: #8f529b;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  user-select: none;
}

/* Nav Bar */
.nav-bar {
  width: 100%;
  height: 4em;
  padding: 1em;
  background-color: transparent;
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 100;
  transition: background-color 0.2s ease-in;
}
.nav-bar .toggle {
  display: none;
}
.nav-bar.scrolled {
  background-color: var(--bg-color-primary);
  backdrop-filter: none;
}
.nav-bar .logo {
  width: 3rem;
}
.nav-bar .nav-list {
  list-style: none;
  display: flex;
  gap: 5rem;
  cursor: pointer;
}
.nav-bar .nav-list li {
  margin: 0 1rem;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 700;
}
.nav-bar .nav-list li a {
  text-decoration: none;
  color: var(--text-color-secondary);
}
.nav-bar .nav-list li a:hover {
  color: var(--side-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(43, 16, 60, 0.7), rgba(43, 16, 60, 0.7)),
    url("hero-bg.jpg") center/cover no-repeat;
  position: relative;
  width: 100dvw;
  min-height: 100vh;
  height: 100dvh;
  background-attachment: fixed;
}
.hero-content {
  color: var(--text-color-secondary);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 35%;
  left: 10%;
}
.hero-content h1 {
  font-style: italic;
  font-size: 100px;
  padding-bottom: 1rem;
}
.hero-content h2 {
  font-size: 50px;
  font-weight: 1000;
  padding-left: 7rem;
}
.hero-message {
  display: inline-block;
  margin-top: 15rem;
  margin-left: 60rem;
}
.scroll {
  list-style: none;
  font-size: 5rem;
  color: var(--side-color);
  padding: 0;
  margin: 0;
}
.scroll li {
  opacity: 0;
  animation: scrollUp 6s infinite;
  text-align: center;
}
.scroll li:nth-child(1) {
  animation-delay: 0s;
}
.scroll li:nth-child(2) {
  animation-delay: 2s;
}
.scroll li:nth-child(3) {
  animation-delay: 4s;
}
@keyframes scrollUp {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0;
  }
}

/* About Section */
.about {
  padding-bottom: 2rem;
}
.heading {
  width: 90%;
  text-align: center;
  margin: 0 auto;
  padding: 4rem 0 0;
  border-bottom: 2px solid var(--bg-color-secondary);
  margin-bottom: 3rem;
}
.heading h1 {
  font-size: 50px;
  color: var(--text-color-primary);
}
.heading h3 {
  font-size: 30px;
  color: var(--text-color-primary);
}
.article-content {
  color: var(--text-color-secondary);
  width: 80vw;
  margin: auto;
  text-align: left;
  font-size: 20px;
  line-height: 1.8em;
}
.article-content ul {
  list-style: square;
  margin: 1rem 0 1rem 0;
}
.article-content i {
  color: var(--side-color);
}
.section-heading {
  color: var(--text-color-primary);
  width: 60%;
  margin: 2rem 0 3rem 3rem;
  border-bottom: 2px solid var(--bg-color-secondary);
  padding: 4rem 0 0.5rem 1rem;
  font-size: 35px;
}

/* Filter and Search */
.filter {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 0 1rem;
}
.filter input,
.filter select {
  background-color: rgba(87, 40, 102, 0.2);
  color: var(--text-color-secondary);
  border: 1px solid var(--side-color);
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
  margin: 5px 0;
  width: 40%;
  transition: box-shadow 0.3s ease;
}
.filter input::placeholder {
  color: rgba(172, 145, 192, 0.7);
}
.filter input:focus,
.filter select:focus {
  outline: none;
  box-shadow: 0 0 8px var(--side-color);
  border-color: var(--side-color);
}

/* Idea Cards */
.cards-set {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 3rem;
  margin-bottom: 2rem;
}
.card {
  background-color: rgba(87, 40, 102, 0.1);
  border: 1px solid var(--side-color);
  border-radius: 15px;
  padding: 1.5rem 1.8rem;
  color: var(--text-color-secondary);
  box-shadow: 0 0 8px rgba(87, 40, 102, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  flex-shrink: 0;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(87, 40, 102, 0.25);
}
.card h3 {
  color: var(--side-color);
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.card .pitch {
  font-style: italic;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.idea-description {
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.category {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.badge-card {
  background-color: var(--side-color);
  color: beige;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 6px;
}
.more-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  margin: 1rem 0 0 14rem;
  background-color: var(--bg-color-primary);
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}
.more-btn:hover {
  background-color: var(--bg-color-secondary);
  transform: scale(1.1);
}

/* Form */
.form-liner {
  color: var(--side-color);
  text-align: center;
  font-size: 25px;
  font-style: italic;
}
.form-div {
  text-align: center;
  width: 90%;
  max-width: 500px;
  margin: 2vw auto;
  background-color: rgba(87, 40, 102, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 25px;
}
.form-container {
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  padding: 40px 30px;
}
.input {
  margin-bottom: 20px;
}
.input-field {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: none;
  background-color: rgba(87, 40, 102, 0.2);
  color: rgba(172, 145, 192, 0.807);
  border: 1px solid var(--side-color);
  font-size: 15px;
  outline: none;
}
.input-field:focus {
  border: 1px solid var(--side-color);
  box-shadow: 0 0 8px var(--side-color);
}
input::placeholder,
textarea::placeholder,
select::placeholder {
  /* color: rgba(234, 226, 226, 0.807); */
  color: rgba(172, 145, 192, 0.95);
}
button {
  width: 50%;
  margin: 20px auto 0 auto;
  padding: 12px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  background-color: var(--side-color);
  color: #fff;
  box-shadow: 0 0 10px var(--side-color);
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  transform: scale(1.1);
  background-color: var(--text-color-primary);
}

/* Footer */
.footer {
  background-color: var(--bg-color-primary);
  color: var(--text-color-secondary);
  position: relative;
  width: 100vw;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 2.5rem;
}
.footer-logo {
  width: 9rem;
  margin-top: 1rem;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}
.footer-logo .animation {
  animation: logoBounce 1s;
}
@keyframes logoBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.contact-info {
  margin: 3rem;
}
.contact-info h2 {
  font-size: 30px;
}
.contact-info ul {
  list-style: none;
  line-height: 2.5rem;
  margin-top: 1.5rem;
  font-size: 20px;
}
.contact-info ul a {
  text-decoration: none;
  color: var(--text-color-secondary);
  font-size: 20px;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--side-color);
  color: var(--text-color-secondary);
  border-radius: 50%;
  border: 2px solid var(--text-color-secondary);
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
.scroll-top:hover {
  background-color: var(--bg-color-primary);
  transform: scale(1.1);
}

/* Ideas Page */
.details-container {
  margin-top: 6rem;
  width: 90%;
  max-width: 600px;
  margin-inline: auto;
  padding: 2rem;
  background-color: rgba(87, 40, 102, 0.1);
  border-radius: 15px;
}
.details-container h2 {
  color: var(--side-color);
  margin-bottom: 1rem;
}
.details-container p {
  font-size: 18px;
  margin: 0.8rem 0;
  color: var(--text-color-secondary);
}
.badge-detail {
  padding: 6px 12px;
  background-color: rgba(87, 40, 102, 0.2);
  border-radius: 12px;
  color: var(--text-color-primary);
  font-weight: bold;
}
.back-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 10px 20px;
  background-color: var(--side-color);
  color: beige;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}
.back-btn:hover {
  background-color: var(--text-color-primary);
  transform: scale(1.1);
}

/* RESPONSIVE - Mobile , Tablet */

@media (max-width: 768px) {
  /* Navbar */
  .nav-bar {
    padding: 1rem 1.5rem;
    top: 0;
  }
  .nav-bar.open {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--bg-color-primary);
    transition: all 0.4s ease-in-out;
  }
  .nav-bar .toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--side-color);
  }
  .nav-bar.open .toggle {
    display: none;
  }
  .nav-bar .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 1.5rem;
    display: none;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
  }
  .nav-bar.open .nav-list {
    display: flex;
  }
  .nav-bar .nav-list li {
    width: 100%;
    text-align: center;
  }
  .nav-bar .nav-list li a {
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    color: var(--text-color-secondary);
    font-weight: bold;
  }

  /* Hero Section */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    text-align: center;
    padding: 2rem 1rem;
  }
  .hero-content h1 {
    font-size: 5rem;
  }
  .hero-content h2 {
    font-size: 3rem;
    padding: 0;
  }
  .hero-message {
    margin: 1rem auto 0 auto;
    justify-content: center;
    align-items: center;
  }
  .scroll {
    font-size: 2rem;
  }

  /* About Section */
  .heading h1,
  .heading h3,
  .section-heading {
    font-size: 1.8rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .heading {
    padding: 2.5rem 0 0;
    margin-bottom: 2rem;
  }
  .article-content {
    width: 90%;
    font-size: 1rem;
    padding: 0 1rem;
    line-height: 1.7;
    text-align: justify;
  }
  .article-content ul {
    padding-left: 1.2rem;
    font-size: 0.95rem;
  }
  .article-content pre {
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .article-content i {
    font-size: 1.1rem;
  }

  /* Filter Section */
  .filter {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  .filter input,
  .filter select {
    width: 100%;
    font-size: 1rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .footer-logo {
    margin: 0 auto;
    width: 6rem;
  }
  .contact-info {
    margin: 0;
  }
  .contact-info h2 {
    font-size: 1.5rem;
  }
  .contact-info ul {
    font-size: 1rem;
    line-height: 2rem;
    padding: 0;
  }
  .contact-info ul li {
    margin-bottom: 0.5rem;
  }

  /* Scroll to Top */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Ideas Page */
  .details-container {
    width: 95%;
    padding: 1.5rem;
  }
  .details-container h2 {
    font-size: 1.5rem;
  }
  .details-container p {
    font-size: 1rem;
  }
}

/* RESPONSIVE - 1024px */
@media (width: 1024px) {
  /* Hero Scroll */
  .hero-message {
    margin-left: 45rem;
  }
  .scroll {
    font-size: 3.5rem;
  }

  /* About content */
  .article-content {
    width: 90%;
    font-size: 1.1rem;
    padding: 0 1rem;
    line-height: 1.8;
  }
}
