@font-face {
  font-family: "M PLUS 1";
  src: url("../assets/fonts/M_PLUS_1/MPLUS1-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
}

:root {
  --background-color: #1a1e1c;
  --primary-color: #2bb32a;
  --white-color: #fff;

  --light-gray: #adb2b1;
  --dark-gray: #3d544d;
  --blur-bg: rgba(61, 84, 77, 0.24);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: "M PLUS 1", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background-color: var(--background-color);
  min-height: 100vh;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/bg-image.svg");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

.container {
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  margin-top: 40px;

  position: relative; /* Position relative for overlay positioning */
}

.header__logo {
  font-size: 24px;
  font-weight: bold;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.header__nav--list {
  display: flex;
  gap: 32px;
}
.header__nav--item {
  font-size: 16px;
  font-weight: 500;
}

.header__nav--item--link {
  color: var(--white-color);
  font-weight: 600;
  transition: 250ms color;
}
.header__nav--item--link:hover {
  color: var(--primary-color);
}
.header__contact {
  border: 2px solid var(--primary-color);
  padding: 12px 32px;
  border-radius: 64px;
  color: var(--primary-color);
  transition: 250ms all;
}
.header__contact:hover {
  background: var(--primary-color);
  border-color: var(--background-color);
  color: var(--background-color);
}

.hamburger__menu {
  display: none;
}

.drawer__contact {
  border: 2px solid var(--primary-color);
  padding: 12px 32px;
  border-radius: 64px;
  color: var(--primary-color);
}

.drawer {
  position: fixed;
  top: 0;
  right: -100%; /* Hide drawer off-screen */
  width: 80%;
  height: 100%;
  background: var(--background-color);
  transition: right 0.3s ease;
  z-index: 20;
}

.drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 15;
}

.drawer__nav {
  display: flex;
  justify-content: space-between;
  gap: 69px;
  padding: 20px;
}

.drawer__nav--list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.drawer__nav--item {
  font-size: 16px;
  font-weight: 500;
}

.drawer__nav--item--link {
  color: var(--white-color);
  font-weight: 600;
}

.drawer__contact {
  border: 2px solid var(--primary-color);
  padding: 12px 32px;
  border-radius: 64px;
  color: var(--primary-color);
}

.drawer--active {
  right: 0; /* Slide drawer in */
}

.drawer__overlay--active {
  opacity: 0.5;
  visibility: visible;
}

/* Hero Section */
.hero {
  color: var(--white-color);
  display: flex;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.hero__image {
  flex: 1;
  text-align: right;
  margin-right: 50px;
}

.hero__title {
  margin-bottom: 20px;
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
}

.hero__subtitle {
  font-size: 36px;
  font-weight: 700;
}

.hero__platforms {
  display: flex;
  gap: 24px;
}
.hero__platforms img {
  width: 100%;
}

.hero__platforms a {
  transition: 0.3s ease-in-out;
}

.hero__platforms a:hover {
  scale: 1.06;
}

.hero__description {
  font-size: 18px;
  font-weight: 400;
  color: var(--light-gray);
}

/* Stats Section */
.stats {
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
  border-radius: 32px;
  backdrop-filter: blur(16px);
  background: var(--blur-bg);
  padding: 64px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats__item {
  text-align: center;
}

.stats__item--number {
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--white-color);
  margin-bottom: 8px;
}

.stats__item--label {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--primary-color);
}

/* Feature Section */
.feature {
  /* max-width: 350px; */
  color: var(--white-color);
  display: flex;
  gap: 24px;
}

.features__title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 64px;
  color: var(--white-color);
  text-align: center;
}

.feature__list {
  /* display: flex; */
  justify-content: space-around;
  /* flex-wrap: wrap; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature__icon {
  min-width: 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-gray);
  border-radius: 24px;
}

.feature__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.feature__description {
  font-size: 16px;
  line-height: 1.5;
  color: var(--light-gray);
}

/* Testimonials Section */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-bottom: 200px;
}

.testimonial__card {
  color: var(--white-color);
  border-radius: 32px;
  padding: 48px 24px;
  backdrop-filter: blur(16px);
  background: var(--blur-bg);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonial__card:hover {
  transform: translateY(-10px);
}

.testimonial__card--rating {
  height: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dark-gray);
}

.testimonial__card__user--name {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.testimonial__card__user--info {
  color: var(--light-gray);
  font-size: 12px;
  line-height: 20px;
}

/* Footer Section */
.footer {
  min-height: 151px;
  backdrop-filter: blur(16px);
  background: var(--blur-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 80px;
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer__copyright {
  text-align: center;
  color: var(--light-gray);
  font-size: 12px;
  margin-top: 30px;
}

.footer__text {
  color: var(--light-gray);
  font-size: 16px;
}

.footer__social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer__social-link {
  color: var(--light-gray);
  font-size: 16px;
}

.footer__social-link:hover {
  color: var(--primary-color);
}

/* Helper Classes */
.images__container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 80%;
  margin: 64px auto 0 auto;
}

.highlight {
  position: relative;
}

.highlight svg {
  position: absolute;
  left: -3%;
  top: 5px;
  width: 110%;
  height: 130%;
}

/* Media Queries */
@media (max-width: 1300px) {
  .hero__image {
    margin-right: 0;
  }
}

@media (max-width: 1150px) {
  .hamburger__menu {
    display: block;
  }
  .header__nav--list {
    display: none;
  }
  .container {
    padding: 0 70px;
  }
}

@media (max-width: 1000px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }
  .images__container {
    justify-content: center;
  }
  .images__container img:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 40px;
  }
  .hero__title {
    font-size: 40px;
    line-height: 48px;
  }
  .footer__container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero {
    text-align: center;
  }
  .hero__image {
    display: none;
  }
  .container {
    padding: 0 24px;
    gap: 60px;
  }
  .header__contact{
    display: none;
  }
  .stats{
    padding: 32px;
  }
  .images__container img {
    scale: 0.7;
  }
  .header__nav {
    gap: 20px;
  }
  .feature {
    gap: 12px;
  }
  .features__title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .testimonials {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }
  .footer {
    padding: 20px;
  }
}
