:root {
  --primary: #4f46e5;
  --secondary: #7c3aed;
  --bg-main: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.9);
  --text-dark: #1e293b;
  --text-light: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Section */
.tools-section {
  padding: 100px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 70px;
  animation: fadeDown 0.8s ease forwards;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 600;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  margin-top: 15px;
  color: var(--text-light);
  font-weight: 400;
}

/* Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card */
.tool-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(40px);
}

/* Entrance Animation */
.tool-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effect */
.tool-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(79,70,229,0.15);
}

/* Soft Gradient Glow Border */
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
}

.tool-card:hover::before {
  opacity: 1;
}

/* Icon */
.icon-wrapper {
  font-size: 40px;
  margin-bottom: 20px;
  transition: 0.4s ease;
  color: var(--primary);
}

.tool-card:hover .icon-wrapper {
  transform: rotate(8deg) scale(1.15);
}

/* Text */
.tool-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 25px;
}

/* Button */
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-btn:hover {
  box-shadow: 0 10px 25px rgba(79,70,229,0.35);
}

.tool-btn .arrow {
  transition: transform 0.3s ease;
}

.tool-btn:hover .arrow {
  transform: translateX(6px);
}

/* Responsive */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 32px;
  }
}

/* Animation */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}