/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
    --orange: #ec8110ee;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}




/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 767px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
        font-size: 18px;
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
        font-size: 18px;
    }
}

    .container-fluid {
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
@media (min-width: 768px) {
    .navbar-dark {
        flex:content;
        position:absolute ;
        width: 100vw;
        top: 0;
        left: 0;
        
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
        
    }
    .img-fluid {
        max-width: 100%; /* Make images responsive within their container */
        height: auto;
    }

    .container-fluid {
        flex:auto;
         /* Adjust the left padding as needed */
        padding-right: 10px; /* Adjust the right padding as needed */
    }
    .navbar {
        
        padding: 0; /* Adjust the overall padding of the navbar */
        overflow-x: hidden;
        display: flex;
        justify-content: flex-end;

    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: #f7f4f6fb;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        flex: content;
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 30%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        flex: auto;
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        flex: auto;
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        flex: auto;
        color: var(--primary);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-toggler {
        order: -1; /* Move the toggle button to the top */
        margin-bottom: 10px; /* Add some space below the toggle button */
    }
    
    .navbar-nav .nav-link {
        margin-left: 0; /* Reset margin for better alignment */
        padding: 10px 20px; /* Adjust padding for better touch interaction */
    }

    /* Add some padding to the body to prevent content from being hidden behind fixed navbar */
    body {
        max-width: 100%;
    overflow-x: hidden;
    position: relative;
        
    }
    
    /* Style for the navbar when scrolled */
    .navbar-scrolled {
        background-color: #f7f4f4; /* Change the background color when scrolled to white */
    }

    /* Filter for changing the logo color when scrolled to white */
    .dark-logo {
        filter: invert(100%); /* Invert the color of the logo when navbar is white */
    }

    /* Add a class to the body when scrolled */
    body.scrolled {
        
    }

    .card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 767px) {
    .carousel-caption h5 {
        flex: content;
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        flex: auto;
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.icon-box {
    width: 50px; /* Fixed size */
    height: 50px; /* Fixed size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; /* Primary color */
    border-radius: 50%; /* Makes it circular */
}

.icon-box i {
    font-size: 22px; /* Ensures icon size is uniform */
    color: #06A3DA;
}



/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 120px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary), var(--accent-color));
    border-radius: 10% / 20%;
    box-shadow: 0 0 20px rgb(32, 160, 224);
    transition: transform 0.3s ease-in-out;

    /* Additional styles for a high-tech appearance */
    color: rgb(32, 160, 224);
    font-size: 1.5rem;
    transform: rotate(0deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}

.team-img img {
    max-width: 80%; /* Reduce size to 80% of its container */
    margin: 0 auto; /* Center-align the images */
    display: block; /* Ensures proper alignment */
  }

  .col-lg-5 img {
    max-width: 90%; /* Reduce size slightly */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures the entire image fits within the container */
    margin: auto;
  }  

/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        flex: content;
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

@media only screen and (max-width: 767px) {
    /* Override styles for the logo in phone interface */
    .logo-img {
        /* Example: Make the logo dark for phone interface */
        filter: invert(1);
    }
    .navbar-brand h1 {
        font-size: 18px !important;  /* Smaller font size */
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 50px;  /* Reduced logo height */
        margin-right: 5px;
    }

    .navbar {
        position: relative;
        z-index: 999;
        overflow-x:hidden;
        display: flex;
        justify-content: flex-end;
        
        
    }
    .img-fluid {
        max-width: 100%; /* Make images responsive within their container */
        height: auto;
        
    }
    .container-carousel {
        padding-top: 20px; /* Adjust as needed to prevent overlap with the fixed navbar */
    }

    
}
.img-fluid {
    height: 400px; /* Adjust the height as needed */
}

.logo-img {
    height: 100px; /* Adjust the height as needed */
    transition: filter  ease; /* Transition for color change effect */
}

/* Style for the navbar when scrolled */
.navbar-scrolled {
    background-color: #f7f4f4; /* Change the background color when scrolled to white */
}

/* Filter for changing the logo color when scrolled to white */
.dark-logo {
    filter: invert(100%); /* Invert the color of the logo when navbar is white */
}


/* Add a class to the body when scrolled */
body.scrolled {
    padding-top: 70px; /* Adjust the padding as needed */
}

/* Add this to your existing CSS or style tag */
.larger-image {
    width: 100%; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

.whatsapp-icon {
    position: fixed;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    bottom: 100px;
    right: 18px;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Match width for a perfect circle */
    background-color: #25d366;
    /* WhatsApp green background */
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* Make sure it's on top of other elements */
  }
  
  
  .whatsapp-icon i {
    color: white;
    /* Ensure the icon is visible */
    font-size: 30px;
    /* Adjust the icon size */
  }
  
  /* Accessibility Features CSS */

/* FIXED ACCESSIBILITY MENU STYLES */
        .accessibility-menu {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10000; /* Higher than WhatsApp button */
        }

        .accessibility-toggle {
            background: #007bff;
            color: white;
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .accessibility-toggle:hover {
            background: #0056b3;
            transform: scale(1.1);
        }

        .accessibility-toggle:focus {
            outline: 3px solid #ffffff;
            outline-offset: 2px;
        }

        .accessibility-options {
            position: absolute;
            right: 70px;
            top: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            padding: 15px;
            min-width: 280px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(20px);
            transition: all 0.3s ease;
            border: 1px solid #ddd;
            z-index: 10001;
        }

        .accessibility-options.active {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        .accessibility-options h6 {
            margin-bottom: 15px;
            font-weight: bold;
            color: #333;
            font-size: 14px;
            text-align: center;
        }

        .accessibility-option {
            display: flex;
            align-items: center;
            padding: 12px;
            margin: 5px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 14px;
            color: #333;
        }

        .accessibility-option:hover {
            background: #f8f9fa;
        }

        .accessibility-option:focus {
            background: #e3f2fd;
            outline: 2px solid #007bff;
            outline-offset: 1px;
        }

        .accessibility-option.active {
            background: #e3f2fd;
            color: #1976d2;
            font-weight: 500;
        }

        .accessibility-option i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
            font-size: 16px;
            color: #007bff;
        }

        .accessibility-option.active i {
            color: #1976d2;
        }

        /* TTS Controls */
        .tts-controls {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .tts-controls h6 {
            margin-bottom: 10px;
            font-weight: bold;
            color: #333;
            font-size: 12px;
            text-align: center;
        }

        .tts-button {
            background: #28a745;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            margin: 2px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .tts-button:hover {
            background: #218838;
            transform: translateY(-1px);
        }

        .tts-button:focus {
            outline: 2px solid #ffffff;
            outline-offset: 1px;
        }

        .tts-button.active {
            background: #dc3545;
        }

        .tts-button.active:hover {
            background: #c82333;
        }

        .tts-speed-control {
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tts-speed-control label {
            font-size: 12px;
            color: #666;
            white-space: nowrap;
        }

        .tts-speed-control input[type="range"] {
            flex: 1;
            max-width: 120px;
        }

        /* Reset button styling */
        .accessibility-option.reset-button {
            margin-top: 15px;
            border-top: 1px solid #eee;
            padding-top: 15px;
            color: #dc3545;
        }

        .accessibility-option.reset-button:hover {
            background: #fff5f5;
            color: #c82333;
        }

        .accessibility-option.reset-button i {
            color: #dc3545;
        }

        /* Accessibility states */
        body.high-contrast {
            filter: contrast(150%) brightness(1.1);
        }

        body.high-contrast * {
            text-shadow: none !important;
            box-shadow: none !important;
        }

        body.large-text {
            font-size: 1.2em !important;
        }

        body.large-text * {
            font-size: inherit !important;
            line-height: 1.5 !important;
        }

        body.large-text h1 { font-size: 2.4em !important; }
        body.large-text h2 { font-size: 2.0em !important; }
        body.large-text h3 { font-size: 1.8em !important; }

        body.enhanced-focus *:focus {
            outline: 3px solid #007bff !important;
            outline-offset: 2px !important;
            background-color: rgba(0, 123, 255, 0.1) !important;
        }

        .text-highlight {
            background-color: #ffeb3b !important;
            color: #000 !important;
            padding: 2px 4px;
            border-radius: 3px;
            outline: 2px solid #ffc107 !important;
            outline-offset: 1px;
            transition: all 0.3s ease;
        }

        body.reading-mode {
            background: #f5f5f5 !important;
        }

        body.reading-mode *:not(.accessibility-menu):not(.accessibility-toggle):not(.accessibility-options):not(.accessibility-option) {
            background: transparent !important;
            color: #333 !important;
        }

        body.no-animations *,
        body.no-animations *::before,
        body.no-animations *::after {
            animation-duration: 0s !important;
            animation-delay: 0s !important;
            transition-duration: 0s !important;
            transition-delay: 0s !important;
        }

        /* Screen reader only */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .accessibility-menu {
                right: 10px;
            }
            
            .accessibility-toggle {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            
            .accessibility-options {
                right: 60px;
                min-width: 250px;
                font-size: 13px;
            }
        }

        /* High contrast mode improvements */
        body.high-contrast .accessibility-toggle {
            background: #000;
            color: #fff;
            border: 2px solid #fff;
        }

        body.high-contrast .accessibility-options {
            background: #fff;
            border: 2px solid #000;
            color: #000;
        }

        body.high-contrast .accessibility-option:hover {
            background: #000;
            color: #fff;
        }