
.about-us{
width: 100%;
height: 100%;
display: flex;

margin: auto;

}
.about-us-left{
 width:60%;
 height: 100%;

}

.about-us-right{
 width:40%;
 height: 100%;
 
}

 .about-us-ltxt{
    width:70%;
    height: 65%;
    padding-left: 2rem;
    position: relative;
   
    left:15%;
    
    border-left: 0.7rem solid #f89b1c;
    
}



.about-us-img{
    width: 90%;
    height: 90%;
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     grid-template-rows: auto;
     gap: 10px;
     position: relative;
     left:5%;
    
   
    
}

.about-us-ltxt h1{
 font-size: 2.5rem;
 color: rgb(11, 1, 70);
}

.about-us-ltxt p{
    font-weight: 700;
    margin-bottom: 1.5rem; 
    margin-top: 2.2rem;
    font-size: 1.2rem;
    text-align:justify;
color: rgb(11, 1, 70);

}

.about-us-ltxt button{
    padding: 0.8rem 3rem;
    text-align: center;
    margin-left: 0.4rem;
    align-content: start;
    background-color:#131673;
    border : 2px solid white; 
}
.about-us-ltxt button:hover{
  transform: translateY(-5px);
  transition:1s ease-in-out;
  cursor: pointer;
  box-shadow: #6B6B8C;
}
.about-us-ltxt a{
    color:white;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
   
}

.img-box {
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  
}
/* Different shapes */
.tall {
  background: linear-gradient(rgba(248, 245, 243, 0.4));
  object-position: center;
  grid-row: span 2;
  border-radius: 20px;
 
}

.circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.wide {
  border-radius: 20px;
}

/* Info box style */
.info-box {
  background-color: #f89b1c;
  color: white;
  font-weight: 600;
  border-radius: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  text-align: center;
  flex-direction: column;
  position: relative;
  left: -20%;
  top:-55%;
}

.icon {
  font-size: 24px;
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .image-collage {
    width: 90%;
    position: static;
    transform: none;
    margin: 40px auto;
  }
  .mid{
    position: relative;
    left:50%;
    transform:  translateX(-50%);
  }
}



 /*MID CONTENT */
.mid-section{
  width: 100%;
  height: 40%;
  background: rgb(1, 1, 66);
  background-position: center;
  background-size: cover;
}
.mid-section h1{
  color:white;
  text-align: center;
  
}
.mid-content{
  position: relative;
  top:50%;
}
.mid-img{
  position: absolute;
  left:5%;
  top:0;
}
.mid-img img{  width: 30%;
  height: 40%;}


/* SERVICES */
.services-section {
  width: 100%;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
 
  margin-left: 0;
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

/* LEFT CONTENT */
.left-content {
  flex: 1 1 350px;   /* FIX → use min widths, not fixed percentages */
  max-width: 480px;
}

.left-content h4 {
  color: #555;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.left-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ff7a00;
}

.left-content p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

/* RIGHT CONTENT */
.right-content {
  flex: 1 1 500px;
  display: grid;

  /* FIX 2 → 1fr instead of 2fr to prevent overflow */
  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
  box-sizing: border-box;
}

.service-box {
  padding: 40px 25px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
}

.service-box .icon {
  font-size: 35px;
  margin-bottom: 15px;
  color:#f89b1c;
}

.service-box h3 {
  font-size: 20px;
  color: #0a1a3c;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 15px;
  color: #555;
}

.service-box.blue {
  background-color: #131673;
  color: #fff;
}

.service-box.blue h3,
.service-box.blue p {
  color: #fff;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.service-box::before {
  content: "";
  position: absolute;
  width: 0;
  height: 5px;
  left: 0;
  bottom: 0;
  background: #ff7a00;
  transition: 0.4s;
}

.service-box:hover::before {
  width: 100%;
}
.service-box button{
  padding: 1rem 2rem;
  background-color: aliceblue;
  border-radius: 2px;
}
.service-box button a{
  text-decoration: none;
  font-size: 1rem;
  color:#131673;
}
.service-box button:hover{
  transform: translateY(-5px);
}
/* RESPONSIVE FIX */
@media (max-width: 768px) {
  .right-content {
    grid-template-columns: 1fr;
  }
}


.mid-content{
  background: url('');
}

  /* Process Workflow Section */
        .process-workflow {
            padding: 6rem 2rem;
            background: #f8f9fc;
            position: relative;
            margin: 5rem;
              
        }

        .workflow-container {
            width: 100%;
            margin: 0 3rem;
              
        }

        .workflow-header {
            margin-bottom: 1rem;
        }

        .workflow-label {
            font-size: 0.9rem;
            color: #8B8FA8;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
            margin-bottom: 0.5rem;
            
             
        }
        .workflow-title {
            font-size: 3rem;
            color: #3D3D71;
            font-weight: 700;
            line-height: 1.2;
        }

        .workflow-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            margin-top: 3rem;
          
        }

        .workflow-left {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            
           
            border-left: 9px solid #f89b1c;
        }

        .workflow-right {
             display: flex;
             flex-direction: column;
             
            
             padding-bottom: 7rem;
           
             margin-top: 0;
        }

        .workflow-steps-top {
            display: flex;
            flex-direction: column;
            gap: 2rem;
          
        }

        .workflow-steps-bottom {
            position: relative;
            left:0;
            top: 50%;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .workflow-step {
            display: grid;
            grid-template-columns: 60px 0.8fr;
            height: 6rem;
            gap: 1.5rem;
            overflow-x: hidden;
          
        }

     

        .step-number {
           margin-left: 0.5rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #131673 0%, #0b0343 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .workflow-step:hover .step-number {
            transform: scale(1.1) rotate(7deg);
        }

        .step-content h3 {
            font-size: 1.4rem;
            color: #3D3D71;
            margin-bottom: 0.7rem;
            font-weight: 600;
        }
        .workflow-step:hover{
          border: 1px;
          background: #8B8FA8;
          transition: 1s ease-in-out;
          transform: translateY(-5px);
        }
        .step-content p {
            color: #6B6B8C;
            line-height: 1.7;
            font-size: 1rem;
        }
        .step-content:hover p{
          color:white;
        }
      
       .workflow-image img{
            width:25%;
            height: 35%;
            animation: floatIn 1s ease-out 0.5s both;
            
             position: absolute;
             top: 0%;
             left:65%;
             margin-top: 2rem;
             border-top-left-radius: 10rem;
             border-bottom-right-radius: 10rem;
       }

/* ======= ABOUT-US MOBILE VIEW ======= */
@media (max-width: 768px) {

  /* Parent container setup */
  .about-us {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 40px 20px;
    position: relative;
  }

  /* ----- TEXT SECTION ----- */
  .about-us-left {
    width: 100%;
    height: auto;
    order: 1; /* text first */
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }

  .about-us-ltxt {
    width: 100%;
    height: auto;
    padding: 1rem;
    text-align: center;
    border-left: none;
    border-top: 4px solid #f89b1c; /* keep your orange accent */
    top: 0;
    left: 0;
    animation: none;
  }

  .about-us-ltxt h1 {
    font-size: 1.8rem;
  }

  .about-us-ltxt p {
    font-size: 1rem;
    text-align: justify;
  }

  .about-us-ltxt button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    margin-top: 10px;
  }

  /* ----- IMAGE GRID SECTION ----- */
  .about-us-right {
    width: 100%;
    height: auto;
    order: 2; /* appears after text */
     /* push grid to next "page" */
    padding-top: 40px;
    position: relative;
  }

  .about-us-img {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    grid-auto-rows: auto;
    gap: 12px;
    width: 100%;
    left: 0;
    top: 0;
    transform: none;
    padding: 0 10px;
  }

  .img-box {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
  }

  .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }

  .img-box img:hover {
    transform: scale(1.05);
  }

  /* Simplify special shapes on mobile */
  .tall, .wide, .circle {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    grid-row: auto;
  }

  /* Adjust info box if present */
  .info-box {
    position: relative;
    left: 0;
    top: 0;
    margin-top: 20px;
    width: 100%;
  }
}

@media (max-width:768px) {
   .mid-content h1{
      font-size: 1rem;
   }
   .mid-img{
    position: absolute;
    top:0;
    left:5%;
    width: 60%;
   }
}

@media (max-width: 768px) {
            .process-workflow {
                padding: 2rem 1.5rem;
                width: 100%;
                margin: 0;
            }
    .workflow-container{
      margin: 0;
    }
            .workflow-title {
                font-size: 2rem;
            }

            .workflow-content {
                gap: 2rem;
            }

            .workflow-step {
                grid-template-columns: 38px 1fr;
                gap: 1rem;
            }

            .step-number {
                width: 40px;
                height: 40px;
                font-size: 0.6rem;
            }

            .step-content h3 {
                font-size: 0.9rem;
            }

            .step-content p {
                display: none;
            }

            .workflow-illustration {
                min-height: 300px;
            }

           
        }
        /* ------------------------------- */
/*  Small Mobile (≤ 480px)         */
/* ------------------------------- */
@media (max-width: 350px) {

    .workflow-title {
        font-size: 1.4rem;
    }

    .workflow-step {
        grid-template-columns: 40px 1fr;
        gap: 0.8rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.7rem;
    }

    .workflow-illustration {
        min-height: 220px;
    }
    .step-content h3{
      font-size: 0.8rem;
    }
}

/* ==========================
   SERVICES SECTION - MOBILE GRID VIEW
========================== */
@media (max-width: 768px) {

  .services-section {
    width: 100%;
    height: auto; /* allow vertical scroll */
    padding: 40px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Stack text first, then grid */
  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* ----- LEFT CONTENT (TEXT) ----- */
  .left-content {
    width: 100%;
    text-align: center;
    flex: none;
  }

  .left-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .left-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ff7a00;
  }

  .left-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #444;
  }

  /* ----- RIGHT CONTENT (SERVICE GRID) ----- */
  .right-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    justify-content: center;
    align-items: stretch;
  }

  /* Service boxes same style, smaller padding */
  .service-box {
    padding: 25px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
  }

  .service-box .icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: #f89b1c;
  }

  .service-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0a1a3c;
  }

  .service-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
  }

  /* Blue variant consistency */
  .service-box.blue {
    background-color: #131673;
    color: #fff;
  }

  .service-box.blue h3,
  .service-box.blue p {
    color: #fff;
  }

  /* Hover behavior simplified for touch */
  .service-box:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .service-box::before {
    height: 4px;
  }
  .mid-section{
    height: 30%;
  }
  .mid-img{
    display: none;
  }
}


/* ==========================
   SMALLER MOBILE (≤480px)
========================== */
@media (max-width: 400px) {
  .right-content {
    grid-template-columns: 1fr; /* one box per row on very small screens */
  }
.mid-section{
  height: 20%;
}
.mid-img{
  display: none;
}
}
