@import 'utilities.css';

:root {
    --primary: rgb(29, 221, 189);
    --bgDark: rgb(0, 0, 0);
    --white: rgb(250, 250, 250);
    --secondary: rgb(0, 59, 50);
    --bgLight: rgb(190, 181, 181);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

header {
    background-color: var(--bgDark);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 73% 94%, 0 100%);
}

header nav .left a {
    color: var(--white);
    text-decoration: none;
    margin-right: 2rem;
    text-transform: uppercase;
    transition: all .2s ease;
}

header nav .left a:hover {
    color: var(--primary);
}

header nav {
    padding: 2rem 0;
}

header nav .logo {
    margin-right: 3rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1152px;
    padding: 0 15px;
    margin: 0 auto;
}

.hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
    background-color: #445D48;
}

.hero .left img {
    width: 400px;
}

.hero .right {
    color: var(--white);
    margin-top: -7rem;
}

.hero .right h6 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero .right h1 {
    font-size: 4rem;
    font-weight: 100;
    line-height: 2.2;
    margin-bottom: 2rem;
}

.hero .right h1 span {
    color: var(--primary);
}

.hero .right p {
    line-height: 1.9;
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.items-centre {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-right {
    justify-content: right;
}

.btn {
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all .2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    margin-top: -15rem;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.flex-1 {
    flex: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

section {
    padding: 6rem;
}

section.about {
    background-color: #f7f2f2;
}

section.about h1 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

section.about h1 span {
    color: var(--primary);
}

section.about h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

section.about p {
    font-family: 'Lato', sans-serif;
    color: var(--secondary);
    line-height: 1.9rem;
    margin-bottom: 2rem;
}


.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  margin-right: 3rem;
}

.social-icons img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

p::after {
  content: "...";
}

section.services {
    background: #445D48;
}

.services-head {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 0.5rem;
}

.services-head + p {
    color: var(--white);
    font-family: 'Lato', sans-serif;
    margin-bottom: 1rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 400;
}



.card img {
    width: 50px;
    background: white;
}

section.services .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
}

section.services .card-grid .card {
    background: var(--white);
    padding: 3rem 2rem;
    position: relative;
    text-align: center;
    transition: all .2s ease;
}

section.services .card-grid .card img {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var();
}

section.services .card-grid .card h2 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

section.services .card-grid .card p {
    font-family: 'Lato', sans-serif;
    color: var(--seconday);
    line-height: 1.6;
}

section.services .card-grid .card:hover {
    background: var(--primary);
}

section.services .card-grid .card:hover h2 {
    color: var(--white);
}

section.services .card-grid .card:hover p {
    color: var(--white);
}



footer {
    background-color: #ffffff; /* grey */
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
    color: #000000; /* text color */
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    header nav .left a {
        margin-right: 1rem;
    }

    .hero .left img {
        width: 150px;
    }

    .hero .right {
        margin-top: -2rem;
    }

    .hero .right h6 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

  }

  section {
      padding: 1.5rem;
  }

  section.about .socials a {
      width: 20px;
      margin-right: 0.2rem;
  }

  section.about p {
      font-size: 0.9rem;
      line-height: 1.6;
  }

  section.services .card-grid {
      grid-template-columns: repeat(1, 1fr);
      row-gap: 1rem;
  }

  section.services .card-grid .card {
      padding: 1rem;
  }

  section.services .card-grid .card img {
      width: 20px;
      top: -0.6rem;
  }


/* Original CSS styles */

/* Additions for media queries */

/* Media query for screens smaller than 768px (e.g., tablets) */
@media only screen and (max-width: 767px) {
  /* Adjust styles for the header navigation */
  header nav .left a {
      margin-right: 1rem;
  }

  /* Adjust styles for the hero section */
  .hero .left img {
      width: 100%;
      margin-bottom: 2rem; /* Add space below the image */
  }

  .hero .right {
      margin-top: 0; /* Remove margin from the top */
      text-align: center; /* Center align text */
  }

  /* Adjust styles for the about section */
  section.about .container {
      flex-direction: column;
  }

  section.about .left,
  section.about .right {
      width: 100%;
      text-align: center; /* Center align text */
  }

  section.about h1,
  section.about h3,
  section.about p {
      font-size: 1.2rem; /* Reduce font size for better readability */
  }

  section.about .socials img {
      margin-right: 1rem;
  }

  /* Adjust styles for the services section */
  section.services .container {
      padding: 3rem 1rem; /* Reduce padding for better spacing */
  }

  /* Adjust card grid layout for better responsiveness */
  section.services .card-grid {
      grid-template-columns: repeat(1, 1fr);
  }
}

/* Media query for screens smaller than 500px (e.g., mobile phones) */
@media only screen and (max-width: 499px) {
  /* Further reduce font size for better readability */
  section.about h1,
  section.about h3,
  section.about p {
      font-size: 1rem;
  }

  /* Adjust image size for better responsiveness */
  .about .left img {
      height: auto;
      max-width: 100%;
  }

  /* Reduce margin between social icons */
  .about .socials a {
      margin-right: 0.3rem;
  }

  /* Adjust card grid layout for better responsiveness */
  .card-grid {
      grid-template-columns: repeat(1, 1fr);
  }
}
