/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #6b2dd6;
  --color-text-light: #ffffff;
  --color-text-dark: #333333;
  --color-overlay: rgba(255, 255, 255, 0.8);
  --max-width: 1400px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Page */
.page {
  min-height: 100vh;
}

.page__content {
  min-height: 100vh;

  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
}

.hero__container {
  max-width: var(--max-width);
  width: 100%;
  height: 100%;
  background-image: url("background.jpeg");
  background-size: cover;
  background-position: top;
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  box-shadow: inset 5px 5px 20px 20px rgba(255, 255, 255, 0.9);
  padding: 10px;
  padding-bottom: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.hero__container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Border-only glow */
  background: linear-gradient(
      to left,
      rgba(255, 255, 255, 0.98),
      /* Darker bottom */ rgba(255, 255, 255, 0) 5%
        /* Transparent for the rest */
    ),
    linear-gradient(
      to right,
      rgba(255, 253, 253, 0.98),
      /* Darker bottom */ rgba(255, 255, 255, 0) 5%
        /* Transparent for the rest */
    ),
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.98),
      /* Darker bottom */ rgba(255, 255, 255, 0) 5%
        /* Transparent for the rest */
    );
}

.hero__title {
  font-family: "Brush Script MT", cursive;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: normal;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  position: relative;
}

.hero__tagline {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-weight: 600;
  z-index: 1000;
  position: relative;
}

.hero__tagline-author {
  font-size: 1rem;
  font-weight: 400;
  z-index: 1000;
  position: relative;
}

.hero__intro {
  background: rgba(255, 255, 255, 0.301);
  /* backdrop-filter: blur(10px); */
  /* padding: 1.5rem;
  padding-left: 0; */
  border-radius: 8px;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--color-primary);
}
.hero__intro-container {
  display: grid;
  align-items: end;
}

.hero__text {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  z-index: 1000;
  position: relative;
  font-weight: 600;
}

.hero__text:last-child {
  margin-bottom: 0;
}

/* Chatbot */
.chatbot {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  max-width: 600px;
  z-index: 1000;
  position: relative;
  align-items: end;
}

#castomai-inline-chatbot {
  width: 100%;
  min-height: 60px;
}

/* Footer */
.footer {
  padding: 1.5rem 1rem;
}

.footer__container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.footer__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__terms {
  flex: 1;
  text-align: center;
  min-width: 250px;
  order: 3;
}

.footer__credit {
  text-align: right;
}

@media (min-width: 450px) {
  .hero__container {
    padding: 20px;
  }
  .hero__title {
    font-size: 2.5rem;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__tagline {
    font-size: 2rem;
  }

  .hero__intro {
    /* padding: 2rem;
    padding-left: 0; */
  }

  .hero__text {
    font-size: 1rem;
  }

  .footer__container {
    flex-wrap: nowrap;
  }

  .footer__terms {
    text-align: center;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero {
  }

  .hero__title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
  }

  .hero__tagline {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .hero__intro {
    /* padding: 2.5rem;
    padding-left: 0; */
  }

  .hero__text {
    font-size: 1rem;
  }

  .footer {
    padding: 2rem;
  }

  .footer__container {
    font-size: 1rem;
  }
  .footer__terms {
    order: unset;
  }
}

/* chatbot mods */

#cui-history-dropdown {
  width: 100% !important;
}

@media screen and (max-width: 480px) {
  #cui-user-input {
    width: 60px !important;
  }
}
