@font-face {
  font-family: Towhid;
  src: url(./assets/towhid.woff2);
}

/* :root {
  --mainTextColor: #fff;
  --secondaryTextColor: #eb5939;
  --bgColor: #0d0d0d;
  --halfWhite: rgba(255, 255, 255, 0.5);
} */

:root {
  --mainTextColor: #fff;
  --secondaryTextColor: #2d545e;
  --bgColor: #e1b382;
  --halfWhite: #12343b;
  --hoverText: #ffdf33;
}

* {
  margin: 0;
  padding: 0;
  user-select: text;
  box-sizing: border-box;
}

body {
  background-color: var(--bgColor);
  font-family: "Towhid", sans-serif;
  color: var(--mainTextColor);
  overflow-x: hidden;
  position: relative;
}

.first-layer {
  overflow: hidden;
}

.second-layer {
  background: var(--secondaryTextColor);
  left: 0;
  -webkit-mask-image: url(./assets/layer-cursor.png);
  mask-image: url(./assets/layer-cursor.png);
  -webkit-mask-origin: content-box;
  mask-origin: content-box;
  -webkit-mask-position: calc(var(--x) - var(--size) / 2)
      calc(var(--y) - var(--size) / 2),
    center;
  mask-position: calc(var(--x) - var(--size) / 2)
      calc(var(--y) - var(--size) / 2),
    center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--size), contain;
  mask-size: var(--size), contain;
  min-height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 5;
  width: 100%;
  color: var(--hoverText);
  overflow: hidden;
}

.second-layer :where(main, section) {
  background-color: var(--secondaryTextColor);
  position: relative;
}

.container {
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
}

.content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
}

.hide {
  display: none;
}

header {
  padding: 10px 0px;
}

header .logo img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  filter: brightness(100%) contrast(100%) saturate(9%) blur(0px)
    hue-rotate(0deg);
  display: block;
}

header .menu ul {
  list-style-type: none;
}

header .menu ul li {
  float: left;
  margin-left: 10px;
}

header .menu ul li a {
  text-decoration: none;
  color: var(--mainTextColor);
}

main {
  background-image: url(./assets/code-bg.png);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: contain;
  min-height: 100vh;
  height: auto;
}

.second-layer main {
  background-image: none;
}

.hero .content {
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding: 50px 20px;
}

.hero .text {
  font-size: 120px;
  line-height: 1em;
  text-transform: uppercase;
  position: relative;
  span {
    color: var(--secondaryTextColor);
  }
}

.second-layer .hero .text {
  span {
    color: var(--bgColor);
  }
}

.hero .tagline {
  display: flex;
  gap: 25px;
  color: var(--halfWhite);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 20px;
  font-size: 14px;
}

.hero .tagline span:not(:first-child) {
  display: list-item;
}

section {
  min-height: 100vh;
  margin-top: 120px;
}

.section-header {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  width: 100%;
  margin-bottom: 30px;
  h4 {
    font-weight: 400;
    color: var(--halfWhite);
  }
}

.second-layer .section-header h4 {
  color: var(--bgColor);
}

.section-1 .content,
.section-2 .content {
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding: 50px 20px;
}

.section-1 .about {
  display: grid;
  grid-template-columns: 15% auto;
  gap: 50px;
  width: 100%;
}
.section-1 .image img {
  width: 100%;
}
.section-1 .text,
.section-2 .text,
.section-3 .text {
  font-size: 48px;
  line-height: 1.1em;
  width: 100%;
}

.text .word {
  opacity: 0.3;
}

.section-1 .text span,
.section-2 .text span,
.section-3 .text span {
  color: var(--secondaryTextColor);
}

.second-layer .section-1 .text span,
.second-layer .section-2 .text span,
.second-layer .section-3 .text span {
  color: var(--bgColor);
}

.section-3 {
  background-image: url(./assets/pyramids.png);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.second-layer .section-3 {
  background-image: none;
}

.section-3 .section-header {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  width: 100%;
  text-align: center;
  margin-bottom: 0px;
}

.section-3 .content {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 0px;
  gap: 20px;
}

.section-3 .text {
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
  font-size: 60px;
  line-height: 1.2em;
}

.section-3 h5 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 400;
}

footer .content {
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding: 100px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 33% 34% 33%;
  width: 100%;
  ul {
    list-style-type: none;
  }
  ul li {
    margin-bottom: 10px;
  }
  ul li a {
    text-decoration: none;
    color: var(--mainTextColor);
    font-size: 35px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1em;
    svg path {
      fill: var(--secondaryTextColor);
    }
  }
  .menu-text {
    position: relative;
    display: block;
    width: 100%;
    span {
      position: relative;
      transition: all 0.3s ease;
    }
  }

  .menu-text span:last-child {
    position: absolute;
    left: 0;
    opacity: 0;
    visibility: hidden;
    color: var(--bgColor);
  }

  ul li a:hover .menu-text span:first-child {
    opacity: 0;
    visibility: hidden;
  }

  ul li a:hover .menu-text span:last-child {
    opacity: 1;
    visibility: visible;
  }

  .menu-text::before {
    content: "";
    background: var(--secondaryTextColor);
    width: 90%;
    height: 0%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-5px, -50%);
    transition: all 0.3s ease;
  }

  .menu-text:hover::before {
    height: 125%;
  }
}

.footer-content .email {
  margin-bottom: 30px;
}

.footer-content .email,
.footer-content .phone {
  position: relative;
  span,
  strong {
    position: relative;
  }
}

.footer-content .email::before,
.footer-content .phone::before {
  content: "";
  background: var(--secondaryTextColor);
  width: 105%;
  height: 0%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.footer-content .email:hover::before,
.footer-content .phone:hover::before {
  height: 125%;
}

.footer-content .email strong,
.footer-content .phone strong {
  display: block;
  margin-bottom: 5px;
}

.footer-content .email span,
.footer-content .phone span {
  display: block;
  font-weight: 400;
  font-size: small;
  a {
    text-decoration: none;
    color: inherit;
  }
}

.circle {
  position: fixed;
  background-color: var(--secondaryTextColor);
  width: 30px;
  height: 30px;
  pointer-events: none;
  left: -15px;
  top: -15px;
  border-radius: 100%;
  z-index: 1;
  z-index: 10000;
  transform: scale(1);
  &.active {
    opacity: 1;
    transform: scale(0);
  }
}

@media screen and (max-width: 576px) {
  .second-layer {
    --size: 0px !important;
  }
  main {
    min-height: auto;
  }
  .hero .tagline {
    font-size: 12px;
  }
  .hero .text {
    font-size: 50px;
  }
  section {
    min-height: auto;
    margin-top: 250px;
  }
  .section-1 .about {
    grid-template-columns: 100%;
  }
  .section-1 .text,
  .section-2 .text,
  .section-3 .text {
    font-size: 25px;
  }
  .footer-content {
    display: grid;
    grid-template-columns: 100%;
    gap: 20px;
    & ul li a {
      font-size: 20px;
    }
  }
}
