/* CSS Variables - Matching your brand colors */
:root {
  /* Main Colors */
  --primary: #7000ff;
  --primary-light: #9a4eff;
  --primary-dark: #5a00cc;
  --secondary: #00d9ff;
  --secondary-light: #6aeaff;
  --secondary-dark: #00a3c1;
  --accent: #ff6b00;
  
  /* Background Colors */
  --bg-dark: #0c0c14;
  --bg-dark-lighter: #12121f;
  --card-dark: #16161f;
  --card-dark-hover: #1a1a28;
  
  /* Text Colors */
  --text-light: #ffffff;
  --text-muted: #9e9eb3;
  --text-dark: #0c0c14;
  
  /* Effects */
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --transition: 0.3s ease;
  --backdrop-filter: blur(10px);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  display: none;
}

@media (min-width: 992px) {
  .cursor-dot,
  .cursor-outline {
    display: block;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: transform 0.2s;
    transform: translate(-50%, -50%);
  }
  
  .cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.8);
  }
  
  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transition: transform 0.3s, border-color 0.3s, width 0.3s, height 0.3s;
  }
  
  a, button, input, .tool-card, .clickable {
    cursor: none;
  }
}

/* Glass morphism utility */
.glass {
  background: rgba(22, 22, 31, 0.95);
  backdrop-filter: var(--backdrop-filter);
  -webkit-backdrop-filter: var(--backdrop-filter);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.navbar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-2xl);
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  z-index: 1002;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-primary {
  color: var(--primary);
  transition: color var(--transition);
}

.logo-accent {
  color: var(--secondary);
  transition: color var(--transition);
}

.logo:hover .logo-primary {
  color: var(--primary-light);
}

.logo:hover .logo-accent {
  color: var(--secondary-light);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 25px;
  transition: all var(--transition);
  position: relative;
  font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light);
  background: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  z-index: 1002;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-xl);
}

.mobile-close-btn {
  color: var(--text-light);
  font-size: 1.5rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.mobile-nav-links .nav-link {
  font-size: 1.5rem;
  padding: var(--spacing-lg);
}

/* Main Content */
.main-content {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Tools Controls */
.tools-controls {
  margin-bottom: 3rem;
}

.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition);
}

.search-input:focus {
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.3);
  border-color: var(--primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-pill {
  padding: 0.75rem 1.5rem;
  background: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.tool-card {
  padding: 2rem;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-10px);
  background: var(--card-dark-hover);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

/* Tool Badge */
.tool-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-badge.audio {
  background: rgba(112, 0, 255, 0.2);
  color: var(--primary-light);
}

.tool-badge.image {
  background: rgba(0, 217, 255, 0.2);
  color: var(--secondary-light);
}

.tool-badge.pdf {
  background: rgba(255, 107, 0, 0.2);
  color: #ff8b40;
}

.tool-badge.utility {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* Tool Icon */
.tool-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(3deg);
}

/* Tool Content */
.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.tool-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.tool-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--text-muted);
}

/* Statistics Section */
.stats-section {
  text-align: center;
  padding: 4rem 0;
}

.stats-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: var(--card-dark-hover);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 100;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(112, 0, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(112, 0, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(112, 0, 255, 0.6); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-pills {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .filter-pill {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .navbar nav {
    padding: var(--spacing-md);
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    max-width: 100%;
  }
}