@import url("https://fonts.googleapis.com/css?family=Merriweather:900&display=swap");
:root {
  --color-primary: #3dd417c5;
  --color-secondary: #f0f7ee;
  --duration: 1s;
  --nav-duration: calc(var(--duration) / 4);
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --space: 1rem;
  --font-primary: "Helvetica", sans-serif;
  --font-heading: "Merriweather", serif;
  --font-size: 1.125rem;
  --line-height: 1.5;
}

h1 {
  margin-bottom: calc(var(--space) * 3);
  font-family: var(--font-heading);
  font-size: calc(var(--font-size) + 6vmin);
  line-height: calc(var(--line-height) / 1.25);
}

.main-navigation-toggle {
  position: fixed;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.main-navigation-toggle + label {
  position: fixed;
  top: calc(var(--space) * 1.5);
  right: calc(var(--space) * 2);
  cursor: pointer;
  z-index: 5;
}

.icon--menu-toggle {
  --size: calc(1rem + 4vmin);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  stroke-width: 6;
}

.icon-group {
  transform: translateX(0);
  transition: transform var(--nav-duration) var(--ease);
}

.icon--menu {
  stroke: var(--color-primary);
}

.icon--close {
  stroke: var(--color-secondary);
  transform: translateX(-100%);
}

.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform var(--nav-duration);
  z-index: 2; /* Set a higher z-index */
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.main-navigation .contentS {
  overflow-y: auto;
  max-height: 100vh; /* Limit the height to the viewport height */
}

.main-navigation-toggle:checked ~ .main-navigation {
  transition-duration: 0s;
  transform: translateX(0);
}
.llable {
  font-size: large;
  margin-top: 10vh;
}

.story {
  padding: 9px;
  color: rgb(255, 255, 255);
}

.main-navigation:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to right,
      rgba(129, 129, 126, 0.053),
      rgba(92, 92, 91, 0.084)
    ),
    url(/img//overlaybackground.jpeg);
  background-repeat: no-repeat;
  background-color: #2e2d2dba;
  background-size: contain;
  background-position: right; /* Move the background image to the right */
  transform-origin: 0 50%;
  z-index: -1;
}

.main-navigation div {
  font-size: 1vmin;
  font-family: var(--font-heading);
  width: 100%;
}

.main-navigation li:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--border-size);
  background-color: var(--color-secondary);
  transform-origin: 0 50%;
  transform: translateX(-100%) skew(15deg);
}

.main-content {
  margin: 6rem auto;
  max-width: 70ch;
  padding: 0 calc(var(--space) * 2);
  transform: translateX(0);
  transition: transform calc(var(--nav-duration) * 2) var(--ease);
}
.main-content > * + * {
  margin-top: calc(var(--space) * var(--line-height));
}

.main-navigation-toggle:checked ~ label .icon--menu-toggle .icon-group {
  transform: translateX(100%);
}
.main-navigation-toggle:checked ~ .main-content {
  transform: translateX(10%);
}
.main-navigation-toggle:checked ~ .main-navigation {
  transition-duration: 0s;
  transform: translateX(0);
}
.main-navigation-toggle:checked ~ .main-navigation:after {
  animation: nav-bg var(--nav-duration) var(--ease) forwards;
}
.main-navigation-toggle:checked ~ .main-navigation li:after {
  animation: nav-line var(--duration) var(--ease) forwards;
}
.main-navigation-toggle:checked ~ .main-navigation a {
  animation: link-appear calc(var(--duration) * 1.5) var(--ease) forwards;
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(1):after,
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(1) a {
  animation-delay: calc((var(--duration) / 2) * 1 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(2):after,
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(2) a {
  animation-delay: calc((var(--duration) / 2) * 2 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(3):after,
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(3) a {
  animation-delay: calc((var(--duration) / 2) * 3 * 0.125);
}
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(4):after,
.main-navigation-toggle:checked ~ .main-navigation li:nth-child(4) a {
  animation-delay: calc((var(--duration) / 2) * 4 * 0.125);
}

@keyframes nav-bg {
  from {
    transform: translateX(-100%) skewX(-15deg);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes nav-line {
  0% {
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  35% {
    transform: scaleX(1.001);
    transform-origin: 0 50%;
  }
  65% {
    transform: scaleX(1.001);
    transform-origin: 100% 50%;
  }
  100% {
    transform: scaleX(0);
    transform-origin: 100% 50%;
  }
}
@keyframes link-appear {
  0%,
  25% {
    transform: translateY(100%);
  }
  50%,
  100% {
    transform: translateY(0);
  }
}

.contentS {
  padding: 60px 60px 60px 0; /* Adjust the padding values as needed */
  max-width: 800px;
  text-align: left; /* Align text to the left */
  /* backdrop-filter: blur(10px); */
  /* background-color: rgba(
    217,
    217,
    217,
    0.558
  ); */
  /* border: 3px solid rgba(0, 0, 0, 0.791); */
}

.founder-title {
  color: #fa55cb;
  font-size: 40px;
  margin-top: 0;
  margin-left: 50px;
  margin-bottom: 23px;
}

.founder-paragraph {
  color: #f5f2f2;
  margin-left: 50px;
  margin-bottom: 50px;
  font-family: sans-serif;
  font-weight: lighter;
  font-size: 25px;
}

.badgee {
  margin-right: 30px;
  display: block;
  position: relative;
  width: 10rem;
  height: 10rem;
  cursor: pointer;
  background: url(https://images.unsplash.com/photo-1476067897447-d0c5df27b5df?q=80&w=1000&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8d2F5fGVufDB8fDB8fHww)
    no-repeat 100% 50%;
  background-size: contain;
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
  box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.75);
}
.badgee:hover {
  box-shadow: 0px 0.5rem 2rem rgba(0, 0, 0, 0.75);
  background-position: 0% 50%;
}
.badgee:hover .textt {
  transform: rotate(-45deg) translate(0px) rotate(-315deg);
  background: rgba(102, 51, 153, 0.5);
  width: 20rem;
  letter-spacing: 1rem;
  line-height: 20rem;
  height: 20rem;
  margin-top: -10rem;
  margin-left: -10rem;
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1),
    letter-spacing 1.5s ease-out;
}
.badgee .textt {
  display: block;
  position: absolute;
  width: 5rem;
  height: 5rem;
  line-height: 5rem;
  left: 50%;
  top: 50%;
  margin-top: -10rem;
  margin-left: -10rem;
  font-size: 1rem;
  font-family: Raleway, sans-serif;
  text-align: center;
  color: #fff;
  border-radius: 50%;
  background: rebeccapurple;
  transform: rotate(-180deg) translate(-10rem) rotate(180deg);
  box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}

/* Add this to your existing CSS */
.menu-container {
  position: relative;
  z-index: 1000; /* Ensure navbar stays above other content */
}

.main-navigation-toggle + label {
  z-index: 1001; /* Ensure toggle button stays above everything */
}

/* Adjust the story button position on mobile */
@media (max-width: 768px) {
  .main-navigation-toggle + label {
    top: auto;
    bottom: 20px;
    right: 20px;
    background-color: rgba(134, 68, 163, 0.8);
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .story {
    display: none; /* Hide the text on mobile */
  }
  
  .icon--menu-toggle {
    --size: 30px; /* Smaller icon on mobile */
  }
  
  .main-navigation {
    z-index: 999; /* Below navbar but above content */
  }
  
  .navbar-toggler {
    z-index: 1002; /* Above everything */
  }
}
/* Add this to your existing CSS */
@media (max-width: 768px) {
  /* Ensure proper stacking order */
  .menu-container {
    position: relative;
    z-index: 1000;
  }
  
  /* Adjust story toggle position */
  .main-navigation-toggle + label {
    top: 50vh; /* Position vertically centered */
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
  }
  
  /* Style the story toggle for mobile */
  .llable {
    margin-top: 0;
    font-size: 14px;
    background-color: rgba(134, 68, 163, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
  }
  
  /* Adjust chatbot positioning */
  .chatbot-wrapper {
    bottom: 80px !important; /* Raise above story toggle */
    right: 20px !important;
    z-index: 999;
  }
  
  /* Ensure navigation stays accessible */
  .navbar-toggler {
    position: relative;
    z-index: 1002;
  }
  
  /* Adjust story content spacing */
  .main-navigation {
    padding-bottom: 100px; /* Space for chatbot */
  }
  
  /* Make story content more compact on mobile */
  .contentS {
    padding: 30px 20px;
  }
  
  .founder-title {
    font-size: 24px;
    margin-left: 0;
  }
  
  .founder-paragraph {
    font-size: 16px;
    margin-left: 0;
    margin-bottom: 20px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .main-navigation-toggle + label {
    top: auto;
    bottom: 100px; /* Position above chatbot */
  }
  
  .chatbot-wrapper {
    bottom: 20px !important;
  }
}