/* Home Page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { overflow-x: hidden; }


/* Initially hide the navbar */
#navbar {
  top: -100px; /* Initially hide the navbar above the screen */  
  width: 100%;
  position: fixed;  
  transition: top 0.3s; /* Smooth transition */
  background-color: rgb(0, 31, 63);
  color: white;
  display: block;
  z-index: 10;
}

.navbar-toggler {
    border-color: rgb(222, 222, 222) !important;
}

#navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-size: 17px;
}

#navbar a:hover {
  background-color: #ddd;
  color: rgb(0, 31, 63)!important;
  border-radius: 5px;
}

nav .navbar-nav .nav-item.active .nav-link {
    background-color: rgb(222, 222, 222);
    color: rgb(0, 31, 63)!important;
    border: 3px solid rgb(0, 123, 255);
    border-radius: 5px;
}

.carousel-inner {
  height: 0;
  padding-bottom: 25%; /* this sets carousel aspect ratio (4:1 here) */
  padding-top: 15%;
}

.carousel-item {
  position: absolute !important; /* Bootstrap is insistent */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.carousel-item img {
  height: 100%; /* Bootstrap handles width already */
  object-fit: cover; /* or 'contain' if you want stretch instead of crop */
  z-index: 1!important;
}



/*#demo .carousel-item img {  
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  height:50vh;
}*/

/***** Global Style *****/

/* Slide-in effect for text */
        .slide-right, .slide-left {
            position: absolute;            
            transform: translateY(-50%);
            color: #ffffff;
            z-index: 10;
            font-weight: bold;
            width: 100%;
            opacity: 0;
        }

        /* Slide-in from right */
        .slide-right {
            animation: slideInRight 2s forwards;
            top:30%;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%) translateY(-50%);
                opacity: 0;
            }
            to {
                transform: translateX(0) translateY(-50%);
                opacity: 1;
            }
        }

        /* Slide-in from left */
        .slide-left {
            animation: slideInLeft 2s forwards;
            top: 50%;
        }

        @keyframes slideInLeft {
            from {
                transform: translateX(-100%) translateY(-50%);
                opacity: 0;
            }
            to {
                transform: translateX(0) translateY(-50%);
                opacity: 1;
            }
        }

        /* Container Styling */
        .slide-container {
            width: 600px;
            height: 200px; /* Fixed height for the container */
            margin: auto;
            background: rgba(0, 31, 63, 0.2); /* Lightened version of the theme color */
            padding: 5px;
            overflow: hidden;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
            margin-top: 5%;
            /*border: 1px solid rgb(0, 31, 63);  Using theme color for the border */
            border-radius: 10px;
            text-align: center;
            opacity: 1; /* Slightly more opaque for clarity */
            color: rgb(0, 0, 0); /* Dark text for contrast */
            position: relative;
        }

        /* Modified Slide Container with Gradient Background */
        .slide-container-3 {
            width: 600px;
            height: 200px; /* Fixed height for the container */
            margin-left: auto;
            background: linear-gradient(#0e1d30, #0d1520);
            padding: 20px;
            overflow: hidden; /* Ensure text doesn't overflow the container */
            box-shadow: 0 0 25px #7feaf8;
            margin-top: 1%;
            border: 1px solid #0d1520;
            border-radius: 10px;
            text-align: center;
            opacity: 0.9;
            color: #ffffff;
            margin-right: 10%;
            position: relative; /* Ensure proper positioning of text */
        }

        /* Adjusting text and container positioning */
        .carousel-caption {
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            text-align: center;
        }

        .carousel-caption-3 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            text-align: center;
        }



    




/* Flip Card Effect */
.card-wrapper {
  width: 360px;
  height: 400px;
  margin: 0 10px;
  position: relative;
  perspective: 1000px; /* Add perspective to the container */
}

.flip-card {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  box-sizing: border-box; /* Prevents the padding from affecting card size */
  margin-bottom: 20px; /* Add space at the bottom of each card */
  border-radius: 8px; /* Optional: Add rounded corners for a cleaner look */
}

/* Card Inner Flip */
.flip-card-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

/* Flip on hover */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front and Back faces */
.flip-card-front,
.flip-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden; /* Hide the back face when flipped */
}

/* Card Back (the content displayed on hover) */
.flip-card-back {
  background-image: linear-gradient(rgb(0 31 63), rgb(0 0 0)); /* Dark overlay */
  transform: rotateY(180deg); /* Position the back face */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden; /* Hide initially */
  transition: opacity 0.3s ease, visibility 0s ease 0.3s;
  padding: 20px; /* Padding for the back content */
  border-radius: 8px; /* Optional: Add rounded corners to the back as well */
  text-align: center; /* Center the text and button */
}

/* Front Image */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
  border-radius: 8px; /* Optional: Round the corners of the front image */
}

/* On Hover, Show Text and Button */
.flip-card:hover .flip-card-back {
  opacity: 1;
  visibility: visible; /* Show the back content */
  transition: opacity 0.3s ease, visibility 0s ease 0s;
}

.flip-card:hover .flip-card-front img {
  opacity: 0.5; /* Optional: Fade the image slightly on hover */
}

/* Button Styles */
.flip-card-back .btn {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.flip-card-back .btn:hover {
  background-color: white;
  color: #003f7f; /* Dark blue on hover */
}

/* Slick Slider */
.solutions-slider {
  display: flex;
  overflow: hidden;
}

.slick-slide img {
  width: 100%; /* Ensure images fill their container */
  height: auto; /* Maintain aspect ratio */
}

.slick-slider {
  display: flex !important;
  align-items: center;
}

.slick-slide {
  display: flex;
  justify-content: center;
}

/* Slick Navigation Arrows */
.slick-prev, .slick-next {
  color: #fff;
  font-size: 18px; /* Adjust size of the arrows */
}

/* Optional button styles */
.btn-outline-light {
  border-color: rgb(222 222 222);
  color: rgb(222 222 222);
}

.btn-outline-light:hover {
  background-color: rgb(222 222 222);
  color: rgb(0 31 63);
}

/* Custom styling for the "Our Products" section */
.our-products-section .card-img-top {
    object-fit: cover;
    height: 200px; /* Adjust the image height as needed */
}

/* Custom card styles for this specific section */
.our-products-section .product-card {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa; /* Optional: Change card background color */
    border: 1px solid #ddd;    /* Optional: Customize card border */
    border-radius: 10px;       /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.our-products-section .card-body {
    padding: 15px;
    text-align: center;
}

/* Optional: Adjust card hover effect */
.our-products-section .product-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slightly larger shadow on hover */
    transition: all 0.3s ease;
    transform: scale(1.05); /* Slightly larger on hover */
}

/*Our Partners*/
/* Container for the slider */
.slider-infinite1 {
    width: 100%; /* Full width of the container */
    overflow: hidden; /* Hide anything that moves outside the container */
    margin: 20px auto;
    position: relative;
}

/* Track that holds all the images */
.slide-track {
    /* overflow: hidden; Ensure only visible part of the marquee is shown */
    display: flex; /* Arrange the images horizontally */
    justify-content: flex-start;
    animation: marquee 60s linear infinite; /* Continuous scrolling effect */
    align-items: center;
    width: max-content; /* Ensures width is large enough to contain all images */
    animation-timing-function: linear; /* Use linear timing for smooth transitions */
    will-change: transform; /* Optimize animation performance */
}

/* Individual slide container */
.slide-inf {
    flex-shrink: 0; /* Prevent images from shrinking */
    margin: 0 25px; /* Space between images */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

/* Image styling */
.slide-inf img {
    width: 200px; /* Set the default thumbnail size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: add rounded corners */
    transition: transform 0.3s ease; /* Smooth transition on hover */
}

/* Hover effect: increase image size */
.slide-inf:hover {
    transform: scale(1.2); /* Scale image on hover */
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* Move the images to the left */
    }
}


/* Footer */
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

#footer {
    background-image: linear-gradient(rgb(0, 31, 63), rgb(0, 0, 0)); /* Gradient background with your theme colors */
    padding: 60px 0;
}

#footer hr {
    border: none;
    border-bottom: 1px dashed rgb(222, 222, 222);
}

#footer h5 {
    padding-left: 10px;
    border-left: 3px solid rgb(222, 222, 222); /* Lighter border color */
    padding-bottom: 6px;
    margin-bottom: 20px;
    color: rgb(222, 222, 222); /* Light color for text */
}

#footer a {
    color: rgb(222, 222, 222); /* Light color for links */
    text-decoration: none !important;
    background-color: transparent;
}

#footer ul.social li {
    padding: 3px 0;
}

#footer ul.social li a i {
    margin-right: 5px;
    font-size: 25px;
    transition: .5s all ease;
}

#footer ul.social li:hover a i {
    font-size: 30px;
    margin-top: -10px;
}

#footer ul.social li a,
#footer ul.quick-links li a {
    color: rgb(222, 222, 222); /* Light color for text */
}

#footer ul.social li a:hover {
    color: rgb(0, 31, 63); /* Dark color on hover */
}

#footer ul.quick-links li {
    padding: 3px 0;
    transition: .5s all ease;
}

#footer ul.quick-links li:hover {
    padding: 3px 0;
    margin-left: 5px;
    font-weight: 700;
}

#footer ul.quick-links li a i {
    margin-right: 5px;
}

#footer ul.quick-links li:hover a i {
    font-weight: 700;
}

/* Hover effect for quick links */
#footer ul.quick-links li:hover {
    background-color: rgb(0, 31, 63); /* Dark color on hover */
    color: rgb(222, 222, 222); /* Light text color on hover */
}

/* Social Icons Hover Effect */
#footer .social-icons a:hover {
    background-color: rgb(0, 31, 63); /* Dark background on hover */
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease;
}

#footer .map-responsive {
    overflow: hidden;
    padding-bottom: 85%;  /* Increase the padding to make the map larger */
    position: relative;
    height: 0;
}

#footer .map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* Ensure the iframe takes full width of the container */
    height: 100%; /* Ensure the iframe takes full height of the container */
    border: none; /* Remove the iframe border if needed */
}



/*Health Page*/
.img-post {
            position: relative;
            width: 100%;
            height: auto;
        }

        /* Image style */
        .img-post img {
            width: 100%;
            height: auto;
        }


        /* Wi-Fi Signal circles */
        .wifi-signal {
            position: absolute;
            top: 36%; /* Center vertically */
            left: 32%; /* Center horizontally */
            width: 20px; /* Initial size */
            height: 20px; /* Initial size */
            background-color: rgba(236, 152, 69, 0.8); /* Blue background color for the center signal */
            border-radius: 50%;
            z-index: 0; /* Behind the Wi-Fi icon */
            transform: translate(-50%, -50%); /* Center the signal */
            animation: pulse 4s infinite; /* Animation effect for signal expansion */
        }

        /* Specific sizes for each circle (signal wave) */
        .wifi-signal:nth-child(1) {
            animation-delay: 0s;
            animation-duration: 4s;
        }

        .wifi-signal:nth-child(2) {
            animation-delay: 1s;
            animation-duration: 4s;
        }

        .wifi-signal:nth-child(3) {
            animation-delay: 2s;
            animation-duration: 4s;
        }

        /* Wi-Fi signal wave animation */
        @keyframes pulse {
            0% {
                width: 20px;
                height: 20px;
                opacity: 0.8;
                transform: translate(-50%, -50%) scale(1);
            }
            25% {
                width: 60px; /* First wave expands */
                height: 60px;
                opacity: 0.6;
            }
            50% {
                width: 100px; /* Second wave expands */
                height: 100px;
                opacity: 0.4;
            }
            75% {
                width: 140px; /* Third wave expands */
                height: 140px;
                opacity: 0.2;
            }
            100% {
                width: 180px; /* Max size of the wave */
                height: 180px;
                opacity: 0;
            }
        }




        /* Image container with the signals placed on top */
        .img-container {
            position: relative;
            width: 100%;
            max-width: 100%; /* Prevent image from overflowing its container */
            overflow: hidden; /* Ensure nothing spills out */
            box-sizing: border-box; /* Includes padding in the width calculation */            
        }

        /* Ensuring the image fits properly */
        .img-container img {
            width: 100%;
            height: auto; /* Maintain aspect ratio */
            object-fit: contain; /* Prevent overflow and preserve aspect ratio */
            max-width: 100%; /* Limit the image to container's width */
        }

        /* Traffic light container */
        #traffic-light {
            position: absolute;
            z-index: 1;
            width: 100%;
            height: 100%;
            top: 0; /* Aligning with top of the image */
            left: 0; /* Aligning with left of the image */
        }

        /* Signal styles for each circle */
        .tsignal {
            width: 3vw; /* Use viewport width for responsive sizing */
            height: 3vw; /* Use viewport width for responsive sizing */
            border-radius: 50%;
            margin: 10px;
            opacity: 0;
            animation: changeColor 12s infinite;
            position: absolute; /* Position each signal absolutely within the container */
        }

        /* Custom positions for each signal */
        .tsignal:nth-child(1) {
            left: 35%; /* Position first circle */
            top: 20%;  /* Position first circle */
            animation-delay: 0s; /* No delay for first signal */
        }

        .tsignal:nth-child(2) {
            left: 20%; /* Position second circle */
            top: 33%;  /* Position second circle */
            animation-delay: 3s; /* Delay for second signal */
        }

        .tsignal:nth-child(3) {
            left: 50%; /* Position third circle */
            top: 60%;  /* Position third circle */
            animation-delay: 6s; /* Delay for third signal */
        }

        .tsignal:nth-child(4) {
            left: 70%; /* Position fourth circle */
            top: 25%;  /* Position fourth circle */
            animation-delay: 9s; /* Delay for fourth signal */
        }

        /* Animation for the traffic light effect */
        @keyframes changeColor {
            0%, 100% {
                background-color: red;
                opacity: 0;
            }
            20% {
                background-color: yellow;
                opacity: 0.3;
            }
            40% {
                background-color: green;
                opacity: 0.6;
            }
            60% {
                background-color: yellow;
                opacity: 0.8;
            }
            80% {
                background-color: red;
                opacity: 1;
            }
        }

        /* Specific colors for each signal */
        .tsignal:nth-child(1) {
            background-color: #ff0000; /* Red */
        }

        .tsignal:nth-child(2) {
            background-color: #ffcc00; /* Yellow */
        }

        .tsignal:nth-child(3) {
            background-color: #33cc33; /* Green */
        }

        .tsignal:nth-child(4) {
            background-color: #1e90ff; /* Blue */
        }

/*  Contact Page      */

/* Container for image */
.hero-image-container {
  position: relative;
  height: 500px; /* Fixed height for the hero image section */
}

.hero-image-container img {
  object-fit: cover; /* Ensures the image covers the entire container */
  width: 100%;
  height: 100%;
  display: block;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 55%;  /* Increase the padding to make the map larger */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* Ensure the iframe takes full width of the container */
    height: 100%; /* Ensure the iframe takes full height of the container */
    border: none; /* Remove the iframe border if needed */
    border-radius: 5px;
}



/* Media Query for small screens */
@media (max-width: 768px) {

  .slide-container{
      width: 100%; /* Allow the container to fill the width of the screen */
      max-width: 100%; /* Ensure container does not exceed screen width */
      padding: 5px; /* Add some padding for better spacing */
      height: 80px; /* Adjust height to fit the content */
      margin-top: 0%; /* Optional: Adjust top margin for mobile */
  }

  .slide-container-3{
      width: 100%; /* Allow the container to fill the width of the screen */
      max-width: 100%; /* Ensure container does not exceed screen width */
      padding: 5px; /* Add some padding for better spacing */
      height: 80px; /* Adjust height to fit the content */
      margin-top: -10%; /* Optional: Adjust top margin for mobile */
  }

  .slide-right, .slide-left {
      font-size: 14px; /* Adjust text size for mobile */
      bottom: 50%; /* Adjust text positioning on smaller screens */
      h3{
        font-size: 14px;
      }

      p{
        font-size: 12px;
      }
  }
  

  .card-wrapper {
    width: 100%; /* Full width on mobile */
    margin-bottom: 20px; /* Space between cards on small screens */
  }

  /* Adjust card size for smaller screens */
  .flip-card {
    height: 300px; /* Adjust card height for mobile */
  }

  .flip-card-front img {
    object-fit: cover;
    height: 100%; /* Ensure the image covers the card properly */
  }

  /* Optional: Reduce button size on smaller screens */
  .flip-card-back .btn {
    padding: 8px 16px;
  }

  #footer h5 {
    padding-left: 0;
    border-left: 0;
    font-size: 1.25rem; 
  }

  .wifi-signal {
      width: 15px;
      height: 15px;
  }

  .hero-image-container {
    position: relative;
    height: auto; /* Fixed height for the hero image section */
  }
}
