@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Karla', sans-serif;
}
:root {
  --primary-color: hsl(256, 26%, 20%);
  --secondary-color: hsl(216, 30%, 68%);
  --bg-color: hsl(270, 9%, 17%);
  --gray-violet: hsl(273, 4%, 51%);
  --light-gray: hsl(0, 0%, 98%);

  --heading-font: 'DM Serif Display', serif;
  --body-font: 'Karla', sans-serif;
}
html {
  font-size: 62.5%;
}
body {
  font-family: var(--body-font);
  font-size: 1.6rem;
}
img {
  max-width: 100%;
}
ul {
  list-style-type: none;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
h1 {
  font-size: 6.4rem;
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 6rem;
}
h2 {
  font-size: 4.8rem;
  font-family: var(--heading-font);
  font-weight: 400;
  position: relative;
  z-index: 9;
}
h3 {
  font-size: 2.4rem;
  font-family: var(--heading-font);
}
a {
  font-size: 1.6rem;
  text-decoration: none;
}
p {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2.6rem;
}

.primary-btn,
.secondary-btn {
  display: inline-block;
  padding: 1rem 3rem;
  border: 2px solid var(--bg-color);
  color: var(--bg-color);
  font-weight: 700;
  position: relative;
  z-index: 99;
}
.secondary-btn {
  color: var(--light-gray);
  border: 2px solid var(--light-gray);
}
.primary-btn:hover,
.secondary-btn:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.hamburger {
  display: none;
}

/* header style */
header {
  padding: 3rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--light-gray);
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav ul {
  display: flex;
  gap: 2rem;
}
nav a {
  text-transform: uppercase;
  color: var(--gray-violet);
  font-weight: bold;
}
/* hero style */
.hero {
  background-color: var(--primary-color);
  height: 600px;
  color: var(--light-gray);
  position: relative;
  margin-bottom: 15rem;
}
.hero-pattern-left {
  position: absolute;
  top: 70%;
  left: 0;
}
.hero-pattern-right {
  position: absolute;
  top: 0;
  right: 0;
}
.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 5;
}

.hero-wrapper > * {
  flex-basis: 100%;
}

.hero-content h1 {
  max-width: 450px;
  position: relative;
}

.hero-content p {
  margin: 3rem 0;
}
.hero-content h1::before {
  content: '';
  width: 130px;
  height: 2px;
  background-color: var(--gray-violet);
  position: absolute;
  top: -50%;
}
.hero-img img {
  transform: translateY(12rem);
}
.hero-pattern-mobile-left {
  display: none;
}
.hero-pattern-mobile-right {
  display: none;
}

/* services style */
.service {
  padding: 20rem 0;
}
.service-wrapper {
  margin-top: 7rem;
  /* display: flex; */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /* grid-template-columns: repeat(3, 300px); */
  gap: 3rem;
}
.service-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.footer {
  background-color: var(--light-gray);
  position: relative;
  padding: 4rem 0;
}
.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.footer-bottom {
  position: relative;
  padding-top: 3rem;
  z-index: 1;
  display: grid;
  row-gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.footer-bottom-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-bottom-col h4 {
  color: var(--gray-violet);
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.footer-bottom-col a {
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-family: var(--body-font);
}

@media (max-width: 796px) {
  .hero-content h1 {
    font-size: 5rem;
  }
  .service {
    padding: 2rem 0;
  }
  .service-wrapper {
    position: relative;
    z-index: 2;
  }
}

/* media queries for Mobile*/
@media (max-width: 600px) {
  /* header style */
  /* .service-wrapper {
    grid-template-columns: repeat(1, 1fr);
  } */

  .container {
    padding: 0;
  }
  header {
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--light-gray);
  }
  nav {
    display: none;
  }
  .hamburger {
    display: inline-block;
  }

  /* hero style */
  .hero-content h1::before {
    width: 0;
  }
  .hero-content {
    text-align: center;
  }
  .hero-wrapper {
    flex-direction: column-reverse;
    gap: 0;
  }
  .hero-content {
    padding: 6rem 4rem;
    position: relative;
  }
  .hero-content h1 {
    max-width: 100%;
    font-size: 5rem;
    position: relative;
    z-index: 9;
  }
  .hero-img img {
    transform: translateY(0);
    object-fit: cover;
  }
  .hero {
    height: auto;
  }
  .hero-pattern-left {
    /* display: none; */
  }
  .hero-pattern-right {
    /* display: none; */
  }
  .hero-pattern-mobile-left {
    position: absolute;
    top: 0%;
    left: 0;
  }
  .hero-pattern-mobile-right {
    position: absolute;
    top: 70%;
    right: 0;
  }
  /* services style */
  .service {
    padding: 4rem 1rem;
  }
  .service-box {
    align-items: center;
    text-align: center;
  }

  /* footer style */
  .footer {
    padding: 4rem 2rem;
  }
  .footer-bottom {
    text-align: center;
  }

  .service-wrapper {
    /* margin-top: 7rem; */
    /* display: flex; */
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    /* grid-template-columns: repeat(2, 1fr); */
    /* gap: 3rem; */
  }
}

/* sample for mini mobile device */
/* @media (max-width: 380px) {
  .service-wrapper {
    grid-template-columns: repeat(9, 1fr);
  }
} */
