
.tools-heading {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #0a1014, #30495b, #3b6777);
  position: relative;
}

.tools-heading h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: inline-block;
  position: relative;
}

.tools-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px; /* distance below text */
  width: 100%;
  height: 4px; /* thickness of underline */
  background-color: rgb(255, 255, 255); /* underline color */
}


@media (max-width: 360px) {
  .tools-heading h2, .Courses h1 {
    font-size: 2rem; /* smaller font size for mobile */
  }
}

/* Parallax full width background */
.tools-parallax {
  background: url("/images/toolsBackground.jpg") center / cover fixed no-repeat;
  width: 100%;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
}


/* GRID CONTAINER */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1100px; /* center with ads space */
  justify-content: center;
}


.tools-grid a {
  text-decoration: none;
  color: inherit;
  display: block; /* taki pura card clickable ho jaye */
}

.tools-grid a:hover .tool-card {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* TOOL CARD STYLES */
.tool-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,248,255,0.85));
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s;
  border: 1px solid rgba(255,255,255,0.3);
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 220px; /* same height for consistency */
}

/* Hover lift */
.tool-card:hover {
  transform: translateY(-12px) scale(1.06);
  box-shadow: 0 18px 40px rgba(0, 200, 150, 0.3);
  border: 1px solid rgba(0,200,150,0.4);
}

/* Shine sweep effect */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,200,150,0.25), transparent);
  transform: translateX(-100%);
}

.tool-card:hover::before {
  animation: shine-swipe 1.8s linear infinite;
}

@keyframes shine-swipe {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Emoji inside circle */
.tool-card .emoji {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b894, #0984e3);
  color: #fff;
  margin-bottom: 14px;
  transition: transform 0.3s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Emoji Pulse on hover */
.tool-card:hover .emoji {
  transform: rotate(10deg) scale(1.1);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.5);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 20px 10px rgba(0, 200, 150, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.0);
  }
}

/* Headings & text */
.tool-card h3 {
  margin: 10px 0 6px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3436;
  position: relative;
  display: inline-block;
}

.tool-card h3::after {
  content: "";
  display: block;
  height: 3px;
  width: 40%;
  margin: 6px auto 0;
  background: linear-gradient(90deg, #00b894, #0984e3);
  border-radius: 2px;
}

.tool-card p {
  font-size: 1rem;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .tools-grid { max-width: 900px; }
}
@media (max-width: 768px) {
  .tools-grid { max-width: 600px; }
  .tool-card { padding: 1.5rem; }
}
@media (max-width: 500px) {
  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }
  .tool-card { width: 100%; padding: 1rem; }
}




