html {
  scroll-behavior: smooth;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
}

.loader-dots span {
  width: 1rem;
  height: 1rem;
  background-color: white;
  border-radius: 50%;
  animation: bounce 4s infinite ease-in-out; /* Updated to 4 seconds */
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.4s; /* Adjusted for smoother timing */
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.8s; /* Adjusted for smoother timing */
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Base Styles === */
body {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  padding-top: 0; /* Pushes content down below navbar */
}

section {
  padding: 100px 0;
}

h1,
h2,
h3 {
  font-weight: bold;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* === Navbar Enhancements === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(23, 121, 163, 0.7);
  backdrop-filter: blur(10px);
  transition: background-color 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: slideDown 0.8s ease-out forwards;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar.scrolled {
  background: rgba(17, 87, 117, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link {
  color: #f1f1f1;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #00d1b2; /* Aqua accent */
}

/* Underline animation on hover */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #00d1b2;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

/* Active section highlight */
.navbar .nav-link.active,
.navbar .nav-link:focus {
  color: #00d1b2;
}

/* Button styling */
#langToggle {
  border: none;
  font-weight: 500;
  background: linear-gradient(135deg, #00d1b2, #1779a3);
  color: white;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}

#langToggle:hover {
  background: linear-gradient(135deg, #01b3b3, #14678a);
  transform: scale(1.05);
}

/* === Home Section Enhancements === */
#home {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-direction: column;
}

#home .overlay {
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.7)
  );
  z-index: 1;
}

/* Fade in content */
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#home .content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  animation: fadeInUp 1.2s ease-out;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Headline Styling */
#home h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Subheadline */
#home p.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

/* CTA Buttons */
#home .btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#home .btn-primary {
  background: linear-gradient(135deg, #00c9ff, #92fe9d);
  color: #000;
  border: none;
}

#home .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

#home .btn-outline-light {
  background: transparent;
  border: 2px solid white;
  color: white;
}

#home .btn-outline-light:hover {
  background: white;
  color: #1779a3;
  transform: translateY(-2px);
}

.tech-popup {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: linear-gradient(135deg, #1f1c2c, #928dab); /* Soft dark-purple gradient */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 320px;
  z-index: 9999;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  animation: fadeSlideUp 0.4s ease-out;
}

.tech-popup h6 {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.tech-popup i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.tech-popup i:hover {
  transform: scale(1.2);
  color: #00f7ff;
}

.tech-icon {
  max-width: 60px; /* Set a small size for the images */
  max-height: 60px;
  object-fit: contain; /* Maintain the aspect ratio of the images */
  margin: 10px; /* Add spacing around each image */
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.tech-icon:hover {
  transform: scale(1.1); /* Slightly enlarge the image on hover */
}

.tech-icon.enlarged {
  width: 80px; /* Enlarged size */
  height: 80px;
  transform: scale(1.2);
}

/* Smooth pop-in animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Animate buttons on scroll */
[data-aos] {
  will-change: transform, opacity;
}

/* === Services Section === */
.service-wrapper {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-wrapper h3 {
  font-size: 18px;
  transition: color 0.3s ease;
}

.service-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Overlay reveal animation */
.service-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.service-wrapper:hover .service-description {
  opacity: 1;
  transform: translateY(0);
}

.service-description p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.service-description .btn {
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 500;
  background-color: transparent;
  border: 2px solid;
  color: #126284;
  transition: all 0.3s ease;
}

.service-description .btn:hover {
  background-color: #126284;
  color: white;
  border-color: #126284;
}

/* === About Section === */
.about-section {
  background-color: #ffffff;
  padding: 50px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Wrapper for Image and Text */
.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

/* Image Styles */
.about-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Text Content */
.about-wrapper .about-text {
  max-width: 600px;
}

.about-wrapper .about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-wrapper .about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Button Styles */
.about-wrapper .about-text .btn {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 20px;
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-wrapper .about-text .btn:hover {
  background-color: #e55050;
  transform: scale(1.05);
}

/* === Info Boxes (Vision, Features, etc.) === */
.about-box {
  background-color: #ffffff;
  border-left: 5px solid #126284;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  color: #343a40;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Icon Styling + Hover Effects */
.about-box i {
  color: #126284;
  font-size: 1.8rem;
  margin-right: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.about-box:hover i {
  transform: scale(1.2);
}

/* === Team Section Image Styling === */
.card-img-top {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 10px auto 0;
}

/* === Team Cards Hover Effect === */
.team-card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Gradient Title */
.text-gradient {
  background: linear-gradient(90deg, #1779a3, #0b4a5c); /* Updated to match the theme */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Contact Section */
.contact-section {
  background: #eef7fa; /* Softer blue-tinted background */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-link {
  color: #1779a3; /* Updated to match the theme */
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}
.contact-link i {
  color: black; /* Change icon color to black */
  font-size: 1.2rem;
}
.contact-link:hover {
  color: #0b4a5c; /* Darker blue for hover */
}

.map-frame {
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Form */
.form-control {
  border-radius: 10px;
  border: 1px solid #b3d9e0; /* Light blue border */
  transition: box-shadow 0.3s ease;
}
.form-control:focus {
  box-shadow: 0 0 8px rgba(23, 121, 163, 0.4); /* Blue-tinted focus shadow */
  border-color: #1779a3; /* Updated to match the theme */
}

.btn-gradient {
  background: linear-gradient(90deg, #00d1b2, #1779a3); /* Aqua to blue gradient */
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #0b4a5c, #126284); /* Darker gradient for hover */
  color: #fff;
}

/* === Footer === */
.footer {
  background-color: #111;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-left img {
  height: 50px;
  margin-bottom: 20px;
}

.footer .social-contact-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.footer .icon {
  font-size: 20px;
  color: white;
  transition: color 0.3s ease;
}

.footer .icon:hover {
  color: #126284;
}
