*{
    margin: 0;
    padding: 0;
}
body{
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}
.nav1{
    color: white;
    display: flex;
    width: 1533px;
    height: 65px;
    margin-top: -10%;
    position: fixed;
    z-index: 1000;
    display: flex;
    margin-top: 0%;
    /* border: solid 2px yellow; */
}
.nav1.scrolled {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.nav1 h3{
    width: 105px;
    padding-left: 40px;
    display: flex;
    padding-top: 23px;
    left: 52%;
    /* border: solid 2px lightcoral; */
}
.nav1 a{
    text-decoration: none;
    color: white;
    display: flex;
}
.nav1 img{
    height: 18px;
    width: 18px;
    padding-right: 10px;
    /* border: solid 2px lightblue; */
}

.underline{
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.underline::after{
    content: "";
    position: absolute;
    left: 37px;
    bottom: 10px;
    width: 0;
    height: 4px;
    border-radius: 5px;
    background-color: rgb(204,94,246);
    transition: 0.3s ease-in;
}
.underline:hover::after{
    width: 65%;
}
.codeimg{
    margin-top: 150px;
    margin-left: 59%;
    height: 500px;
    width: 500px;
}
.content1{
    color: white;
    position: absolute;
    margin-top: 270px;
    margin-left: 150px;
    font-size: 22px;
}
.wave {
  display: inline-block;
  animation: wave-hand 1.5s infinite;
  transform-origin: 70% 70%; /* Makes it wave from the wrist */
}
@keyframes wave-hand {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(20deg); }
  30% { transform: rotate(-15deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-5deg); }
  75% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.typewriter {
    font-family: monospace;
    font-size: 36px;
    color: rgb(204,94,246);
}
.cursor {
    display: inline-block;
    animation: blink 0.7s steps(1) infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.header2{
    display: flex;
}
.content2
{
    margin-top: 5%;
    width: 1000px;
}
.content2 h1{
    margin-top: 15%;
    margin-left: 300px;
    padding-bottom: 20px;
    color: white;
}
.content2 h4{
    margin-left: 150px;
    padding-top: 40px;
    font-size: 22px;
    line-height: 1.6;
    color: white;
}
.header2 .cimg2 img{
    margin-top: 50%;
    margin-left: 10%;
    height: 500px;
    width: 400px;
    border-radius: 5%;
}
.header3 h1, h4{
    color: white;
    margin-left: 42%;
}
.cimg3{
    display: flex;
    margin-top: 5%;
    margin-left: 41%;
    justify-content: space-between;
    width: 200px;
    /* border: solid 2px lightsalmon; */
}
.one img{
    background-color: #cc5ef6;
    height:35px;
    width: 35px;
    border-radius: 100%;
    margin-top: 5%;
    margin-left: 40%;
    box-shadow: 0 0 0 transparent;
    transition: transform 0.3s;
}
.two img{
    background-color: rgb(204,94,246);
    height:35px;
    width: 35px;
    border-radius: 100%;
    margin-top: 5%;
    margin-left: 40%;
    box-shadow: 0 0 0 transparent;
    transition: transform 0.3s;
}
.three img{
    background-color: #cc5ef6;
    height:35px;
    width: 35px;
    border-radius: 100%;
    margin-top: 5%;
    margin-left: 40%;
    box-shadow: 0 0 0 transparent;
    transition: transform 0.3s;
}
.one img:hover, .two img:hover, .three img:hover{
    transform: scale(1.1);
    box-shadow: 0 0 25px 2px rgb(204,94,246);
    transform: scale(1.03);
    cursor: pointer;
}
.header4 {
  display: flex;
  margin-top: 6%;
  height: 60px;
  justify-content: space-around;
  background-color: black; 
  /* border: solid 10px lightgreen; */
}
.header4 .one, .two, .three {
  display: flex;
  justify-content: center;   
  align-items: center;        
  text-align: center;
  font-size: 17px;
}
.header4 .one{
  width: 250px;
  margin-right: 5%;
  /* border: solid 5px lightblue; */
}
.header4 .two{
  width: 250px;
  /* border: solid 5px lightgray; */
}
.header4 .three {
  width: 300px;
  margin-left: 5%;
  /* border: solid 5px lightpink; */
}
.header4 h4 {
  padding: 0;
  margin: 0;
}


::-webkit-scrollbar-thumb {
    background-color: #b148c9;
    border-radius: 10px;
    border: 2px solid #312958; /* blends with background */
    background-clip: padding-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #b148c9 #312958;
}

/* Preloader full-screen background */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Optional dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Ball container */
.ball-loader {
  position: relative;
  width: 80px;
  height: 80px;
  animation: rotate 1s linear infinite;
}

/* Ball style */
.ball {
  width: 16px;
  height: 16px;
  background-color: #cc5ef6;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Position 3 balls in a circle */
.ball1 { transform: translate(-50%, -50%) rotate(0deg) translateX(30px); }
.ball2 { transform: translate(-50%, -50%) rotate(120deg) translateX(30px); }
.ball3 { transform: translate(-50%, -50%) rotate(240deg) translateX(30px); }

/* Rotate animation */
@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {

  .nav1 {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 10px 0;
    position: static;
  }

  .nav1 h3 {
    padding: 10px 0;
    width: auto;
    padding-left: 0;
    justify-content: center;
  }

  .header1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .content1 {
    margin: 150px 10px 20px 10px;
    font-size: 18px;
    position: static;
  }

  .codeimg {
    width: 90%;
    height: auto;
    margin: 20px auto;
  }

  .header2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .content2 {
    width: 90%;
    margin: 0 auto;
  }

  .content2 h1,
  .content2 h4 {
    margin: 10px;
    font-size: 18px;
  }

  .content2 h4{
    text-align: left;
  }

  .header2 .cimg2 img {
    margin: 30px auto;
    width: 80%;
    height: auto;
  }

  .header3 h1, .header3 h4 {
    text-align: center;
    margin: 10px 0;
  }
  .header3, .content3{
    margin-left: 3px;
  }

  .cimg3 {
    margin: 0 auto;
    justify-content: center;
    gap: 30px;
  }

  .header4{
    flex-direction: column;
    padding: 20px 0;
    margin-top: 40px;
  }      
  .header4 .one, 
  .header4 .two, 
  .header4 .three {
    width: 100%;
    margin: 10px 0;
  }
  .header4 .three{
     padding-bottom: 30px;
  }

  .cimg3{
    padding-top: 10px;
    margin-left: 92px;
    padding-bottom: 30px;
  }
  .content2 h1{
    padding-bottom: 0px;
  }
  .content2 h4{
    padding-top: 30px;
  }
  .nav-container, .nav1, .underline:hover::after{
    padding-right: 20px;
    width: 50px;
  }
  .nav1 h3.underline::after {
    display: none !important; /* Disables underline on mobile */
  }

}
.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  cursor: pointer;
}
.bgc {
    display: none; /* Hidden by default */
    background-color: #1c182f;                   
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* Mobile view nav */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    cursor: pointer;
    padding: 8px;
  }

  .menu-toggle img {
    height: 30px;
    width: 30px;
    transition: all 0.3s ease;
  }

  .close-icon {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .nav1 {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.85);        
    width: 50%;
    position: fixed;
    z-index: 1000;
  }

  .nav1.show {
    display: flex;
    padding-right: 210px;
  }

  .nav1 h3 {
    padding: 15px 0;
    justify-content: center;
  }

  .nav1 a {
    justify-content: center;
    width: 100%;
  }
  .bgc {
        display: block; /* Only visible on mobile */
  }
  .typewriter {
    font-size: 32px;
  }
}