html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* General Styling */
body {
  background: linear-gradient(180deg, #e6f7ff, #ffffff);
  color: #333;
}

header {
  height: 100vh; /* Full-screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(
    90deg,
    #006494,
    #003554
  ); /* Background gradient */
  color: #fff;
  padding: 10px;
  /* overflow: hidden;  */
}
header h1 {
  color: #ffffff;
}
p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
/****************************************** Rainy Effect *********************************************/
.rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rain-container .raindrop {
  position: absolute;
  width: 2px;
  height: 25px;
  background: rgba(255, 255, 255, 0.815);
  border-radius: 50%;
  animation: fall 2s linear infinite;
}

@keyframes fall {
  0% {
    /* transform: translateY(-50%); */
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}
/********************************************Logo*********************************************/
.logo-container {
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.responsive-logo {
  max-width: 25%; /* Adjust logo size to fit */
  height: auto; /* Maintain aspect ratio */
}
/********************************************Header P ********************************************/

/* Navigation Styling */
.navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 1rem;
  background: linear-gradient(90deg, #006494, #003554);
}

.navbar a {
  color: rgba(255, 255, 255, 0.366);
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #ffbd42;
}
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
}
/*****************WhatsApp**************************/
/* WhatsApp Icon */
#whatsapp-icon {
  position: fixed;
  left: 1%; /* Slightly above the center */
  bottom: 2%; /* Maintain some margin from the edge */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-color: #29a71a; /* WhatsApp green */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: wavePopup 2s infinite ease-in-out; /* Add waving animation */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-icon img {
  width: 35px;
  height: 35px;
}

#whatsapp-icon:hover {
  box-shadow: 6px 6px 12px rgba(255, 149, 2, 0.945);
}
/* Waving Popup Animation */
@keyframes wavePopup {
  0%,
  100% {
    transform: translateY(0) rotate(0deg); /* Default position */
  }
  25% {
    transform: translateY(-10px) rotate(-5deg); /* Slight upward wave */
  }
  50% {
    transform: translateY(-5px) rotate(5deg); /* Slight downward wave */
  }
  75% {
    transform: translateY(-10px) rotate(-5deg); /* Back to upward wave */
  }
}
/***************************/
/*Ai Assistant*/
.ai-assistant {
  position: fixed;
  top: 50%; /* Distance from the top */
  right: 0px; /* Distance from the left */
  z-index: 1000; /* Ensures it stays on top */
  /* display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; */
  /* width: 20px;
  height: 20px; */
}
.ai-assistant img {
  width: 100%;
  height: 100%;
}
.assistant-icon {
  background-color: #0369a1;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.assistant-icon img {
  width: 100%;
  height: 30px;
}
.assistant-content {
  display: none;
  width: 300px;
  height: 400px;
  background-color: #3333330f;
  border-radius: 5px;
  position: absolute;
  top: 0%;
  right: 100%;
  transform: translateY(-50%);
}

.ai-assistant.open .assistant-content {
  display: block;
}

.chat-assistant {
  /* bottom: 20px;
  right: 20px; */
  width: 300px;
  height: 400px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #006494;
  color: #fff;
  padding: 10px;
  text-align: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.bot-message,
.user-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
}

.bot-message {
  background: #f0f0f0;
  color: #333;
}

.user-message {
  background: #006494;
  color: #fff;
  align-self: flex-end;
}

.chat-footer {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-footer input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.chat-footer button {
  background: #006494;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 5px;
  cursor: pointer;
}

/*****************************************************************************/

/* Section Layouts */
section {
  padding: 50px 0;
}

h2 {
  color: #0369a1;
}

p {
  line-height: 1.6;
  text-align: justify;
}

ul li {
  margin-bottom: 10px;
}

.contact-feedback {
  color: #0369a1;
  font-weight: bold;
  display: none;
  text-align: center;
  margin-top: 10px;
}

/* *****************************************Footer************************************ */
footer {
  background: #024e73;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}

/* Form Styles */
form {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

form .form-group {
  margin-bottom: 15px;
}

form button {
  background-color: #0369a1;
  border-color: #0369a1;
  transition: all 0.3s ease;
}

form button:hover {
  background-color: #024e73;
  transform: translateY(-3px);
}
/**/
#home {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 20px;
}

#home-text {
  margin: 5%;
  width: 35%; /* Ensure text takes 40% of the space */
}
h1 {
  font-size: 3rem;
  margin-bottom: 20px; /* Adds spacing below the heading */
  line-height: 1.2; /* Adjusts line spacing for readability */
  color: #006494;
  font-size: 2.5rem;
  margin: 20px 0 10px 0;
}
#home-text p {
  font-size: 1.1rem;
  margin-bottom: 20px; /* Adds spacing below the heading */
  line-height: 1.7; /* Adjusts line spacing for readability */
}
#home-image {
  width: 20%; /* Image takes 60% of the space */
  margin: 5%;
  text-align: center;
}
/* Initial state */
#home-text,
#home-image {
  opacity: 0;
  transform: translateY(30px); /* Adjust if needed */
  transition: all 1s ease; /* Smooth animation */
}

/* Animated state */
#home-text.animate,
#home-image.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Optional rotate-scale-up animation */

@keyframes rotate-scale-up {
  0% {
    transform: translateX(-800px) rotate(-540deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}
.rotate-scale-up {
  animation: rotate-scale-up 0.45s ease-out both;
}
/***********************************Card Design*********************************************/
.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for a sleek look */
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}
.card-img-top {
  width: 100%; /* Full width */
  height: 100px; /* Adjust height based on the aspect ratio */
  object-fit: contain; /* Ensures the entire image is visible */
  background-color: #34a5e678; /* Optional: Adds a background for padding */
  padding: 10px;
}
.card-text {
  color: #6d6b6b;
  font-size: 1em;
}
.card:hover {
  transform: translateY(-10px); /* Elevates card slightly */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0369a1;
}

.card-footer .btn-primary {
  background-color: #0369a1;
  border-color: #0369a1;
  transition: background-color 0.3s;
}

.card-footer .btn-primary:hover {
  background-color: #ffbd42;
  color: #000;
}

.card {
  position: relative;
  overflow: hidden; /* Ensure the pseudo-element stays within bounds */
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.8s ease;
}

.card:hover {
  transform: translateY(-10px); /* Slight lift on hover */
}

/* Water Fill Effect */
.card::before {
  content: "";
  position: absolute;
  bottom: -100%; /* Start completely below the card */
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(251, 251, 251, 0.071),
    rgba(240, 239, 239, 0.459),
    rgba(255, 158, 54, 0.9)
  );

  z-index: 1; /* Place it behind the text */
  transition: bottom 0.4s ease-in-out;
}

/* Hover Effect: Fill from bottom to top */
.card:hover::before {
  bottom: 0; /* Move to the top of the card */
}

/* Ensure Content Stays Above */
.card-body {
  position: relative;
  z-index: 2; /* Keep the text above the water effect */
}

.card-title,
.card-text {
  color: rgba(90, 92, 93, 0.786); /* Text color on hover */
  transition: color 0.3s ease;
}

.card:hover .card-title,
.card:hover .card-text {
  color: #000; /* Adjust text color on hover */
}

/* Section Styling */
#our-clients {
  position: relative;
  overflow: hidden; /* Hide overflow for smooth transitions */
}

#our-clients h2 {
  color: #0369a1;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Carousel Styling */
.client-carousel {
  display: flex;
  gap: 30px; /* Spacing between cards */
  animation: slide-left 10s linear infinite; /* Smooth sliding animation */
}

/* Section Styling */
#our-clients {
  position: relative;
  overflow: hidden; /* Ensure the carousel doesn't exceed the section */
  /* background-color: #f8f9fa; */
  padding: 50px 0;
}

#our-clients h2 {
  color: #0369a1;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Carousel Styling */
.carousel {
  display: flex;
  gap: 20px; /* Spacing between groups */
  animation: scroll 25s linear infinite; /* Smooth scrolling animation */
}

.group {
  display: flex;
  gap: 20px; /* Spacing between cards */
  flex-shrink: 0; /* Prevent groups from shrinking */
}

.client-card {
  display: flex;
  align-items: center;
  min-width: 300px; /* Card width */
  height: 150px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0; /* Prevent shrinking */
}

/* Client Image */
.client-image {
  width: 30%; /* Fixed width for the image */
  height: 90%; /* Full height */
  object-fit: contain; /* Crop the image if needed */
}

/* Client Info */
.client-info {
  padding: 10px;
  flex: 1; /* Take remaining space */
}

.client-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0369a1;
}

.client-description {
  font-size: 0.9rem;
  color: #555;
}

/* Infinite Scrolling Animation */
.group {
  /* ... */
  will-change: transform; /* We should be nice to the browser - let it know what we're going to animate. */
  animation: scrolling 10s linear infinite;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .client-card {
    min-width: 250px;
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .client-card {
    min-width: 200px;
    max-width: 200px;
  }
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel:hover .group {
  animation-play-state: paused; /* Pause scrolling when hovered */
}

.client-card {
  position: relative; /* Ensure the pseudo-element positions correctly */
  overflow: hidden; /* Prevent the pseudo-element from spilling out */
}

.client-card::before {
  content: "";
  position: absolute;
  bottom: -100%; /* Start below the card */
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(251, 251, 251, 0),
    rgba(240, 239, 239, 0.274),
    rgba(255, 158, 54, 0.9)
  );
  z-index: 1; /* Place behind the card's text content */
  transition: bottom 0.4s ease-in-out; /* Smooth transition for the effect */
}

/* Hover Effect: Water fills from bottom to top */
.client-card:hover::before {
  bottom: 0; /* Bring the "water" to the top */
}

/* Ensure the card content stays above the pseudo-element */
.client-card .client-info {
  position: relative;
  z-index: 2;
  padding: 10px;
}

.client-card .client-name,
.client-card .client-description {
  z-index: 2; /* Keep text above the pseudo-element */
  position: relative;
}
/********************************************************************************/

@media (max-width: 1200px) {
  #home {
    flex-direction: row;
    text-align: center;
  }

  #home-text,
  #home-image {
    text-align: center;
    width: 100%;
    height: auto;
  }

  #home-image img {
    max-width: 90%;
  }
}
@media (max-width: 768px) {
  #home {
    flex-direction: column;
    text-align: center;
  }

  #home-text,
  #home-image {
    text-align: center;
    width: 90%;
    height: auto;
  }

  #home-image img {
    max-width: 90%;
  }
}
@media (max-width: 575px) {
  #home {
    flex-direction: column;
    text-align: center;
  }
  h1 {
    font-size: 1rem;
  }
  #home-text,
  #home-image {
    width: 95%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .responsive-logo {
    max-width: 45%;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .chat-assistant {
    width: 200px;
    height: 275px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
  }
  .assistant-content {
    display: none;
    width: 200px;
    height: 275px;
    background-color: #3333330f;
    border-radius: 5px;
    position: absolute;
    top: 0%;
    right: 100%;
    transform: translateY(-50%);
  }
}

@media (orientation: landscape) and (max-width: 768px) {
  .responsive-logo {
    max-width: 25%;
  }
  .chat-assistant {
    width: 300px;
    height: 250px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
  }
  .assistant-content {
    display: none;
    width: 300px;
    height: 250px;
    background-color: #3333330f;
    border-radius: 5px;
    position: absolute;
    top: 0%;
    right: 100%;
    transform: translateY(-50%);
  }
}
.styled-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #0369a1;
}

.styled-button:hover {
  background-color: #ffbd42;
  color: black;
  text-decoration: none;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}
