/* General Reset */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #eff0f2;
  overscroll-behavior-y: contain;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  height: 100%;
}

/* Navbar Styling */
.navbar-container {
  background-color: #005b9c;
  padding: 20px 0;
}

.navbar {
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  margin: 0 auto;
  width: 90%;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
}

/* Styles for nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  padding: 5px 10px;
  font-size: 1em;
  position: relative;
  display: inline-block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #005b9c;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Styles for action-btns */
.nav-links .action-btns {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  text-decoration: none; /* Disable underline for buttons */
}

/* Remove the underline effect on hover for buttons */
.nav-links .action-btns:hover::after {
  width: 0; /* Ensure no underline appears */
}

.nav-links .action-btns:hover {
  background-color: #333333;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-links .action-btns:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.banner {
  background: linear-gradient(
    to bottom,
    #005b9c,
    #eff0f2
  ); /* Smooth transition from banner to body */
  text-align: center;
  padding: 50px 20px 50px;
  padding-bottom: 10px;
  padding-top: 20px;
  position: relative;
}

/* Enhance the Banner Title */
.banner-title {
  font-size: 3em;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Adds a shadow to text for better readability */
}

/* Refine the Banner Description */
.banner-description {
  color: #f0f8ff;
  margin: 10px 0 100px;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.5; /* Improves readability */
}

/* Map Image Section */
.map-container {
  text-align: center;
}

/* Inner Border */
.map-border-inner {
  display: inline-block;
  background-color: #005b9c90;
  border-radius: 15px;
  padding: 20px; /* Remove padding here as well */
  width: 80%;
  height: 95vh; /* Take full height from outer container */
  margin-top: 20px;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 80px;
}

/* Map Container */
#map {
  display: inline-block;
  width: 100%; /* Ensure map fills the available width */
  height: 100%; /* Ensure map takes up the full height of its container */
  border-radius: 15px;
}

/* Map Image Styling */
.map-image {
  display: block;
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
}

.below-banner {
  text-align: center;
  align-items: center;
  justify-items: center;
}

.view-btn {
  all: unset;
  width: 100px;
  height: 30px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  background: transparent;
  border: none;
  position: relative;
  color: #f0f0f0;
  cursor: pointer;
  z-index: 1;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.view-btn::after,
.view-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -99999;
  transition: all 0.4s;
}

.view-btn::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
  background: #28282d;
  border-radius: 10px;
}

.view-btn::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
  visibility: hidden;
}

.view-btn:hover::before {
  transform: translate(5%, 20%);
  width: 110%;
  height: 110%;
}

.view-btn:hover::after {
  border-radius: 10px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  visibility: visible;
}

.view-btn:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

/* Initial Description Styling */
.initial-description {
  text-align: center;
  margin: 50px auto;
  padding: 20px;
}

.section-title {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
  margin-top: 5%;
}

.section-description {
  margin-bottom: 30px;
  font-size: 1em;
  color: #555;
  text-align: justify;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.card {
  background: rgba(255, 255, 255, 0.15); /* Softer transparency */
  border-radius: 20px; /* Smooth, rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
    /* Subtle shadow for depth */ 0 1px 20px rgba(255, 255, 255, 0.4) inset; /* Soft inner glow */
  backdrop-filter: blur(20px); /* Stronger blur for glass effect */
  -webkit-backdrop-filter: blur(20px); /* Safari compatibility */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
  margin: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animations */
  color: #333; /* Adjust text color for better readability */
}

.card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 8px 16px rgba(129, 170, 201, 0.5),
    /* Enhanced blue shadow */ 0 1px 25px rgba(255, 255, 255, 0.6) inset; /* Brighter inner glow */
}

.card img {
  width: 50px;
  height: 50px;
  margin-right: 20px;
  display: inline-block;
  vertical-align: middle;
}

.card-title {
  font-size: 1.2em;
  margin: 10px 0;
  font-weight: 600;
}

.card-text {
  font-size: 0.9em;
  color: #777;
}

/* Remove any potential hover pseudo-elements */
.card::after {
  content: none;
  display: none;
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.card-text {
  font-size: 0.9em;
  color: #777;
  text-align: left;
}

/* Metrices Bar Styling */
.metrics-bar {
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 50px 0;
  background: url("{{ url_for('static', filename='img/metrices_bg.jpg') }}") center/cover no-repeat;
}

.metrics-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #005b9c79;
  z-index: -2;
}

.metrics-carousel-wrapper {
  width: 100%;
  height: 150px; /* Height of ONE row */
  overflow: hidden;
  position: relative;
}

.metrics-carousel {
  display: flex;
  flex-direction: column;
  transition: transform 1s ease-in-out;
  will-change: transform;
  gap: 0; /* remove gap to avoid extra spacing */
}

.metrics-group {
  display: flex;
  justify-content: center !important;
  gap: 150px;
  height: 150px; /* FIXED height for each row */
  align-items: center !important; /* vertically center items */
  box-sizing: border-box;
}


.metric-item {
  display: flex;
  align-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.metric-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  font-size: 36px;
  margin-right: 15px;
  background-color: transparent;
  transition: background-color 0.3s, color 0.3s;
}

.metric-item:hover .metric-icon {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 91, 156);
}

.metric-content {
  text-align: left;
}

.metric-number {
  font-size: 36px;
  font-weight: 600;
}

.metric-text {
  font-size: 18px;
  font-weight: 400;
}

.scroll-controls {
  position: absolute;
  top: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  z-index: 2;
  gap: 25px;
}

.scroll-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 6px 0;
  cursor: pointer;
  font-size: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.scroll-controls button:hover {
  background: rgba(255, 255, 255, 0.59);
  transform: scale(1.05);
}


.explore-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #0056b3;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
  margin-right: 15px;
}


.detailed-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s;
}

.section:hover .section-image {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section:nth-child(odd) {
  background-color: #ffffff;
}

.section:nth-child(even) {
  flex-direction: row-reverse;
  background-color: #eff0f2;
}

.section-image {
  width: 350px;
  height: 250px;
  border-radius: 40px;
  overflow: hidden;
  transition: transform 0.3s;
}

.section:nth-child(odd) .section-image {
  border-left: 10px solid #eff0f2;
  border-top: 10px solid #eff0f2;
  margin-right: 70px;
}

.section:nth-child(even) .section-image {
  border-right: 10px solid #ffffff;
  border-top: 10px solid #ffffff;
  margin-left: 70px;
}

.section-content {
  max-width: 600px;
}

.section-title-small {
  font-size: 16px;
  color: #005b9c;
  font-weight: bold;
}

.section-title-large {
  font-size: 20px;
  font-weight: bold;
  color: #005b9c;
  margin: 5px 0;
}

.section-title-xtra-large {
  font-size: 30px;
  font-weight: bold;
  color: #005b9c;
  margin: 2px 0;
}

.section-description {
  font-size: 16px;
  line-height: 1.6;
}

.ready-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border-radius: 37px;
  padding: 50px;
  margin: 120px;
  margin-top: 7px;
  margin-bottom: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 500px;
  overflow: hidden;
  transform: translateY(50px); /* Slide down slightly */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Smooth transition */
}
.ready-card.show {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* No slide */
}

.ready-card-content {
  flex: 1;
  padding-right: 20px;
}

.ready-icon .icon-image {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.ready-title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 600;
  display: inline-block;
  border-bottom: 3px solid #005b9c;
  padding-bottom: 1px;
  margin: 10px 0 20px;
}

/* General paragraph styling */
.ready-card p {
  line-height: 2; /* Improves readability */
  color: #2c3e50; /* Dark slate color for elegance */
  margin-bottom: 1.5rem; /* Generous spacing between paragraphs */
  text-align: justify; /* Aligns the text neatly */
}

/* Add subtle border and shadow around the paragraphs */
.ready-card p {
  background-color: #ffffff; /* Light gray background for contrast */
}

/* Styling for bold text */
.ready-card p strong {
  color: #000000; /* Blue text for bold emphasis */
  font-weight: bold; /* Ensures bold styling */
  background-color: #e0eff7; /* Soft blue background */
  padding: 3px 6px; /* Adds spacing around bold text */
  border-radius: 4px; /* Rounded edges */
}

/* Add spacing and style for the entire section */
.ready-card section {
  max-width: 800px; /* Limits the width for better readability */
  margin: 2rem auto; /* Centers the section */
  padding: 1rem; /* Adds space around the content */
}

.ready-card-image {
  flex: 1;
  max-width: 40%;
  height: 90%;
}

.ready-card-image .card-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure the image fits inside without cutting */
  border-radius: 15px;
}


.footer {
  background-color: #005b9c;
  color: #ffffff;
  padding: 20px 0;
  text-align: right;
}

.footer-logo {
  max-width: 180px;
  padding: 20px;
}

.social-icons {
  margin-top: 0px;
  padding: 10px;
}

.social-icons a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ffffff;
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
}

.copyright {
  margin-top: 0px;
  padding: 10px;
}
.title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-button {
  background-color: #005b9c;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.demo-button:hover {
  background-color: rgb(1, 69, 143);
}

.demo-button:active {
  transform: translateY(-5px); 
}

.demo-button i{
  margin-right: 5px;
}

/* Fullscreen overlay for preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eff0f2; /* Updated background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Main loader style */
.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #005b9c; /* Updated to primary blue */
  box-shadow: 32px 0 #005b9c, -32px 0 #005b9c;
  position: relative;
  animation: flash 1.2s ease-in-out infinite alternate;
}

/* Left and Right balls */
.loader::before, .loader::after {
  content: '';
  position: absolute;
  left: -64px;
  top: 0;
  background: #005b9c; /* Updated to primary blue */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform-origin: 35px -35px;
}

/* Left ball animation */
.loader::before {
  transform: rotate(45deg);
  animation: hitL 1.4s ease-in-out infinite alternate;
}

/* Right ball animation */
.loader::after {
  left: 64px;
  transform: rotate(-45deg);
  transform-origin: -35px -35px;
  animation: hitR 1.3s ease-in-out infinite alternate;
}

/* Keyframes for middle ball */
@keyframes flash {
  0%, 100% {
    background-color: rgba(0, 91, 156, 0.25);
    box-shadow: 32px 0 rgba(0, 91, 156, 0.25), -32px 0 rgba(0, 91, 156, 0.25);
  }
  25% {
    background-color: rgba(0, 91, 156, 0.25);
    box-shadow: 32px 0 rgba(0, 91, 156, 0.25), -32px 0 rgba(0, 91, 156, 1);
  }
  50% {
    background-color: rgba(0, 91, 156, 1);
    box-shadow: 32px 0 rgba(0, 91, 156, 0.25), -32px 0 rgba(0, 91, 156, 0.25);
  }
  75% {
    background-color: rgba(0, 91, 156, 0.25);
    box-shadow: 32px 0 rgba(0, 91, 156, 1), -32px 0 rgba(0, 91, 156, 0.25);
  }
}

/* Keyframes for left ball */
@keyframes hitL {
  0% {
    transform: rotate(45deg);
    background-color: rgba(0, 91, 156, 1);
  }
  25%, 100% {
    transform: rotate(0deg);
    background-color: rgba(0, 91, 156, 0.25);
  }
}

/* Keyframes for right ball */
@keyframes hitR {
  0%, 75% {
    transform: rotate(0deg);
    background-color: rgba(0, 91, 156, 0.25);
  }
  100% {
    transform: rotate(-45deg);
    background-color: rgba(0, 91, 156, 1);
  }
}
