/* body */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  color: black;
  height: auto;
  max-width: 100%;
  font-family: Arial, sans-serif;

  background-image: url();
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center; 

  /* Responsive Design */
  @media (max-width: 768px) {
    .section-1, .section-2 {
      padding: 10px;
    }
  }       
}

/* logo */
.logo {
  position: absolute;
  top: 20px;
  left: 20px;
}

@media (max-width: 768px) {
  .logo {
    top: 10px;
    left: 10px;
  }
  
  .logo img {
    width: 60px;
    height: 60px;
  }
}

/* Navbar */
.navbar-container {
  width: 80%;
  margin-left: 10%;
}

.hamburger {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #2980b9;
  margin: 5px 0;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.nav-link {
  color: black;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 20px;
  display: block;
}

.nav-link:hover,
.nav-link.active-link {
  background-color: orange;
}

.nav-item {
  position: relative;
}

.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: brown;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}


.nav-item:hover .dropdown-content {
  display: block;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 0;
    width: 150px;
    background-color: white;
    z-index: 10;
  }

  .navbar.active {
    display: flex;
  }

  .overlay {
    display: none;
  }

  .overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
  }
}

/* Call button */
.call-button {
  display: inline-flex;
  width: 150px;
  height: 50px;
  background-color: #2980b9;
  color: white;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  position: fixed;
  bottom: 45px;
  right: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Floating shadow effect */
  z-index: 1000; /* Ensures the button stays on top */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.call-button:hover {
  background-color: orange;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

.call-button:active {
  animation: bounce 0.3s ease; /* Trigger the bounce effect */
}

.call-button img {
  width: 54px;
  height: 54px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .call-button {
    width: 120px;
    height: 40px;
    bottom: 45px;
  }

  .call-button img {
    width: 24px;
    height: 24px;
  }
}

/* Bounce animation */
@keyframes bounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1); /* Scale up slightly */
  }
  50% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.05); /* Smaller scale up */
  }
  100% {
    transform: scale(1);
  }
}



/* D-shaped image */
.d-shaped-image {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
}

.d-shaped-image img {
  width: 100%;
  display: block;
}

.top-overlay, .bottom-overlay {
  position: absolute;
  width: 100%;
  height: 10%;
  background-color: white;
}

.top-overlay {
  top: 0;
  clip-path: ellipse(50% 100% at 50% 0); /* Creates a D-shape */
}

.bottom-overlay {
  bottom: 0;
  clip-path: ellipse(50% 100% at 50% 100%); /* Creates a D-shape */
}

@media (max-width: 768px) {
  .d-shaped-image {
    height: 20vh; /* Adjust the height for smaller screens */
  }
  
  .top-overlay, .bottom-overlay {
    height: 5%; /* Adjust the overlay height for smaller screens */
  }
}

/* Container */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  padding: 20px;
}

.left, .center-left, .center-right, .right {
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.left a {
  border-radius: 5px;
  background-color: #2980b9;
  text-decoration: none;
  padding: 10px 20px;
  color: white;
  font-size: 16px;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

.left a:hover {
  background-color: orange;
}

.hover-effect {
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #2980b9;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 10px;
}

.hover-effect:hover {
  background-color: orange;
}

@media (min-width: 768px) {
  .container {
    flex-wrap: nowrap;
  }

  .left, .center-left, .center-right, .right {
    width: calc(25% - 20px);
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .left, .center-left {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .left a {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .left a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hover-effect {
    width: 80px;
    height: 80px;
    font-size: 12px;
  }
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
}

.footer a {
  margin: 0 10px;
  text-decoration: none;
  color: black;
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer a:hover {
  transform: scale(1.2); /* Scale adjustment */
}

.footer a i {
  font-size: 24px;
}

/* Flip Card */
.flip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.flip-card {
  background-color: transparent;
  width: 50px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card.flip .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.flip-card-front {
  background-color: #2980b9;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.flip-card-back {
  background-color: orange;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}


@media (max-width: 768px) {
  .flip-card {
    width: 80%;
    margin-bottom: 20px;
  }
}

@media (min-width: 769px) {
  .flip-card {
    width: calc(25% - 20px);
  }
}

/* Explanation Section */
/* Adjust the width of the section to fit the page better */
.explanation-section {
  width: 80%;
  margin: auto;
  text-align: center;
}

.explanation-section h1 {
  font-size: 2em;
}

.explanation-section p {
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .explanation-section {
    width: 90%;
  }

  .explanation-section h1 {
    font-size: 1.5em;
  }

  .explanation-section p {
    font-size: 1em;
  }
}

/*counter*/
/*counter-section*/
.counter-section {
  background: url('') no-repeat center center/cover;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  background-color: orange;
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  
}

.cutout-top,
.cutout-bottom {
  position: absolute;
  width: 100%;
  height: 200px; /* Adjust height as needed */
  background-color: white;
}

.cutout-top {
  top: 0;
  clip-path: ellipse(50% 40% at 50% 0%);
}

.cutout-bottom {
  bottom: 0;
  clip-path: ellipse(50% 40% at 50% 100%);
}

.counter-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80%;
  height: auto;

}

.counter-item {
  position: relative;
  padding: 20px;
  flex: 1 1 auto; /* Allow items to grow based on content */
  text-align: center;
  color: black;
  font-size: 30px;
}

.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  animation: float 2s infinite;
}

.counter-animation {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.counter {
  font-size: 2em;
  font-weight: bold;
  animation: count-up 2s ease-out;
}

@keyframes float {
  0% { transform: translatey(0px); }
  50% { transform: translatey(-10px); }
  100% { transform: translatey(0px); }
}

@keyframes count-up {
  from {
      transform: translateY(50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@media (max-width: 768px) {
  .counter-section {
      height: 120vh;

  }
  .counter-container {
      flex-direction: column;
      align-items: center;
     
  }

  .counter-item {
      width: 100%;
      padding:  0;
  }
}

/*link*/
.links {
  text-align: center;
}

.links a {
  display: inline-block;
  background-color: white ;
  padding: 10px 40px;
  border-radius: 5px;
  border:2px solid black;
  text-decoration: none;
  color: black;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s;
}

.links a:hover {
  background-color: grey;
}

@media (max-width: 768px) {
  .links {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  .links a {
      padding: 10px 50px;
      font-size: 25px;
      
  }
}

@media (max-width: 480px) {
  .links {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  .links a {
      padding: 10px 30px;
      margin: 10px 5px;
      font-size: 25px;
  }
}
  /*location*/

.location{
  align-items: center;
  text-align: center;

  h4 {
  font-size: 2em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.15em solid white;
  font-size: 30px;
  text-align: center;
  width: 100%;
  background-color:orange;
  padding: 20px 0;
  }   
  a{
      border-radius: 10px;
      background-color: #2980b9;
      color: white;
      padding: 10px 50px;
      text-decoration: none;
     
  }
  a:hover{
      background-color: orange;
  }
}
@media (max-width: 768px) {
  .location
  
  a{
    background-color: #2980b9;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
  }
  a:hover{
    background-color: orange;
  }
}
/*loading*/
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    position: relative;
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-text {
    position: absolute;
    color: orange;
    font-weight: bold;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styling */
.footer {
   text-align: center;
   padding: 10px;
   background-color: #f8f8f8;
   font-size: 14px;
   color: #555;
   border-top: 1px solid #ddd;
   position: fixed;
   bottom: 0;
   width: 100%;
}

.footer p {
   margin: 0;
}

.footer a {
   color: #555;
   text-decoration: none;
}

.footer a:hover {
   color: #333;
   text-decoration: underline;
}
