#service-container {
    /*background-color: #f8f9fa;*/
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}

#services {
    padding-bottom: 0;
}

.section-title{
    padding-bottom: 10px;
}
.service-item {
    background: transparent;
    flex: 1;
    max-width: 33.33%;
    margin: 0;
    margin-top: 20px;
    padding: 30px;
    padding-top: 60px;
}

/* Space between icon and title */
.service-item .icon {
    margin-bottom: 15px; /* Adjust as needed */
}

/* Space between title and image */
.service-title {
    margin-bottom: 20px; /* Adjust as needed */
}

.service-block {
    position: relative;
    width: 100%;
    height: 250px; 
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.service-bg {
    width: 100%;
    height: 100%;
}

.service-bg img {
    width: 100%;
    height: 75%;
    object-fit: cover;
    border-radius: 10px;
    image-rendering: pixelated;
}

.service-content {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.service-content p {
    font-family: sans-serif; 
    font-weight: 500; 
    font-size: 16px; 
    color: #222; 
    text-align: center;
}

.service-content p {
    font-weight: bold;
    margin: 0;
    padding: 10px;
    line-height: 1.4;
}

.service-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid orange;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


@media (max-width: 992px) {
    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }



    .service-block {
        width: 100%;
    }

}
#why-us {
    padding-top: 50px;
}

#why-us .img-bg {
    max-height: 550px;
}

#why-us .slides {
    max-height: 550px;
}

@media (max-width: 1200px) {
    #why-us .row {
        display: flex;
        flex-direction: column;
    }
    #why-us .row.g-0 > .col-xl-5 {
        order: -1;  /* Forces image to come first */
    }

    #why-us .row.g-0 > .col-xl-7 {
        order: 2; /* Ensures text comes after image */
    }
}


#about .img-fluid {
    height: 540px; 
    
}

@media (max-width: 1400px) {
    #about .img-fluid {
        height: 500px;
    }
}

#features .icon-list {
    display: flex;
    flex-direction: column;
}

#features span {
    align-self: flex-start;
}
#features p {
    margin-top: 10px;
    text-align: left;
    margin-right: 25px;
}

#features .details {
    height: 500px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
}


@media (max-width: 1200px) {
    #about .img-fluid {
        height: auto;
        align-self: center;
    }
}



.footer-links ul li {
    text-align: center;
}

.icon-list span {
    font-weight: bold;
}


.about-card {
    border-radius: 4%;
    width: 62%;
}

@media (max-width: 992px) {
    .about-card{
        width: 70%;
        margin-left: 15%;
    }
}

#resume .timeline-left .icon{
    color: #3FC1A8;
    align-items: center;
    justify-content: center;
    align-self: center;
    display: none;
}

.service-item:first-child{
    background-color: rgba(70, 102, 176, 0.05); /* Lighter with transparency */ 
}
.service-item:nth-child(2) .service-content{
    bottom: 70px;
}
.service-item:nth-child(2){
    background-color: rgba(63, 193, 168, 0.05); /* Lighter with transparency */
}
.service-item:last-child{
    background-color: rgba(70, 102, 176, 0.05); /* Lighter with transparency */
}

.timeline-item {
    max-height: 350px;
}
.timeline-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.timeline-right p {
    align-items: center;
    text-align: justify;
}
.timeline-left .icon {
    font-size: 20px;
}

.timeline-right {
    height: 70px;
}

@media (max-width:992px) {
    .timeline-left {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }
    .timeline-left .icon{
        flex-shrink: 0;
    }
}

.timeline-item {
    position: relative;
    background: white !important;
    overflow: hidden;
    padding: 20px;
    border-radius: 5px;
}

/* Common styles for timeline-left and timeline-right */
.timeline-left, .timeline-right {
    position: relative;
}

/* Green Radials for Odd Timeline Items */
.timeline-item:nth-child(odd) .timeline-left::before,
.timeline-item:nth-child(odd) .timeline-right::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(63, 193, 168, 0.5) 0%, transparent 70%);
    z-index: 0;
}

/* Positioning for Green Radials */
.timeline-item:nth-child(odd) .timeline-left::before {
    top: -80px;
    left: -80px;
}

.timeline-item:nth-child(odd) .timeline-right::after {
    width: 400px;
    height: 100px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Blue Radials for Even Timeline Items */
.timeline-item:nth-child(even) .timeline-left::before,
.timeline-item:nth-child(even) .timeline-right::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(70, 102, 176, 0.4) 0%, transparent 80%);
    z-index: 0;
}

/* Positioning for Blue Radials */
.timeline-item:nth-child(even) .timeline-left::before {
    top: -80px;
    left: -80px;
}

.timeline-item:nth-child(even) .timeline-right::after {
    width: 350px;
    height: 100px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}



#why-us .slides {
    position: relative;
    padding: 3rem;
    background: none;
}

#why-us .slides::before {
    content: "";
    position: absolute;
    top: -10px; /* Move slightly up */
    left: 0; /* Ensure it touches the left edge */
    width: 33%; /* Reduce width */
    height: 33%; /* Reduce height */
    background: url('assets/img/mosaic-bg.png') no-repeat left top;
    background-size: contain;
    opacity: 1;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%), 
                 linear-gradient(to bottom, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%), 
                        linear-gradient(to bottom, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none; /* Prevents interaction issues */
}

#features .col-lg-7 span {
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (min-width: 992px){
    
    #features .col-lg-7 {
        background-size: cover;
        height: 150px;
        text-align: left;
        margin-left: 0;
        background-size: 100% 100%;
        padding-top: 10px;
    }

    #features .col-lg-7 span {
        color: black;
    }

    #features .icon-list {
        display: flex;
        align-items: center;
    }
    
    #features .col-lg-7{
        padding-top: 40px;
    }

    #features .row.gy-4 {
        display: flex;
        align-items: flex-start;
    }
    
    #features .col-md-6:nth-child(odd) { /* First column */
        padding-left: 40px; /* Adjust as needed */
    }
    
    #features .col-md-6:nth-child(even) { /* Second column */
        padding-left: 60px; /* Adjust separately as needed */
    }

    #features .details{
        margin-top: 0;
    }
}

.slides {
    position: relative;
    padding-bottom: 80px; /* Adjust based on how much space you need */
}

.slides:nth-child(odd)::after {
    content: "";
    position: absolute;
    width: 140px; /* Smaller circle */
    height: 140px;
    background: radial-gradient(circle, rgba(63, 193, 168, 0.5) 0%, transparent 70%); /* Green */
    bottom: 40px; /* Position it below the text */
    right: 100px;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 0;
}

/* For even slides – Blue */
.slides:nth-child(even)::after {
    content: "";
    position: absolute;
    width: 140px; /* Smaller circle */
    height: 140px;
    background: radial-gradient(circle, rgba(63, 102, 176, 0.5) 0%, transparent 70%); /* Blue */
    bottom: 40px; /* Position it below the text */
    right: 80px;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 0;
}

#about .img-fluid{
    height: auto;
}

#header {
    right: -40px;
    background-color: #4666B0;
}

@media (min-width: 993px){
.hero {
    position: relative;
    background: rgba(30, 58, 112, 0.8); /* Blue tint over entire section */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%; /* Adjusted from 50% to 40% */
    height: 100%;
    background: #1e3a70; /* Solid blue on the left */
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 58%; /* Adjusted from 50% to 60% */
    height: 100%;
    background: url('assets/img/landing.png') center/cover no-repeat;
    opacity: 0.6; /* Keeps the blue tint effect */
    z-index: 2;
}

}
@media (max-width: 1024px) {
    .hero {
        content: "";
        background: url("assets/img/landing.png") center/cover no-repeat;
    }
}
#why-us .row{
    max-height: 450px;
}
#why-us img {
    height: 450px;
}
#why-us .slides{
    padding: 0;
    align-items: center;
}
#why-us .swiper-wrapper{
    top: 20px;
}
@media (max-width: 1024px){
    #features .details .col-lg-7{
        padding-top: 0;
    }
}

@media (max-width:992px) {
    .service-item {
        max-width: 100vw;
        width: 130%;
        margin-bottom: 20px;
        right: 15%;
        justify-self: center;
        align-self: center;
    }
    .service-item:first-child .service-bg img{
        width: 70%;
    }
    #features .details {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
        height: 1100px;
      }
    
      #features .details .col-lg-5 {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        right: 8%;
        margin-bottom: 20px;
      }
    
      #features .details .col-lg-5 img {
        width: 100%;
        height: auto;
        max-width: 600px;
        border-radius: 15px;
        display: block;
        margin: 0 auto;
      }
    
      #features .details .col-lg-7 {
        position: relative;
        width: 100%;
        left: 10%;
      }
    
      #features .details .row.gy-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
      }
    
      #features .icon-list {
        flex-direction: column;
        align-items: flex-start;
      }

      #features .icon-list span{
        text-align: left;
      }
    
      #features .icon-list p {
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
      }
    
    }

@media (max-width: 750px){
    .service-item{
        left: 0;
    }
}

@media (max-width: 790px){
    #features .details .col-lg-5{
        justify-content: center;
        left: 0%;
    }
}
@media (max-width: 500px){
    #features .details .col-lg-7 {
        justify-content: center;
        left: 5%;
        top: -140px;
    }

}

@media (max-width: 1050px) {
    #why-us .row.g-0 {
      display: flex !important;
      flex-direction: column !important;
      max-height: unset !important;
    }
  
    #why-us .img-bg {
      order: 1 !important;
      width: 100% !important;
      text-align: center;
      height: 300px !important; /* Set container height */
      overflow: hidden !important; /* Hide overflow to prevent distortion */
    }
  
    #why-us .img-bg img {
      width: 100% !important;
      height: 100% !important; /* Match container height */
      object-fit: cover !important; /* Maintain aspect ratio */
      display: block !important; /* Remove bottom space */
      margin: 0 !important;
      padding: 0 !important;
      border: none !important;
    }
  
    #why-us .slides {
      order: 2 !important;
      width: 100% !important;
      padding: 20px 15px !important;
      align-items: flex-start !important;
    }
  
    #why-us .swiper-wrapper {
      top: 0 !important;
    }
  
    #why-us .slides .item {
      display: block !important;
      text-align: left !important;
    }
  }

  @media (min-width: 995px) and (max-width: 1050px) {
    #why-us .img-bg img {
      width: 100%;
      height: 250px;
      object-fit: cover; /* Ensures the image covers the area */
      object-position: center top; /* Focus on the top part of the image */
    }
  }

