:root {
  --primary-color: #1f2937;
  --accent-color: #f9f9f9;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: var(--accent-color);
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 40px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  max-width: 250px;
  max-height: 100%;
}

header .navbar-toggler {
  display: none;
}

#navbarToggle.collapse {
  display: block;
}

header .navbar-toggler img {
  display: none;
}

header .navbar-toggler img.active {
  display: block;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px;
}

nav.navbar {
  flex-direction: row;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

a {
  text-decoration: none;
  font-weight: 700;
}

.toast-body {
  display: flex;
  gap: 15px;
  background-color: #d1e7dd;
}

/* Animated Background Section */
.hero {
  color: white;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #1f2937, #3b82f6, #06b6d4, #1f2937);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.section {
  padding: 60px 40px;
  text-align: center;
  scroll-margin-top: 100px;
}

#about,
#location {
  background-color: #fff;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background-color: var(--card-bg);
  padding: 20px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.card h4 {
  min-height: 60px;
}

.contact-form {
  max-width: 500px;
  margin: auto;
  text-align: left;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
}

footer {
  background-color: #111827;
  color: white;
  text-align: center;
  padding: 30px 10px;
  margin-top: 40px;
}

#scrollToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1f2937;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  z-index: 1000;
}

#scrollToTop:hover {
  background-color: #555;
}

#scrollToTop .arrowup {
  filter: brightness(0) invert(1);
  width: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .navbar-toggler {
    display: inline-block;
  }

  #navbarToggle.collapse:not(.show) {
    display: none;
  }

  header .hamburger,
  header .xmark {
    filter: brightness(0) invert(1);
    width: 30px;
    padding-top: 15px;
  }

  nav.navbar {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 32px;
  }

  .card {
    width: 100%;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }
}
