/* Fonts */

/* Colors */
:root {
  /* PRIMARY */
  --primary-color: #047aed;
  --secondary-color: #1c3fa8;
  --success-color: #5cb85c;
  --error-color: #d9534f;
  /* NEUTRAL */
  --dark-color: #002240;
  --light-color: #f4f4f4;
  --grey-color: #b4becb;
  --light-grey-color: #dce0e6;
  /* BOX SHADOW */
  --box-shadow: 0 calc((3 / 16) * 1rem) calc((10 / 16) * 1rem)
    rgba(0, 0, 0, 0.2);
}

/* General Styling */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

*:focus {
  outline: dashed calc((2 / 16) * 1rem) var(--dark-color);
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.5;
  font-size: calc((16 / 16) * 1rem);
  font-weight: 400;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.hidden {
  display: none !important;
}

.alert {
  background-color: var(--error-color);
  color: var(--light-color);
  padding: calc((10 / 16) * 1rem);
}

.alert i {
  margin-right: calc((5 / 16) * 1rem);
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style-type: none;
}

.btn,
.btn:link,
.btn:visited {
  cursor: pointer;
  padding: calc((10 / 16) * 1rem) calc((20 / 16) * 1rem);
  color: var(--light-color);
  border: calc((1 / 16) * 1rem) solid var(--light-color);
  border-radius: calc((5 / 16) * 1rem);

  display: inline-block;
}

.btn:hover,
.btn:active,
.btn:focus {
  outline: none;
  background-color: var(--light-color);
  color: var(--secondary-color);
  border: calc((1 / 16) * 1rem) solid var(--light-color);
  border-radius: calc((5 / 16) * 1rem);

  display: inline-block;
}

.header__nav a:link,
.header__nav a:visited,
.footer__nav a:link,
.footer__nav a:visited {
  color: #f4f4f4;
  padding-bottom: calc((1 / 16) * 1rem);
  border-bottom: calc((1.5 / 16) * 1rem) solid transparent;
}

.header__nav a:hover,
.header__nav a:active,
.header__nav a:focus,
.footer__nav a:hover,
.footer__nav a:active,
.footer__nav a:focus {
  outline: none;
  border-bottom: calc((1.5 / 16) * 1rem) solid var(--light-color);
}

.web-img-links img,
.web-img-links:visited img {
  margin-bottom: calc((20 / 16) * 1rem);
}

.web-links:link,
.web-links:visited {
  overflow-x: scroll;
  display: block;
  background: #333;
  color: #fff;
  width: 100%;
  padding: calc((10 / 16) * 1rem);
  margin-bottom: calc((20 / 16) * 1rem);
}

/* disable scrollbar for the web-links */
.web-links {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.web-links::-webkit-scrollbar {
  background: transparent; /* Chrome/Safari/Webkit */
  width: 0;
}

.web-links:hover,
.web-links:active,
.web-links:focus {
  outline: none;
  background-color: var(--primary-color);
  border-radius: calc((5 / 16) * 1rem);
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.header__container {
  padding: calc((20 / 16) * 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc((10 / 16) * 1rem);
}

.header__title {
  font-size: calc((36 / 16) * 1rem);
}

.header__nav {
  padding: calc((10 / 16) * 1rem) calc((20 / 16) * 1rem);
  background-color: rgba(0, 0, 0, 0.1);
}

.header__nav ul {
  display: flex;
  gap: calc((20 / 16) * 1rem);
}

/* Main */
.main {
  min-height: calc(100vh - calc((422 / 16) * 1rem));

  display: flex;
  flex-direction: column;
}

/* Loading spinner */
.spinner {
  padding: calc((20 / 16) * 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner__img {
  height: calc((100 / 16) * 1rem);
}

.spinner i {
  color: var(--primary-color);
}

/* hero section */
.hero__section {
  overflow: hidden;
  padding: calc((20 / 16) * 1rem) calc((10 / 16) * 1rem) calc((50 / 16) * 1rem);
  background-color: var(--primary-color);
  color: var(--light-color);
  position: relative;
}

.hero__section::after {
  content: "";
  height: calc((500 / 16) * 1rem);
  width: 200%;
  background-color: var(--light-color);
  transform: rotate(-3deg);
  position: absolute;
  top: 75%;
  right: calc((-100 / 16) * 1rem);

  display: block;
}

.hero__container {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto calc((50 / 16) * 1rem);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((70 / 16) * 1rem);
}

.hero__text {
  text-align: center;
  animation: slideInFromTop 0.75s ease-out;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((20 / 16) * 1rem);
}

.hero__title {
  font-size: calc((36 / 16) * 1rem);
  font-weight: 300;
}

.hero__subtitle {
  font-size: calc((22 / 16) * 1rem);
  font-weight: 300;
}

.hero__btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((20 / 16) * 1rem);
}

.hero__btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((20 / 16) * 1rem);
}

.hero__btn-container .btn {
  width: 100%;
}

.hero__form {
  box-shadow: var(--box-shadow);
  z-index: 10;
  width: 100%;
  background-color: var(--light-color);
  color: var(--dark-color);
  border-radius: calc((5 / 16) * 1rem);
  padding: calc((20 / 16) * 1rem);
  animation: slideInFromBottom 0.75s ease-out;

  display: flex;
  flex-direction: column;
  gap: calc((20 / 16) * 1rem);
}

.hero__form h2 {
  font-weight: 300;
}

.hero__form .form-control:first-of-type {
  margin-top: calc((10 / 16) * 1rem);
}

.hero__form .form-control:last-of-type {
  margin-top: calc((10 / 16) * 1rem);
}

.hero__form input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: calc((1 / 16) * 1rem) solid var(--grey-color);
}

.hero__form input:focus {
  outline: none;
  border-bottom: calc((2 / 16) * 1rem) solid var(--dark-color);
}

.hero__form .btn {
  background-color: var(--primary-color);
  padding: calc((7 / 16) * 1rem) calc((27 / 16) * 1rem);
}

.hero__form .btn:hover,
.hero__form .btn:active,
.hero__form .btn:focus {
  outline: none;
  background-color: var(--secondary-color);
  color: var(--light-color);
}

/* features section */
.features__section {
  margin: calc((50 / 16) * 1rem) 0 calc((100 / 16) * 1rem);
  animation: fadeIn 0.75s ease-out;
}

.features__title {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto calc((50 / 16) * 1rem);
  text-align: center;
  font-weight: 300;
}

.features__container {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto calc((50 / 16) * 1rem);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((50 / 16) * 1rem);
}

.feature {
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((10 / 16) * 1rem);
}

.feature__title {
  color: var(--primary-color);
  font-weight: 400;
}

/* contact section */
.contact__section {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: calc((50 / 16) * 1rem) calc((10 / 16) * 1rem);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((50 / 16) * 1rem);
}

.contact__text {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 0.75s ease-out;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((5 / 16) * 1rem);
}

.contact__title {
  font-size: calc((36 / 16) * 1rem);
  font-weight: 300;
}

.contact__description {
  font-weight: 300;
}

.contact__email-link:link,
.contact__email-link:visited {
  padding: calc((1 / 16) * 1rem);
  color: var(--light-color);
  border-bottom: calc((1 / 16) * 1rem) solid transparent;

  display: block;
}

.contact__email-link:hover,
.contact__email-link:active {
  border-bottom: calc((1 / 16) * 1rem) solid var(--light-color);
}

.contact__form {
  width: 100%;
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto;
  animation: fadeIn 0.75s ease-out;

  display: flex;
  flex-direction: column;
  gap: calc((10 / 16) * 1rem);
}

.contact__form input,
.contact__form textarea {
  padding: calc((5 / 16) * 1rem) calc((10 / 16) * 1rem);
  width: 100%;
  border-radius: calc((5 / 16) * 1rem);
  border: none;
  resize: none;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: solid calc((2 / 16) * 1rem) var(--dark-color);
}

.contact__form .btn {
  border: var(--dark-color) solid calc((1.5 / 16) * 1rem);
  background-color: var(--dark-color);
  padding: calc((7 / 16) * 1rem) calc((27 / 16) * 1rem);
}

.contact__form .btn:hover,
.contact__form .btn:active,
.contact__form .btn:focus {
  outline: none;
  border: var(--light-color) solid calc((1.5 / 16) * 1rem);
  color: var(--light-color);
}

/* process section */
.process__section {
  margin: calc((100 / 16) * 1rem) 0;
  animation: fadeIn 0.75s ease-out;
}

.process__title {
  text-align: center;
  font-weight: 300;
  margin-bottom: calc((50 / 16) * 1rem);
}

.process__container {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  row-gap: calc((30 / 16) * 1rem);
}

.step {
  border-radius: calc((5 / 16) * 1rem);
  box-shadow: var(--box-shadow);
  padding: calc((20 / 16) * 1rem);
  transition: transform 0.2s ease-in;

  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: calc((20 / 16) * 1rem);
}

.step__header {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: calc((20 / 16) * 1rem);
}

.step__header i {
  width: calc((60 / 16) * 1rem);
  height: calc((60 / 16) * 1rem);

  display: grid;
  place-items: center;
  border-radius: 999px;
  background-color: var(--primary-color);
  color: var(--light-color);
}

.step__header i::before {
  transform: scale(0.6);
}

.step__header h3 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: calc((28 / 16) * 1rem);
}

.step__description {
  margin-bottom: auto;
}

.step:hover {
  transform: scale(1.03);
}

/* showcase-hero section */
.showcase-hero__section {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: calc((20 / 16) * 1rem) calc((10 / 16) * 1rem) calc((50 / 16) * 1rem);
}

.showcase-hero__container {
  text-align: center;
  animation: fadeIn 0.75s ease-out;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc((40 / 16) * 1rem);
}

.showcase-hero__image-container {
  z-index: 3;
  position: relative;
  width: 200px;

  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5%;
}

.showcase-hero__image-box {
  height: calc((40 / 16) * 1rem);
}

.showcase-hero__image-container .showcase-hero__image-box:nth-of-type(1) {
  z-index: 4;
  transform: rotate(-15deg) translateY(25px);
  animation: leftShowcaseImage 0.75s ease-out;
}

.showcase-hero__image-container .showcase-hero__image-box:nth-of-type(2) {
  z-index: 5;
  transform: translateY(10px);
  animation: centerShowcaseImage 0.75s ease-out;
}

.showcase-hero__image-container .showcase-hero__image-box:nth-of-type(3) {
  z-index: 4;
  transform: rotate(15deg) translateY(25px);
  animation: rightShowcaseImage 0.75s ease-out;
}

/* showcase section */
.showcase__section {
  z-index: 6;
  background-color: var(--light-color);
  padding: calc((20 / 16) * 1rem);
  position: relative;

  flex-grow: 1;
}

.showcase__container {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  row-gap: calc((20 / 16) * 1rem);
}

.showcase-card {
  padding: calc((20 / 16) * 1rem);
  border-radius: calc((5 / 16) * 1rem);
  box-shadow: var(--box-shadow);
  animation: fadeIn 0.75s ease-out;
}

.showcase-card--menu {
  background-color: var(--light-grey-color);
}

.showcase-card--menu h3 {
  text-align: center;
}

.showcase-card--menu nav ul li button {
  cursor: pointer;
  color: var(--dark-color);
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 300;
  border-radius: calc((5 / 16) * 1rem);
  padding: calc((10 / 16) * 1rem) calc((5 / 16) * 1rem);
  border: calc((1.5 / 16) * 1rem) solid transparent;

  display: block;
}

.showcase-card--menu nav ul li button:hover,
.showcase-card--menu nav ul li button:focus {
  outline: none;
  border: calc((1.5 / 16) * 1rem) solid var(--dark-color);
}

.showcase-card--menu nav ul li:first-of-type:before,
.showcase-card--menu nav ul li::after {
  content: "";
  height: calc((1.5 / 16) * 1rem);
  width: calc(100% - calc((10 / 16) * 1rem));
  margin: 0 auto;
  background-color: var(--grey-color);

  display: block;
}

.showcase-card--menu nav ul li button.showcase-menu-link--active {
  background-color: var(--grey-color);
}

.showcase-card--menu h3 {
  font-weight: 400;
  padding: calc((10 / 16) * 1rem) 0;
}

.showcase-card--content {
  width: 100%;
  overflow-x: hidden;
}

.showcase-card--content > *:last-child {
  margin-bottom: 0 !important;
}

.showcase-card--content h2,
.showcase-card--content h3 {
  margin-bottom: calc((20 / 16) * 1rem);
  font-weight: 400;
}

.showcase-card--content p,
.showcase-card--content ul {
  margin-bottom: calc((20 / 16) * 1rem);
  font-weight: 300;
}

.showcase-card--content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.showcase-card--content ul li {
  flex-basis: calc((30 / 16) * 1rem);
}

.showcase-card--content ul li:last-of-type {
  margin-bottom: 0;
}

.showcase-card--content .btn,
.showcase-card--content .btn:link,
.showcase-card--content .btn:visited {
  margin-bottom: calc((20 / 16) * 1rem);
  background-color: var(--primary-color);
}

.showcase-card--content .btn:hover,
.showcase-card--content .btn:active,
.showcase-card--content .btn:focus {
  outline: 0;
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.showcase-card--content .news-article {
  padding: calc((20 / 16) * 1rem) 0 calc((5 / 16) * 1rem);
  border-top: calc((2 / 16) * 1rem) var(--grey-color) solid;
}

.showcase-card--content .news-article .news-date {
  font-size: calc((15 / 16) * 1rem);
  font-weight: 400;
}

/* Footer */
.footer {
  z-index: 6;
  padding: calc((50 / 16) * 1rem) calc((10 / 16) * 1rem);
  background-color: var(--dark-color);
  color: var(--light-color);
  position: relative;
}

.footer a {
  color: var(--light-color);
}

.footer__container {
  max-width: calc((400 / 16) * 1rem);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: calc((30 / 16) * 1rem);
}

.footer__nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc((20 / 16) * 1rem);
}

.footer__copyright {
  text-align: center;
}

.footer__copyright span {
  font-size: calc((22 / 16) * 1rem);
  font-weight: 300;
}

.footer__copyright p,
.footer__copyright p span {
  font-size: calc((16 / 16) * 1rem);
  font-weight: 300;
}

.footer__social ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc((20 / 16) * 1rem);
}

.footer__social ul a:hover,
.footer__social ul a:active,
.footer__social ul a:focus {
  outline: none;
  color: var(--primary-color);
}

/* Animations for home hero section */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-25%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(25%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-25%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(25%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animations for showcase hero section */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes centerShowcaseImage {
  0% {
    transform: translateY(100px);
  }

  100% {
    transform: translateY(10px);
  }
}

@keyframes leftShowcaseImage {
  0% {
    transform: translateY(100px) translateX(100%);
  }

  100% {
    transform: rotate(-15deg) translateY(25px);
  }
}

@keyframes rightShowcaseImage {
  0% {
    transform: translateY(100px) translateX(-100%);
  }

  100% {
    transform: rotate(15deg) translateY(25px);
  }
}
