* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-primary);
  text-decoration: none;

}
:root {
  --green: #28a745;
  --green-dark: #218838;
  --black: #292f3a;
  --gray-light: #f7f7f8;
  --gray-dark: #555;
  --text-primary: #292f3a;


  /* gradients colors */
  --gd-green: linear-gradient(180deg, rgba(40, 167, 69, 0.95), rgba(21, 120, 60, 0.95));
}
.bg_primary{
 background-color: var(--green);
}

body {
  font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================header styles============================ */
header {
  /* background-color: #0f2a13d9; */
  height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 60%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  position: relative;
  transition: all .18s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  right: 0;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all .18s ease;
}

.hamburger::before {
  top: -6px
}

.hamburger::after {
  top: 6px
}

header.nav-open .hamburger {
  background: transparent
}

header.nav-open .hamburger::before {
  transform: rotate(45deg);
  top: 0
}

header.nav-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0
}
header img {
  height: 65%;
  transition: transform .18s ease;
  margin-left: 70px;
}

header img:hover {
  transform: scale(1.04);
}

nav a {
  /* color: white; */
  margin-left: 3rem;
  text-decoration: none;
  font-weight: 600;
  transition: color .18s ease, transform .12s ease;
  padding: .35rem .4rem;
  border-radius: 6px;
}

nav a:hover {
  text-decoration: none;
  color: #28a745;
  /* transform: translateY(-20px); */
  font-size: 18px;
}

nav a:active {
  transform: translateY(-1px)
}

.hero {
  /* background: linear-gradient(180deg, rgba(40, 167, 69, 0.95), rgba(21, 120, 60, 0.95)); */
  color: white;
  background-image: url(./images/background.png);
  background-size: cover;
  background-position: right;
  height: calc(100vh);
}

.section {
  padding: 2rem 1rem;
  /* max-width: 1000px; */
  margin: auto;
}

.portfolio {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 50px;
  font-weight: 900;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 1rem;
}

.portfolio-grid img {
  width: 100%;
  /* height: 220px; */
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 6px 18px rgba(8, 12, 20, 0.06);
}

.portfolio-grid img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(8, 12, 20, 0.12);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
}

.contact-form button {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color .16s ease, transform .12s ease, box-shadow .12s ease;
}

.contact-form button:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 56, 56, 0.08);
}

.contact-form button:focus,
nav a:focus {
  outline: 3px solid rgba(40, 167, 69, 0.18);
  outline-offset: 2px;
}

#map {
  height: 300px;
  width: 100%;
  margin-top: 1rem;
}


@media (max-width: 769px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

  }

  nav a {
    display: block;
    margin: 10px 0;
  }
  header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: .75rem;
  }

  header img {
    height: 60px;
    width: auto;
    height: 48px;
    margin: 0 0 .1rem 0;
    padding: 0;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    width: 100%;
    display: none;
    flex-direction: column;
  }

  nav a {
    margin-left: 0;
    color: white;
    display: block;
    padding: .6rem .75rem;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  header.nav-open nav {
    display: flex;
    position: absolute;
    background-color: #0f172ad9;
    width: 100%;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: flex-start;
  }

  nav a:hover {
    transform: none;
    color: #1f8f3f;
    /* font-size: 1rem; */
  }
  .hero{
    background-image: url(./images/bg-phone.png);
  }

  /* hero text  */
  
  .hero-text {
    width: 80%!important;
  }
  .team img {
    width: 150px;
    height: 150px;

  }
}

@media (max-width: 480px) {
  

  .hero h1 {
    font-size: 5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 1rem;
  }

  .portfolio {
    font-size: 3rem;
    text-align: center;
    font-weight: bold;
  }

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

  .portfolio-grid img {
    height: 160px
  }

 /* contacts */

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 1rem;
    /* height: 10px; */
    margin-top: 1rem;
  }
  .contact-form {
    margin-top:32rem;
  }
  .contact-form button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
  .map {
    height: 1px;
    width: 20%;
    margin-top: 1rem;
    max-width: 100%
  }
}

@media (max-width: 360px) {
  .portfolio img {
    max-width: 100%;
    width: 100%;
  }

  .hero {
    padding: 4.5rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* hero text styles */
.hero-text {
  margin-left: 70px;
  height: calc(100vh - 70px);
  width: 50%;
  /* background: #000; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* line-height: 80px; */
  align-items: flex-start;
}
.hero-text span {
  font-size: 4.25rem;
  opacity: .95;
  margin-bottom: -1.5rem;
}
.hero-text h1 {
  font-size: 8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}
.hero-text p {
  font-size: 1.5rem;
  margin-top: 1rem;
  max-width: 600px;
}
.hero-text a {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  background: var(--gd-green);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color .18s ease, transform .12s ease, box-shadow .12s ease;

}

 /* about us */
.our {
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.our1 {
  /* text-align: center; */
  font-size: 20px;
  font-weight: 300;
  margin-top: 5rem;
  margin-bottom: 1rem;
}
@media (max-width: 652px){
  .team {
    flex-direction: column;
    align-items: center;
  }
.our1 {
    font-size: 16px;
    margin-top: 0.5rem;
  }
}
.team {
  display: flex;
  justify-content: space-around;
  /* gap: 4rem; */
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 3rem;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* margin: auto; */
  box-shadow: 0 6px 18px rgba(8, 12, 20, 0.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.team img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(8, 12, 20, 0.12);
}

/* <-- This closes the @media (max-width: 652px) block */

/* cocontact-container css */

.contact-container {
  display: flex;
  justify-content: space-around;
  /* flex-direction: column; */
  /* max-width: 600px; */
  margin: auto;
}