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

*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    
    /* overflow-y: auto; */
    box-sizing: border-box;
    
  }
body{
    font-family: "Poppins", sans-serif;
    background-color: #121212;
  /* overflow-x: hidden; */
}
html{
  /* avoid forcing overflow hidden on the html element which can create double scrollbars */
  max-width: 100%; /* prevent viewport-bleed from wide children */
}

/* Preloader Styles */
#preloader {
    position: fixed;
    inset: 0; /* shorthand for top, right, bottom, left */
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column; /* Explicitly set flex direction */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader .spinner { /* Increased specificity */
    width: 50px;
    height: 50px;
    border: 5px solid #444;
    border-top-color: #1cb5e0; /* Using a brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Ensure replaced elements (images, video, svg) never exceed their containers */
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
nav {
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #121212;
}

.navbar {
    max-width: 1500px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}
.navbar .logo img{
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-links a.active {
  color: rgb(231, 199, 249);
  font-weight: bold;
}
.nav-links a:hover {
    color: #acacac;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile styles */
@media (max-width: 800px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 200px;
        padding: 15px;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 10px;
    }
    .nav-links a{
        color: #000;
    }
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    .navbar .logo img{
    height: 30px;
    width: auto;
}

}


/* MONITOR  */
.monitor{
  width:90%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: ballBounce 2s forwards;
  
}
@keyframes ballBounce {
  0% {
    transform: translateY(-500px);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: translateY(0);
    animation-timing-function: ease-out;
    opacity: 1;
  }
  60% {
    transform: translateY(-100px);
    animation-timing-function: ease-in;
  }
  80% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
  90% {
    transform: translateY(-50px);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* SERVICES  */
.services-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.services-left {
  background: #444;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: 250px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.services-left .title{
    display: none;
}
.services-left h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.services-left .subtitle {
  color: #ffd166;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-top: 3px solid #ffd166;
  padding-top: 0.5rem;
}
.services-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}
.services-right .fas{
    color: #000;
}
.service-item {
  display: flex;
  align-items: center;
  position: relative;
}
/* Service items initial state */
.service-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

/* Even items slide from right */
.service-item:nth-child(even) {
    transform: translateX(50px);
}

/* Show state */
.service-item.show {
    opacity: 1;
    transform: translateX(0);
}

/* Bounce for icons */
.service-icon {
    transform: scale(0);
    transition: transform 0.8s ease;
}

.service-item.show .service-icon {
    animation: bounceIcon 0.8s forwards;
}

/* Bounce keyframes */
@keyframes bounceIcon {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Connector line initial state */
.connector-svg path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1s ease;
}

/* Animate when visible */
.service-item.show .connector-svg path {
    stroke-dashoffset: 0;
}

.service1, .service5{
  margin-left: -120px;
}
.service3{
  margin-left: 120px;
}
.connector-svg {
  flex-shrink: 0;
  width: 180px;
  height: 70px;
  margin-right: -60px;
  z-index: 0;
}
.service-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  margin-right: 0px;
  margin-left: 0px;
  border: 7px solid #eaeaea;
}
.service-icon.blue {
  background: #888;
  color: #fff;
  border-color: #888;
}
.service-icon.orange {
  background: #eee;
  color: #fff;
  border-color: #eee;
}
.service-icon.red {
  background: #969696;
  color: #fff;
  border-color: #969696;
}
.service-icon.darkblue {
  background: #eee;
  color: #fff;
  border-color: #eee;
}
.service-icon.yellow {
  background: #888;
  color: #fff;
  border-color: #888;
}
.service-content {
  background: #dce2e7;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 18px 32px 18px 60px;
  min-width: 0;
  max-width: 420px;
  margin-left: -30px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.service-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #222;
}
.service-content h3 span {
  color: #1cb5e0;
}
.service-content.orange h3 span {
  color: #ff9800;
}
.service-content.red h3 span {
  color: #e94e77;
}
.service-content.darkblue h3 span {
  color: #0d3c53;
}
.service-content.yellow h3 span {
  color: #ffd166;
}
.service-content p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}






.journey{
    margin: 10% 0;
}
.journey .journey-divide{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.journey .journey-divide .jleft{
    width: 30%;
}
.journey .journey-divide .jright{
    color: #fff;
}
.journey .journey-divide .jright .number{
    color: grey;
    font-size: 72px
}
.journey .journey-divide .jright .text-desc{
    font-size: 52px;
    margin-top: -20px;
    font-weight: 700;
}
.journey .journey-divide .jstep {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.journey .journey-divide .jstep:nth-child(1){  
    background: #969696; 
    margin-left: 5%;
}
.journey .journey-divide .jstep:nth-child(2){  
    background: #444; 
    margin-right: 5%;
}
.journey .journey-divide .jstep:nth-child(3){ 
    background: #888; 
    color: #000;
    margin-left: 5%; 
}
.journey .journey-divide .jstep:nth-child(4){ 
    background: #eee; 
    color: #333; 
    margin-right: 5%;
}

.journey .journey-divide .jstep {
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}




.main-project {
    margin: 5% 0;
}

.main-project .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-project .big-text {
  font-size: 100px;
    font-weight: bold;
    margin-right: 15px;
    color: #fff;
}

.main-project .small-text {
    display: flex;
    flex-direction: column;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.4;
    color: #fff;
}

.main-project .projects {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.main-project .carousel-container {
    overflow: hidden;
    width: 80%;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.main-project .carousel-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  white-space: nowrap;
    animation: scroll 15s linear infinite;
}

.main-project .carousel-track:hover {
    animation-play-state: paused;
}

.main-project .card {
    position: relative;
  min-width: 160px;
    height: 160px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    margin: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

.main-project .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.main-project .card img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.main-project .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: opacity 0.4s ease;
    padding: 10px;
}

.main-project .card:hover .overlay {
    opacity: 1;
}

.project-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* @keyframes scroll {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-50%);
  }
} */

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-project .big-text {
      font-size: clamp(32px, 6vw, 60px);
  }

  .main-project .small-text {
      font-size: 24px;
  }

  .main-project .carousel-container {
    width: 95%;
    padding: 12px 0;
  }

  .main-project .card {
     width: 150px;
    height: 96px;
    font-size: 14px;
  }
  .carousel-track {
    gap: 12px;
  }
}

/* Extra mobile optimizations */
@media (max-width: 480px) {
  /* Make very large headings scale nicely on small screens */
  .main-project .big-text {
    font-size: clamp(28px, 12vw, 44px);
    margin-right: 8px;
  }

  .main-project .small-text {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  /* Navbar spacing and logo size */
  .navbar {
    padding: 10px 12px;
  }
  .navbar .logo img { height: 28px; }
  .nav-links { gap: 12px; font-size: 14px; }

  /* Reduce service content widths and margins to avoid overflow */
  .service-content { min-width: 0; max-width: 100%; padding-left: 44px; }
  .service-icon { width: 64px; height: 64px; font-size: 1.6rem; }

  /* Make carousel cards smaller on tiny screens */
  .main-project .card { min-width: 160px; height: 120px; margin: 6px; }

  /* Reduce overall horizontal gaps that can cause small overflows */
  .nav-links, .services-container, .about-section, .testimonial .test { gap: 12px; }

}




.testimonial .title{
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 3%;
}
.testimonial .test{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 3% 5%;
}
.testimonial .test .test-card{
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 4px;
    
}
.testimonial .test .test-card .split{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.testimonial .test .test-card img{
  border-radius: 50%;
  height: 100px;
  width: 100px;
}

.main-contact{
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 100%;
  overflow: hidden;
  margin:  auto;
  /* padding: 4rem; */
  
   /* max-width: 100%; */
}
.main-contact .title{
  font-size: 52px;
  font-weight: 700;
  margin: 3%;
  color: #fff;
  text-align: center;
}

.main-contact .contact-wrapper {
  background: #fff;
  display: flex;
}
/* Left Form */
.main-contact .form-section {
  flex: 1 1 40%;
  padding: 2rem;
}

.main-contact .form-section h2 {
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  color: #222;
}

.main-contact .form-group {
  margin-bottom: 1rem;
}

.main-contact input[type="text"], 
.main-contact input[type="email"],
.main-contact textarea{
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.main-contact input:focus {
  border-color: #667eea;
}

.main-contact .radio-group {
  margin: 1rem 0;
}

.main-contact .radio-group label {
  display: block;
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.main-contact button {
  background: #fff;
  border: 2px solid #222;
  color: #222;
  padding: 0.7rem 1.5rem;
  width: 100%;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.main-contact button:hover {
  background: #222;
  color: #fff;
}

.main-contact .image-section {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  margin-top: 1%;
}

.main-contact .image-section img {
  width: 70%;
  border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%; 
  object-fit: cover;
}
.main-contact .contact-info {
  flex: 1 1 100%;
  padding: 2rem;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-around;
}

.main-contact .info-item {
  font-size: 0.95rem;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-contact .info-item span {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
}


.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
  background-color: #fff;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 52px;
  margin-bottom: 1rem;
  color: #222;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #555;
}

.about-text button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.about-text button:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.about-images {
  flex: 1 1 500px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}




footer {
  color: #ddd;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 175px;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col p, 
.footer-col a {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.6rem;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  background: #444;
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  font-size: 1rem;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #667eea;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-logo{
  height: 55px;
  width: auto;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
  .footer-col {
    flex: 1 1 100px;
  }
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-images {
    grid-template-columns: 1fr 1fr;
  }
  .about-text {
    flex: 1 1 300px;
  }
}

@media (max-width: 500px) {
  .about-images {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .main-contact .form-section, .image-section {
    flex: 1 1 100%;
    text-align: center;
  }

  .main-contact .form-section {
    order: 1;
  }

  .main-contact .image-section {
    order: 0;
    padding: 1rem;
  }

  .main-contact .contact-info {
    text-align: center;
  }
}

@media (max-width: 800px) {
  .services-container {
    flex-direction: column;
    padding: 40px;
    gap: 20px;
  }
  .services-left{
    background: #121212;
    width: 100%;
    height: 100%;
  }
  .services-left h2{
    display: none;
  }
  .services-left .subtitle{
    display: none;
  }
  .services-left .title{
    display: block;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    text-align: center;
  }
  

  .services-right {
    margin-left: 0;
    gap: 28px;
  }
  .service-content {
    min-width: 220px;
    max-width: 100%;
    padding: 18px 18px 18px 60px;
  }
  .connector-svg {
    display: none;
  }
  .service1, .service5{
      margin-left: 0;
  }
  .service3{
      margin-left: 0;
  }

  .journey .journey-divide{
      flex-direction: column-reverse;
      gap: 20px;
  } 
  .journey .journey-divide .jright .number{
      display: none;
  }
  .journey .journey-divide .jleft {
      width: 65%;
  }
  .testimonial .test{
      flex-direction: column;
  }
  .journey .journey-divide .jright .text-desc {
    font-size: 52px;
    margin-top: -20px;
    font-weight: 700; 
  }
  .main-contact .image-section img {
    width: 90%;
  }
}

@media(max-width:650px){
  .contact-wrapper {
    flex-direction: column;
  }
  .main-contact .image-section img {
    width: 65%;
  }



}
@media(max-width:450px){
  .service-item .service-content {
    padding: 10px 10px 10px 40px;
  }
  .service-icon {
    height: 50px;
  }
  .services-right .fas {
    font-size: 21px;
    padding: 15px;
  }
  .main-project .big-text {
    font-size: 70px;
  }
  .testimonial .title {
    font-size: 36px;
  }
  .journey .journey-divide .jright .text-desc {
    font-size: 36px;
  }
  .services-left .title{
    font-size: 36px;
  }
  .monitor {
    width: 100%;
  }
  .journey .journey-divide .jleft {
    width: 90%;
  }
  .main-contact .title{
    font-size: 36px;
  }
  .contact-wrapper {
    flex-direction: column-reverse;
  }
  .main-contact .image-section img {
    width: 85%;
  }
  .about-text h2 {
    font-size: 36px;
  }
  .testimonial .title {
    margin: 10% 3% 3%;
  }
}


/* General hidden state */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* When visible */
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade + scale for hero monitor */
.monitor {
  opacity: 0;
  transform: translateY(-200px) scale(0.8);
  transition: all 1s ease-out;
}
.monitor.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: ballBounce 1.5s ease forwards;
}

/* Staggered services */
.service-item {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}
.service-item:nth-child(even) {
  transform: translateX(60px);
}
.service-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* Journey steps */
.jstep {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}
.jstep.show {
  opacity: 1;
  transform: scale(1);
}

/* About section */
.about-section {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}
.about-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials */
.test-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.test-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Contact form */
.main-contact {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}
.main-contact.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
footer.show {
  opacity: 1;
  transform: translateY(0);
}
