@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --header-font-size: 1rem;
  --logo-size: 2.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Roboto;
}

header {
  background-color: #1F2937;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 0em;
}

nav {
  width: 75%;
  display: flex;
  align-items: center;
}

nav .header-logo {
  font-size: var(--logo-size);
}

ul {
  list-style-type: none;
  margin-left: auto;
  display: flex;
  column-gap: 1em;
}

nav ul a {
  text-decoration: none;
  color: inherit;
  font-size: var(--header-font-size);
  font-size: 1.5rem;
}

li {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}
li:hover {
  background-color: #F9FAF8;
  color: #1F2937;
}

/* hERO SECTION */

/* Main */
main {
  background-color: #1F2937;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}


.hero-section {
  width: 75%;
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  padding: 5rem 0rem;
}

.left-div {
  /* border: 1px solid white; */
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-right: auto;
  width: 50%;
  height: 100%;
  row-gap: 2em;
}
.text-section {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
}

.main-heading {
  font-size: 2.5rem;
  font-weight: 900;
  color: #F9FAF8;
  letter-spacing: 2px;
}

.hero-secondary-text {
  font-size: 1.2rem;
  width: 95%;
  flex-wrap: wrap;
}

.left-div button {
  background-color: #3882F6;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 1.2rem;
  color: white;
  border: none;
  border-radius: 0.2em;
  padding: 0.5em 1.5em;
  cursor: pointer;
  transition: all 0.15s;
}

.left-div button:hover {
  background-color: #E5E7EB;
  color: #3882F6;
}

.right-div {
  /* border: 1px solid white; */
  flex-shrink: 0;
  width: 400px;
  max-width: 450px;
  margin-left: 1rem;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  border-radius: 10px;
}

/* Target all blocks */

.one {
  width: 100%;
  background-color: #E5E7EB;
  display: flex;
  justify-content: center;
  align-items: center;
}
.content {
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5em 0;
  row-gap: 2em;
}
div .heading {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 2px;
}

.card-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  column-gap: 2rem;
}

.card {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 10px;
  padding: 1em 0;
}
.illustration {
  width: 100%;
  height: 250px;
  border: 3px solid #3882F6;
  border-radius: 10px;
}
.card p {
  width: 75%;
  text-align: center;
}

/* Second block */
.two {
  background-color: #c9cbcf;
  width: 100%;
  padding: 4em 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.quote, .author {
  width: 75%;
  
}
.quote {
  font-size: 2.4rem;
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  color: #1F2937;
  text-align: center;
}
.author {
  text-align: end;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Block three */

.three {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4em 0;
  background-color: #E5E7EB;
}

.inner-three {
  background-color: #3882F6;
  color: white;
  width: 75%;
  border-radius: 0.5em;
  border: none;
  padding: 2em;
  display: flex;
}

.text .head{
  font-size: 2em;
  font-weight: bolder;
}

.text p {
  font-size: 1.4rem;
  width: 90%;
}

.btn-container {
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-three button {
  flex-shrink: 0;
  background-color: #3882F6;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border: 2px solid white;
  padding: 0.5em 1.5em;
  border-radius: 5px;
  margin-left: auto;
  cursor: pointer;
}
.inner-three button:hover {
  background-color: white;
  border: 2px solid #3882F6;
  color: #3882F6;
}

/* Footer */

footer {
  background-color: #1F2937;
  color:#F9FAF8;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

@media (max-width: 520px) {
  ul {
    display: none;
  }
}

@media (max-width: 1080px) {
  nav,
  .hero-section,
  content,
  .quote,
  .inner-three {
    width: 85%;
  }
}

@media (max-width: 800px) {
  nav,
  .hero-section,
  content,
  .quote,
  .inner-three {
    width: 90%;
  }
}

@media (max-width: 750px) {
  .hero-section {
    flex-direction:column;
    justify-content: center;
    align-items: center;
    row-gap: 2rem;
    padding: 2.5em;
  }
  .left-div,
  .right-div {
    margin: 0;
    row-gap: 1.5em;
  }

  .right-div, .left-div {
    width: 95%;
    align-items: center;
  }
  .hero-secondary-text,
  .text-section {
    justify-content: center;
    align-items: center;
  }
  .text-section {
    row-gap: 0.5em;
    text-align: center;
  }
}

@media (max-width: 709px) {

  .hero-section {
    padding: 1.5rem 0.5em;
  }

  .card-section {
    /* justify-content: center; */
    column-gap: 1rem;
  }
}

@media (max-width: 687px) {
  .card-section {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .two {
    padding: 3em 0;
  }
  .three {
    padding: 3em 0;
  }
  .inner-three {
    flex-direction: column;
    padding: 1.5em;
    row-gap: 1em;
  }
  .btn-container{
    justify-content: flex-start;
    margin: 0;
  }
  .btn-container button {
    margin: 0;
  }
}