@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'BricolageGrotesque';
  src: url('./fonts/BricolageGrotesque/BricolageGrotesque-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'BricolageGrotesque';
  src: url('./fonts/BricolageGrotesque/BricolageGrotesque-Medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'BricolageGrotesque';
  src: url('./fonts/BricolageGrotesque/BricolageGrotesque-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --light-grey: #d9d9d9;
  --dark-grey: #727272;
  --dark-purple: #600040;
  --purple: #6D00E7;
  --beige: #fcfaff;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html {
  font-family: 'BricolageGrotesque', sans-serif;
}

body {
  background-color: var(--light-grey);
  position: relative;
}
.pink {
  color: #d5009c;
}

header {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 40px;
}

.logo {
  width: 290px;
  height: auto;
  object-fit: contain;
}

nav {
  font-size: 1.2rem;
  color: var(--dark-purple);
  font-weight: 700;
  text-transform: uppercase;
  list-style-type: none;
  display: flex;
  gap: 35px;
}
#collapsed {
  padding: 170px 20px;
  /* width: 290px; */
  width: 55%;
  display: flex;
  flex-direction: column;
  position: absolute;
  height: 100vh;
  top: 0;
  right: 0;
  background-color: #a7007b;
  z-index: 1000;
  color: var(--light-grey);
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  border: 1px solid black;
  transition: right 0.5s ease-in-out; /* Add smooth transition */
}

#collapsed.active {
  animation: slideIn 0.2s ease-in-out forwards; /* Slide in */
}

#collapsed.hidden {
  animation: slideOut 0.2s ease-in-out forwards; /* Slide out */
}

/* Slide-in keyframe */
@keyframes slideIn {
  from {
    right: -100%; /* Start off-screen */
  }
  to {
    right: 0; /* End in the correct position */
  }
}

/* Slide-out keyframe */
@keyframes slideOut {
  from {
    right: 0; /* Start at the visible position */
  }
  to {
    right: -100%; /* Move back off-screen */
  }
}
.hamburger {
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 25px;
  gap:5px;
  cursor: pointer;
  z-index: 1001;
  display: none;
}
.hamburger > * {
  flex: 1;
  background-color: var(--dark-purple);
}

legend, main, section {
  padding: 40px 130px;
}

legend {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
}

legend img {
  flex: 2;
  width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

legend h1 {
  flex: 3;
  font-size: 3.125rem;
}

main p {
  font-size: 1.1rem;
  font-family: 'Inter';
}

main h3, section h3 {
  color: var(--dark-purple);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  margin-top: 100px;
  letter-spacing: 2px;
}

main h1, section h1 {
  text-align: center;
  font-size: 40px;
  margin-top: 10px;
  color: var(--dark-purple);
}
.benefits-grid {
  margin: auto;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
}
.card {
  max-width: 270px;
}
.image-container {
  position: relative;
}
.card img {
  width: 270px;
}
.card p {
  font-family: 'BricolageGrotesque';
  color: var(--purple);
  background-color: white;
  position: absolute;
  bottom: 4px;
  left: 0;
  font-weight: 600;
}

.card h2 {
  margin-top: 20px;
  color: var(--dark-purple);
  font-size: 1.5rem;
  position: relative;
}
.card h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  background-color: var(--purple);
  height: 3px;
  width: 90px;
}

section {
  background-color: var(--beige);
}

.stats {
  margin-top: 70px;
  border: 3px solid var(--dark-purple);
  padding: 20px 0;
  border-left: 0;
  border-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* gap: 120px; */
}
.stats h1 {
  text-align: left;
}
.stats p {
  color: var(--dark-purple);
  margin-top: 10px;
  text-align: center;
}

.widget {
  margin: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 100px;
}
.widget h3 {
  text-align: left;
  padding-left: 12px;
}

footer {
  background-color: var(--dark-grey);
  height: 100px;
}

@media screen and (max-width: 1018px) {
  .stats {
    flex-direction: column;
    gap: 40px;
  }
}
@media screen and (max-width: 931px) {
  legend, main, section {
    padding: 80px;
  }
}
@media screen and (max-width: 884px) {
  header {
    justify-content: space-between;
  }
  nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media screen and (max-width: 830px) {
  legend, main, section {
    padding: 50px;
  }
}
@media screen and (max-width: 771px) {
  legend, main, section {
    padding: 20px;
  }
}
@media screen and (max-width: 710px) {
  .logo {
    width: 180px;
  }
  header {
    padding: 20px 15px;
  }
  legend {
    flex-direction: column;
    align-items: flex-start;
  }
  legend h1 {
    flex: 3;
    font-size: 2rem;
  }
}