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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Sticky Navbar */
.navbar {
  background-color: #003d4c;
  padding: 1rem;
  display: flex;
  justify-content: center;
  position: sticky; /* This will make the navbar sticky */
  top: 0; /* Stick it to the top */
  z-index: 1000;
  width: 100%; /* Ensures the navbar stretches across the full width */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
  background-color: #003d4c; /* Ensures visibility */
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* Navbar Links */
.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #00d084;
}

/* Image Section Styling */
.image-section {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Restrict height to 90% of viewport height */
  overflow: hidden; /* Prevents any overflow when scaling */
  margin-bottom: 10px; /* Reduces space between sections */
}

.image-section img {
  width: 100%;
  height: auto; /* Ensures the aspect ratio is maintained */
  max-height: 100%; /* Prevents image from overflowing vertically */
  object-fit: contain; /* Ensures image fits inside the container without being cut off */
}

/* Floating Button Style */
.floating-button {
  position: fixed;
  bottom: 20px; /* Distance from the bottom of the page */
  right: 20px;  /* Distance from the right of the page */
  padding: 10px 20px;
  background-color: #4CAF50; /* Green color */
  color: white;
  border: none;
  border-radius: 50%; /* Circle shape */
  font-size: 24px;
  cursor: pointer;
  z-index: 1000; /* Ensure the button is always on top */
}

.floating-button:hover {
  background-color: #45a049; /* Darker green when hovered */
}

/* Icon Styling */
.floating-button ion-icon {
  font-size: 30px; /* Increase the icon size */
}

/* Toggle Button for Mobile */
.navbar .toggle-btn {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Navbar Links */
.navbar-links {
  display: flex;
}

.navbar-links a {
  margin: 0 1.5rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .toggle-btn {
    display: block;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links a {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .navbar a {
    font-size: 1rem;
    margin: 5px 0;
  }

  .floating-button {
    bottom: 20px;
    right: 10px;
  }

  /* Adjust image sizes and layout for mobile */
  .image-section {
    height: auto; /* Allow sections to adapt to the content */
    margin-bottom: 5px; /* Reduce space between images */
  }

  .image-section img {
    width: 100%;
    height: auto; /* Ensures images scale properly on smaller screens */
  }
}
