/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base Styles */
.premium-tools-section {
  padding: 100px 20px;
  background: 
    radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.9) 0%, rgba(31, 31, 34, 0.95) 100%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.premium-tools-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  animation: rotateBackground 60s linear infinite;
  z-index: 0;
}

@keyframes rotateBackground {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Header Content */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.section-title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff 0%, #93c5fd 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.section-header:hover .section-title::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
}

/* Grid Layout */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  width: 100%;
}

/* Enhanced Glass Card Styles */
.tool-card {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset,
    0 0 20px rgba(59, 130, 246, 0.1) inset;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.tool-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.5);
  z-index: -1;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset,
    0 0 30px rgba(59, 130, 246, 0.2) inset;
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover::after {
  opacity: 0.6;
  transform: scale(1);
}

.tool-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #bfdbfe;
  font-size: 1.75rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.tool-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tool-card:hover .tool-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.tool-card:hover .tool-icon::before {
  opacity: 0.3;
}

.tool-category-tag {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
  color: #e0e7ff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tool-card:hover .tool-category-tag {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5) 0%, rgba(99, 102, 241, 0.5) 100%);
  color: #ffffff;
  transform: translateY(-2px);
}

.tool-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.4;
  position: relative;
  display: inline-block;
}

.tool-card h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card:hover h3::after {
  width: 100%;
}

.tool-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.tool-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.tool-cta {
  color: #bfdbfe;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.9;
  position: relative;
  align-self: flex-start;
}

.tool-cta::after {
  content: '→';
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-cta::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card:hover .tool-cta {
  color: #ffffff;
  gap: 12px;
}

.tool-card:hover .tool-cta::after {
  transform: translateX(6px);
}

.tool-card:hover .tool-cta::before {
  width: 100%;
}

/* Floating particles animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .tools-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .premium-tools-section {
    padding: 80px 20px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .tools-container {
    gap: 24px;
  }
  
  .tool-card {
    padding: 28px;
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .premium-tools-section {
    padding: 60px 16px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-header {
    margin-bottom: 50px;
  }
  
  .tools-container {
    grid-template-columns: 1fr;
  }
}