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

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Card Section */
.card {
  width: 50rem;

  background-color: rgba(231, 223, 223, 0.1);
  margin: 5rem auto;
  border-radius: 20px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  backdrop-filter: blur(px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-height: 180px;
  height: auto;
}

.card-header {
  font-size: 2rem;
  margin-top: 1rem;
  margin-left: 1rem;
  font-weight: bold;
  background-color: rgba(231, 223, 223, 0.1);
}

.card-body {
  padding: 1rem;
}

.card-text {
  margin-bottom: 1rem;
}

.icon a {
  color: black;
  text-decoration: none;
  display: block;
}
.icons .icon:hover {
  transform: scale(1.1);
  transition: transform 0.2s, color 0.2s;
}

.icons .icon:hover a {
  color: gray;
}

/* add this to fit card and image  */

.btn {
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background-color: #0056b3;
}

/* Filters Section */
.filters-icons {
  display: flex;
  justify-content: space-between;
  padding: 3rem;
}

.filters {
  width: 25%;
}

.search-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.filter-container {
  margin-bottom: 2rem;
}

.filter-container h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.filter-container label {
  display: block;
  margin-bottom: 0.5rem;
}

.filters-icons .filters input {
  margin-right: 10px;
}

/* Icons Section */
.icons {
  width: 70%;
  max-height: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.icon {
  background-color: white;
  width: 8rem;
  height: 8rem;
  text-align: center;
  border-style: solid;
  border-width: 0.1px;
  border-color: #ccc;
  border-radius: 20px;
  object-fit: contain;
}

.icon img {
  width: 50%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
  background-color: white;
  object-fit: contain;
}

.icon span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Section-specific Styles */
.dashboard,
.javascript,
.zapier {
  width: 100%;
}

.dashboard .icon,
.javascript .icon,
.zapier .icon {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 2rem;
}

.integration-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

#scrollToTopBtn {
  width: 48px;
  height: 48px;
  z-index: 99999; /* stay above everything */
  background-color: (--c-brand);
}

/* =========================
   MOBILE RESPONSIVE FIX
   ========================= */
@media (max-width: 768px) {
  /* Stack filters on top */
  .filters-icons {
    flex-direction: column;
    padding: 1.5rem;
  }

  .filters {
    width: 100%;
    margin-bottom: 2rem;
  }

  /* Icons grid below filters */
  .icons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 cards per row */
    gap: 1rem;
  }

  icon {
    background-color: white;
    width: 6rem;
    height: 6rem;
    text-align: center;
    border-style: solid;
    border-width: 0.1px;
    border-color: #ccc;
    border-radius: 16px;
    object-fit: contain;
  }

  .icon img {
    width: 30%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    background-color: white;
    object-fit: contain;
  }

  .icon span {
    font-size: 0.85rem;
  }

  /* Card (top integration card) responsive */
  .card {
    width: 100%;
    height: auto;
    margin: 2rem auto;
  }
}
/* whats up scrolling button */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 75px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 576px) {
  .whatsapp-float {
    right: 22px;
    bottom: 75px;
    width: 52px;
    height: 52px;
  }
}
