@font-face {
  font-family: 'Aileron';
  src: url('../assets/aileron/Aileron-Regular.otf');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/aileron/Aileron-Medium.otf');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/aileron/Aileron-SemiBold.otf');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/aileron/Aileron-Bold.otf');
  font-weight: 700;
  font-style: normal;
}

:root {
  /*========== Colors ==========*/
  --color-primary: rgb(66, 138, 162);
  --color-secondary: #e5f3f7;
  --color-tertiary: #141616;
  --color-quaternary: #ffffff;
}

/*=============== BASE ===============*/
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Aileron';
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  background-image: linear-gradient(
      to right,
      rgba(229, 231, 235, 0.8) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(229, 231, 235, 0.8) 1px, transparent 1px),
    radial-gradient(
      circle 500px at 20% 20%,
      rgba(66, 138, 162, 0.3),
      transparent
    ),
    radial-gradient(
      circle 500px at 80% 80%,
      rgba(66, 138, 162, 0.3),
      transparent
    );
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  height: 100dvh;
  color: var(--color-tertiary);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 44px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: unset;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Header */

.header-logo > img {
  width: 300px;
}

/* Hero-Section */
.hero {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-title {
  font-size: 76px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: capitalize;
  color: var(--color-tertiary);
}

.hero-title > span {
  color: var(--color-primary);
}

.hero-text {
  font-size: 18px;
  line-height: 2;
  text-align: center;
  color: var(--color-tertiary);
  position: relative;
}

.hero-text > span {
  color: var(--color-quaternary);
  background-color: var(--color-primary);
  padding: 1px 8px;
  display: inline-block;
  font-weight: 600;
  margin-right: 6px;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.hero-text:before {
  content: '';
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  width: calc(608rem / 16);
  height: calc(334rem / 16);
  background: rgba(66, 138, 162, 0.216);
  filter: blur(162.45px);
  z-index: -1;
}

.contact {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;

  ul {
    display: flex;
    justify-content: center;
    align-self: start;
    position: relative;
    gap: 20px;

    @media (max-width: 600px) {
      flex-direction: column;
      align-items: center;
    }
  }

  ul li {
    position: relative;
    list-style: none;
    width: 50px;
    height: 50px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
  }

  ul li::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    background: var(--color-primary);
    opacity: 0;
    transition: 0.5s;
  }

  ul li::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 100%;
    height: 100%;
    border-radius: 60px;
    background: var(--color-primary);
    transition: 0.5s;
    filter: blur(15px);
    z-index: -1;
    opacity: 0;
  }

  ul li:hover {
    width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0);
  }

  ul li:hover::before {
    opacity: 1;
  }

  ul li:hover::after {
    opacity: 0.5;
  }

  ul li ion-icon {
    color: var(--color-tertiary);
    font-size: 25px;
    transition: 0.5s;
    transition-delay: 0.25s;
  }

  ul li:hover ion-icon {
    transform: scale(0);
    color: var(--color-quaternary);
    transition-delay: 0s;
  }

  ul li span {
    position: absolute;
    line-height: 1;
  }

  ul li .title {
    color: var(--color-quaternary);
    font-size: 16px;
    transform: scale(0);
    transition: 0.5s;
    transition-delay: 0s;
  }

  ul li:hover .title {
    transform: scale(1);
    transition-delay: 0.25s;
  }
}

/* Media Queries */
@media (max-width: 820px) {
  .header-logo > img {
    width: 220px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-text > span {
    padding: 1px 6px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-content {
    gap: 24px;
  }
}
