/* Archive Wrapper */ 
.ai-archive-wrapper {
  padding: 80px 24px;
  background-color: #000000; /* Changed to solid black */
  min-height: 100vh;
  position: relative;
}

.ai-archive-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(34, 139, 34, 0.05), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(46, 125, 50, 0.03), transparent 50%);
  pointer-events: none;
}

.ai-archive-wrapper h1 {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff; /* Header text pure white */
  margin-bottom: 16px;
}

.ai-archive-wrapper h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ai-archive-wrapper p {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.125rem;
  color: #cccccc; /* Softer body text */
  max-width: 600px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

/* Grid Layout */
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

/* Tool Card */
.ai-tool-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-tool-card:hover {
  transform: translateY(-6px);
  border-color: #2e7d32;
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
}

/* Tool Icon */
.ai-tool-card img {
  height: 80px;
  width: 80px;
  border-radius: 16px;
  margin-bottom: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 8px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.ai-tool-card:hover img {
  transform: scale(1.1);
  border-color: #2e7d32;
}

/* Tool Title & Description */
.ai-tool-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.ai-tool-card p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 280px;
}

/* Tool Tags - Now clickable */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 24px;
}

.tool-tag {
  background: #f0f9ff;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  transition: 0.2s ease;
  text-decoration: none;
}

.tool-tag:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* Tool Button */
.tool-button {
  margin-top: auto;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  color: #fff;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
}

.tool-button:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  transform: translateY(-2px);
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
  .ai-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .ai-tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ai-archive-wrapper h1 {
    font-size: 2rem;
  }

  .ai-tool-card img {
    height: 56px;
    width: 56px;
  }
}
