/* style.css */

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

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
  font-family:'Poppins',sans-serif;
}

#preloader{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:#0f172a;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  z-index:99999;
  color:white;
}

.loader{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.loader span{
  width:15px;
  height:15px;
  background:#a855f7;
  border-radius:50%;
  animation:bounce 1s infinite ease-in-out;
}

.loader span:nth-child(2){
  animation-delay:0.2s;
}

.loader span:nth-child(3){
  animation-delay:0.4s;
}

@keyframes bounce{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-20px);
  }
}

#preloader h2{
  font-size:20px;
  letter-spacing:2px;
  color:#c084fc;
}

/* .spinner h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #00aaff, #a020f0);
  border-radius: 2px;
} */



body{
  transition: 0.4ease;
  background:#0f172a;
  overflow-x:hidden;
}

section{
  padding:100px 8%;
}

.section-white{
  background:white;
}

#progressBar{
  position:fixed;
  top:0;
  left:0;
  height:4px;
  width:0%;
  background:#a855f7;
  z-index:9999;
}

.header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  padding:18px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(10px);
  z-index:1000;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: #00aaff;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: linear-gradient(to bottom, #FFFFFF, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  

}

.logo span {
  background: linear-gradient(to bottom, #f020c6, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #00aaff, #a020f0);
  border-radius: 2px;
}

#backToTop{
  position:fixed;
  bottom:30px;
  right:30px;
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#a855f7;
  color:white;
  font-size:22px;
  cursor:pointer;
  display:none;
  z-index:999;
  transition:0.3s;
}

#backToTop:hover{
  transform:translateY(-5px);
  background:white;
  color:#a855f7;
}

.navbar{
  display:flex;
  gap:30px;
}

.navbar a{
  text-decoration:none;
  color:white;
  font-weight:500;
  transition:.3s;
}

.navbar a:hover{
  color:#a855f7;
  border-bottomD: 2px solid white;
}

.menu-btn{
  color:white;
  font-size:28px;
  cursor:pointer;
  display:none;
}

/* DARK MODE */
body.dark{
  background: #374151;
  color:white;
}

/* sections */
body.dark .section-white{
  background:#374151;
}

/* cards */
body.dark .stat-box,
body.dark .contact-card{
  background:#1f2937;
  color:white;
}

/* service cards */
body.dark .service-card,
body.dark .stat-box,
body.dark .project-stat{
  background:#111827;
}

/* section titles */
body.dark .section-title h2{
  color:white;
}

.home{
  min-height:100vh;
  display:flex;
  align-items:center;
  background:
  linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.7)),
  url("your-image.png");
  background-size:cover;
  background-position:center;
}

.home-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
  width:100%;
}

.text-box{
  color:white;
  max-width:600px;
}

.text-box h3{
  font-size:30px;
}

/* .text-box h1{
  font-size:70px;
  color:#c084fc;
} */
.text-box h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 64px;
  color: #00aaff;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: linear-gradient(to bottom, #FFFFFF, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-box h1 span {
  background: linear-gradient(to bottom, #f020c6, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* .text-box h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #00aaff, #a020f0);
  border-radius: 2px;
} */


.text-box h2{
  font-size:40px;
  margin-bottom:20px;
}

.text-box p{
  line-height:1.8;
}

.home-buttons{
  margin-top:30px;
  display:flex;
  gap:20px;
}

.btn{
  padding:14px 30px;
  background:#a855f7;
  color:white;
  text-decoration:none;
  border-radius:40px;
  transition:.3s;
}

.btn:hover{
  transform:translateY(-5px);
  background-color: white;
  color: #a855f7;
}

.btn2{
  background:transparent;
  border:2px solid white;
}

/* ================= IMAGE TO IMAGE ANIMATION ================= */

.hero-animation{
  position:relative;
  width:420px;
  height:420px;
}

.hero-img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:30px;
  box-shadow:0 0 40px rgba(0,217,255,.5);
}

/* FIRST IMAGE */

.img1{
  animation:fade1 6s infinite;
}

/* SECOND IMAGE */

.img2{
  animation:fade2 6s infinite;
}

@keyframes fade1{

  0%{
    opacity:1;
    transform:scale(1);
  }

  45%{
    opacity:1;
  }

  50%{
    opacity:0;
    transform:scale(.95);
  }

  95%{
    opacity:0;
  }

  100%{
    opacity:1;
    transform:scale(1);
  }

}

@keyframes fade2{

  0%{
    opacity:0;
    transform:scale(.95);
  }

  45%{
    opacity:0;
  }

  50%{
    opacity:1;
    transform:scale(1);
  }

  95%{
    opacity:1;
  }

  100%{
    opacity:0;
    transform:scale(.95);
  }

}

/* ================= EXTRA SMALL SCREEN FIX ================= */

@media(max-width:600px){

  .home{
    padding-top:120px;
    min-height:auto;
  }

  .home-content{
    flex-direction:column;
    gap:40px;
    text-align:center;
  }

  .hero-animation{
    width:260px;
    height:260px;
    margin-right: 250px;
  }

  .hero-img{
    border-radius:20px;
  }

  .text-box h1{
    font-size:40px;
    line-height:1.2;
  }

  .text-box h2{
    font-size:24px;
  }

  .text-box p{
    font-size:15px;
    line-height:1.8;
  }

  .home-buttons{
    justify-content:center;
    flex-wrap:wrap;
  }

}

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title h2{
  font-size:45px;
  color:#111827;
}

.about-container{
  display:flex;
  flex-direction:column;
  gap:50px;
}

.about-card{
  background:#f8fafc;
  padding:40px;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.stat-box{
  background:#111827;
  color:white;
  text-align:center;
  padding:40px;
  border-radius:20px;
}

.stat-box h2{
  color:#c084fc;
  font-size:50px;
}

.service-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.service-card{
  background:#111827;
  color:white;
  padding:40px;
  border-radius:20px;
  text-align:center;
  transition:.4s;
}

.service-card:hover{
  transform:translateY(-10px);
}

.service-card i{
  font-size:50px;
  color:#c084fc;
  margin-bottom:20px;
}

.project-stats{
  display:flex;
  justify-content:center;
  gap:30px;
  margin-bottom:60px;
}

.project-stat{
  background:#111827;
  color:white;
  padding:30px;
  border-radius:20px;
  width:250px;
  text-align:center;
}

.project-stat h2{
  font-size:45px;
  color:#c084fc;
}

.project-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.project-card{
  position:relative;
  overflow:hidden;
  border-radius:20px;
}

.project-card img{
  width:100%;
  height:300px;
  object-fit:cover;
  transition:.5s;
}

.project-layer{
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(transparent,#a855f7);
  top:0;
  left:0;
  display:flex;
  align-items:end;
  padding:30px;
  color:white;
  opacity:0;
  transition:.5s;
}

.project-card:hover .project-layer{
  opacity:1;
}

.project-card:hover img{
  transform:scale(1.1);
}

.contact-container{
  display:flex;
  justify-content:center;
}

.contact-card{
  width:700px;
  background:#111827;
  color:white;
  padding:50px;
  border-radius:20px;
  text-align:center;
}

.socials{
  margin-top:30px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
}

.socials a{
  width:60px;
  height:60px;
  background:#c084fc;
  color:white;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:24px;
  text-decoration:none;
  transition:.3s;
}

.socials a:hover{
  transform:translateY(-10px);
}

.footer{
  background:#0f172a;
  color:white;
  text-align:center;
  padding:40px 20px;
}

.footer h2{
  color:#c084fc;
  margin-bottom:10px;
}

.footer-time{
  margin:20px 0;
  font-size:22px;
  color:#c084fc;
}

.popup{
  opacity:0;
  transform:translateY(60px);
  transition:1s;
}

.popup.show{
  opacity:1;
  transform:translateY(0);
}



/* ================= SMALL SCREEN ================= */

.about-card p{
  line-height:2;
  font-size:17px;
  color:#374151;
}

@media(max-width:768px){

  .about-card p{
    line-height:1.8;
    font-size:15px;
  }

}



/* ================= SMALL SCREEN ================= */

@media(max-width:991px){

  .home-image img{
    width:100%;
    max-width:350px;
  }

  .stats,
  .service-container,
  .project-container{
    grid-template-columns:1fr;
  }

}

@media(max-width:768px){

  #preloader{
    padding:20px;
    text-align:center;
  }

  .loader{
    gap:8px;
  }

  .loader span{
    width:12px;
    height:12px;
  }

  #preloader h2{
    font-size:16px;
    letter-spacing:1px;
  }

  
 .btn{
  padding: 25px 30px;
 }
 .btn2{
   padding: 25px 30px;
 }

   .hero-animation{
    width:260px;
    height:260px;
    margin-right: 250px;
  }

  .menu-btn{
    display:block;
  }

  .navbar{
    position:absolute;
    top:100%;
    right:-100%;
    width:250px;
    background:#111827;
    flex-direction:column;
    padding:30px;
    transition:.5s;
  }

  .navbar.active{
    right:0;
  }

  .text-box h1{
    font-size:50px;
  }

  .text-box h2{
    font-size:28px;
  }

  .project-stats{
    flex-direction:column;
    align-items:center;
  }

}

@media(max-width:500px){

  section{
    padding:80px 5%;
  }

  .text-box h1{
    font-size:42px;
  }

  .section-title h2{
    font-size:35px;
  }

  .contact-card{
    padding:35px 20px;
  }

}

