:root {
  --glass-white: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text-primary: #0a0a0a;
  --text-secondary: #5a5a5f;
  --accent-silver: #c0c0c8;
  --accent-dark: #2c2c34;
  --accent-gradient: linear-gradient(135deg, #e8e8eb 0%, #a8a8b0 50%, #6a6a72 100%);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
  --blur-amount: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f5f5f7 0%, #d1d1d6 30%, #86868b 70%, #2c2c34 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER & NAVIGATION - Ultra Premium Glass
   ============================================ */
header {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  color: var(--text-primary) !important;
  padding: 0.5rem 0 !important;
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 100%);
}

nav {
  max-width: 1200px !important;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem !important;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary) !important;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-silver));
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================================
   MAIN LAYOUT WITH SIDEBARS
   ============================================ */
.main-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem;
}

.sidebar-left, .sidebar-right {
  width: 180px;
  flex-shrink: 0;
}

.ad-sidebar {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  position: sticky;
  top: 100px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.ad-sidebar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ad-sidebar p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.7;
}

.main-content {
  flex: 1;
  max-width: 1200px;
}

/* ============================================
   HERO SECTION - Cinematic Glass
   ============================================ */
.hero {
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  color: var(--text-primary);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 24px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    transparent 100%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SEARCH BAR - Premium Glass Design
   ============================================ */
.search-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.search-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.search-wrapper:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.7),
              0 0 0 4px rgba(44, 44, 52, 0.15);
}

.search-input {
  flex: 1;
  padding: 1.25rem 2rem;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: transparent;
  font-weight: 400;
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.search-button {
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #2c2c34 0%, #5a5a62 50%, #86868b 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.search-button:hover::before {
  opacity: 1;
}

.search-button:hover {
  transform: scale(1.02);
}

.search-button:active {
  transform: scale(0.98);
}

.search-icon {
  font-size: 1.3rem;
}

/* Popular Searches */
.popular-searches {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.popular-searches span {
  margin-right: 0.8rem;
  font-weight: 500;
}

.search-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  margin: 0.3rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  font-weight: 500;
}

.search-tag:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  padding-left: 0;
  border-left: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TOOLS GRID - Glass Cards
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
 
}

.tool-card {
  background: var(--glass-white);
 
}

.tool-card::before {

  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    transparent 100%);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.3);
}

.tool-icon {
 
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}




.tool-btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, #2c2c34 0%, #5a5a62 50%, #86868b 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tool-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tool-btn:active {
  transform: scale(0.98);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #2c2c34 0%, #5a5a62 50%, #86868b 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  object-fit: cover;
  position: relative;
}

.blog-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 100%);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.read-more {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.read-more:hover {
  color: var(--accent-silver);
}

/* ============================================
   HORIZONTAL AD SPACE
   ============================================ */
.ad-horizontal {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  text-align: center;
  border-radius: 20px;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.ad-horizontal p {
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0.7;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   REQUIRED PAGES SECTION
   ============================================ */
.required-pages {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.page-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Remove underlines from tool cards */
.tool-card-link {
  text-decoration: none !important;
}

.tool-card-link:hover {
  text-decoration: none !important;
}

.tool-card h3 {
  text-decoration: none !important;
  border-bottom: none !important;
}

.tool-card-link:hover .tool-card h3 {
  text-decoration: none !important;
  border-bottom: none !important;
}

.tool-desc {
  text-decoration: none !important;
  border-bottom: none !important;
}

.tool-card-link:hover .tool-desc {
  text-decoration: none !important;
  border-bottom: none !important;
}

.page-link {
  color: var(--text-primary);
  text-decoration: none !important;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-link:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
  border-color: transparent;
  text-decoration: none !important;
}

/* Pagination - Professional Design */
.pagination-container {
  margin: 2.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  list-style: none;
  margin: 0;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.7rem 1rem;
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-item .page-link:hover {
  background: linear-gradient(135deg, #2c2c34 0%, #5a5a62 50%, #86868b 100%);
  color: white !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #2c2c34 0%, #5a5a62 50%, #86868b 100%) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
}

.page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-secondary) !important;
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  opacity: 0.6;
}

.page-item.disabled .page-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-secondary) !important;
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .pagination {
    gap: 0.6rem;
  }

  .page-item .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 0.5rem;
  }

  .page-item .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  color: white;
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  opacity: 0.9;
  font-weight: 500;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
  font-weight: 400;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  margin: 0 auto;
  padding: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .sidebar-left, .sidebar-right {
    display: none;
  }

  .main-wrapper {
    padding: 1rem;
  }

  nav {
    padding: 0 1rem !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem !important;
    margin-bottom: 1rem !important;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .hero p {
    font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
  }
  
  .blog-image {
    height: 140px !important;
    min-height: 140px !important;
  }
  
  .blog-content {
    padding: 0.875rem !important;
  }
  
  .blog-card h3 {
    font-size: clamp(1rem, 3vw, 1.15rem) !important;
  }
  
  .blog-card p {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-wrapper {
    flex-direction: column;
  }

  .search-button {
    border-radius: 0 0 25px 25px;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .page-links {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }
  
  .hero p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
  }
  
  .blog-image {
    height: 120px !important;
    min-height: 120px !important;
  }
  
  .blog-content {
    padding: 0.75rem !important;
  }

  .search-input {
    padding: 1rem 1.5rem;
  }

  .search-button {
    padding: 1rem 2rem;
  }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: rgba(0, 113, 227, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(0, 113, 227, 0.3);
  color: white;
}

/* Mobile overflow & drawer fixes */
html,body{overflow-x:hidden}
#drawer{width:92vw !important; max-width:380px !important}
#stylePanel{max-width:92vw}
@media(max-width:768px){
  .tools-grid,.blog-grid{
    grid-template-columns:1fr !important
  }
}

/* ============================================
   TOOL TYPES FILTER - Professional Design
   ============================================ */
.tool-types-filter-wrapper {
  margin: 2rem 0;
  padding: 0;
}

.tool-types-filter {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.tool-types-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    transparent 100%);
}

.filter-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.filter-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.tool-types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.tool-type-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.tool-type-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.tool-type-filter:hover::before {
  left: 100%;
}

.tool-type-filter:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.7);
}

.tool-type-filter.active {
  background: linear-gradient(135deg, #2c2c34 0%, #5a5a62 50%, #86868b 100%) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.tool-type-filter.active:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.filter-text {
  position: relative;
  z-index: 1;
}

.filter-count {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

.tool-type-filter.active .filter-count {
  opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-types-filter {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .filter-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .tool-types-list {
    gap: 0.75rem;
  }

  .tool-type-filter {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  .filter-count {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .tool-types-filter {
    padding: 1.25rem 1rem;
  }

  .filter-title {
    font-size: 1.1rem;
  }

  .tool-types-list {
    gap: 0.6rem;
  }

  .tool-type-filter {
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
  }
}
/* Alternative Color Schemes for Different Categories */
.tool-type-card:nth-child(6n+1) .card-background {
    background: linear-gradient(135deg, #c0c0c8 0%, #a8a8b0 50%, #6a6a72 100%);
}

.tool-type-card:nth-child(6n+2) .card-background {
    background: linear-gradient(135deg, #d0d0d4 0%, #b0b0b6 50%, #7a7a80 100%);
}

.tool-type-card:nth-child(6n+3) .card-background {
    background: linear-gradient(135deg, #c8c8cc 0%, #a8a8ac 50%, #727276 100%);
}

.tool-type-card:nth-child(6n+4) .card-background {
    background: linear-gradient(135deg, #d4d4d6 0%, #b4b4b6 50%, #7e7e80 100%);
}

.tool-type-card:nth-child(6n+5) .card-background {
    background: linear-gradient(135deg, #c4c4c8 0%, #a4a4a8 50%, #6e6e72 100%);
}

.tool-type-card:nth-child(6n+6) .card-background {
    background: linear-gradient(135deg, #ccccd0 0%, #acacb0 50%, #76767a 100%);
}