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

/* Body */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f5f7fa;
  color: #222;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #ff9933;
  color: white;
}

header h1 {
  margin-bottom: 10px;
}

#searchBar {
  width: 60%;
  padding: 10px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  outline: none;
}

/* Category Section */
.category {
  margin: 30px;
}

.category h2 {
  margin-bottom: 15px;
  color: #138808;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

/* Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Card */
.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Card Logo Rectangle */
.logo-rectangle {
  width: 100%;
  height: 120px;            /* taller block for better logo visibility */
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 10px;
}

/* App Logo */
.app-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Content */
.card h3 {
  color: #333;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

/* Learn More Button */
.card a {
  display: inline-block;
  padding: 8px 12px;
  background: #ff9933;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.card a:hover {
  background: #e68a00;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #138808;
  color: white;
  font-weight: bold;
  margin-top: 20px;
}
/**/
.download-btn {
  display: inline-flex;
  align-items: center;     /* keeps both in the same vertical middle */
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA500, #FF3C00);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.download-btn .icon {
  position: relative;
  top: 1px;   /* ✅ nudges icon slightly down to align with text */
}

.download-btn .text {
  position: relative;
  top: -1px; /* ✅ nudges text slightly up for perfect balance */
}
/**/
.glow {
  font-size: 2rem;
  font-weight: bold;
  color: #fff; /* fallback */
  background: linear-gradient(90deg, #ff0000, #ff6600, #ffcc00, #ffff00, #66ff00, #00ff66, #00ffff, #0066ff, #6600ff, #ff00ff, #ff0066, #ff3300, #ff9933, #ffcc66, #ffff66, #66ff66, #00ffcc, #0066cc, #6633ff, #cc00ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rapidGlow 5.0s linear infinite;
}

@keyframes rapidGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/**/
.visitor-counter img {
  display: inline-block;  /* keeps it in line with text if needed */
  margin: 10px 0;         /* spacing above/below */
  filter: brightness(1.2); /* subtle glow effect */
}



/**/

/* Responsive */
@media (max-width: 768px) {
  #searchBar {
    width: 90%;
  }
}
