/********** Template CSS **********/
:root {
    --primary: blue;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: #0d1657;
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar-toggler-icon {
        background-color: #0d1657 !important;
        border-radius: 4px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/amecron-pipeline_maintenance.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}




/*
    Miracle CSS Addition starts here
*/

.error-response {
    color: red;
    font-size: 0.9em;
    padding:6px 0;
}

.error-alert{
    border: 2px solid rgb(233, 16, 16) !important;
}

.contact-response {
    display: none;
    position:fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: green;
    padding: 1.5rem 2rem;
}

.contact-response > div {
    color: #ffffff;
}

.contact-response span {
        background: #ffffff;
        position:absolute;
        top: -32px;
        right: 0;
        color: rgb(24, 23, 23);
        padding: 0.2rem 0.6rem;
        cursor: pointer;
        border:1px solid #333;
}

.pop-up {
    transform: translateY(0%);
    transition: all 300ms cubic-bezier(0, 0, .40, 1);
    opacity: 1;
    perspective: 1000;
    animation-name: success;
    animation-duration: 0.7s;
    z-index: 200;
}

@keyframes success {
    0% {
        opacity: 0;
        transform: translateY(150%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

/*
    Miracle CSS Addition ends here
*/


/* home Flip card starts here */
.flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-front {
    background-color: #bbb;
    color: black;
  }
  
  .flip-card-back {
    background-color: #2980b9;
    color: white;
    transform: rotateY(180deg);
  }

 .flip-card-card {
      display:grid;
      grid-template-columns: 1fr 1fr;
      grid-column-gap: 5px;
      align-items: center;


  }

  /*home flip card ends here*/

  
  /*about vision starts here*/

  .about-flip{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      align-items: center;
  }

  .flip-box-inner h2{
      font-size: large;
      padding: 50px;
      color: white !important;

  }


  .flip-box {
    background-color: transparent;
    width: 300px;
    height: 200px;
    border: 1px solid #f1f1f1;
    perspective: 1000px;
  }
  
  .flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .flip-box:hover .flip-box-inner {
    transform: rotateX(180deg);
  }
  
  .flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-box-front {
    background-color:rgb(12, 12, 12) ;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  
  .flip-box-back {
    background-color: #2980b9;
    color: white;
    transform: rotateX(180deg);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  @media (max-width:996px) {
    .flip-box {
        margin: 0.5rem !important;
    }
}


@media(max-width:724px) {
    .about-flip {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .flip-box {
        margin: 2rem !important;
    }

}

  /* about us vision end */


  /* header view color starts here */


  .hd-container, .hd-nav-second { 
    background-color: #ffffff;
  }


  .hd-nav-second a{
    /* color:#0d1657 !important; */
    font-weight: bold;
  }

  .hd-nav-second a:hover{
    color:#a2271d !important;
  }


  .top-header {
    background-color: #0d1657;
  }

  .top-header span, .top-header h6, .top-header i, .top-header p {
    color: #ffffff;
  }

  .amecron-bg-red {
    background-color: #a2271d;
  }

  .amecron-c-red, .amecron-active  {
    color: #a2271d !important;
  }

  .amecron-border-top  {
    border-top:1px solid #a2271d !important;
  }

  .amecron-bg-blue {
    background-color: #0d1657;
  }

  .amecron-c-blue {
    color: #0d1657;
  }

  .amecron-white {
    color: #ffffff !important;
  }
   
 
  /*Clients slider*/

  .partners_logo_card {
    width: 6rem;
    height: 6rem;
    margin-right: 3rem !important;
}

.slider-area {
    background-color: #f1f1f1;
    overflow: hidden;
}

#amecron-link-quote:hover {
    color: #ffffff !important;
    background-color: #801f17;
}

.slider-area h2 {
	text-align: center;
	color: #040F28;
}

.wrapper {
    width: 150%;
	margin: 0 auto;
	overflow: hidden;
	padding: 2.5rem;
}

.item {
	animation: animate 25s alternate linear infinite;
}

.item img {
    width: 100%;
}

.container:hover .item {
	animation-play-state: paused;
}
@keyframes animate {
	0% {
		transform: translate3d(-100px, 0, 0);
	}
	100% {
		transform: translate3d(100px, 0, 0);
	}
}
@media (max-width:767px) {
	.slider-area h2 {
		font-size: 30px;
	}
	.wrapper {
		width: 95%;
		border-radius: 0;
		padding: 0;
	}
}

@media (max-width:611px) {
    .wrapper {
		width: 350%;
	}

    .partners_logo_card {
        width: 24rem;
        height: 12rem;
        /* border: 1px solid red; */
    }

    
    .item img {
        width: 100%;
    }
    
}

@media (max-width:444px) {

    .partners_logo_card {
        width: 42rem;
        height: 24rem;
        /* border: 1px solid red; */
    }

    
    .item img {
        width: 100%;
    }
    
}




/*Iframe responsive*/

.amecron-frame  {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* padding-top: 56.25%; */
}


.amecron-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}


#contact-bar {
    margin: 4rem 0;
}


/*About Page*/
.amc-m-statement {
    background-image: url(../img/pexels-pixabay-159375.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 2rem;
}

.amc-m-statement::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #040f2863;
}

.am_list {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem 0; 
    grid-template-areas:
        "box1  ."
        ".  box2"
        "box3  ."
        ".  box4"
        ;
}

.box1 {
    grid-area: box1;
    z-index: 1;
}

.box2 {
    grid-area: box2;
    z-index: 1;
}

.box3 {
    grid-area: box3;
    z-index: 1;
}

.box4 {
    grid-area: box4;
    z-index: 1;
}

.am_list div h1 {
    color: #FDBE33;
}


@media (max-width:724px) {
    .am_list {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

}


/*What we do*/

.gal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.gal2 {
    grid-template-columns: 1fr 1fr !important;
}

.gal > div {
    margin: 2rem 1rem 0 0;
    border-right: 1px solid #ccc;
    position: relative;
    
}

.gal > div::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.gal div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.procurement-img-size div img {
    width: 50% !important;
}

.gal-txt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 60%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 1rem;
    z-index: 1;
    background: linear-gradient(360deg, rgba(0,0,0,1) 16%, rgba(0,0,0,0.3085609243697479) 71%, rgba(0,212,255,0) 100%);
}

.gal-txt h5 {
    color: #fff;
    font-size: 1.8rem;
}

@media (max-width:1272px){
    .gal1-txt h5 {
        font-size: 1rem;
    }
}

@media (max-width:991px){
    .gal {
        grid-template-columns: 1fr;
    }

    .gal2 {
        grid-template-columns: 1fr !important;
    }

    .gal1-txt h5 {
        font-size: 1.8rem;
    }
}

 
.amecron-ab-block {
    padding: 0.5rem;
    margin-bottom: 2rem;
    color:#ffffff;
}


/*Amecron Project History*/

.amecron-tgrid {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 0.5fr 0.5fr;
}


.amecron-tgrid {
    padding:0.5rem;
}

.amacron-table {
    border: 1px solid rgb(170, 166, 166);
    padding: 0;
}

.amecron-tgrid > div {
    padding: 0.5rem;  
}
.t-header {
    padding: 1rem; 
}

.t-bottom{
    border-bottom: 1px solid rgb(170, 166, 166);
}

.t-title {
    font-weight: 900;
    color: #ffffff;
}


/*Animation Loader*/

.load-wrapp {
    float: left;
    width: 150px;
    height: 150px;
    margin: 0 10px 10px 0;
    padding: 20px 20px 20px;
    border-radius: 5px;
    text-align: center;
    background-color: #d8d8d8;
    }

    .load-wrapp:last-child {
    margin-right: 0;
    }

    .line {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    background-color: #4b9cdb;
    }

    .load-1 .line:nth-last-child(1) {
    animation: loadingA 1.5s 1s infinite;
    }
    .load-1 .line:nth-last-child(2) {
    animation: loadingA 1.5s 0.5s infinite;
    }
    .load-1 .line:nth-last-child(3) {
    animation: loadingA 1.5s 0s infinite;
    }


    @keyframes loadingA {
    0%{
        height: 15px;
    }
    50% {
        height: 35px;
    }
    100% {
        height: 15px;
    }
    }


    .am_form input, .am_form textarea{
        border: 2px solid rgb(180, 171, 171) !important;
    }

    .am_form p {
        text-align: left;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .upld_btn {
        background-color: indigo;
        color: white;
        padding: 0.5rem;
        font-family: sans-serif;
        cursor: pointer;
        margin-top: 1rem;
    }

    .required:after {
        content:" *";
        color: red;
      }


      /*Dot Animation*/
      .dot1 {
        opacity: 0;
        animation-name:  appear;
        animation-delay: 0.6s;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }
    .dot2 {
        margin-left: 0 !important;
        opacity: 0;
        animation-name:  appear;
        animation-delay: 0.8s;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }
    .dot3 {
        opacity: 0;
        animation-name:  appear;
        animation-delay: 1s;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }

    @keyframes appear {
        0%{opacity: 1;}
        100%{opacity: 0;}
    }