/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
}


/* HEADER SECTION */

.h1-box, .section-heading-box {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #00b3b3, #0099cc, #3366ff);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    animation: popFadeIn 1s ease-in-out;
}

.h1-box h1, .section-heading-box h2 {
    color: white;
    margin: 0;
}

@keyframes popFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

  
  /* Services Section */
 #particles-js {
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: 0;
      top: 0;
      left: 0;
      pointer-events: none;
      opacity: 0.3;
    }

    .services {
      position: relative;
      padding: 60px 20px;
      text-align: center;
      z-index: 2;
    }

    .services h2.section-title {
      font-size: 2.7rem;
      color: #003366;
      margin-bottom: 40px;
      position: relative;
    }

    .cards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      position: relative;
      z-index: 2;
    }

    .flip-card {
      background: transparent;
      width: 300px;
      height: 360px;
      perspective: 1000px;
    }

    .flip-inner {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.8s;
      transform-style: preserve-3d;
    }

    .flip-card:hover .flip-inner {
      transform: rotateY(180deg);
    }

    .front, .back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 15px;
      padding: 1.5rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .front {
      background: #ffffffdd;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .back {
      background: #eef3fb;
      transform: rotateY(180deg);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .front i {
      font-size: 3rem;
      margin-bottom: 20px;
      color: #0072ff;
    }

    .front h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      color: #002b5b;
    }

    .front h4 {
      font-weight: normal;
      font-size: 0.95rem;
      color: #444;
    }

    .back p {
      font-size: 0.95rem;
      color: #333;
      line-height: 1.5;
    }

    @media (max-width: 1024px) {
      .cards {
        padding: 0 40px;
      }
    }

    @media (max-width: 768px) {
      .cards {
        padding: 0 20px;
        gap: 1.5rem;
      }

      .flip-card {
        width: 90%;
      }

      .front, .back {
        padding: 1rem;
      }
    }

    @media (max-width: 480px) {
      .services h2.section-title {
        font-size: 2rem;
      }

      .flip-card {
        width: 100%;
      }

      .front i {
        font-size: 2.2rem;
      }
    }S



/* About Us Section */
/* General styles for the About section */
.about {
  padding: 50px 0;
  background: #f5f5f5;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #7e57c2;
}


.service-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left and Right Service Sections */
.left-services,
.right-services {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Styles */
.about .card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.right-services .card {
  transform: translateX(100%);
}

.card.active {
  transform: translateX(0);
  opacity: 1;
}

.card i {
  font-size: 30px;
  color: #7e57c2;
}

/* Wave Hover Effect */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(126,87,194,0.2), rgba(126,87,194,0.4));
  z-index: 0;
  transition: width 0.4s ease;
  border-radius: 10px;
}

.card:hover::before {
  width: 100%;
}

.card span {
  position: relative;
  z-index: 1;
  font-weight: bold;
  color: #333;
}

/* Reveal Cards on Scroll */
@keyframes revealFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes revealFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.left-services .card.active {
  animation: revealFromLeft 0.6s ease forwards;
}

.right-services .card.active {
  animation: revealFromRight 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .left-services,
  .right-services {
    width: 100%;
  }
}


/* About Us our more services  */

.card {
  position: relative;
  overflow: hidden;
  background-color: #f3f3f3;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border-radius: 12px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(142, 45, 226, 0) 0%,
    rgba(248, 4, 4, 0.4) 50%,
    rgba(74, 0, 224, 0) 100%
  );
  transform: skewX(-20deg);
  z-index: 0;
  transition: none;
}

.card:hover::before {
  animation: sweep 0.8s ease forwards;
}

@keyframes sweep {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(45, 96, 226, 0.5);
}

.card .content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.card .service-title {
  color: #333;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.card:hover .service-title {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}



/* detail section   */

.detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding: 50px 10%;
  background: linear-gradient(to right, #0a0a3c, #7e57c2);
  opacity: 0;
  transform: scale(0.9);
  transition: transform 1s ease, opacity 1s ease;
}

.detail.active {
  opacity: 1;
  transform: scale(1);
}

.detail-text, .detail-image {
  width: 50%;
}

.detail-text {
  padding-right: 20px; /* Adds some space between the text and image */
}

.detail-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: white; /* Text color */
}

.detail-text p {
  font-size: 1.2rem;
  color: white; /* Text color */
  line-height: 1.6;
  margin-top: 20px;
}

.detail-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.detail.active .detail-image img {
  transform: scale(1.05);
}

/* Add responsive design for smaller screens */
@media (max-width: 768px) {
  .detail {
    flex-direction: column;
    padding: 30px;
  }

  .detail-text, .detail-image {
    width: 100%;
  }

  .detail-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .detail-image img {
    max-width: 100%;
  }
}


/* info section   */

.info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(100px);
  animation: fadeInUp 1.5s ease-out forwards;
}

.info-text {
  flex: 1 1 450px;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out 0.5s forwards;
}

.info-text h1, .info-text h2, .info-text h3 {
  color: #333;
}

.info-text h1 {
  font-size: 2rem;
  font-weight: 700;
}

.info-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.info-text h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 20px;
}

.info-text p {
  font-size: 1rem;
  color: #666;
  margin-top: 20px;
  line-height: 1.6;
}

.info-image {
  flex: 1 1 300px;
  max-width: 500px;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 2s ease-out 0.5s forwards;
}

.info-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .info {
    flex-direction: column;
    gap: 20px;
    padding: 40px 15px;
  }

  .info-text, .info-image {
    max-width: 100%;
    text-align: center;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .info-text h1 {
    font-size: 1.6rem;
  }

  .info-text h2 {
    font-size: 1.3rem;
  }

  .info-text h3 {
    font-size: 1.1rem;
  }

  .info-text p {
    font-size: 0.95rem;
  }
}



/* cta.css */

.cta-popup {
  opacity: 0;
  width: 80%;
  max-width: 800px;
  transform: scale(0.8);
  transition: all 0.6s ease-in-out;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 100px auto 0 auto;
  background: linear-gradient(to right, #0a0a3c, #4da0ff); /* Light green background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-popup.show-popup {
  opacity: 1;
  transform: scale(1);
}

.popup-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.popup-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.popup-content .btn {
  background: #006400;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.popup-content .btn:hover {
  background: #28a428;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-popup {
    width: 90%;
    padding: 2rem 1rem;
    margin: 60px auto 0 auto;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  .popup-content p {
    font-size: 1rem;
  }

  .popup-content .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

 


/* Client Section */
.client-section {

  padding: 60px 20px;
  
  background: white;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
  
}

.client-section .section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #7e57c2;
}

.client-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.client-card {
  position: relative;
  overflow: hidden;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.client-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  z-index: 1;
  position: relative;
}

.client-card h3 {
  font-size: 1.2rem;
  margin: 10px 0 5px;
  color: #333;
  z-index: 1;
  position: relative;
}

.client-card p {
  font-size: 0.95rem;
  color: #666;
  z-index: 1;
  position: relative;
}

/* Hover overlay from bottom */
.client-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, rgba(126, 87, 194, 0.3), rgba(126, 87, 194, 0));
  z-index: 0;
  transition: height 0.4s ease;
}

.client-card:hover::before {
  height: 100%;
}




/* contect Section */
  .contact {
    padding: 4rem 2rem;
    
    background: #eaffea;
    text-align: center;
  }
  
  .contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  

  
  .contact input,
  .contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .contact button {
    padding: 0.75rem;
    background: #32cd32;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .contact button:hover {
    background: #28a428;
  }

  /* footer Section */
  
  .footer-section {
    background-color: #1e1e2f;
    color: #fff;
    padding: 60px 20px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    position: relative;
  }
  
  .footer-section:hover {
    background-color: #2b2b44;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #7e57c2;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li,
  .footer-column p {
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .footer-column ul li a:hover,
  .footer-column ul li:hover,
  .footer-column p:hover {
    color: #fff;
    transform: translateX(5px);
  }
  
  .footer-logo {
    width: 150px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }
  
  .footer-logo:hover {
    transform: scale(1.05);
  }
  
  .footer-social {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
  }
  
  .footer-social a {
    color: #bbb;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
  }