@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

:root {
  --accent-color: rgb(187, 91, 91);
  --background-color: #111111;
  --button-color: #fff;
  --button: #f9004d;
  --buttonhover-color: #fff;
  --card-color: #0e0e0e;
  --heading-color: #fff;
  --menu-color: hsl(0 0% 0% / 0.265);
  --nav-color: transparent;
  --secondheading-color: #d6d6d6;
  --section-color: #141414;
  --spcial-color: #fcfc;
  --stiky-color: #111116d0;
  --text-color: #e7e7e7;
  --box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.1);
  /* --header-image: url(../images/background.png);
  --header-phImage: url(../images/phone-background.png); */
}
.themeColor {
  --accent-color: rgb(55, 75, 131);
  --background-color: #fff;
  --button-color: #000;
  --button: rgb(72, 98, 170);
  --buttonhover-color: #fff;
  --card-color: #fff;
  --heading-color: #1f1235;
  --menu-color: rgba(111, 119, 139, 0.6);
  --nav-color: #364663e7;
  --secondheading-color: #474747;
  --section-color: #eff0f3;
  --spcial-color: #6e2d19;
  --stiky-color: #364663d5;
  --text-color: #2d334a;
  /* --header-image: url(../images/theme_background.jpg);
  --header-phImage: url(../images/phone_background.jpg); */
}
#particles-js {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: var(--background-color);
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -99;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background-color);
  font-family: "Josefin Sans", sans-serif;
}

section:nth-child(odd) {
  background-color: var(--section-color);
}

/* For Webkit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 05px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}

/* For Firefox */
/* Note: You may need to use !important to override default styles in Firefox */
::-moz-scrollbar {
  width: 05px;
}

::-moz-scrollbar-thumb {
  background-color: transparent !important;
  border-radius: 4px;
}
::-moz-scrollbar-thumb:hover {
  background-color: var(--accent-color) !important;
}

/* For Microsoft Edge and Internet Explorer */
::-ms-scrollbar {
  width: 05px;
}

::-ms-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
}
::-ms-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}

/* --------Hero Section------- */

#header {
  background-image: var(--header-image);
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  width: 100%;
  height: 100dvh;
}
nav {
  overflow-x: hidden;
  background-color: var(--nav-color);
  padding: 0 10%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s ease;
  z-index: 9999;
  width: auto;
}
.stiky {
  background-color: var(--stiky-color);
  box-shadow: 1px 0 10px black;
  position: sticky;
  height: 55px;
  top: 0;
}
.logo {
  width: 7rem;
}
.menuBar {
  display: none;
  border-radius: 5px;
  width: 2rem;
}
.modeIcon {
  cursor: pointer;
  width: 1.4rem;
}
nav ul {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
nav ul li {
  list-style: none;
  margin: 10px 20px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}
nav ul li a::after {
  content: "";
  width: 0%;
  height: 3px;
  background: var(--button);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}
nav ul li a:hover::after {
  width: 100%;
}
.header-text {
  color: var(--secondheading-color);
  font-size: 1.4rem;
  z-index: 2;
}
.header-text h1 {
  color: var(--heading-color);
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}
.header-text span {
  color: var(--button);
}
.header-text span.typed {
  color: var(--heading-color);
}
.header-text > p {
  white-space: nowrap;
}
.header-wrap{
  align-items: center;
  display: flex;
  justify-content: space-between;
  left:50%;
  padding: 0 10%;
  position:absolute;
  top:50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.header-wrap > img{
  width: 100%;
  max-width: 30rem;
}
/* ---------About section--------- */
.about {
  height: 100%;
  width: 100%;
  padding: 5rem 0 5rem;
  vertical-align: middle;
  align-self: center;
  overflow: hidden;
}
.about img {
  width: 30%;
  border-radius: 10px;
  margin: 15px;
}
.about-title {
  color: #fafafa;
  font-size: 2.5rem;
  margin: 1.8rem 0 1rem 0.9rem;
}
.about-text {
  width: 100%;
  padding-left: 1rem;
}
.main {
  width: 1130px;
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.main h2 {
  color: var(--heading-color);
  font-size: 2.5rem;
}
.about-text h5 {
  color: var(--secondheading-color);
  letter-spacing: 2px;
  font-size: 1.2rem;
  margin-bottom: 25px;
  text-transform: capitalize;
}
.about-text p {
  color: var(--spcial-color);
  letter-spacing: 1px;
  line-height: 1.8rem;
  font-size: 1rem;
  margin-bottom: 45px;
}
.button {
  background-color: var(--button);
  border-radius: 30px;
  border: 2px solid transparent;
  color: var(--buttonhover-color);
  font-weight: bold;
  padding: 13px 20px;
  text-decoration: none;
  transition: 0.4s;
  white-space: nowrap;
}
.button:hover {
  background-color: transparent;
  color: var(--button-color);
  border: 2px solid var(--button);
  cursor: pointer;
}
.button > i {
  font-size: 1rem;
}
/* Service Section */

.service {
  width: 100%;
  padding: 100px 0;
}
.service-title h2 {
  color: var(--heading-color);
  font-size: 2.5rem;
  width: 100%;
  margin: 30px auto;
  text-align: center;
}
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}
.card {
  box-shadow: var(--box-shadow);
  height: 400px;
  width: 335px;
  padding: 10px;
  background: var(--card-color);
  border-radius: 20px;
  margin: auto 15px;
  position: relative;
  overflow: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.card i {
  font-size: 2rem;
  display: block;
  text-align: center;
  margin: 25px 0px;
  color: var(--button);
}
h5 {
  color: var(--secondheading-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.pra {
  width: 90%;
  height: max-content;
  margin: auto;
  overflow: auto;
}
.pra p {
  color: var(--spcial-color);
  font-size: 1rem;
  line-height: 27px;
  /* margin-bottom: 15px; */
  padding: 0 20px;
}
/* .show {
  margin-top: 2rem;
} */
.card .button {
  background-color: var(--button);
  color: white;
  text-decoration: none;
  border: 2px solid transparent;
  font-weight: bold;
  padding: 9px 22px;
  border-radius: 30px;
  transition: 0.4s;
}
.card .button:hover {
  background-color: transparent;
  border: 2px solid var(--button);
  cursor: pointer;
}

/* ---------Portfolio Section-------- */
.container {
  padding: 20px 10%;
  width: 100%;
  overflow: hidden;
}
#portfolio {
  padding: 50px 0;
}
.sub-title {
  font-size: 3rem;
  color: var(--heading-color);
}
.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}
.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}
.layer {
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), var(--button));
  border-radius: 10px;
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  height: 0%;
  justify-content: center;
  left: 0;
  overflow: hidden;
  padding: 0 40px;
  position: absolute;
  text-align: center;
  transition: height 0.5s;
  width: 100%;
}
.layer h3 {
  color: #fff;
  font-weight: 500;
  margin-bottom: 20px;
}
.layer p {
  color: gainsboro;
}
.layer a {
  background: #fff;
  border-radius: 50%;
  color: var(--button);
  font-size: 18px;
  height: 60px;
  line-height: 60px;
  margin-top: 20px;
  text-align: center;
  text-decoration: none;
  width: 60px;
}
.work:hover img {
  transform: scale(1.1);
}
.work:hover .layer {
  height: 100%;
}
.bttn {
  display: block;
  margin: 50px auto;
  width: min-content;
  border: 1px solid var(--button);
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--button-color);
  white-space: nowrap;
  transition: background 0.5s;
}
.bttn:hover {
  color: var(--buttonhover-color);
  background: var(--button);
}

/* --------contact-------- */

.form {
  width: 100%;
  background-color: var(--accent-color);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.contact-form {
  background-color: #262626;
  position: relative;
}
.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, var(--button));
  position: absolute;
}
.circle.one {
  width: 130px;
  height: 130px;
  top: 130px;
  right: -40px;
}
.circle.two {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 30px;
}
.contact-form:before {
  background-color: var(--accent-color);
  content: "";
  height: 26px;
  left: -13px;
  position: absolute;
  top: 50px;
  transform: rotate(45deg);
  width: 26px;
}
form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}
.service-title {
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
}
.input-container {
  position: relative;
  margin: 1rem 0;
}
.input {
  width: 100%;
  outline: none;
  border: 2px solid #fafafa;
  background: none;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 10px;
  transition: 0.3s;
}
textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 10px;
  resize: none;
  overflow-y: auto;
}
.input-container label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  padding: 0 0.4rem;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
}
.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}
.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: var(--button);
  line-height: 1;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: 0.5s;
  margin: 0;
}
.btn:hover {
  background-color: transparent;
  color: #fff;
}
.input-container span {
  position: absolute;
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}
.input-container span:before,
.input-container span:after {
  background-color: var(--accent-color);
  content: "";
  height: 5px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
  width: 10%;
}
.input-container span:before {
  left: 50%;
}
.input-container span:after {
  right: 50%;
}
.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}
.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}
.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}
.title {
  color: #fff;
}
.text {
  color: #fff;
  margin: 1.5rem 0 2rem 0;
}
.information {
  display: flex;
  color: #fff;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
}
.icon {
  width: 28px;
  margin-right: 0.7rem;
}
.social-media {
  padding: 4rem 0 0 0;
}
.social-media p {
  color: #fff;
}
.social-icons {
  display: flex;
  margin-top: 20px;
}
.social-icons a {
  background: linear-gradient(45deg, var(--button), #176959);
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  color: #fff;
  height: 35px;
  line-height: 35px;
  margin-right: 0.5rem;
  text-align: center;
  transition: 0.3s;
  width: 35px;
}
.social-icons a:hover {
  transform: scale(1.05);
}
.contact-info:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 100px;
  border-radius: 50%;
  right: 50px;
  opacity: 0.3;
}
.contact-info:before {
  bottom: initial;
  top: -75px;
  right: 65px;
  transform: scale(0.95);
}
.contact-form:before {
  top: -13px;
  left: initial;
  right: 70px;
}
.social-media {
  padding: 1.5rem 0 0 0;
}
.contact-info:before {
  display: none;
}
form,
.contact-info {
  padding: 1.7rem 1.6rem;
}
.text,
.information,
.social-media p {
  font-size: 16px;
}
.social-icons a {
  width: 30px;
  height: 30px;
  line-height: 30px;
}
.icon {
  width: 23px;
}
.input {
  padding: 0.45rem 1.2rem;
}
.btn {
  padding: 0.45rem 1.2rem;
}
#msg {
  color: #9ab731;
  margin: auto;
  margin-left: 25px;
  margin-bottom: 25px;
  display: block;
}
.contact-text {
  color: var(--text-color);
  padding-bottom: 1.6rem;
  width: 100%;
  text-align: center;
  padding-top: 75px;
  font-weight: 300;
  margin-top: 20px;
  font-size: 18px;
}
.contact-text span {
  font-weight: 400;
  color: var(--heading-color);
}
/* ---------Foter section-------- */
.footer {
  background-color: var(--section-color);
}
.CopyRight {
  width: 100%;
  text-align: center;
  box-shadow: 0 5px 10px var(--text-color);
  padding: 20px 0;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-color);
}
.CopyRight a {
  text-decoration: none;
  color: var(--spcial-color);
}
/* ----------css for small screens-------- */

@media only screen and (max-width: 768px) {
  #header {
    background-image: var(--header-phImage);
    justify-content: center;

  }
  .header-wrap{
    flex-wrap: wrap;
  }
  .header-wrap > img {
    width: 100%;
    padding-top: 5rem;
  }
  .header-text {
    align-content: flex-start;
    padding-top: 3rem;
    font-size: 1.4rem;
  }
  .logo {
    width: 5rem;
  }
  #headerback_img {
    width: 250px;
    bottom: -9rem;
  }
  .header-text h1 {
    font-size: 1.4rem;
  }
  .menuBar {
    width: 1.6rem;
    display: block;
  }
  .hide.show {
    right: 0%;
    opacity: 1;
    visibility: visible;
  }
  .hide {
    width: 40%;
    height: 80dvh;
    border-left: 1px solid var(--button);
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    background-color: var(--menu-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    right: -100%;
    top: 90px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: right 0.3s ease;
  }
  .hide ul {
    align-items: center;
    display: block;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
  }
  nav ul li {
    margin-top: 1rem;
  }
  nav ul li a {
    color: white;
  }
  nav ul li a::after {
    display: none;
  }
  nav ul li a:hover {
    color: var(--button);
    transition: 0.5s;
  }
  .main {
    display: block;
    width: 100%;
    align-items: center;
    padding: 25px;
    margin-bottom: 5px;
  }
  .main h2 {
    font-size: 2rem;
  }
  .about img {
    width: 35%;
  }
  .about-text p {
    font-size: 1rem;
  }
  .about-text h5 {
    font-size: 1rem;
  }
  .service,
  .box {
    align-items: center;
    display: block;
    align-items: center;
    justify-content: center;
    overflow: auto;
  }
  .title h2 {
    font-size: 2.5rem;
  }
  .sub-title {
    font-size: 2rem;
  }
  .form {
    display: block;
  }
  .card {
    display: block;
    font-size: 1rem;
    width: 75%;
    margin: auto;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  .card i {
    font-size: 2rem;
  }
  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }
  .contact-text {
    font-size: 1rem;
  }
  .CopyRight {
    font-size: 0.8rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Style for the startup loading animation */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #080808;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}
.loader {
  color: #fff;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-weight: bold;
  font-size: 3rem;
  opacity: 0.8;
}
.loader:before {
  content: "{";
  display: inline-block;
  animation: pulse 0.4s alternate infinite ease-in-out;
}
.loader:after {
  content: "}";
  color: var(--button);
  display: inline-block;
  animation: pulse 0.4s 0.3s alternate infinite ease-in-out;
}

@keyframes pulse {
  to {
    transform: scale(0.8);
    opacity: 0.5;
  }
}