* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  background-color: #e1f5fe;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.hero-section {
  width: 100%;
  background-color: #ffffff;
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0; /* Remove extra space below the image */
}

.hero-section img {
  filter: brightness(1.1) contrast(1.1) saturate(1.3);
  transition: filter 0.3s ease; /* Smooth transition for filter effects */
  display: block;
  width: 100%;
  height: auto;
  max-height: 630px; 
  margin-bottom: 0; /* Remove bottom margin */

}

@media (max-width: 600px) {
  .hero-section {
    height: auto; /* Allow height to adjust based on content */
    object-fit: cover;
    object-position: center;
  }
}

.navbar {
  background-color: #1279e0 !important;
  padding-top: 0 !important; /* Remove top padding */
  border-bottom: 6px solid #d4af37;
  margin-top: 0; /* Remove default margin */
  margin-bottom: 0; /* Remove default margin */
  position: relative;
  white-space: normal !important; /* Allow wrapping of nav items */
  font-size: 1.2rem !important; /*shrink font size for better fit on smaller screens */
  max-width: 100% !important; /* Limit navbar width to 100% of the viewport */
  display: flex !important; /* Allow navbar to shrink to fit content */

}

.navbar-brand {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link {
  position: relative;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #00f2ff;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #00f2ff !important;
  text-shadow: 0px 0px 8px rgba(0, 242, 255, 0.6);
}

.navbar-toggler {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 2px solid #d4af37 !important;
  padding: 4px 10px;
  transition: all 0.5s ease;
  background-color: transparent !important;
  box-shadow: 0px 0px 10px rgba(212, 175, 55, 0.6) !important;
}

.navbar-toggler-icon {
  filter: invert(72%) sepia(54%) saturate(450%) hue-rotate(5deg) brightness(95%) contrast(89%) !important;
}

.container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  padding: 60px 20px !important;
}

.flag-logo {
  display: block;
  margin: 0 auto 30px auto;
  width: 250px;
  height: auto;
  background-color: #1a1a1a;
  padding: 8px;
  background: linear-gradient(45deg, #d4af3e, #f9f295, #ab8e28, #f9f295, #d4af37);
  border-radius: 4px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  animation: wave 6s ease-in-out infinite !important;
  transform-origin: left center;
  perspective: 2000px;
}
/* perspective adds depth to the 3D effect */

/* This sets the wave animation for the flag logo */
@keyframes wave {
  0% {
    transform: rotate(0deg) rotateY(0deg) skew(0deg);
  }
  25% {
    transform: rotate(1deg) rotateY(15deg) skew(2deg); /* swings to you*/
  }
  50% {
    transform: rotate(-1deg) rotateY(-10deg) skew(-1deg); /* swings away */
  }
  75% {
    transform: rotate(0.5deg) rotateY(5deg) skew(0.5deg); /* swings back to you */
  }
  100% {
    transform: rotate(0deg) rotateY(0deg) skew(0deg);
  }
}

.card {
  border-top: 5px solid #d4af37 !important;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.card-title {
  color: #003366;
  font-weight: bold;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.card-img-top {
  border-bottom: 1px solid #ddd;
}

.btn-quote-custom {
  background-color: #0056b3;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-quote-custom:hover {
  background-color: #004494;
  color: #d4af37;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
  border-color: #f9f295 !important;
}

@media (max-width: 767px) {

  .hero-section, .carousel, .carousel-inner {
    margin-bottom: 0 !important; /* Remove bottom margin for better fit on smaller screens */
    padding-bottom: 0 !important; /* Remove bottom padding for better fit on smaller screens */
  }
  .carousel-caption h3 {
    font-size: 1.1rem !important;
  }
  .carousel-caption p {
    font-size: 0.8rem !important;
  }

  .navbar {
    margin-top: 0 !important; /* Remove top margin for better fit on smaller screens */
    padding-top: 0 !important; /* Remove top padding for better fit on smaller screens */
    top: 0 !important; /* Ensure navbar stays at the top on smaller screens */
  }

  .input-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important; /* Make button full width on smaller screens */
    gap: 15px !important; /* Add space between form elements */
  }

  .custom-input {
    width: 100% !important; /* Make inputs full width on smaller screens */
    flex: 1 1 auto !important; /* Allow inputs to grow and shrink as needed */
    order: 1 !important; /* Ensure inputs are stacked vertically */
    margin-bottom: 10px !important; /* Add space between inputs and button */

  }

  .btn-quote-custom {
    width: 100% !important; /* Make button full width on smaller screens */
    display: block !important; /* Ensure button is displayed as a block element */
    order: 2 !important; /* Ensure button is below inputs */

  }
}



.carousel-item img {
  width: 100%;
  height: 800px !important;
  object-fit: cover;
}

.card a:hover {
  color: #0056b3 !important;
  text-decoration: underline !important;
}

.contact-bg {
  background-color: #95bee7 !important;
  border-radius: 60px;
  padding: 50px;
}

.award-img {
  max-width: 210px;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 20px;
  box-shadow: 0px 0px 25px rgba(17, 105, 177, 0.573);
}

@media (max-width: 200px) {
  .award-img {
    max-width: 150px;
  }
}

.award-img:hover {
  transform: scale(1.07) !important;
}

footer {
  width: 100%;
  display: block;
  height: fit-content !important;

}

.input-group {
  display: flex !important;
  justify-content: center !important;
  gap: 15px !important; /* Add space between form elements */

}

.custom-input {
  width: 100% !important; /* Make inputs full width */
  max-width: 400% !important; /* Limit maximum width for better readability */
  border-radius: 5px !important;

}

.btn-quote-custom {
  width: 100% !important; /* Make button full width */
  min-width: 100px !important; /* Ensure button has a minimum width */
  margin-left: 0 !important; /* Remove left margin for better alignment */
  margin-top: 10px !important; /* Add top margin for better spacing on smaller screens */
  display: block !important; /* Ensure button is displayed as a block element */

}

.contact-hero-img {
  width: 100%;
  max-width: 600% !important; /* Limit maximum width for better fit on larger screens */
  height: auto !important; /* Limit maximum height for better fit on smaller screens */
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 15% !important;

}






