

:root {
    /* Primary color scheme */
    --primary-color: #02219a; /* Main brand color - changed from white */
    --secondary-color: #000000;
    --tertiary-color: #555555;
    --light-color: #DFE4FD;
    --dark-color: #333333; /* Changed from light gray */
    
    /* Text colors */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    
    /* Background colors */
    --bg-light: #F6F6F6;
    --bg-white: #FFFFFF;
    
    /* Border colors */
    --border-light: #E9ECEF;
    
    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-speed: 0.5s;
    --transition-smooth: all 0.3s ease;
    
    /* Font family */
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary) !important;
}

h1, .h1,  .fw-bold {
    font-weight: 700 !important;
}

h3, .h3, h4, .h4, .fw-medium {
    font-weight: 600 !important;
}

h5, .h5, h6, .h6, .fw-semi-bold {
    font-weight: 500 !important;
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Buttons */
.btn {
    transition: var(--transition-speed);
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light-color);
}

/* Square buttons */
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    border: 10px solid var(--primary-color);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}



.about-cont-mobile {
    display: none;
}

.mv {
    height: 100vh;
    margin-top: -2rem;
    padding-bottom: 12rem;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.left-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-image-desk {
    width: 100%;
    height: auto;
}

.left-image-mobile {
    display: none;
}

.right-para {
    font-size: 14px;
    line-height: 1.5;
    /* margin: 10px; */
}
.main-video {
    width: 100%;
    object-fit: cover;
    max-height: 100vh;
    height: 400px; /* Default mobile height */
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .main-video {
        height: 450px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .main-video {
        height: 500px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .main-video {
        height: 600px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .main-video {
        height: 700px;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .main-video {
        height: 800px;
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.custom-bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.custom-text-primary {
    color: #0a254c !important;
}

.custom-hover-transform {
    transition: var(--transition-smooth);
}

.custom-hover-transform:hover {
    transform: translateY(-5px) scale(1.02);
}
    .container-custom {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-top: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }
    
    .content-text {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .home-img {
        margin-bottom: 1rem;
    }
    
    .home-img img {
        border-radius: 6px;
        /* box-shadow: 0 5px 20px var(--shadow-light); */
    }
    
    .home-img img:hover {
        transform: translateY(-2px) scale(1.01);
    }


/* Extra Small Mobile (up to 320px) */
@media (max-width: 320px) {
    .about-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .content-text {
        font-size: 0.8rem;
    }
}

/* Animation enhancements */
.animate__animated {
    animation-duration: 0.8s;
}

.animate__fadeInUp {
    animation-delay: 0.2s;
}

.animate__fadeInRight {
    animation-delay: 0.4s;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .home-img img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .about-section {
        padding: 20px 0;
        background: white;
    }
    
    .home-img img {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Small mobile screens */
@media (max-width: 575px) {
    .main-video {
        height: 250px;
    }
}

/* About Section Styles */
.container-xxl.py-5 {
    padding: 5rem 0;
}

/* Home Image */
.home-img {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.home-img img:hover {
    transform: scale(1.02);
}

/* About section text styling */
.container-xxl .display-5 {
    /* color: var(--primary-color); */
    color: #02219a;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.container-xxl p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.container-xxl p strong {
    /* color: var(--primary-color); */
    color: #02219a;
    font-weight: 600;
}

/* Responsive styles for About section */
/* Large desktop screens */
@media (min-width: 1400px) {
    .container-xxl .display-5 {
        font-size: 2.8rem;
    }
    
    .container-xxl p {
        font-size: 1rem;
    }
}

/* Desktop screens */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container-xxl .display-5 {
        font-size: 2.5rem;
    }
    
    .container-xxl p {
        font-size: 0.95rem;
    }
}

/* Laptop screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .container-xxl .display-5 {
        font-size: 2.2rem;
    }
    
    .container-xxl p {
        font-size: 0.9rem;
    }
}

/* Tablet screens */
@media (min-width: 768px) and (max-width: 991px) {
    .container-xxl.py-5 {
        padding: 4rem 0;
    }
    
    .container-xxl .display-5 {
        font-size: 2rem;
        margin-top: 1.5rem;
    }
    
    .container-xxl p {
        font-size: 0.85rem;
    }
    
    .home-img {
        margin-bottom: 1.5rem;
    }
    
    .row.g-4.align-items-end {
        align-items: center !important;
    }
}

/* Mobile screens */
@media (max-width: 767px) {
    .container-xxl.py-5 {
        padding: 3rem 0;
    }
    
    .container-xxl .display-5 {
        font-size: 1.8rem;
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .container-xxl p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .home-img {
        margin-bottom: 1rem;
    }
    
    .row.g-4.align-items-end {
        align-items: center !important;
    }
}

/* Small mobile screens */
@media (max-width: 575px) {
    .container-xxl.py-5 {
        padding: 2.5rem 0;
    }
    
    .container-xxl .display-5 {
        font-size: 1.5rem;
    }
    
    .container-xxl p {
        font-size: 0.8rem;
    }
}


/* For mobile devices */
@media (max-width: 768px) {
    /* Header carousel */
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Parent div layout */
    .parent-div {
        height: 70vh;
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .header-img {
        margin-top: -2rem;
    }
    
    .header-img img {
        width: 80%;
        height: auto;
    }
    
    .about-cont {
        display: none;
    }
    
    .about-cont-mobile {
        margin-top: 6rem;
        display: block;
        text-align: center;
    }
    
    /* Mission/Vision layout */
    .mv {
        margin-top: -4rem;
        margin-bottom: -7rem;
        flex-direction: column;
    }
    
    .left-image {
        flex-direction: row;
        gap: 10px;
    }
    
    .left-image-mobile {
        display: block;
        width: 49%;
        height: auto;
    }
    
    .left-image-desk {
        display: none;
    }
    
    .right-para {
        font-size: 12px;
    }
    
   
    /* Home image */
    .home-img {
        margin-top: -2rem;
        display: flex;
        justify-content: center;
        height: 360px;
    }
    
    /* Products layout */
    .prod-cont {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
        gap: 0 20px;
    }
    
    .prod-cont .products a img {
        width: 220px;
        height: auto;
    }
    
    .prod-cont .products a img:hover {
        width: 210px;
        height: auto;
    }
    
    .products {
        margin-left: 0px;
    }
}

/* For larger screens with video */
@media (max-width: 1280px) {
    .main-video {
        width: 100%;
        height: auto;
    }
}

/* 6. Page Headers */
/* Common page header styles */
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary-color);
}

/* Specific page headers with background images */
.business-page-header,
.team-page-header,
.clients-page-header,
.dev-page-header,
.migration-page-header,
.contactus-page-header,
.career-page-header,
.automation-page-header,
.blog-page-header,
.news-page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background-size: cover;
}

.business-page-header {
    background: url(../img/business-consulting-banner.jpg) top left no-repeat;
}

.team-page-header {
    background: url(../img/team.jpg) top left no-repeat;
}

.clients-page-header {
    background: url(../img/clients-banner.jpg) top left no-repeat;
}

.dev-page-header {
    background: url(../img/software.jpg) top left no-repeat;
}

.migration-page-header {
    background: url(../img/migration.jpg) top left no-repeat;
}

.contactus-page-header {
    background: url(../img/contactus-banner.jpg) top left no-repeat;
}

.career-page-header {
    background: url(../img/career.jpg) top left no-repeat;
}

.automation-page-header {
    background: url(../img/automation.jpg) top left no-repeat;
}

.blog-page-header {
    background: url(../img/blog.jpg) top left no-repeat;
}

.news-page-header {
    background: url(../img/news.jpg) top left no-repeat;
}

/* 7. Feature Sections */

/* Facts section */
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}

/* Callback section */
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
    z-index: -1;
}

/* Feature boxes */
.feature .feature-box,
.feature .feature-box * {
    transition: var(--transition-speed);
}

.feature .feature-box:hover {
    background: var(--primary-color);
    border-color: var(--primary-color) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}

/* 8. Service Sections */
.service .nav .nav-link {
    transition: var(--transition-speed);
}

.service .nav .nav-link.active {
    border-color: var(--primary-color) !important;
    background: var(--primary-color);
}

.service .nav .nav-link.active h5,
.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}

/* 9. Project & Products */

/* Products container */
.prod-cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -2rem;
}

.products {
    width: calc((100% - 20px) / 3);
    margin-left: 10px;
    margin-top: 10px;
}

.prod-cont .products a img {
    width: 250px;
    height: auto;
    transition: all ease 0.4s;
}

.prod-cont .products a img:hover {
    width: 260px;
    height: auto;
}

/* Project items */
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition-speed);
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: var(--transition-speed);
}

.project-item:hover .project-title {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.project-item .project-title h4 {
    transition: var(--transition-speed);
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

/* Project carousel navigation */
.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--light-color);
    border-radius: 45px;
    font-size: 22px;
    transition: var(--transition-speed);
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* 10. Team Section */
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-speed);
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.team-item .team-text h4 {
    transition: var(--transition-speed);
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light-color);
    color: var(--primary-color);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* 11. Testimonials */
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light-color) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light-color);
    border-radius: 30px;
    transition: var(--transition-speed);
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light-color);
    transition: var(--transition-speed);
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary-color);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary-color);
}

/* 12. Footer */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light-color);
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary-color);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light-color);
    background: #000B1C;
}

.copyright a {
    color: var(--light-color);
}

.copyright a:hover {
    color: var(--primary-color);
}