@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #fdfdfd;
  --text-color: #1f1f1f;
  --main-color: #754ef9;
  --white-color: white;
  --shadow-color: rgba(0, 0, 0, 0.361);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  min-height: 100vh;
  padding: 12rem 7% 2rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  background: var(--main-color);
  border: 0.2rem solid transparent;
  border-radius: 0.6rem;
  box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
  font-size: 1.6rem;
  color: var(--white-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
  border-color: var(--main-color);
}

.heading {
  font-size: 4.5rem;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 5rem;
}
.heading span {
  color: var(--main-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 7%;
  display: flex;
  align-items: center;
  z-index: 100;
}
.header .logo {
  font-size: 2.5rem;
  color: var(--main-color);
  display: flex;
  font-weight: 500;
  cursor: default;
  margin-right: auto;
}
.header .logo h1{
  font-size: 3rem;
  color: var(--main-color);
}
.header .logo span {
  color: lightblue;
  padding-left: 1rem;
  font-size: 3rem;
}
.header #navbar a {
  position: relative;
  font-size: 1.7rem;
  color: var(--text-color);
  font-weight: 500;
  margin-right: 3.5rem;
}
.header #navbar a:hover {
  transform: scale(90%);
  color: var(--text-color);
}
.header #navbar a.active::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 0.2rem;
  background: var(--text-color);
}
.header #darkMode {
  font-size: 3rem;
  margin-right: 2rem;
  color: var(--white-color);
  cursor: pointer;
}
.header #menu-icon {
  font-size: 3.5rem;
  color: var(--text-color);
  display: none;
}

.sticky {
  background: var(--bg-color);
  box-shadow: 0 0.1rem 1rem var(--shadow-color);
}
.header.sticky #darkMode ::before {
  color:var(--text-color);
  opacity: .9;
}
.sticky #navbar a {
  color: var(--text-color);
}
.sticky #navbar a.active {
  color: var(--main-color);
}
.sticky #navbar a.active::before {
  background: var(--main-color);
}

#home {
  display: flex;
  align-items: center;
}
#home .home-content {
  max-width: 60rem;
}
#home .home-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.5;
}
#home .home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--main-color);
}
#home .home-content p {
  font-size: 1.6rem;
}
#home .home-content .social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
  font-size: 1.7rem;
  color: var(--main-color);
  margin: 2.5rem 1.5rem 3rem 0;
  transition: 0.5s ease;
}
#home .home-content .social-media a:hover {
  background: var(--main-color);
  color: var(--white-color);
}


#home .home-img img {
  margin-left: 10vw;
  height: 100%;
  width: 30vw;
}


#about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12rem;
  padding-top: 10rem;
}
#about .about-img img {
  width: 30vw;
}
#about .about-content h2 {
  text-align: left;
  line-height: 1.5;
}
#about .about-content h3 {
  font-size: 2rem;
}
#about .about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

#services {
  min-height: auto;
  padding-bottom: 3rem;
  padding-top: 10rem;
}
#services .services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5rem;
}
#services .services-container .services-box {
  flex: 1 1 30rem;
  background-color: var(--bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
  text-align: center;
  border-top: 0.6rem solid var(--main-color);
  border-bottom: 0.6rem solid var(--main-color);
  transition: 0.5s ease;
}
#services .services-container .services-box:hover {
  box-shadow: 0 0.1rem 2rem var(--shadow-color);
  transform: scale(1.02);
}
#services .services-container .services-box:hover h3 {
  color: var(--main-color);
}
#services .services-container .services-box i {
  font-size: 5rem;
  color: var(--main-color);
}
#services .services-container .services-box h3 {
  font-size: 3rem;
  transition: 0.5s ease;
}
#services .services-container .services-box p {
  font-size: 1.5rem;
  margin: 1rem 0 3rem;
}

#contact form {
  max-width: 70rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 1rem;
}
#contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
#contact form .input-box input {
  width: 48%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 1rem;
  margin: 1rem 0;
  box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
}
#contact form .input-box input::-webkit-outer-spin-button, #contact form .input-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
#contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 1rem;
  margin: 1rem 0;
  box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
  resize: none;
}
#contact form .btn {
  margin-top: 2.5rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 7%;
  background: var(--main-color);
}
footer .footer-text p {
  font-size: 2rem;
  color: var(--white-color);
}
footer .footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.1rem;
  border-radius: 5rem;
  outline: 0.2rem solid transparent;
  transition: 0.5s ease;
}
footer .footer-iconTop a:hover {
  outline-color: var(--white-color);
}
footer .footer-iconTop a i {
  font-size: 3rem;
  color: cyan;
}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
 
}
@media (max-width: 1024px) {
  .header {
    padding: 2rem 3%;
  }

  section {
        padding: 10rem 3% 2rem;
  }
 
}
@media (max-width: 990px) {
  #navbar a:nth-child(1),
  #navbar a:nth-child(2) {
    color: var(--main-color);
  }
  #navbar a.active::before {
    background: var(--main-color);
    opacity: 0.7;
  }
  #home .home-content {
    max-width: 50rem;
    margin-top: 120px;
  }
  #home {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0 3% 2rem;
    justify-content: center;
    text-align: center;
  }
  .home-img{
    display: none;
  }
  .services {
    padding-bottom: 7rem;
  }
  .contact {
    min-height: auto;
  }
  .footer {
    padding: 1rem 5%;
  }
}
@media (max-width: 768px) {
  #menu-icon {
    display: block !important;
  }
  #darkMode {
    position: initial;
    right: 10rem;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.1rem;
  }
  #navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.217);
    display: none;
  }
  #navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }
  #navbar.showNav {
    display: block;
  }
  #navbar a:nth-child(1),
  #navbar a:nth-child(2),
  #navbar a:nth-child(3),
  #navbar a:nth-child(4) {
    color: var(--text-color);
  }
  #navbar a.active {
    color: var(--main-color);
  }
  #navbar a::before {
    display: none;
  }

  #home .home-content h3 {
    font-size: 2.6rem;
  }
  #home .home-content h1 {
    font-size: 5rem;
  }
  #home .home-content .social-media a {
    margin: 2.5rem 0.75rem 3rem;
  }
 
  #about {
    flex-direction: column-reverse;
    text-align: center;
  }
  #about .about-content h2 {
    text-align: center;
  }
  #about .about-img img {
    width: 70vw;
    margin-top: -2rem;
  }
  #services h2 {
    margin-bottom: 4rem;
  }
}

@media (max-width: 580px) {
 
  footer .footer-text p {
    font-size: 1.5rem;
    color: var(--white-color);
  }
}

@media (max-width: 450px) {
  #home {
    padding: 0 3% 0rem;
  }
  #home .home-content h1{
    font-size: 4rem;
  }
  #home .home-content {
    padding: 12rem 7% 2rem;
  }

  #contact form .input-box input {
    width: 100vw;
  }
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  footer a {
    margin-top: 3vw;
    margin-left: 40vw;
  }
}
    @media (max-width: 367px) {
      #home .home-content h3{
        font-size: 2.5rem;
      }
      #home .home-content h1{
        font-size: 3.5rem;
      }
    }
    @media (max-width: 321px) {
      #home .home-content h3{
        font-size: 2rem;
      }
      #home .home-content h1{
        font-size: 3rem;
        
      }
      #home .home-content p{
        font-size: 1.5rem;
      }
    }