* {
  box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --Color-palette-ocean-blue: #1e3a8a;
}
html,
body {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  line-height: 1.6;
  color: #353e45;
  image-rendering: crisp-edges;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

h3 {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
}

h4 {
  font-size: 25px;
  font-weight: 500;
  margin: 0;
}

h5 {
  font-size: clamp(20px, 1.5rem, 2vw);
  font-weight: 300;
  margin: 0;
}

p {
  margin: 0;
  font-size: clamp(14px, 1.5rem, 1vw);
}

a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

body {
  font-family: "Figtree", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  overflow-x: hidden;
}

/* General styles*/
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/*Header*/
header {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  justify-content: space-between;
  padding: 1rem;
  background-color: #ffff;
  z-index: 1000;
  margin: 0.5rem auto;
  border-radius: 50px;
  width: 90%;
  overflow: hidden;
  padding: 0 1rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}
header #logoContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  z-index: 51;
}
header #logo {
  width: 100%;
  object-fit: "contain";
}

header nav {
  display: flex;
  gap: 0.5rem;
  z-index: 50;
}

header nav #menu {
  display: none;
  transition: all 0.2s ease-in-out;
  list-style: none;
  gap: 0.75rem;
}

header nav #toggleButton {
  display: block;
  background-color: transparent;
  border: transparent;
  font-size: 1.1rem;
  padding: 1rem 0;
  z-index: 51;
}

/*Main section*/

section {
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
  padding: 2rem 1rem;
}
/*Hero*/

#hero {
  background-image: url("../assets/images/hero-img.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left;
  height: 100vh;
  align-items: normal;
}

.hero-title {
  color: var(--Neutral-4, #333);
  font-size: 4rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.hero-text {
  color: var(--Neutral-4, #333);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.proposal-button {
  display: flex;
  padding: 1rem 2rem;
  justify-content: center;
  width: fit-content;
  align-items: center;
  gap: 12px;
  border-radius: 60px;
  border: transparent;
  background: var(--Color-palette-ocean-blue);
  box-shadow: 0px 3.6px 14.4px 0px rgba(30, 58, 138, 0.15),
    0px 3.6px 7.2px 0px rgba(30, 58, 138, 0.15);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}
.hero-content {
  z-index: 100;
  display: grid;
  gap: 1rem;
  width: 100%;
}
.hero-img {
  position: absolute;
  z-index: 50;
}

/*Solution*/
#solution {
  display: grid;
  gap: 1rem;
  padding: 0 2rem;
  grid-template-columns: 1fr;
  height: auto;
  max-height: 95vh;
}
#solution .grid-item:nth-of-type(2) {
  display: none;
}
#solution .grid-item .solution-wrapper :is(.warningSign, .eyeIcon) {
  display: none;
}
.solution-wrapper {
  position: relative;
  display: grid;
  background-color: white;
  gap: 20px;
  padding: 24px;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1),
    0px 2px 16px 0px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 150px;
}

.solution-image {
  z-index: 2;
  height: 100%;
  max-height: 750px;
  position: relative;
  margin: auto;
}
/*Awards*/
#awardsGrid {
  gap: 1rem;
  display: grid;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin: 3rem 0;
}

/*Team*/
.imageWrapper {
  width: 100%;
  margin: auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
}
.imageWrapper img {
  grid-row: 1;
  grid-column: 1;
  z-index: 3;
  position: relative;
}
.imageWrapper::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70%;
  border-radius: 500px 500px 0 0;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--Color-palette-ocean-blue);
}

/*Features*/
#features {
  background: rgb(30, 58, 138);
  background: -moz-linear-gradient(
    180deg,
    rgba(30, 58, 138, 1) 0%,
    rgba(30, 58, 138, 1) 30%,
    rgba(17, 30, 68, 1) 100%
  );
  background: -webkit-linear-gradient(
    180deg,
    rgba(30, 58, 138, 1) 0%,
    rgba(30, 58, 138, 1) 30%,
    rgba(17, 30, 68, 1) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(30, 58, 138, 1) 0%,
    rgba(30, 58, 138, 1) 30%,
    rgba(17, 30, 68, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1e3a8a",endColorstr="#111e44",GradientType=1);
  padding-top: 6rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
#features .features-row {
  display: grid;
  gap: 1rem;
}
#features .feature-extra {
  position: absolute;
  transition: all 0.2s ease-in-out;
}
#features .features-row .card-6 {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  margin: 5rem 0;
}
#features .feature-text {
  display: grid;
  gap: 1rem;
  align-content: flex-start;
}
.card-1 .feature-extra {
  bottom: 10%;
  right: -0;
  left: 0;
  scale: 120%;
}
.card-2 .feature-extra {
  bottom: 0;
  left: -40%;
  right: 0;
  scale: 120%;
}
.card-3 .feature-extra {
  bottom: 50px;
  left: 20%;
  scale: 150%;
}
.card-5 .feature-extra {
  bottom: 10%;
  right: 20%;
  scale: 120%;
}
.features-wrapper {
  background-color: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex: 1;
}
.features-wrapper img {
  max-height: 45vh;
  margin: auto;
}

.features-wrapper-vertical {
  background-color: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex: 1;
}
.features-wrapper-vertical img {
  max-height: 45vh;
  margin: auto;
}
.feature-admin {
  color: white;
}

.feature-card-wrapper {
  display: grid;
  position: relative;
  align-content: end;
}
#video {
  padding: 0;
}
#team > h2 {
  margin: calc(2rem + 58px) auto 2rem auto;
  text-align: center;
}

#teamGrid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 0;
  gap: 3rem;
  row-gap: 0;
}

.proposal-button:hover,
.proposal-button:focus,
.submit-button:hover {
  box-shadow: 0px 3px 12px 0px rgba(0, 255, 255, 0.5),
    0px 3px 6px 0px rgba(0, 255, 255, 0.5);
}

#teamGrid .gridItem {
  display: grid;
  gap: 0.5rem;
  max-width: 200px;
}
.member .memberName,
.memberRole,
.memberSocial {
  display: block;
}
.memberRole {
  height: auto;
  font-weight: 400;
  text-wrap: nowrap;
  font-size: 0.9rem;
}
.memberSocial {
  font-size: 1.5rem;
  display: flex;
  position: relative;
  gap: 1rem;
}
.memberName {
  margin: 0.5rem 0;
  font-weight: 700;
}

/*Footer*/
footer {
  padding: 3rem 1rem;
  display: grid;
  text-align: center;
  justify-content: center;
  gap: 1rem;
  background-color: rgba(30, 58, 138, 0.1);
}

/*Contact*/

#contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 23px;
  background-color: rgba(30, 58, 138, 0.1);
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.form-wrapper,
.repo-wrapper {
  align-self: stretch;
  max-width: 600px;
  flex: 1;
  margin: 0 auto;
  padding-top: 2rem;
}
.contact-form :is(input, textarea) {
  display: flex;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid lightgray;
}
.contact-form :is(input, textarea):focus {
  outline-color: #1e3a8a;
}

.contact-form div {
  display: grid;
}

.submit-button {
  display: flex;
  padding: 18px 32px;
  width: fit-content;
  justify-self: center;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 60px;
  border: transparent;
  background: var(--Color-palette-ocean-blue);
  box-shadow: 0px 3.6px 14.4px 0px rgba(30, 58, 138, 0.15),
    0px 3.6px 7.2px 0px rgba(30, 58, 138, 0.15);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}
button:hover {
  cursor: pointer;
}
.repo-wrapper ul {
  display: grid;
  padding: 0;
  gap: 2rem;
  margin-top: 3rem;
}
.repo-wrapper ul li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
}
.repo-wrapper ul li i {
  font-size: 2rem;
}
.repo-wrapper ul li a {
  font-size: 1.2rem;
}
/*Media Queries*/
@media screen and (max-width: 400px) {
  #hero {
    background-image: none;
    height: 60vh;
    justify-content: end;
  }
  #hero .hero-title {
    font-size: 2.5rem;
  }
  #hero .hero-text {
    font-size: 0.8rem;
  }
  .proposal-button {
    margin-top: 1rem;
    font-size: 0.8rem;
    padding: 0.87rem 1rem;
    font-weight: 600;
  }
  #solution {
    height: 62vh;
    padding: 0;
  }
  #solution .solution-image {
    bottom: -10px;
  }
  #team > h2 {
    margin: auto;
    font-size: 1.2rem;
  }
  .card-2 .feature-extra {
    left: -65%;
  }
  .card-5 .feature-extra {
    right: 5%;
  }
}
@media screen and (max-width: 599px) {
  header nav #menu {
    max-height: 50vh;
    width: 100%;
    right: 0;
    bottom: 0;
    top: calc(54px - 100%);
    position: fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffff;
    padding: 10px 24px;
    gap: 12px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  }

  header nav #menu li a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  header nav #menu.show {
    display: flex;
    top: 0;
    padding-top: calc(54px + 1rem);
    z-index: 50;
  }
}

@media screen and (min-width: 600px) {
  header nav #menu {
    display: flex;
  }
  header {
    margin: 1.5rem auto;
    padding: 0 1.5rem;
  }

  header nav #toggleButton {
    display: none;
  }
  .hero-content {
    max-width: 50vw;
  }
  .hero-content .hero-text {
    max-width: 450px;
  }
  .features-wrapper {
    flex-direction: row;
  }
  .features-wrapper img {
    max-height: unset;
  }
  .card-1 .feature-extra {
    bottom: 10%;
    right: -5px;
    scale: 110%;
  }
  .card-2 .feature-extra {
    bottom: 0;
    left: -20%;
    right: unset;
    scale: 120%;
  }
  .card-2 :is(.feature-text, .feature-card-wrapper) {
    flex: 1;
  }
  .card-2 .feature-text {
    flex-grow: 3;
  }
  .card-3 .feature-extra {
    bottom: 50px;
    left: 20%;
    scale: 150%;
  }
  .card-5 .feature-extra {
    bottom: 10%;
    right: 35%;
    scale: 150%;
  }
  #awardsGrid {
    gap: 1rem;
    display: grid;
    justify-content: center;
    align-items: center;
    align-content: center;
    grid-template-columns: 1fr 1fr;
  }
  #awardsGrid img {
    max-width: 550px;
  }
}

@media only screen and (min-width: 430px) {
  #teamGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 800px) {
  section {
    padding: 2rem 5rem;
  }
  header nav #menu {
    gap: 2rem;
  }
  #solution {
    grid-template-columns: 1fr 2fr;
    gap: 0;
    max-height: 650px;
    padding: 2rem 5rem;
  }
  .solution-image {
    margin: unset;
  }
  #solution .image-wrapper {
    margin-left: 5vw;
  }
  #solution .grid-item .solution-wrapper :is(.warningSign, .eyeIcon) {
    display: block;
    position: absolute;
  }
  #solution .grid-item .solution-wrapper .warningSign {
    top: -50px;
    right: -50px;
  }
  #solution .grid-item .solution-wrapper .eyeIcon {
    bottom: -50px;
    right: -60px;
  }
  #solution .grid-item:nth-of-type(2) .solution-wrapper {
    max-width: 450px;
  }
  #solution .grid-item:nth-of-type(1) {
    grid-row: 1;
    grid-column: 1/-1;
    display: grid;
    gap: 1rem;
  }
  #solution .grid-item:nth-of-type(2) {
    grid-row: 1;
    grid-column: 2/-1;
    display: grid;
    gap: 3rem;
    z-index: 3;
    justify-content: end;
  }
  #solution .grid-item:nth-of-type(2) .solution-wrapper:nth-of-type(2) {
    position: relative;
    left: -50%;
  }
  #solution .grid-item:nth-of-type(2) .solution-wrapper:nth-of-type(1) {
    position: relative;
    left: -10%;
  }
  #teamGrid {
    grid-template-columns: repeat(3, 1fr);
  }
  #features {
    padding-top: 10vh;
  }
  #features .features-row {
    gap: 1.5rem;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
  }

  #features
    .features-row
    :is(.card-1, .card-2, .card-3, .card-4, .card-5, .card-6) {
    grid-row: 1;
  }
  #features .features-row :is(.card-1, .card-2) {
    grid-column: span 3;
  }
  .card-2 :is(.feature-text, .feature-card-wrapper) {
    flex: unset;
  }
  .card-2 .feature-text {
    flex-grow: 1;
  }
  #features
    .features-row
    :is(.card-1, .card-2)
    :is(.feature-text, .feature-card-wrapper) {
    flex: 1;
  }

  #features .features-row :is(.card-3, .card-4, .card-5) {
    grid-column: span 2;
  }
  #features .features-row .card-6 {
    grid-column: 1/-1;
    flex-direction: row;
  }
}

@media only screen and (min-width: 1200px) {
  #teamGrid {
    grid-template-columns: repeat(4, 1fr);
  }
  #features .features-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
  }

  #features
    .features-row
    :is(.card-1, .card-2, .card-3, .card-4, .card-5, .card-6) {
    grid-row: 1;
  }
  #features .features-row .card-1 {
    grid-column: span 3;
  }
  #features .features-row .card-2 {
    grid-column: span 2;
  }

  #features .features-row :is(.card-3, .card-5) {
    grid-column: span 2;
  }
  #features .features-row .card-4 {
    grid-column: span 1;
  }
  #features
    .features-row
    :is(.card-1, .card-2)
    :is(.feature-text, .feature-card-wrapper) {
    flex: unset;
  }
  .card-5 .feature-extra {
    right: 20%;
  }
}
@media only screen and (max-width: 500px) {
  .hero-img {
    display: none;
  }
}
/* Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1002;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  cursor: pointer;
  border: none;
  background: none;
}
i.close-btn {
  font-size: 20px;
}

.modal-body {
  text-align: center;
  padding: 20px 0;
}

.modal-body img {
  width: 100px;
  margin: 1rem auto;
}

.modal-footer {
  text-align: right;
}

.modal-footer button {
  background: var(--Color-palette-ocean-blue);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50px;
}

.modal-footer button:hover {
  background: var(--Color-palette-ocean-blue);
}
