/* Primary color changed to #62149A for Diaz Infomatics (Qatar) */
/********** Template CSS **********/
:root {
    --primary: #62149A;
    --primary-dark: #50107a;
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
}

body {
    font-family: 'Poppins', sans-serif;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** New Navigation Bar ***/
header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
nav {
    height: 85px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

nav .logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}
nav .logo {
    max-height: 55px; /* Adjust as needed */
    width: auto;
}

/* --- START: UPDATED MENU STYLES --- */
nav .menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap to accommodate padding on links */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Add relative positioning for dropdown */
nav .menu li {
    position: relative;
}

/* Base styles for menu links */
nav .menu li a {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    display: inline-block; /* Ensures padding is applied correctly */
}

/* New hover and active state as per your sample image */
nav .menu li a:hover,
nav .menu li a.active {
    background-color: var(--primary);
    color: #fff;
}

/* --- Submenu Dropdown Styles --- */
nav .menu .submenu {
    display: none; /* Hide by default */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%; /* Position below parent */
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 10px 0;
    /* margin-top: 15px; */ /* REMOVED to fix the disappearing menu issue */
    min-width: 220px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; /* Adjusted transition */
}

/* Show submenu on hover of the parent li with a fade-in effect */
nav .menu li:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

/* Styles for individual submenu items */
nav .menu .submenu li {
    width: 100%;
}

/* Submenu link styles */
nav .menu .submenu li a {
    color: var(--dark);
    padding: 12px 20px;
    display: block;
    white-space: nowrap;
    /* Reset styles from parent menu links to avoid purple pill */
    background-color: transparent;
    border-radius: 0;
}

/* Submenu link hover state */
nav .menu .submenu li a:hover {
    background-color: var(--light);
    color: var(--primary);
}
/* --- END: UPDATED MENU STYLES --- */


nav .right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav .right-section .social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}
nav .right-section .social-icons a {
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s, color 0.3s;
}

nav .right-section .social-icons a:hover {
    transform: scale(1.15);
    color: var(--primary-dark);
}

nav .quote-btn {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
    white-space: nowrap;
}

nav .quote-btn:hover {
    background: var(--primary-dark);
}
.navbar-toggler {
    display: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
}
.mobile-nav {
    display: none;
}
@media (max-width: 991.98px) {
    nav .menu, nav .right-section {
        display: none;
    }
    nav .navbar-toggler {
        display: block;
    }
    .mobile-nav {
        display: block;
        background: #fff;
        padding: 1rem 1.5rem;
    }
    .mobile-nav .menu-mobile {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile-nav .menu-mobile li {
        padding: 10px 0;
        text-align: center;
    }
     .mobile-nav .menu-mobile li a {
        font-family: "Poppins", sans-serif;
        font-size: 16px;
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
     }

    /* --- START: NEW MOBILE SUBMENU STYLES --- */
    .mobile-nav .menu-mobile a.has-submenu::after {
        content: ' ▼';
        font-size: 0.8em;
        display: inline-block;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .mobile-nav .menu-mobile a.has-submenu.active::after {
        transform: rotate(180deg);
    }

    .mobile-nav .submenu {
        list-style: none;
        padding: 10px 0;
        margin: 10px auto 0;
        background-color: var(--light);
        border-radius: 8px;
        max-width: 280px; /* Or adjust as needed */
        /* Hide by default, will be shown by JS */
        display: none;
    }
    
    .mobile-nav .submenu.show {
        display: block;
    }

    .mobile-nav .submenu li a {
        font-size: 15px;
        font-weight: 400; /* Make submenu items slightly less bold */
    }
    /* --- END: NEW MOBILE SUBMENU STYLES --- */
}

/*** Header Carousel ***/
#header-carousel .carousel-item {
    height: 900px;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 32, 53, 0.6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

@media (max-width: 992px) {
    #header-carousel .carousel-item {
        height: 600px;
    }
}
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 500px;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Features ***/
.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

/*** About ***/
.about {
    background: linear-gradient(rgba(28, 32, 53, 0.8), rgba(28, 32, 53, 0.8)), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
    z-index: 2;
}

.service-item:hover .service-text {
    top: -1.5rem;
}

.service-item .service-text h5 {
    transition: .5s;
}

.service-item:hover .service-text h5 {
    color: var(--primary);
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-btn {
    bottom: -1.5rem;
}


/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}

.project-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .project-carousel .owl-nav {
        top: -70px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .project-carousel .owl-nav .owl-prev,
    .project-carousel .owl-nav .owl-next {
        margin: 0 7px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .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(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    background: #111111;
}

.copyright a:hover {
    color: var(--primary) !important;
}