/* No bugs or null pointer references found in the given CSS code block */

/* html {
  font-family: sans-serif;
  box-sizing: border-box;
} */

*,
*:before,
*:after {
  box-sizing: inherit;
}

.text-center {
  text-align: center;
}

.color-white {
  color: #fff;
}

/* Update grid-container for responsiveness */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 30px;
  justify-content: space-around;
  padding: 35px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Media query for larger screens */
@media screen and (min-width: 1380px) {
  .grid-container {
    grid-template-columns: auto auto auto auto;
    /* Adjust the grid columns for larger screens */
  }
}

/* Media query for smaller screens */
@media screen and (max-width: 767px) {
  .grid-container {
    grid-template-columns: auto;
    /* Adjust the grid columns for smaller screens */
  }

  .grid-item {
    width: 100%;
    /* Make grid items full width on smaller screens */
    grid-template-columns: 1fr;
  }
}

/* Additional media queries for other elements as needed */

/* Example: Media query for flip-box elements on smaller screens */
@media screen and (max-width: 767px) {
  .flip-box {
    min-width: 150px;
    /* Adjust the minimum width of flip-box on smaller screens */
  }

  .flip-box-front,
  .flip-box-back {
    min-height: 250px;
    /* Adjust the minimum height of flip-box elements on smaller screens */
  }

  .flip-box p {
    font-size: 16px;
    /* Adjust font size for better readability on smaller screens */
  }

  .flip-box-back {
    -ms-transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }

  .flip-box-front {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
}

.grid-item {
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  margin-bottom: 35px;
  max-width: 100%;
}

.flip-box {
  -ms-transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  min-width: 200px;
}

.flip-box-front,
.flip-box-back {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  min-height: 350px;
  box-shadow: 10px 5px 5px black;
  -ms-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -webkit-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-box-front {
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-front {
  -ms-transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-back {
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-box .inner {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0px;
  outline: 1px solid transparent;
  -webkit-perspective: inherit;
  perspective: inherit;
  z-index: 2;
  -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
  -ms-transform: translateY(-50%) translateZ(60px) scale(0.94);
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  top: 50%;
}

.flip-box-header {
  font-size: 24px;
}

.flip-box p {
  font-size: 20px;
  line-height: 1.5em;
}

.flip-box-img {
  width: 90%;
  height: 120px;
  object-fit: cover;
  margin-top: 25px;
}

.flip-box-button {
  background-color: transparent;
  border: 2px solid #fff;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  margin-top: 25px;
  padding: 15px 20px;
  text-transform: uppercase;
}

.card:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.card {
  position: relative;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -1;
  transform: translateY(10px);
}

.card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -2;
  transform: translateY(20px);
}

/* Navbar Scroll Transition Enhancements */
.navbar {
  transition: all 0.3s ease-in-out;
}

.navbar-scrolled {
  background-color: rgba(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link {
  color: #333333 !important;
}

.navbar-scrolled .navbar-brand {
  color: #333 !important;
}

.navbar-scrolled .navbar-toggler-icon {
  filter: invert(1);
}

/* Ensure smooth transitions for all navbar elements */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-toggler-icon {
  transition: all 0.3s ease-in-out;
}

/* Contact Form Styles */
.parallax-1 {
  background-image: url('../assets/img/bgblue01.jpg');
  font-family: Arial, sans-serif;
  /* background-color: #f4f4f4; */
  margin: 0;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: gold;
}

.parallax-2 {
  background-image: url('../assets/img/bgblue02.jpg');
  font-family: Arial, sans-serif;
  /* background-color: #f4f4f4; */
  margin: 0;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: gold;
}

.contact-form-container {
  max-width: 400px;
  margin: 10px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

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

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: 50%;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}