* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  /* color: white; */
  font-family: "Nunito", sans-serif;
}
html {
  font-size: 63.5%;
  overflow-x: hidden;
}

body {
  /* background: linear-gradient(45deg, #1d0000, #20205b); */
  /* background-color: rgb(208,150,131) ; */
  /* background-color: rgb(208,150,131) ; */
  background-color: rgb(20, 7, 45);

  color: white;
}

section {
  min-height: 90vh;
  padding: 10rem 9% 2rem;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  /* background-color: rgb(51,0,0);  */
  /* background-color: rgb(51,0,0);  */
  /* background-color: rgb(40,20,86); */
  /* background-color: rgb(208,150,131) */
  /* box-shadow: 0 0 1rem  rgb(237,244,242) ; */
  /* background-color: rgba(20, 7, 45, 0.623); */
  /* background-color: rgba(20, 7, 45, 0.955); */
/* background-color: rgba(0, 0, 0, 0.79); */
}


#sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 45vh;
    z-index: 999;
    background-color: rgb(20, 7, 45);
  padding-top: 3rem;
    box-shadow: -10px 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3rem;
  width: 100%;
  display: none;
}

#sidebar a{
  width: 100%;
  color: whitesmoke;
 
  /* position: fixed; */
  
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  cursor: default;
  color: rgb(237, 244, 242);
}

.navbar a {
  font-size: 1.5rem;
  margin-left: 4rem;
  font-weight: 700;
  color: rgb(237, 244, 242);
}

.navbar a:hover,
.navbar a:active {
  /* color: aqua; */
  /* color: rgb(49,71,58); */
  /* text-decoration: underline; */
  /* color: black; */
  color: rgb(161, 190, 149);
}

#menu-icons {
  font-size: 3.6rem;
  display: none;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(mainbg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.555);
  height: 100vh;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 800;
  color: rgb(237, 244, 242);
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

span {
  color: rgb(161, 190, 149);
}

.home-content h1 {
  width: 100%;
  animation: type 2s infinite;
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 1.3;
  color: rgb(237, 244, 242);
  white-space: nowrap;
  overflow: hidden;
}

@keyframes type {
  from {
    width: 0;
  }
}

.home-img {
  width: 1rem;
  /* animation: floatImage 4s ease-in-out infinite; */
  /* box-shadow: 0 0 1rem  rgb(237,244,242) ; */
  position: fixed;
  right: 4rem;
  /* bottom: 0; */
  display: flex;
  justify-content: right;
  flex-direction: column;
  gap: 2rem;
}

/* @keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2, 4rem);
  }
  100% {
    transform: translateY(0);
  }
} */

.home-content p {
  font-size: 1.6rem;
  color: rgb(237, 244, 242);
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border-radius: 50%;
  font-size: 2rem;
  margin: 1rem 1rem 3rem 1rem;
  background-color: rgb(237, 244, 242);
  /* background-color: rgb(208,150,131); */
  box-shadow: 0 0 1rem rgb(237, 244, 242);
}

.home-content h4 {
  margin: 3rem 0 1rem 0.5rem;
  font-size: 2.5rem;
}

.social-media a:hover {
  /* background-color: darkcyan; */
  background-color: rgb(40, 20, 86);
  /* background-color: rgba(49, 71, 58, 0.984); */
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  box-shadow: 0 0 1rem rgb(237, 244, 242);
  background-color: rgb(20, 7, 45);

  /* background-color: rgb(115,96,91); */

  box-shadow: 0rem 0rem 1rem;
  color: wheat;
  font-weight: 600;
  border-radius: 4rem;
}

.btn:hover {
  box-shadow: none;
}

/* ABOUT SECTION */

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;

  background-image: url(mainbg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.555);
  height: 100vh;
}
.about-img img {
  width: 35vw;
}
.heading {
  text-align: center;
  font-size: 4.5rem;
  margin-top: 1.6rem;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
}

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

/* services section */

.services h2 {
  margin-bottom: 5rem;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-container .services-box {
  flex: 1 1 30rem;
  height: 50rem;
  background-color: rgb(40, 20, 86);
  /* background-color: rgb(49,71,58); */
  /* background-color: rgba(237, 244, 242, 0.786); */
  /* color: #000; */
  padding: 5rem 2rem 2rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid white;
  transition: 0.5s ease;
  box-shadow: 0 0 1rem rgb(237, 244, 242);
}

.services-container .services-box:hover {
  /* background-color: whitesmoke; */
  /* background-color: rgb(208,150,131); */
  background-color: darkslateblue;

  /* background-color: aqua; */
  transform: scale(1);
  color: aliceblue;
  /* border: .2rem solid darkblue; */
}

.services-box #star {
  margin-top: 2rem;
}

.btn:hover {
  color: aliceblue;
  background-color: rgba(46, 9, 82, 0.999);
  box-shadow: 0 0 1rem;
}

.services-box i {
  font-size: 7rem;
  /* color: darkblue; */
}

.services-box h4 {
  margin-top: 1rem;
}
.services-box h3 {
  font-size: 2.6rem;
  margin-top: 2rem;
}

.services-box p {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

/* .portfolio portion */

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.portfolio-container .portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem;
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 1rem var(aqua);
}

/* .portfolio{
   /* background-color: rgb(2, 2, 29); */

.portfolio-box img {
  width: 100%;
  transition: 0.5s ease;
  opacity: 0.7;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1) darkblue);
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
  /* background-color: rgba(49, 71, 58, 0.555); */
  /* background-color: rgba(208, 150, 131, 0.697) ; */
  /* background-color: rgba(161, 190, 149, 0.707);  */
  background-color: rgba(40, 20, 86, 0.64);
}

.portfolio-layer h4 {
  font-size: 3rem;
}

.portfolio-layer p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1rem;
}

.portfolio-layer .i img {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  /* background-color: aqua; */
  /* border-radius: 50%; */
}

.portfolio-layer a {
  font-size: 2rem;
  color: aqua;
}

#i:hover {
  align-items: center;
  size: 32px;
}

/* contact section */

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,select,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  background-color: rgb(40, 20, 86);
 /* background-color: rgb(161, 190, 149); */

  /* background-color: chartreuse; */
  color: white;
  border-radius: 0.8rem;
  margin: 0.7rem 0;
  box-shadow: 0 0 1rem;
}

.btn {
  background-color: rgb(40, 20, 86);
  /* background-color: rgb(49,71,58); */
  box-shadow: 0 0 1rem;
  margin-top: 1rem;
}

/* footer section */

.footer {
  /* min-height:100px; */
  background-color: rgba(161, 190, 149, 0.955);
  color: #000;
  height: 60vh;
}

.footer-text {
  font-size: 1.6rem;
}

.footer-iconTop {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1rem;
  /* background-color: rgb(49,71,58); */

  border-radius: 0.8rem;
  transition: 0.5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(rgb(49, 71, 58));
}

.direc {
  display: flex;
}

.con {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  gap: 2rem;
  flex-direction: column;
}

.con h4 {
  font-size: 1.5rem;
}

#pop {
  display: flex;
  flex-direction: row;
}

/* media quires */

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

  .services-box iframe {
    width: 100%;
    height: auto;
  }

  .heading {
    margin-top: 2rem;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem;
  }
  section {
    padding: 9rem 3%;
  }
  .services {
    padding: 7rem;
  }
  .portfolio {
    padding-bottom: 7rem;
  }
  .contact {
    min-height: auto;
  }
  .footer {
    padding: 2rem 3%;
  }
}



@media (max-width: 766px) {

  .heading {
    margin-top: 4rem;
  }
  /* #menu-icon {
    display: block;
  }

  .services-box iframe {
    width: auto;
    height: auto;
    padding-top: 0;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 3%;
    background-color: rgb(49, 71, 58);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.752);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.752);
    /* display: none; */
    
  /* } */

.navbar #hidemobile{
  display: none;
}

  #menu-icons {
    font-size: 3.6rem;
    display: block;
   justify-content: flex-end;
   align-items: flex-end;
  }


  .navbar .active {
    display: block;
  } 

  .home {
    flex-direction: column;
  }
  .home-content h3 {
    font-size: 5rem;
  }
  .home-content {
    order: 2;
  }
  .home-content h3 {
    font-size: 5rem;
  }

  /* .home-img img {
    width: 90vw;
    margin-top: 4rem;
  } */
  .about {
    flex-direction: column;
  }
  .about-img img {
    width: 90vh;
    margin-top: 4rem;
  }
  .services h2 {
    margin-bottom: 3rem;
  }

  .portfolio h2 {
    margin-bottom: 3rem;
  }
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 1rem 0 1rem;
  }

  /* .home-img img {
    width: 2rem;
    /* height: 1rem; */
    /* animation: floatImage 4s ease-in-out infinite; */
    /* box-shadow: 0 0 1rem  rgb(237,244,242) ; */
    /* position: fixed; */
    /* right: 0; */
    /* bottom: 0; */
    /* display: flex; */
    /* justify-content: right;
    flex-direction: row; */
    /* gap: 45rem; */
  /* } */ 
}

@media (max-width: 480px) {
  .portfolio-container {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 1rem 0 1rem;
  }


  #menu-icons {
    font-size: 3rem;
    display: block;
   justify-content: flex-end;
   align-items: flex-end;
  }



  .navbar .active {
    display: block;
  } 

  .home {
    flex-direction: column;
  }
  .home-content h3 {
    font-size: 3rem;
  }

  .home-content h1{
    font-size: 3rem;
  }
  .home-content {
    order: 2;
  }
  .home-content p {
    font-size: 1.2rem;
  }

}
