:root {
  --primary: #facc15;
  --dark: #1e293b;
  --light: #e5e7eb;
  --grayText: rgba(225, 225, 225, 0.7);
}

* {
  box-sizing: border-box;
}
span {
  color: facc15;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #fff;
}

.btn {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: white;
  background-color: #1e293b;
  border: solid 1px #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, #facc15, #2563eb, #ec4899, #2563eb);
  background-size: 800% 800%;
  animation: animatedGradient 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  color: #1e293b;
  background-color: transparent;
  border: solid 1px transparent;
}

@keyframes animatedGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero section */
#hero nav {
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#hero nav img {
  height: 3rem;
}
#mainContent {
  display: flex;
  /* flex-wrap: wrap; */
  /* justify-content: center; */
  align-items: center;
  padding: 1.25rem;
  height: 100vh;
}
#hero #mainContent #left {
  width: 50%;
  /* padding: 1.25rem; */
}
#hero #mainContent #right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#mainContent #right h2 {
  /* border: 2px solid #000; */
  color: #fff;
  height: 138px;
  width: 580px;
  line-height: 69px;
  font-size: 56px;
  text-align: right;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}
#mainContent #right span {
  color: #facc15;
}
#mainContent #right p {
  width: 600px;
  color: rgba(225, 225, 225, 70.2%);
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 24px;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 40px;
}
#mainContent #right button {
  width: 250px;
  height: 57px;
  border-radius: 48px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px;
  margin: 0px 8px;
}
#mainContent #right #explore {
  background: #facc15;
  color: #1e293b;
}
#mainContent #right #contactBtn {
  border: 4px solid rgba(225, 225, 225, 70.2%);
  color: #fff;
}
/* Service section Editing */
.content {
  display: flex;
  flex-direction: column;
  /* flex-wrap: wrap; */
  justify-content: center;
  align-items: center;
  padding: 80px 113px;
  /* height: auto; */
}

.content h1 {
  font-size: 40px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 29px;
  color: #1e293b;
}

.content p {
  text-align: center;
  width: 600px;
  color: #4b5563;
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 29px;
}

.content #cardSection {
  display: flex;
  flex-wrap: wrap;
  gap: 67px;
}

#cardSection .card {
  width: 360px;
  height: 418px;
  /* border: 2px solid #1E293B; */
  border-radius: 20px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 5%);
  background: #fff;
  grid-area: 20px;
}

#cardSection .card img {
  height: 220px;
}

.content .card h3 {
  font-family: "poppins", "sans";
  font-size: 18px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 20px;
}

.content .card p {
  text-align: center;
  width: 320px;
  color: #6b7280;
  line-height: 160%;
}

.content .card button {
  background: #facc15;
  /* width: 141px;
    height: 35px; */
  border-radius: 48px;
  padding: 8px 23px;
  font-size: 14px;
  font-weight: bold;
  color: #1e293b;
}

/* why section */
#why h1 {
  color: #fff;
}

#why p {
  color: rgba(225, 225, 225, 70.2%);
}

#why #cardSection {
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 90%;
}

#why .card {
  height: 248px;
  width: 260px;
  background-color: #1e293b;
  border-radius: 16px;
  padding: 24px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#why .card h3 {
  color: #fff;
  text-align: center;
  font-size: 16px;
  width: 212px;
}

#why .card p {
  width: 220px;
  text-align: center;
  font-size: 14px;
}

#why .card img {
  width: 54px;
  height: 54px;
}

/* Team Section */

#team .teamContent {
  padding: 113px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.teamContent h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 36px;
  color: #1e293b;
}

.teamContent p {
  width: 560px;
  font-size: 16px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 160%;
  color: #4b5563;
  margin: 31px 0px;
}

.teamContent img {
  width: 548px;
}

/* Contact Section */
#contact {
  padding-top: 80px;
  display: flex;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

#contact h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 40px;
  color: #fff;
  line-height: 160%;
}

#contact p {
  width: 600px;
  font-size: 18px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 160%;
  color: rgba(225, 225, 225, 70.2%);
}
#contact form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  /* width: 300px; */
}
#contact form .contactInputs {
  /* padding: 1rem; */
  width: 400px;
  height: 50px;
  padding-left: 25px;
  border: none;
  outline: none;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #4b5563;
  border-radius: 50px;
}
#contact form .contactInputs::placeholder {
  color: #6b7280;
}

#contact form #text {
  padding-top: 12px;
  border-radius: 20px;
  height: 120px;
}

#contact form button {
  background: #facc15;
  width: 141px;
  height: 50px;
  border-radius: 48px;
  padding: 8px 23px;
  font-size: 14px;
  font-weight: bold;
  color: #1e293b;
}

/* Footer Section */
#footer #cta {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
}
#footer #cta h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 34px;
  color: #1e293b;
  margin-top: 50px;
  margin-bottom: 12px;
  line-height: 160%;
}
#footer #cta p {
  width: 300px;
  font-size: 12px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 160%;
  margin-bottom: 48px;
}
#footer #cta a {
  color: #fff;
  background: #1e293b;
  padding: 20px 32px;
  border-radius: 48px;
}

#footer .credits {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(225, 225, 225, 40%);
}

/* Responsive code */

/* Breakpoint: ≤ 1200px (small desktops / tablets) */
@media (max-width: 1200px) {
  #mainContent {
    flex-direction: column;
    height: auto;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  #mainContent #left,
  #mainContent #right {
    width: 100%;
  }

  #mainContent #right h2 {
    width: 100%;
    font-size: 42px;
    line-height: 56px;
    text-align: center;
    height: auto;
  }

  #mainContent #right p {
    width: 90%;
  }

  .content {
    padding: 60px 40px;
  }

  .content p,
  #contact p,
  .teamContent p {
    width: 100%;
  }

  #cardSection {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }

  #cardSection .card {
    width: 300px;
  }

  #why #cardSection {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  #why .card {
    width: 240px;
  }

  .teamContent img {
    width: 100%;
  }

  #contact form .contactInputs {
    width: 100%;
    max-width: 100%;
  }

  #footer #cta h2 {
    font-size: 28px;
    text-align: center;
  }
}

/* Breakpoint: ≤ 992px (tablet landscape and mobile) */
@media (max-width: 992px) {
  nav ul {
    flex-direction: row;
    gap: 0.75rem;
  }

  #mainContent #right h2 {
    font-size: 36px;
    line-height: 50px;
  }

  #cardSection .card {
    width: 90%;
    max-width: 300px;
  }

  .teamContent {
    padding: 80px 20px;
  }

  .teamContent p {
    font-size: 15px;
  }

  #contact h2 {
    font-size: 32px;
  }

  #contact form .contactInputs {
    max-width: 90%;
  }
}

/* Breakpoint: ≤ 768px (tablet portrait / large phones) */
@media (max-width: 430px) {
  /* Hero Section */
  #hero nav {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #hero nav img {
    height: 3rem;
  }
  nav > div,
  nav > a {
    display: none;
  }
  #mainContent {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
    height: auto;
  }

  #hero #mainContent #left,
  #hero #mainContent #right {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  #mainContent #right h2 {
    font-size: 24px;
    line-height: 1.4;
    height: auto;
    text-align: center;
  }

  #mainContent #right p {
    width: 100%;
    font-size: 14px;
    padding: 0 1rem;
  }

  #mainContent #right button {
    width: 100%;
    font-size: 16px;
    height: 48px;
    margin: 8px 0;
  }

  /* Card Sections (Services & Why) */
  #service {
    height: auto;
  }
  #cardSection {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  #cardSection .card {
    width: 90%;
    max-width: 320px;
    height: auto;
    padding: 1rem;
  }

  #cardSection .card p {
    width: 100%;
    font-size: 14px;
  }

  /* Team Section */
  .teamContent {
    padding: 2rem 1rem;
  }

  .teamContent p {
    width: 100%;
    font-size: 14px;
  }

  .teamContent img {
    width: 100%;
    max-width: 100%;
  }

  /* Contact Section */
  #contact {
    padding: 2rem 1rem;
  }

  #contact h2 {
    font-size: 22px;
  }

  #contact p {
    width: 100%;
    font-size: 14px;
  }

  #contact form {
    max-width: 750px;
  }

  #contact form .contactInputs {
    width: 100%;
    font-size: 14px;
    height: 44px;
    padding-left: 16px;
  }

  #contact form #text {
    height: 100px;
  }

  #contact form button {
    width: 100%;
    font-size: 16px;
    height: 44px;
  }

  /* Footer */
  #footer #cta h2 {
    font-size: 20px;
    text-align: center;
  }

  #footer #cta p {
    font-size: 12px;
    width: 100%;
    padding: 0 1rem;
  }

  #footer #cta a {
    padding: 12px 24px;
    font-size: 14px;
  }

  #footer .credits {
    font-size: 12px;
    text-align: center;
    padding: 1rem;
  }
}
