:root {
  --red: rgb(239, 71, 111);
  --yellow: rgb(255, 209, 109);
  --teal: rgb(6, 214, 160);
  --blue: rgb(7, 59, 76);
  --font: "Manrope", sans-serif;
}
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
}
body {
  background-color: #eceff4;
}
img {
  max-width: 100%;
}
.wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hide {
  display: none !important;
}
.transparent {
  opacity: 0 !important;
}
.opague {
  opacity: 1 !important;
}
@media screen and (min-width: 850px) {
  .no-break {
    display: none;
  }
}
/* lightbox */
.lightbox {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  transform: translate(-50%, -50%);
  background-color: rgba(7, 59, 76, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-in-out;
}
.light-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 30px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.light-close:hover {
  scale: 1.15;
}
.light-img {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
}
.light-vid {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
}

@media screen and (max-width: 850px) {
  .light-close {
    top: 60px;
    right: 20px;
  }
}

/* Nav section */
nav {
  position: fixed;
  width: 100%;
  z-index: 500;
  background-image: linear-gradient(
    to bottom,
    rgba(239, 71, 111, 0.7),
    transparent
  );
  box-sizing: border-box;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  color: white;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.logo-area img {
  height: 40px;
}
.logo-area h1 {
  font-weight: 400;
  letter-spacing: 0.5px;
  color: white;
  text-decoration: none;
}
.menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.menu ul img {
  display: none;
}
.menu li {
  list-style: none;
  cursor: pointer;
}
.menu ul a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.menu ul a:hover {
  color: var(--blue);
}
.connect {
  padding: 10px 18px;
  background-color: var(--blue);
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
}
.connect a {
  transition: all 0.3s ease-in-out;
}
.connect:hover {
  background-color: var(--yellow);
  color: black;
}
.connect:hover a {
  color: black;
}
.menu-btn {
  display: none;
}
i {
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
i:hover {
  color: var(--blue);
}
@media screen and (max-width: 850px) {
  .logo-area h1 {
    display: none;
  }
  .menu ul {
    position: absolute;
    flex-direction: column;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    gap: 40px;
    background-image: linear-gradient(
        to bottom,
        rgba(7, 59, 76, 0.6),
        rgba(7, 59, 76, 0.6)
      ),
      radial-gradient(circle at top, var(--teal), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -8px 0 48px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
  }
  .menu ul img {
    display: block;
    margin-top: 30px;
    width: 30px;
  }
  .menu a {
    font-size: 8vw;
  }
  .connect {
    padding: 0px 0px;
    background-color: transparent;
    border-radius: 0;
  }
  .menu-btn {
    display: block;
    width: 32px;
  }
  .close {
    transform: translateX(2000vw);
  }
  i {
    font-size: 2rem;
  }
}

/* Hero section */
@keyframes appear {
  0% {
    scale: 0.95;
    opacity: 0;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}
@keyframes parallax-one {
  to {
    transform: translateY(1000px);
  }
}
@keyframes parallax-two {
  to {
    transform: translateY(-400px);
  }
}
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100svh;
  background-color: var(--red);
  overflow: hidden;
}
.hero h1 {
  display: block;
  text-align: center;
  color: white;
  padding: 0 20px;
  font-size: clamp(4rem, 5vw, 5rem);
  text-shadow: 0 4px 16px rgba(7, 59, 76, 0.7);
  transform: translateY(-8vh);
  z-index: 10;
  opacity: 0;
  animation-name: appear;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-delay: 500ms;
  animation-fill-mode: forwards;
}
.orange-blur {
  position: absolute;
  background-color: var(--yellow);
  width: 80vw;
  height: 70vh;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(100px);
}
.purple-wave {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: -160px;
  background-image: url(../images/hero/purple-wave.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  min-width: 1100px;
  animation: parallax-one linear;
  animation-timeline: scroll(root);
}
.teal-wave {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 150px;
  background-image: url(../images/hero/teal-wave.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  min-width: 1100px;
  animation: parallax-two linear;
  animation-timeline: scroll(root);
}
.white-wave {
  position: absolute;
  width: 100vw;
  height: 100vh;
  bottom: -5px;
  background-image: url(../images/hero/head-white.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  min-width: 1100px;
}
@media screen and (max-width: 800px) {
  .hero h1 {
    line-height: 1.2;
    transform: translateY(-20px);
  }
  .hero h1 {
    text-align: left;
  }
  .purple-wave {
    top: -200px;
  }
  .teal-wave {
    top: 40px;
  }
}

/* companies */
#companies {
  padding: 100px 20px 200px 20px;
}
#companies h2 {
  display: block;
  max-width: 100%;
  padding: 0 20px;
  text-align: center;
  color: var(--red);
  font-size: 1.5rem;
  margin-bottom: 30px;
}
.divider {
  width: 80px;
  height: 4px;
  background-color: var(--teal);
  margin-bottom: 80px;
}
.logos {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.logos img {
  width: 15%;
}
@media screen and (max-width: 850px) {
  .logos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
  }
  .logos img {
    width: 60%;
  }
}

/* About section */
#about {
  position: relative;
  height: 600px;
  background-image: linear-gradient(
      to bottom,
      rgba(239, 71, 111, 0.8),
      rgba(239, 71, 111, 0.8)
    ),
    url(../images/about/about-header.webp);
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.3);
}
#about::before {
  position: absolute;
  top: -400px;
  content: "";
  width: 120vw;
  height: 400px;
  background-color: #eceff4;
  transform-origin: 0% 100%;
  transform: rotate(10deg);
}
.about {
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 0 20px;
}
.about-text {
  margin-top: 20px;
  width: 40%;
}
.about-text h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 200;
}
.about-text p {
  font-size: 2.4rem;
  font-weight: 200;
}
.about img {
  width: 40%;
  z-index: 5;
}
@media screen and (max-width: 850px) {
  #about {
    background-size: cover;
    background-attachment: scroll;
  }
  .about-text {
    margin-top: 20px;
    width: 100%;
  }
  .about img {
    display: none;
  }
}

/* Meet Matt */
#meet-matt {
  padding: 100px 0;
}
.meet-matt {
  position: relative;
  display: flex;
  justify-content: space-between;
  perspective: 8000px;
}
.img-box {
  position: relative;
  width: 40%;
  background-color: rgba(46, 44, 240, 0.5);
  background-image: radial-gradient(at top right, var(--teal), transparent),
    radial-gradient(at bottom left, var(--red), transparent);
  padding: 20px;
  border-radius: 16px;
  box-sizing: border-box;
  border: 1px solid #969696;
  backdrop-filter: blur(32px);
  transform: translateY(-150px);
  rotate: y 30deg;
  perspective: 8000px;
  opacity: 0;
  z-index: 1;
  animation: turn linear forwards;
  animation-timeline: view(y);
  animation-range: 200px 500px;
}
@keyframes turn {
  to {
    rotate: y 0deg;
    opacity: 1;
  }
}
.img-box::after {
  position: absolute;
  left: 50%;
  bottom: -80px;
  content: "";
  width: 85%;
  height: 16px;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
  background-color: #073b4c;
  filter: blur(8px);
}
.img-box h3 {
  display: block;
  color: white;
  font-size: 2.8rem;
  font-weight: 200;
  margin-top: 30px;
  margin-bottom: 50px;
}
.img-box h3 span {
  color: white;
  font-size: 2.8rem;
  font-weight: 200;
  border-bottom: 2px solid var(--yellow);
}
.profile-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  box-shadow: -8px 8px 8px rgba(0, 0, 0, 0.3);
  background-image: url(../images/about/profile-pic.webp);
  background-size: cover;
  transform: translatez(0px) translateX(20px);
  animation: profile linear forwards;
  animation-timeline: view();
  animation-range: 200px 500px;
}
@keyframes profile {
  to {
    transform: translatez(100px) translateX(0px);
  }
}
.profile-pic::before {
  position: absolute;
  top: -40px;
  right: 20px;
  content: "";
  background-image: url(../images/about/arrow.webp);
  width: 85px;
  height: 85px;
  background-size: 100% 100%;
  animation: arrow-bounce 2s ease-in-out alternate infinite;
}
@keyframes arrow-bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(20px);
  }
}
.img-box::before {
  position: absolute;
  display: block;
  content: "";
  top: 45%;
  right: -15%;
  width: 206px;
  height: 206px;
  background-image: url(../images/about/yellow_sphere.webp);
  background-size: 206px 206px;
  z-index: -10;
}
.red-cone {
  position: absolute;
  top: 140px;
  left: -30%;
  width: 176px;
}
.meet-text {
  width: 48%;
  font-size: 1.9rem;
  line-height: 1.9;
  color: var(--blue);
}
@media screen and (max-width: 850px) {
  .img-box {
    width: 100%;
  }
  .meet-text {
    width: 100%;
  }
  .meet-matt {
    flex-direction: column;
  }
  .red-cone {
    display: none;
  }
  .img-box::before {
    display: none;
  }
}

/* Services section */
.services {
  position: relative;
  padding: 80px 0;
}
.services h2 {
  font-family: var(--font);
  color: var(--blue);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 60px;
}
.services h5 {
  font-family: var(--font);
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 60px;
}
.services::before {
  position: absolute;
  display: block;
  content: "";
  top: -80px;
  right: 20%;
  width: 206px;
  height: 206px;
  opacity: 0;
  transform: translateX(50px);
  background-image: url(../images/about/yellow_sphere.webp);
  background-size: 206px 206px;
  animation: slide-in linear forwards;
  animation-timeline: view();
  animation-range: 200px 500px;
}
@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.services::after {
  position: absolute;
  display: block;
  content: "";
  bottom: -80px;
  left: 20%;
  width: 206px;
  height: 206px;
  background-image: url(../images/about/teal_cube2.webp);
  background-size: 206px 206px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slide-in linear forwards;
  animation-timeline: view();
  animation-range: -300px 300px;
}
@media screen and (max-width: 1000px) {
  .services::before {
    display: none;
  }
  .services::after {
    display: none;
  }
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 50px;
}
.service-item h3 {
  color: var(--red);
  margin-bottom: 10px;
  font-size: 0.8rem;
  text-align: left;
}
.service-item p {
  font-size: 0.8rem;
  line-height: 1.6;
}
.more-services {
  font-weight: 700;
  margin-top: 50px;
}
@media screen and (max-width: 850px) {
  .service-item h3 {
    font-size: 1rem;
    text-align: center;
  }
  .services h2 {
    margin-bottom: 30px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 40px;
  }
  .service-item h4 {
    color: var(--red);
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
  }
  .service-item p {
    font-size: 1.2rem;
    text-align: center;
  }
}

/* Portfolio section */
.fade-in {
  opacity: 1;
}
.fade-out {
  opacity: 0;
}
#portfolio {
  padding: 100px 0;
}
.port-menu {
  display: flex;
  width: 100%;
}
.instruct {
  display: block;
  background-color: var(--red);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: white;
}
.port-menu-item {
  width: 25%;
  text-align: center;
  padding: 30px 0;
  border-bottom: 4px solid var(--blue);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.port-menu-item:hover {
  color: var(--teal);
}
.active {
  color: var(--red);
  border-bottom: 4px solid var(--red);
}
.port-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 40px 20px;
  background-image: linear-gradient(to bottom, #dbdbe3, transparent 100px);
}
.port-img {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  filter: saturate(0.8);
  transition: all 0.3s ease-in-out;
}
.port-img:hover {
  filter: saturate(1);
  transform: translateY(-4px) scale(101%);
  box-shadow: 0 8px 8px 8px rgba(0, 0, 0, 0.15);
}
@media screen and (max-width: 850px) {
  .instruct {
    width: 100%;
    padding: 20px 0;
    font-size: 0.6rem;
  }
  .port-images {
    grid-template-columns: 1fr;
  }
  .port-menu-item {
    padding: 15px 0;
    font-size: 1rem;
  }
}

/*contact section */
#contact {
  position: relative;
  padding: 220px 0 120px 0;
  background-image: linear-gradient(
      to bottom,
      rgb(7, 59, 76, 0.8),
      rgb(7, 59, 76, 0.8)
    ),
    url(../images/contact-bg.png);
  background-size: cover;
  background-attachment: fixed;
  color: white;
  overflow: hidden;
}
#contact::before {
  position: absolute;
  top: -380px;
  left: -20px;
  content: "";
  width: 120vw;
  height: 400px;
  background-color: #eceff4;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.2),
    transparent 20px
  );
  transform-origin: 0% 100%;
  transform: rotate(10deg);
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
}
.contact-text {
  font-weight: 200;
}
.contact-text h2 {
  color: var(--yellow);
  font-size: 1.2;
  margin-bottom: 20px;
  font-weight: 200;
}
.contact-text h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 200;
}
.contact-text p {
  line-height: 1.7;
}
.contact-form-box {
  margin-top: 160px;
}
input {
  display: block;
  width: 100%;
  color: white;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0);
  padding: 15px;
  border: solid 2px white;
  box-sizing: border-box;
  border-radius: 8px;
}
input::placeholder {
  color: white;
}
.submit {
  background-color: var(--teal);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.submit:hover {
  background-color: var(--yellow);
  color: black;
}
textarea {
  display: block;
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0);
  padding: 15px;
  color: white;
  border: solid 2px white;
  box-sizing: border-box;
  border-radius: 8px;
  resize: none;
}
textarea::placeholder {
  color: white;
}
@media screen and (max-width: 850px) {
  #contact {
    padding: 120px 0 200px 0;
    background-attachment: scroll;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 6%;
  }
  .contact-text h3 {
    font-size: 2rem;
  }
  .contact-form-box {
    margin-top: 0px;
  }
}

/* Footer */
footer {
  background-color: var(--red);
  padding: 60px 0 150px 0;
  color: white;
  width: 100%;
  box-sizing: border-box;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.foot-menu ul {
  display: flex;
  justify-content: end;
  margin-top: 15px;
  gap: 80px;
}
.foot-menu li {
  list-style: none;
}
.foot-menu a {
  color: var(--yellow);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.foot-menu li:hover {
  color: var(--blue);
}
.foot-menu p {
  margin-top: 100px;
  font-size: 0.5rem;
  text-align: right;
}
@media screen and (max-width: 850px) {
  footer .logo-area {
    display: none;
  }
  .foot-menu p {
    text-align: center;
  }
  .foot-menu {
    width: 100%;
  }
  .foot-menu ul {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
  }
  .foot-menu li {
    text-align: center;
    font-size: 1.4rem;
  }
}
