@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: "";
  --light-blue: #f4f7f9;
  --light-purple: #8576ff;
  --light-black: #505050;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
}

header {
  background-color: var(--light-blue);
}

/* GLOBAL */
.heading h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 10px;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.underline {
  display: block;
  width: 120px;
  margin: 0 auto;
}

.btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  background-color: var(--light-purple);
  color: white;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 1px rgba(0, 0, 0, 0.1);
}

/* END GLOBAL */

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 90%;
  height: 100%;
  position: relative;
}

.logo h2 {
  color: var(--light-black);
}

.menu-items {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu ul {
  list-style-type: none;
  gap: 20px;
}

.nav-link {
  display: inline-block;
}

.nav-link a {
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: black;
  padding: 30px 10px;
  font-weight: 500;
  transition: 0.3s ease-in-out;
}

.nav-link a:hover {
  color: var(--light-purple);
}

/* Toggle Button */

.toggle {
  display: none;
  position: absolute;
  right: 0;
}

.menu-icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  position: relative;
}

.menu-icon span {
  background: var(--light-black);
  width: 100%;
  height: 2px;
  border-radius: 4px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s, width 0.5s, opacity 0.5s;
}

.menu-icon .top {
  transform: translate(-50%, -8px);
}

.menu-icon .end {
  transform: translate(-50%, 6px);
}

.active .top {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.active .end {
  transform: translate(-50%, -50%) rotate(45deg);
}

.active .middle {
  width: 0;
  opacity: 0;
}

.hero {
  height: 600px;
  background-color: var(--light-blue);
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.hero .image img {
  width: 100%;
}

.col {
  flex: 1;
}

.hero-title {
  font-size: 34px;
  margin-bottom: 28px;
  line-height: 1.3;
}

.hero-tagline {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

#services {
  padding: 60px 0;
}

.service-categories {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding-top: 50px;
}

.service {
  width: 330px;
  padding: 60px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px 0px rgba(0, 0, 0, 0.1);
}

.service img {
  margin-bottom: 30px;
}

.service h4 {
  margin-bottom: 20px;
  color: #292929;
}

.service p {
  font-size: 16px;
  color: #505050;
}

#projects {
  padding: 60px 0;
  background: var(--light-blue);
}

.project-grid {
  padding: 60px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px 40px;
}

.project {
  /* padding: 30px 20px; */
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px -4px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease-in-out;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px 4px rgba(0, 0, 0, 0.1);
}

.image-container img {
  display: block;
  width: 100%;
  transition: 0.3s ease-in-out;
}

.image-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.image-container .overlay {
  visibility: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
  opacity: 0;
}

.image-container:hover > .overlay {
  visibility: visible;
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

/* .image-container:hover > .overlay a {
  visibility: visible;
} */

.image-container:hover > img {
  transform: scale(1.2);
}

.overlay i {
  font-size: 20px;
  color: var(--light-purple);
}

.overlay a {
  background-color: red;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.8);
  transition: 0.2s ease;
}

.overlay a:hover {
  transform: scale(1.1);
}

.project h4,
.project p {
  padding-left: 20px;
}

.project h4 {
  font-size: 15px;
  font-weight: 500;
  margin-top: 20px;
}

.project p {
  font-size: 13px;
  font-weight: 400;
  color: var(--light-black);
  margin-top: 10px;
  margin-bottom: 20px;
}

/* ABOUT US */

#about {
  padding: 60px 0;
}

.row {
  display: flex;
  padding: 30px 0;
  align-items: center;
  gap: 40px;
}

.row .col {
  flex: 1;
}

.about-text h3 {
  margin-bottom: 30px;
  font-size: 24px;
}
.about-text p {
  margin-bottom: 38px;
  font-size: 18px;
  line-height: 1.8;
}

.about-image {
  width: 100%;
}

#contact {
  padding-top: 20px;
}

.contact-image {
  width: 100%;
}

.contact-image img {
  width: 100%;
}
.contact-text h3 {
  margin-bottom: 30px;
  font-size: 24px;
}

.contact-text p {
  margin-bottom: 38px;
  font-size: 18px;
  line-height: 1.8;
}

.contact-card {
  position: relative;
}

.contact-card span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.contact-card p {
  font-size: 20px;
  font-weight: 600;
}

.contact-card img {
  width: 54px;
  position: absolute;
}

.contact-card a {
  text-decoration: none;
  color: inherit;
}

.contact-card div {
  margin-left: 64px;
}

.email img {
  width: 50px;
}

#footer {
  background-color: var(--light-blue);
}

.footer-row {
  padding: 60px 0;
}

.footer-col-2 {
  flex: 2;
}

.footer-col-1 h2 {
  margin-bottom: 8px;
}

.quick-menu ul {
  list-style-type: none;
  display: flex;
  gap: 20px;
  justify-content: end;
}

.quick-menu ul li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--light-black);
}

.copyright {
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light-black);
}

@media only screen and (max-width: 600px) {
  .container {
    width: 92%;
  }

  /* Navbar css */

  .toggle {
    display: block;
    padding-right: 30px;
  }

  .menu-container {
    padding: 0 30px;
    width: 100%;
  }

  .menu-items {
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 10px 14px -6px rgba(0, 0, 0, 0.1);
  }
  .active .menu-items {
    visibility: visible;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    align-items: start;
    width: 100%;
    background-color: var(--light-blue);
    border-top: 1px solid var(--light-purple);
    padding: 30px;
    padding-top: 10px;
    overflow: hidden;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.2s ease-in;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
  }

  .nav-link a {
    display: block;
    padding: 18px 0;
  }

  /* End Navbar css */

  .hero {
    height: auto;
  }

  /* .hero .image img {
    z-index: -99;
  } */

  .hero .container {
    flex-direction: column-reverse;
    padding: 20px 0 50px 0;
    gap: 30px;
  }

  .hero-title {
    font-size: 28px;
  }

  .service-categories {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .project h4,
  .project p {
    padding-left: 10px;
  }

  .project h4 {
    font-size: 14px;
  }

  .project p {
    font-size: 11px;
  }

  #about {
    height: auto;
  }

  .about-row {
    flex-direction: column-reverse;
    /* align-items: center; */
  }

  .about-image {
    width: 80%;
  }

  #about .image {
    display: flex;
    justify-content: center;
  }

  .contact-row {
    flex-direction: column;
  }

  .contact-image img {
    width: 80%;
  }
  .contact-image {
    display: flex;
    justify-content: center;
  }
  .contact-card p {
    font-size: 1rem;
  }

  .quick-menu ul {
    flex-direction: column;
  }

  .quick-menu ul li {
    text-align: right;
  }

  .copyright p {
    font-size: 14px;
    text-align: center;
  }
}
