/********** Template CSS **********/
:root {
    --primary: #2E3192;
    --light: #F6F7F8;
    --dark: #39B54A;
}

.logo{
    height: 70px;
    width: auto;
    scale: 1.0123;
}
/*  Pre-Loader */

.preloader {
    background-color  : #f7f7f7;
    width             : 100%;
    height            : 100%;
    position          : fixed;
    top               : 0;
    left              : 0;
    z-index           : 999999;
    display           : flex;
    align-items       : center;
    justify-content   : center;
}

.preloader .preloader-img {
    width             : 100px; /* Adjust the image size */
    height            : 100px; /* Maintain proportions */
    animation         : smoothTwinBlink 3s infinite ease-in-out; /* Smooth blinking with twining animation */
}

.preloader .preloader-img img {
    width             : 100%;
    height            : 100%;
    object-fit        : contain;
}

/* Smooth blinking with twining animation */
@keyframes smoothTwinBlink {
    0%, 100% {
        opacity: 1; /* Fully visible */
        transform: scale(1); /* Normal size */
    }
    25% {
        opacity: 0.4; /* Dimmed */
        transform: scale(1.1); /* Slightly larger to give a "twining" feel */
    }
    50% {
        opacity: 0; /* Invisible */
        transform: scale(1.2); /* Slightly larger */
    }
    75% {
        opacity: 0.4; /* Dimmed again */
        transform: scale(1.1); /* Slightly larger */
    }
}

/* Pre-Loader End */


.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

/* Floating Button */
/* Floating Button */
#whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 45px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2000; /* Ensure this is higher than footer elements */
    animation: bounce 2s infinite;
}
/* Keyframes for Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
.whatsapp-float a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}
/* Chat Widget */
#whatsapp-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    max-height: 450px; /* Increased slightly for better service list view */
    background: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png') repeat;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1999;
    
    /* ERROR FIX: Prevents the hidden chat from blocking social media icon hovers */
    visibility: hidden;
    opacity: 0;
    pointer-events: none; 
    
    transform: translateY(50px);
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}
#whatsapp-chat.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* Re-enable clicks only when chat is open */
    transform: translateY(0);
}

/* Prevent input focus when widget is hidden */
#whatsapp-chat:not(.show) input {
  pointer-events: none;
  caret-color: transparent; /* hide blinking cursor */
}

/* Header */
.whatsapp-header {
    background-color: #25d366;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whatsapp-header button {
    background: transparent;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

/* Body */
.whatsapp-body {
    padding: 10px;
    font-size: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Messages */
.message {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

/* Received - left */
.message.received {
    background-color: rgba(255,255,255,0.9);
    color: black;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Sent - right */
.message.sent {
    background-color: #dcf8c6;
    color: black;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Timestamp */
.msg-time {
    font-size: 10px;
    color: gray;
    display: block;
    text-align: right;
    margin-top: 2px;
}

/* Services */
.services {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}
.service-item {
    background: rgba(255,255,255,0.7);
    padding: 6px 10px;
    border-radius: 15px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.service-item:hover {
    background: rgba(255,255,255,0.9);
}

/* Footer */
/* Footer layout fix */
.whatsapp-footer {
    display: flex;
    align-items: center;
    padding: 6px;
    background: #f0f0f0;
}
.whatsapp-footer input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    margin: 0 6px;
    font-size: 14px;
}
.whatsapp-footer button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #25d366;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

/* Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 10px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: none;          /* hidden by default */
    flex-direction: column; /* stack tabs on top of grid */
    max-width: 320px;
    max-height: 250px;
    overflow: hidden;
    padding: 0;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* TAB BAR */
.emoji-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
    padding: 6px 4px;
    justify-content: space-around;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.emoji-tab {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.15s, opacity 0.15s;
}

.emoji-tab.active {
    opacity: 1;
    transform: scale(1.2);
}

/* EMOJI GRID */
.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 6px;
    max-height: 180px; /* scrollable */
    overflow-y: auto;
    justify-content: flex-start;
}

/* INDIVIDUAL EMOJIS */
.emoji-item {
    font-size: 22px;
    padding: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    border-radius: 5px;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

/* Back To Top */

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg); /* Center & start from top */
}

.progress-ring__circle {
    stroke-dasharray: 176; /* 2πr for r=28 */
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top i {
    font-size: 20px;
    z-index: 2;
    position: relative;
}

/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.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;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/m350.jpg) center center no-repeat;
    background-size: cover;
}
.page-header1 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/AgrasT30.jpg) center center no-repeat;
    background-size: cover;
}
.page-header2 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/Surveying\ Drones\ Comparison.png) center center no-repeat;
    background-size: cover;
}
.page-header3 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/elios2New.jpg) center center no-repeat;
    background-size: cover;
}
.page-header4 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/matric_4e_b-01.webp) center center no-repeat;
    background-size: cover;
}
.page-header5 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/overhead-powerline-inspection-in-the-uae-png.webp) center center no-repeat;
    background-size: cover;
}
.page-header6 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/Rescue.jpg) center center no-repeat;
    background-size: cover;
}
.page-header7 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/M3M.jpg) center center no-repeat;
    background-size: cover;
}
.page-header8 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/dji-mavic-3.jpg) center center no-repeat;
    background-size: cover;
}
.page-header9 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/HERO_GEO_Pix4Dmatic_05_2023.jpg) center center no-repeat;
    background-size: cover;
}
.page-header10 {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/Banner\ Image\ -\ Commercial\ Drones.png) center center no-repeat;
    background-size: cover;
}
.pageheader {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .7)), url(../img/matrice\ 400.jpg) center center no-repeat;
    background-size: cover;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}

.service:hover{
    transform: scale(1.06);
    transition: transform 0.5s ease;
}

/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project  ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    /* background: var(--dark); */
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Form CSS***/

/* Loading Spinner */
.loading-animation {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success & Error Animation */
.successMessage, .errorMessage {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

.circle-animation {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 10px auto;
}

/* Success (✔) */
.successMessage .circle-animation {
    background-color: #28a745; /* Green */
}

.successMessage .checkmark {
    color: white;
}

/* Error (✖) */
.errorMessage .circle-animation {
    background-color: #dc3545; /* Red */
}

.errorMessage .crossmark {
    color: white;
}

/* Error Box */
.errorBox {
    color: red;
    font-size: 16px;
    margin-top: 10px;
}

.errorBox button {
    background-color: #ff9800;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    color: white;
    cursor: pointer;
}

/*** Typing ***/
/* Ensure input text is dark and visible */


/* When input is focused, improve contrast */
.form-control:focus {
    color: #000 !important;  /* Black text while typing */
    background-color: #fff !important; /* Keep background white */
    border-color: #007bff !important; /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5) !important; /* Light blue glow */
}

/* If input is not focused, ensure text remains dark */
.form-control:not(:focus) {
    color: #000 !important; /* Dark text when not focused */
    border-color: #ccc !important; /* Light border when not focused */
}



/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    
    transition: transform 0.3s ease;
} 

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    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: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}