* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, sans-serif;
}

:root {
  --bg-color: #ffffff;
  --snd-color: #a1c9ee;
  --main-color: rgb(173, 37, 214);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: black;
  background-color: #000;
}

/* header section code*/

.header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  background-color: transparent;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.logo {
  font-size: 3rem;
  color: var(--bg-color);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.8s ease;
}

.logo:hover {
  transform: rotatey(360deg);
}

.navbar a {
  font-size: 1.9rem;
  color: var(--bg-color);
  margin-left: 4rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a:active {
  color: #8b408bfa;
  text-shadow: 4px px 13px #7a157a;
}

#menu-icon {
  font-size: 3.6rem;
  cursor: pointer;
  color: var(--bg-color);
  display: none;
}

/*home section code */

.home {
  padding: 10rem;
  margin-top: 8rem;
  min-height: 100vh;
  background-image: url(portfolio.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  gap: 2rem;
}

.home {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}

.home-img img {
  width: 27vw;
  border-radius: 60%;
  box-shadow: 0 0 40px rgba(172, 169, 169, 0.596);
  cursor: pointer;
  animation: floatImage 4s ease-in-out infinite;
  transition: 0.4s ease;
}

.home-img img:hover {
  box-shadow: 0 0 48px rgba(225, 30, 231, 0.918);
}

@keyframes floatImage {
  0% {
    transform: translatey(0);
  }
  50% {
    transform: translatey(-2.4rem);
  }
  100% {
    transform: translatey(0);
  }
}

.home-content {
  margin-left: 5rem;
  color: #ffffff;
}

.home-content h3 {
  font-size: 3.7rem;
  font-weight: 700;
  color: #ffffff;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content p {
  font-size: 1.6rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  font-size: 2rem;
  border-radius: 50%;
  color: purple;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
}

.social-media a:hover {
  transform: scale(1.2) translatey(-8px);
  background-color: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  box-shadow: 0 0 1.6rem var(--main-color);
}

/* about section code */
.about {
  padding: 10rem;
  min-height: 100vh;
}

.about {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  background: rgb(109, 109, 109);
}

.about-img img {
  width: 25vw;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 35px var(--main-color);
  transition: 0.3s ease;
  cursor: pointer;
}

.about-img img:hover {
  box-shadow: 0 0 45px var(--main-color), 0 0 45px var(--main-color),
    0 0 45px var(--main-color);
}

.heading {
  font-size: 6rem;
  text-align: left;
}

.about-content {
  padding: 0 4rem;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 3rem;
}
.about-content span {
  color: #ffffff;
}
.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

/* services section code */

.services {
  padding: 7rem;
  min-height: 100vh;
  background-image: url(portfolio.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.services h2 {
  text-align: center;
  margin-bottom: 5rem;
  color: rgb(95, 95, 95);
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-container .services-box {
  flex: 1 1 30rem;
  background: rgba(128, 128, 128, 0.336);
  backdrop-filter: 10px;
  padding: 6rem 2rem 6rem;
  border-radius: 6rem;
  color: #ffffff;
  text-align: center;
  border: 0.3rem solid rgb(95, 95, 95);
  transition: 0.3s ease;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.services-box i {
  font-size: 7rem;
  color: var(--main-color);
}

.services-box h3 {
  font-size: 2.6rem;
}

.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}

/* contact section code*/

.contact {
  padding: 7rem;
  min-height: 100vh;
}
.contact {
  background: rgb(109, 109, 109);
}

.contact .heading {
  text-align: center;
}

.contact h3 {
  margin-bottom: 3rem;
  color: var(--main-color);
}

.contact form {
  max-width: 80rem;
  margin: 1rem auto;
  margin-bottom: 3rem;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  border: 0.25rem solid var(--main-color);
  margin: 0.7rem 0;
  resize: none;
}

.contact form .input-box input {
  width: 49%;
  margin: 0.7rem 0.35rem;
}

.contact form .btn {
  margin-top: 2rem;
}

/* footer section code*/
.footer {
  position: relative;
  bottom: 0;
  padding: 40px 0;
  background-image: url(portfolio.jpg);
  background-size: cover;
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}

.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease;
}

.footer .social a:hover {
  transform: scale(1.2) translatey(-8px);
  background-color: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 25px var(--main-color);
}

.footer .copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  color: white;
}

/* responsiveness of portfolio */

@media (max-width: 1200px) {
  html {
    font-size: 65%;
  }
  .about{
    min-height: 70vh;
  }

  .home{
    min-height: 70vh;
  }
  .services{
    min-height: 70vh;
  }
  .contact{
    min-height: 70vh;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .home {
    background-size: cover;
  }
  .header {
    padding: 2rem 3%;
  }

  .section {
    padding: 10rem 3%;
  }

  .services {
    padding: 7rem;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .footer {
    padding: 2rem 3%;
  }
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    display: flex;
    flex-direction: column;
    width: 220px;
    min-height: 100vh;
    background-color: rgba(128, 128, 128, 0.445);
    transition: all 0.5s ease;
    backdrop-filter: blur(30px);
  }

  .navbar.active {
    right: 0%;
  }

  .navbar a {
    display: block;
    padding: 17px;
    font-size: 22px;
    align-items: center;
    justify-content: center;
  }

  .home {
    flex-direction: column;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 5rem;
  }
  .home-content {
    order: 2;
    margin-left: 1rem;
  }
  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }
  .about {
    flex-direction: column-reverse;
  }
  .about-img img {
    width: 70vw;
    margin-top: 4rem;
  }
  .services h2 {
    margin-bottom: 3rem;
  }

}

@media (max-width: 550px) {
  html {
    font-size: 55%;
  }
  .home-content h3{
    font-size: 1.8rem;
  }
  .header {
    padding: 2rem 3%;
  }
  .about-content h3 {
    font-size: 1.7rem;
  }

  .about-content p{
    font-size: 1.5rem ;
  }
  .heading{
    font-size: 4rem;
  }
  .section {
    padding: 10rem 3%;
  }

  .services {
    padding: 7rem;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .footer {
    padding: 2rem 3%;
  }

  .copyright{
    font-size: 12px;
  }
}

@media (max-width: 425px) 
{
  .about-content h3{
    font-size: 1.5rem ;
    font-weight: 600;
  }
  
  .services-container .services-box {
    flex: 1 1 30rem;
    background: rgba(128, 128, 128, 0.336);
    backdrop-filter: 10px;
    padding: 4rem 1rem 4rem;
    border-radius: 7rem;
    color: #ffffff;
    text-align: center;
    border: 0.3rem solid rgb(95, 95, 95);
    transition: 0.3s ease;
  }

  .copyright{
    font-size: 10px;
  }
}

@media (max-width:415px) {
  .home-content h1{
    font-size: 3.6rem;
  }
  .home-content h3{
    font-size: 1.3rem;
  }
  .home-content p{
    font-size: 1.4rem;
  }
  .social-media a {
    width: 27px;
    height: 27px;
    font-size: 1.6rem;
    margin: 2rem 1rem 2rem 0;
  }
 .btn{
  padding: 1rem 2.8rem;
  font-size: 1.2rem;
 }
 .about-content h3 {
  font-size: 1.1rem;
}
.about-content h2{
  font-size: 2.5rem;
}

.about-content p{
  font-size: 1.1rem ;
}
.services-box h3{
  font-size: 2.2rem;
}
.services-box p {
  font-size: 1rem;
  margin: 1rem 0 3rem;
}

 .services-container .services-box {
  flex: 1 1 30rem;
  background: rgba(128, 128, 128, 0.336);
  backdrop-filter: 10px;
  padding: 3rem 0.9rem 3rem;
  border-radius: 7rem;
  color: #ffffff;
  text-align: center;
  border: 0.3rem solid rgb(95, 95, 95);
  transition: 0.3s ease;
  font-size: 1.7rem;
}
 .copyright{
  font-size: 9px;
}
}

@media (max-width:350px) {
  .home-content h1{
    font-size: 3.1rem;
  }
  .home-content h3{
    font-size: 1rem;
  }
  .home-content p{
    font-size: 1rem;
  }
  .social-media a {
    width: 24px;
    height: 24px;
    font-size: 1.6rem;
    margin: 2rem 0.8rem 2rem 0;
  }
 .btn{
  padding: 1rem;
  font-size: 1rem;
 }
 .about-content h3 {
  font-size: 0.7rem;
}
.about-content h2{
  font-size: 1.7rem;
}

.about-content p{
  font-size: 1rem ;
}

.services-box h3{
  font-size: 2rem;
}
.services-box p {
  font-size: 0.6rem;
  margin: 1rem 0 2rem;
}

 .services-container .services-box {
  flex: 1 1 30rem;
  background: rgba(128, 128, 128, 0.336);
  backdrop-filter: 10px;
  padding: 3rem 0.9rem 3rem;
  border-radius: 7rem;
  color: #ffffff;
  text-align: center;
  border: 0.3rem solid rgb(95, 95, 95);
  transition: 0.3s ease;
  font-size: 1.7rem;
}
 .copyright{
  font-size: 9px;
}
}

@media (max-width:325px) {

  .heading{
    font-size: 3.5rem;
  }
  .services-box h3{
    font-size: 1.8rem;
  }
   .copyright{
  font-size: 5px;
}
}