:root {
  --background-color: #f9fafb;
  --secondary: #ed7010;
  --primary: #1f2937;
  --text: #111827;
  --muted: #d1d5db;
}

* {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  letter-spacing: 0.4px;
}

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  text-align: center;
  color: var(--background-color);
  font-family: sans-serif;
}

.hero img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}

.hero .overlay {
  width: 100%;
  height: 100vh;
  background-color: rgba(31, 41, 55, 0.75);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hero p {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 32px;
}

.hero a {
  text-decoration: none;
}
.hero a > button {
  padding: 3px 6px;
  background: var(--secondary);
  border-radius: 17px;
  width: 180px;
  height: 60px;
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  color: var(--background-color);
  margin-top: 14px;
}

.hero a > button:hover {
  background-color: transparent;
  border: 2px solid var(--secondary);
  transition: ease-in-out 300ms;
}

.projects {
  width: 100%;
  text-align: center;
}

.title {
  margin: 1.5rem 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 24px;
  text-align: center;
}

.cardSection {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto;
  align-items: center;
  justify-content: center;
  gap: 49px;
  height: 740px;
  margin: 0;
  padding: 0;
  row-gap: 0;
}

.cards {
  width: 360px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.cards:hover {
  transform: translateY(-12px);
}

.cards img {
  width: 360px;
  height: 170px;
  margin-bottom: 10.77px;
  margin-top: -30px;
}

.cards .cardTitle {
  font-family: "Poppins", sans-serif;
  font-weight: 500; /*medium weight*/
  font-style: normal;
  font-size: 16px;
  letter-spacing: 0.4px;
  line-height: auto;
}

.cards .about {
  width: 330px;
  letter-spacing: 0.4px;
  color: #6b7280;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: auto;
  margin: 10.77px 15px 42.18px 15px;
  text-align: center;
}
#workBtn {
  padding: 12px 18px;
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 18px;
  color: #111827;
  background: #ed7010;
}
#workBtn:hover {
  cursor: pointer;
}

.contact {
  width: 100%;
  height: auto;
  /* text-align: center; */
}

.contact main {
  display: flex;
  width: 100%;
  justify-content: space-around;
}
.left {
  width: 625px;
}

.left .info {
  width: 609px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: relative;

  flex-wrap: wrap;
}

.info {
  margin-top: 27px;
}

.info > h2 {
  color: var(--text);
  position: absolute;
  left: 0;
  width: 191px;
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.info .contactPara {
  color: var(--secondary);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  text-align: left;
  width: 400px;
  align-content: start;
  margin-left: 157px;
  padding-left: 10px;
}

.contactPara > a {
  text-decoration: none;
  color: var(--secondary);
  cursor: grab;
}

iframe {
  height: 406px;
  width: 486px;
}

footer {
  height: 300px;
  background: var(--muted);
  padding: 3rem;
  position: relative;
  text-align: center;
}

#logo {
  height: 128px;
  width: 128px;
  left: 47%;
  top: 0;
}

.companyDetails > h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 40px;
  color: var(--secondary);
}
.companyDetails > p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #1f2937;
}

.copyrights {
  position: absolute;
  bottom: 11%;
  left: 40%;
  margin: 15px;
}

.copyrights > p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  margin-top: 1px;
  text-align: center;
}

.copyrights a {
  text-decoration: none;
  color: var(--secondary);
}

/* =====================
   SAFE RESPONSIVE FIXES
===================== */

/* Tablets & below */
@media (max-width: 900px) {
  /* HERO */
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 22px;
  }

  /* PROJECT CARDS */
  .cardSection {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    height: auto;
    gap: 32px;
    padding: 20px 0;
  }

  .cards,
  .cards img {
    width: 100%;
    max-width: 360px;
  }

  /* CONTACT */
  .contact main {
    flex-direction: column;
    align-items: center;
  }

  .left,
  .left .info {
    width: 90%;
  }

  iframe {
    width: 90%;
    height: 320px;
  }

  .copyrights {
    left: 35%;
  }
}

/* Mobile only */
@media (max-width: 600px) {
  /* HERO */
  .hero h1 {
    font-size: 32px;
    padding: 0 12px;
  }

  .hero p {
    font-size: 18px;
    padding: 0 16px;
  }

  .hero a > button {
    font-size: 20px;
    width: 150px;
    height: 48px;
  }

  /* PROJECTS */
  .cardSection {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
  }

  .cards img {
    height: 180px;
  }

  .cards .about {
    width: 90%;
  }

  /* CONTACT INFO */
  .info {
    position: static;
  }

  .info > h2 {
    position: static;
    margin-bottom: 8px;
  }

  .info .contactPara {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    font-size: 16px;
  }

  /* FOOTER */
  footer {
    height: auto;
  }

  .copyrights {
    position: static;
    margin-top: 16px;
  }
}
