*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  width: 5px;
}

body::-webkit-scrollbar-track {
  background-color: #1f1f1f;
}

body::-webkit-scrollbar-thumb {
  background-color: rgb(182, 113, 246);
}

body {
  font-family: "Montserrat";
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

.container {
  width: 80%;
  max-width: 1140px;
  margin: 0 auto;
}

.btn {
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-primary {
  background-color: blueviolet;
  color: #fff;
  border: 2px solid blueviolet;
  display: inline-block;
}

.btn-primary:hover {
  background-color: transparent;
  color: blueviolet;
  transition: all 0.5s ease;
}

.btn-secondary {
  border: 2px solid #fff;
  /* display: inline-block; */
  background: transparent;
  color: white;
}

.text-underline {
  text-decoration: underline;
}

.text-primary {
  color: blueviolet;
}

p {
  opacity: 0.8;
}

/* Header */
header {
  background-color: rgb(138, 43, 226);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
}

header.scroll {
  background-color: rgb(138, 43, 226, 0.7);
  backdrop-filter: blur(2rem);
}

nav {
  display: flex;
  height: 60px;
  justify-content: space-between;
  align-items: center;
}

.nav-brands {
  font-size: 1.7rem;
}

.nav-brands span {
  font-weight: 600;
}

.nav-links {
  display: flex;
}

.nav-links li:not(:last-child) {
  margin-right: 30px;
}

.nav-links li a {
  color: #fff;
}

header nav .burger {
  cursor: pointer;
  transition: 0.3s ease-in-out;
  display: none;
  z-index: 999;
}

header nav .burger > div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
  margin: 4px 0;
}

/* Landing Section */
section.landing {
  padding: 40px 0;
  margin-top: 60px;
  position: relative;
}

.landing-grid,
.why-us-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  grid-column-gap: 3rem;
  grid-row-gap: 4rem;
}

.landing-img img {
  width: 100%;
  margin-top: 20px;
}

.landing-content h1 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-top: -20px;
  margin-bottom: 20px;
}

.landing-content p {
  margin-bottom: 30px;
}

/* Company Section */
.list-company {
  text-align: center;
  padding: 40px 0;
  background-color: #f3f3f3;
}

.list-company h3 {
  margin-bottom: 3rem;
  font-size: 20px;
  color: #888;
}

.companies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.companies img {
  margin: 0 auto;
}

.companies img:hover {
  transform: translateY(-5px);
  transition: transform 0.8s ease;
}

/* Why Us Section */
.border-bottom::after {
  content: "";
  display: block;
  height: 3px;
  width: 30px;
  margin: 3px auto;
  background-color: blueviolet;
}

.why-us {
  padding: 100px 0;
  opacity: 0;
}

.order4 {
  order: 1;
}

.why-us h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.why-us-info h3 {
  font-size: 1.8rem;
  width: 70%;
  margin-bottom: 1.5rem;
}

.why-us-info p {
  line-height: 1.8;
}

.why-us-img:hover {
  animation: rotate 4s infinite;
}

.why-us-img img {
  width: 100%;
}

/* Service Section */
.service {
  padding: 80px 0;
  background-color: #f4f4f4;
}

.service h2,
.portfolio h2,
.contact h2 {
  margin-bottom: 50px;
  font-size: 2.3rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-grid .portfolio-img {
  height: 600px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 4px;
}

.portfolio-case {
  cursor: pointer;
}

.portfolio-grid .portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.portfolio-grid .portfolio-desc h3 {
  font-size: 1.3rem;
}

.portfolio-grid .portfolio-case:hover .portfolio-img img {
  transform: scale(1);
}

.portfolio-grid .portfolio-case:nth-child(even) {
  transform: translateY(-80px);
}

/* Contact Section */
#footer-contact {
  background-color: blueviolet;
  color: white;
}

.contact {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact h2 {
  margin-bottom: 10px;
}

.contact p {
  margin-bottom: 30px;
}

.footer {
  padding: 20px 0;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer .social-media a {
  width: 24px;
  height: 24px;
}

.footer .social-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer .social-media a {
  margin-right: 20px;
}

.footer .social-media a:last-child {
  margin-right: 0;
}
.footer .footer-left p {
  opacity: 0.5;
}

@media (max-width: 990px) {
  html {
    font-size: 90%;
  }

  .landing-content h1 {
    font-size: 2.2rem;
  }

  header.active {
    height: 100vh;
    transition: all 0.5s ease;
  }

  header nav .burger {
    display: block;
  }

  .active .line-one {
    transform: rotate(-45deg) translate(-5px, 5px);
  }

  .active .line-two {
    opacity: 0;
  }

  header.active ul.nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    align-items: center;
    animation: fade 1s forwards;
  }

  header.active ul.nav-links li {
    margin: 20px 0;
  }

  .active .line-three {
    transform: rotate(45deg) translate(-5px, -5px);
  }

  ul.nav-links {
    display: none;
  }

  .landing-grid,
  .why-us-content,
  .services {
    grid-template-columns: 1fr;
  }

  .landing-content {
    order: 1;
  }

  .order1 {
    order: 1;
  }

  .order2 {
    order: 2;
  }

  .order3 {
    order: 3;
  }

  .order4 {
    order: 4;
  }

  .landing-content h1 {
    font-size: 2.2rem;
  }

  .list-company {
    margin-top: 40px;
  }

  .companies {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-info h3 {
    width: 100%;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid .portfolio-case:nth-child(even) {
    transform: translateY(0);
  }
}

/* Keyframes */
@keyframes fadeDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    height: 100vh;
    opacity: 1;
  }
}

@keyframes stretch {
  from {
    height: 60px;
  }

  to {
    height: 100vh;
  }
}

@keyframes back {
  from {
    height: 100vh;
  }

  to {
    height: 60px;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(1deg);
  }

  50% {
    transform: rotate(0);
  }

  75% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0);
  }
}
