@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

:root {
  --primary-color: #222831;
  --secondary-color: #31363f;
  --base-color: #aa3235;
  --bg-color: #eeeeee;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

.container {
  margin-top: 80px;
  min-height: 95%;
  background-position: center;
  background-size: cover;
}

.home {
  padding: 20px;
  color: var(--base-color);
  font-size: 22px;
  text-align: center;
}

.home-two {
  display: flex;
  margin: 100px 50px;
}

.home-content {
  width: 50%;
  min-width: 300px;
  font-size: 18px;
}

.home-content p {
  margin-top: 10px;
  text-align: justify;
  font-weight: 500;
}

.advantages {
  width: 90%;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  align-content: center;
}

.main-card {
  width: 25%;
  margin: 5% 1%;
  border: 1px solid #aa3234ad;
  border-radius: 10px;
  height: 35vh;
  transition: transform 0.3s ease-in-out;
  flex: 1 1 auto;
  min-width: 250px;
  max-width: 400px;
  position: relative;
}

.main-card:hover {
  transform: scale(1.1);
}

.main-card h3 {
  text-align: center;
  text-transform: uppercase;
  color: var(--base-color);
}

.layer {
  width: 100%;
  height: 0;
  background-color: #31363fd7;
  color: var(--bg-color);
  border-radius: 5px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
  backdrop-filter: blur(5px);
}

.layer h3 {
  font-weight: 500;
}

.main-card:hover .layer {
  height: 35vh;
  width: 100%;
  border-radius: 10px;
}

.card {
  margin: 0px auto;
  height: 35vh;
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.about-four {
  width: 90%;
  margin: 0px auto;
  text-align: center;
  /* background: linear-gradient(to bottom right, #aa3235 , #fff); */
}

.about-four h1 {
  width: 30%;
  margin: 0px auto;
  border-bottom: #aa3235 2px solid;
  margin-bottom: 3%;
}

.about-four p {
  line-height: 1.5;
}

.img-box {
  margin: 2.5%;
  mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-size: 100% 100%;
  mask-position: center;
}
.img-box img {
  width: 100%;
}

.about-five {
  width: 100%;
  /* height: 40vh; */
  min-height: 40vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.Whoarewe {
  line-height: 1.7;
}
.Whoarewe h1 {
  margin: 50px 0px;
  color: var(--base-color);
}

.about-five p {
  line-height: 1.5;
  margin: 10px 0px;
  /* word-spacing: 5px; */
}

.banner {
  width: 100%;
  padding: 50px 0px;
  background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url(../Assets/allimages/about/Nadezhda-ventures-attached-banner.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  margin: 1px 0px;
}

.banner-heading {
  color: #fff;
}

.banner-heading a {
  text-decoration: none;
  background-color: var(--base-color);
  border-radius: 50px;
  padding: 10px 20px;
  color: var(--bg-color);
  text-transform: uppercase;
}

@media only screen and (min-width: 320px) and (max-width: 900px) {
  .home-two {
    justify-content: center;
    margin: 50px 0px;
  }
  .home-content {
    width: 85%;
    margin: 0px auto;
  }
  .main-card {
    width: 25%;
    margin: 0%;
    border: 1px solid #aa3234ad;
    border-radius: 10px;
    /* height: 35vh; */
    transition: transform 0.3s ease-in-out;
    /* flex: 1 1 auto; */
    /* min-width: 350px; */
    /* max-width: 400px; */
    position: relative;
  }
  .advantages {
    padding: 50px 0px;
  }
}
