/********** Template CSS **********/
:root {
    --primary: #FD5D14;
    --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;
}

.cards {
    padding-top: 3rem;
    padding-bottom: 2rem;
    background-color: #fbf9f5;
}

.cards h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.cards p {
    text-align: center;
}

.cards .card {
    max-width: 21rem;
    margin-right: auto;
    margin-bottom: 4rem;
    margin-left: auto;
    padding: 3rem 1.625rem 1.75rem 1.625rem;
    border: none;
    background-color: #fff;
    text-align: center;
}

.cards .card-image {
    width: 6rem;
    height: 6rem;
    margin-right: auto;
    margin-bottom: 1.5rem;
    margin-left: auto;
    border-radius: 50%;
    background-color: #fbf9f5;

}

.cards .fas,
.cards .far,
.cards .fa {
    color: #FD5D14;
    font-size: 3rem;
    line-height: 6rem;
}

.container .fas,
.container .far,
.container .fa {
    color: #FD5D14;
    font-size: 3rem;
    line-height: 6rem;
}

.cards .card-body {
    padding: 0;
}

.cards .card-title {
    margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container-fluid{
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

#mv-title {
    margin-top: 90px;
}

strong {
    font-weight: 6000;
    color:   #040F28;

}

.li-space-lg li {
    margin-bottom: 0.375rem;
}

/***************************/
/*     08. Description     */
/***************************/
.basic-2 {
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
    background-color: #fbf9f5;
}

.basic-2 h2 {
    margin-bottom: 3.75rem;
    text-align: center;
}

.basic-2 .li-space-lg li {
    margin-bottom: 1.375rem;
}

.basic-2 .list-unstyled .bullet {
    margin-right: 0.625rem;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background-color: #FD5D14;
    color: #F4F6F8;
    font-style: normal;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
}


.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}



@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}


@media (max-width: 576px) {

    #magtecstitle {
        font-size: 24px;
    }

    #magtecslogo {
        height: 50px;
    }

    .position-relative.portfolio-box p {
        font-size: 18px; /* Adjust the font size for smaller devices */
    }

    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }

    .container {
    max-width: 540px;
  }

  /* Description */
    .basic-2 h2 {
        width: 41rem;
        margin-right: auto;
        margin-left: auto;
    }

    .basic-2 .list-unstyled .bullet {
        width: 3.25rem;
        height: 3.25rem;
        margin-right: 1rem;
        font-size: 1.375rem;
        line-height: 3.25rem;
    }
    /* end of description */

}

.page-header {
    height: 350px;
    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/header1.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) {

    .cards {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .cards .card {
        display: inline-block;
        width: 17.75rem;
        max-width: 100%;
        vertical-align: top;
    }

    .cards .card:nth-child(3n+2) {
        margin-right: 2rem;
        margin-left: 2rem;
    }
    
    .container {
    max-width: 960px;
  }

    .basic-2 {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem
    }

    .text-lg-left {
    text-align: left !important;
  }
  .text-lg-right {
    text-align: right !important;
  }
  .text-lg-center {
    text-align: center !important;
  }
 
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {


    /* Takeaways */
    .cards {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .cards .card {
        display: inline-block;
        width: 17.75rem;
        max-width: 100%;
        vertical-align: top;
    }

    .cards .card:nth-child(3n+2) {
        margin-right: 2rem;
        margin-left: 2rem;
    }
    /* end of takeaways */

    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}
    .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);
}

/*Widescreen*/
@media (min-width: 1920px) {

    #magtecstitle {
        font-size: 36px;
    }

    #magtecslogo {
        height: 100px;
    }

    .position-relative.portfolio-box p {
        font-size: 24px;
    }

    .carousel-caption h4 {
        font-size: 28px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 50px;
        font-weight: 600 !important;
    }

    .container {
        max-width: 1600px;
    }

    /* Description */
    .basic-2 h2 {
        width: 61rem;
        margin-right: auto;
        margin-left: auto;
    }

    .basic-2 .list-unstyled .bullet {
        width: 5rem;
        height: 5rem;
        margin-right: 1rem;
        font-size: 2rem;
        line-height: 5rem;
    }

    .col-lg-5 {
        margin-right: 1000;
        padding-right: 0;
    }
    
    .col-lg-7 {
        padding-left: 0;
    }

    .img-fluid {
        margin-right: 0.25in;
    }
    /* end of description */

}

.page-header {
    height: 500px;
    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/header1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 150px;
    height: 150px;
    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: 80px;
}

.portfolio-item {
    margin-bottom: 80px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 150px;
    padding: 0 40px;
    right: 40px;
    left: 40px;
    bottom: -80px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -80px;
    margin-left: -80px;
    font-size: 150px;
    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) {

    .cards {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .cards .card {
        display: inline-block;
        width: 17.75rem;
        max-width: 100%;
        vertical-align: top;
    }

    .cards .card:nth-child(3n+2) {
        margin-right: 2rem;
        margin-left: 2rem;
    }
    
    .container {
        max-width: 960px;
    }

    .basic-2 {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

    .text-lg-left {
        text-align: left !important;
    }
    
    .text-lg-right {
        text-align: right !important;
    }
    
    .text-lg-center {
        text-align: center !important;
    }
 
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }

    
}

@media (min-width: 992px) {
    /* Takeaways */
    .cards {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .cards .card {
        display: inline-block;
        width: 17.75rem;
        max-width: 100%;
        vertical-align: top;
    }

    .cards .card:nth-child(3n+2) {
        margin-right: 2rem;
        margin-left: 2rem;
    }
    /* end of takeaways */

    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

.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);
}


/*Tablet*/ 
@media screen and (width: 820px) and (height: 1180px){
    #magtecstitle {
        font-size: 60px;

    }

    .position-relative.portfolio-box p {
        font-size: 20px; /* Adjust the font size for smaller devices */
    }

    .table {
        font-size: 14px;
    }
    .table th, .table td {
        padding: 0.5rem;
    }
    .text-center {
        text-align: center;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on iOS */
        white-space: nowrap; /* Prevents table cells from wrapping */
    }

    /* Adjust padding for better mobile view */
    .container-fluid.py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

}

/*Phone*/ 

@media only screen and (max-width: 599px) {
    
    #magtecstitle {
        display: flex;
        align-items: center; /* Align items vertically */
    }

    #magtecslogo {
        display: none;
    }

    .position-relative.portfolio-box p {
        font-size: 16px; /* Adjust the font size for smaller devices */
    }

    #line {
        display: none;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on iOS and Android */
    }

    .container-fluid.py-6 {
        padding-top: 1rem; /* Adjust padding top as needed */
        padding-bottom: 1rem; /* Adjust padding bottom as needed */
    }

    /* Ensure table headers are visible on smaller screens */
    .table-responsive table {
        min-width: 600px; /* Set a minimum width to prevent collapsing */
    }

    .table-responsive table th {
        position: sticky;
        top: 0;
        background-color: #f8f9fa; /* Background color for sticky headers */
        z-index: 1;
    }

    .table-responsive table td {
        min-width: 100px; /* Ensure cells have minimum width for readability */
    }
}

@media only screen and (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on iOS and Android */
    }

    /* Adjust padding for better mobile view */
    .container-fluid.py-6 {
        padding-top: 2rem; /* Adjust as needed */
        padding-bottom: 2rem; /* Adjust as needed */
    }
}
