@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  position: relative;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  display: inline-block;
  text-decoration: none;

  color: #f7902e;
  font-weight: 600;
}

a:hover {
  color: #f5c116;
}

h1,
p {
  margin: 0;
}

img {
  max-width: 100%;
  object-fit: cover;
}

.wrapper {
  width: 100%;
  height: 100vh;

  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.row {
  display: flex;
}

.container {
  max-width: 90%;
  margin: 0 auto;
}

/* -------------------------- ANIMATION --------------------------*/

.animation {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 1s;
}

@media (prefers-reduced-motion: reduce) {
  .animation {
    transition: none;
  }
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* -------------------------- SLIDES BASIC SETTINGS --------------------------*/
.slides {
  width: 100%;
  /* height: 80vh; 
  scroll-snap-align: start;*/
}

.bg-cover {
  aspect-ratio: 900/675;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* -------------------------- NAVBAR --------------------------*/
header {
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
}

.logo {
  align-items: center;
}

.logo img {
  min-width: 170px;
  max-width: 170px;
}

nav ul {
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  transition: 0.3s ease-in-out;
}

nav a::after {
  display: block;
  content: "";
  width: 0;
  height: 2px;
  border-radius: 5px;
  margin: 0 auto;
  background-color: #ffc715;
  transition: 0.3s ease-in-out;
}

nav li:nth-of-type(5) a::after {
  all: unset;
}

nav a:hover::after {
  width: 60%;
}

nav .action-btn.blue {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

/* -------------------------- NAVBAR - MEDIA --------------------------*/
@media screen and (max-width: 900px) {
  .toggleMenu {
    position: absolute;
    right: 5%;
    background-image: url(./img/open.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px;
    width: 30px;
    height: 30px;
    padding: 2rem;
    z-index: 300;
    transition: background-size 0.3s ease-in-out;
    cursor: pointer;
  }

  .toggleMenu.active {
    position: fixed;
    background-image: url(./img/close.svg);
    background-size: 25px;
    filter: invert();
  }

  .navigation {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    transform-origin: top;
    transform: scale(1, 0);
    transition: transform 0.3s ease;
  }

  .navigation.active {
    position: fixed;
    inset: 0;
    margin: auto;
    max-height: 100%;
    opacity: 1;
    background-color: #f7902e;
    background: linear-gradient(256.04deg, #f7902e 2.61%, #ffc715 90.32%);
    transform: scale(1, 1);
    z-index: 200;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul .contacts-menu {
    margin-left: 0;
  }

  nav a {
    color: #fff;
    font-size: 24px;
  }

  nav a:hover {
    color: #308bd9;
  }

  nav a::after {
    background-color: #308bd9;
  }

  nav .action-btn.blue {
    font-size: 24px;
  }
}

/* -------------------------- HOME --------------------------*/
.home {
  background-color: #fff;
}

.home h1 {
  background: -webkit-linear-gradient(80deg, #308bd9, #081f82 80%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 600px;
}

.hero {
  gap: 2rem;
  flex-wrap: wrap-reverse;
  align-items: center;
  margin: 0 3rem;
  margin-bottom: 3rem;
}

.hero > * {
  flex: 1 1 25rem;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.1;
  margin: 2rem 0;
}

.hero h3 {
  font-weight: 400;
  font-size: 18px;
  padding-bottom: 1rem;
  line-height: 1.8;
}

.home .description {
  flex-wrap: wrap;
  align-items: start;
  margin: 2rem 3rem;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.02);
}

.home .description > * {
  flex: 1 1 25rem;
}

.home .description .text-block {
  margin: 1rem;
}

.home .description h3 {
  background: -webkit-linear-gradient(80deg, #308bd9, #081f82 80%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1;
  padding-bottom: 1rem;
}

.home.description p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
}

/* -------------------------- CONSULTING --------------------------*/

.consulting {
  gap: 2rem;
  color: #fff;
  background-color: #f7902e;

  padding: 0 5rem;
  flex-direction: column;
}

.consulting .header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2rem;

  margin: 3rem 0;
}

.header > * {
  flex: 1 2 30rem;
}

.consulting .services {
  --gap: 20px;
  display: grid;
  gap: var(--gap);

  /* Using min() */
  grid-template-columns: repeat(
    auto-fit,
    minmax(min((60rem - 100%) * 999, 100%), 1fr)
  );

  /* Using clamp() */
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(33.3333% - var(--gap), (60rem - 100%) * 999, 100%), 1fr)
  );
}

.consulting .services .text-block {
  border: 1px solid #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  line-height: 2;
}

.consulting .services .text-block img {
  width: 16px;
  height: 16px;
  margin-top: 7px;
}

.consulting .services .text-block li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-weight: 300;
}

.consulting h2 {
  font-weight: 700;
  font-size: clamp(24px, 5vw, 40px);
}

.consulting h3 {
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 1rem;
  line-height: 1.8;
}

/* -------------------------- TRAINING --------------------------*/
.training {
  color: #081f82;
  background-color: #fff;
  gap: 4rem;
}

.training h2 {
  font-weight: 700;
  font-size: clamp(24px, 5vw, 40px);
  margin-bottom: 1rem;
}

.training h3 {
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 2rem;
  line-height: 1.8;
}

.training h4 {
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 1rem;
  line-height: 1.8;
}

.training-block img {
  padding: 1rem 1rem;
}

.training-block .bolb1 {
  border-radius: 30% 70% 70% 30% / 40% 61% 39% 60%;
}

.training-block .bolb2 {
  border-radius: 51% 49% 36% 64% / 70% 39% 61% 30%;
}

.training-block li {
  margin-bottom: 1rem;
  font-size: 16px;
  font-weight: 300;
  display: flex;
}

.training-block li svg {
  margin-top: 4px;
  margin-right: 0.5rem;
}

.training-block li a {
  color: #081f82;
  font-weight: 300;
  text-decoration: underline;
}

.training-block li a:hover {
  color: #1839ce;
}

.training-block {
  gap: 5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 3rem;
  margin: 0 5rem;
}

.training-block > * {
  flex: 1 1 25rem;
}

/* -------------------------- PROJECTS --------------------------*/
.projects {
  color: #fff;
  background-color: #081f82;
  background-image: url("./img/blue-bg-bubbles.svg");
}

.projects h2 {
  font-weight: 700;
  font-size: clamp(24px, 5vw, 40px);
}

.projects-header {
  margin: 0 3rem;
  padding-bottom: 2rem;
}

.projects .project-description {
  flex-wrap: wrap;
  align-items: start;
  margin: 0 3rem;
  padding-top: 2rem;
  gap: 5rem;
}

.projects .project-description > * {
  flex: 1 1 25rem;
}

.projects .project-description h3 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.4;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

.projects .project-description p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
}

.projects .project-description .project-block img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 2;
  vertical-align: middle;
  object-fit: cover;
}

.projects .project-block {
  gap: 2rem;
}

.projects .project-description .project-block .img1 {
  border-radius: 40% 60% 38% 62% / 45% 68% 32% 55%;
}

.projects .project-description .project-block .img2 {
  border-radius: 62% 38% 37% 63% / 42% 40% 60% 58%;
}

.projects .project-description .project-block .img3 {
  border-radius: 40% 60% 38% 62% / 45% 68% 32% 55%;
}

.projects .project-description .project-block .img4 {
  border-radius: 41% 59% 60% 40% / 33% 40% 60% 67%;
}

.projects .project-description .project-block .img5 {
  border-radius: 58% 42% 60% 40% / 59% 64% 36% 41%;
}

/* -------------------------- TEAM --------------------------*/
.team {
  color: #081f82;
  background-color: #fff;
}

/* -------------------------- CONTACT-MENU --------------------------*/
.contacts-menu {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  color: #313131;
  margin-left: 2rem;
}

.contacts-menu a {
  font-size: 12px;
  color: #313131;
  font-weight: 400;
  text-decoration: underline;
}

.contacts-menu a::before {
  all: unset;
}

.contacts-menu a::after {
  all: unset;
}

.contacts-menu-image {
  width: 10px;
  margin-right: 5px;
}

/* -------------------------- CUSTOM SHAPES: SPACER --------------------------*/
.spacer {
  aspect-ratio: 960/200;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  font-size: 0;
}

.layer1 {
  background-image: url("./img/waves-home-up.svg");
}

.layer2 {
  background-image: url("./img/waves-home-down.svg");
}

.layer3 {
  background-image: url("./img/waves-consulting-up.svg");
}

.layer4 {
  background-image: url("./img/waves-consulting-down.svg");
}

/* -------------------------- BUTTONS --------------------------*/
.action-btn {
  border: none;
  border-radius: 35px;
  outline: none;
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;

  transition: scale 0.2 ease;

  white-space: nowrap;
}

.action-btn.blue {
  background: linear-gradient(256.04deg, #15406d 2.61%, #2e89d6 90.32%);
}

.action-btn.orange {
  background: linear-gradient(256.04deg, #f7902e 2.61%, #ffc715 90.32%);
}

.action-btn:hover {
  scale: 1.05;
  color: #fff;
}

.action-btn:active {
  scale: 0.95;
}

/* -------------------------- MEDIA - MOBILE - 500px --------------------------*/

@media (max-width: 500px) {
  .home .description {
    margin: 2rem 1rem;
  }

  .consulting {
    padding: 0 1rem;
  }

  .training-block {
    margin: 0 2rem;
  }

  .consulting .header {
    padding: 0 1rem;
  }

  .hero {
    margin: 0 2rem;
  }
}
