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

:root{
  --primary-color: #6A40F1;
  --primary-dark: #4e12ae;
  --secondary-color: #3B208C;
  --bg-dark: #0d0d1e;
  --bg-card: #1a1a33;
  --bg-hover: #0d0d1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a1a1aa;
  --border-color: #2a2a2a;
  --success-color: #6A40F1;
  --warning-color: #1b1b5d7b;
  --badge-bg: #6A40F1;
  --accent-color: #8a5cff;
  --heading-color: #ffffff;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition-speed: 0.3s;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Scrollbar Styles - All Browsers */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-dark);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #8a5cff;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  background-color: rgba(17, 17, 38, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
  background-color: rgba(13, 13, 30, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 2rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo { 
  font-size: 1.5rem; 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  color: var(--text-primary);
  text-decoration: none;
  transition: transform var(--transition-speed) ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu { 
  display: flex; 
  gap: 1.5rem; 
  align-items: center; 
}

.nav-menu a { 
  color: var(--text-secondary); 
  text-decoration: none; 
  transition: all var(--transition-speed) ease; 
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-speed) ease;
}

.nav-menu a:hover, .nav-menu a.active { 
  color: var(--primary-color); 
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

/* Mobile Menu Button - Updated */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  color: white; /* Added to make the icon white */
}

.mobile-menu-btn i {
  color: white; /* Added to make the icon white */
  font-size: 1.2rem; /* Added to control icon size */
}

/* Mobile Menu Overlay - Updated */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}


/* Updated media queries for mobile responsiveness */
@media(max-width: 900px) {
  .sidebar {
    display: none;
  }
  
  .main-container {
    padding: 0;
  }
  
  .home-title {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    transition: left var(--transition-speed) ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    gap: 1.5rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: none;
  }
  
  .mobile-menu-overlay.active {
    display: block;
  }
  

}







/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-mark-nav {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

.nav-logo:hover .logo-mark-nav {
  transform: rotate(10deg) scale(1.1);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card) 100%);
  color: rgb(255, 255, 255);
  padding: 1rem 2rem;
  border-radius: 16px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 100px;
  padding: 1rem;
  background: x;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: transform var(--transition-speed) ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

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

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Home Hero */
.home-hero { 
  min-height: 70vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  padding: 4rem 1rem; 
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.1) 0%, transparent 70%);
}

.home-hero-content { 
  text-align: center; 
  z-index: 1; 
  max-width: 900px; 
  padding: 0 1rem; 
}

.home-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(106, 64, 241, 0.3);
}

.home-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.home-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.home-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Main Layout */
.main-container { 
  display: flex; 
  max-width: 1400px; 
  margin: 0 auto; 
  min-height: calc(100vh - 120px); 
  padding: 1rem; 
}

.content { 
  flex: 1; 
  padding: 1rem; 
}

/* Sidebar & Categories */
.sidebar {
  width: 280px;
  background-color: #0d0d1e;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 10;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar h3 { 
  font-size: 0.875rem; 
  text-transform: uppercase; 
  color: var(--text-secondary); 
  margin-bottom: 1.5rem; 
  letter-spacing: 0.05em; 
  font-weight: 600;
}

.category-list { 
  list-style: none; 
}

.category-link, .filter-link { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  padding: 0.75rem; 
  color: var(--text-secondary); 
  text-decoration: none; 
  border-radius: 0.5rem; 
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.category-link::before, .filter-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: scaleY(0);
  transition: transform var(--transition-speed) ease;
}

.category-link:hover, .filter-link:hover { 
  background: var(--bg-hover); 
  color: var(--text-primary);
  padding-left: 1rem;
}

.category-link:hover::before, .filter-link:hover::before {
  transform: scaleY(1);
}

.category-link.active, .filter-link.active { 
  background: linear-gradient(135deg, var(--bg-card), var(--secondary-color)); 
  color: #fff;
  box-shadow: 0 4px 15px rgba(106, 64, 241, 0.3);
}

.category-count { 
  margin-left: auto; 
  background: rgba(124, 58, 237, 0.12); 
  color: var(--primary-color); 
  padding: 0.125rem 0.5rem; 
  border-radius: 999px; 
  font-size: 0.75rem;
  font-weight: 600;
}

.category-link.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.category-divider {
  padding: 0.75rem 0.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.category-divider span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Search & Filter */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 64, 241, 0.1);
}

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

.filter-dropdown {
  padding: 0.75rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 64, 241, 0.1);
}

/* Tool Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: x;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

/* Tool Card Content */
.tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(31, 20, 69, 0.1);
  overflow: hidden;
  transition: transform var(--transition-speed) ease;
}

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

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.tool-category {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.tool-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.tag:hover {
  background: rgba(124, 58, 237, 0.15);
}

.tool-actions {
  display: flex;
  gap: 0.75rem;
}

/* Tool Card Badges */
.tool-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: calc(100% - 2rem);
  justify-content: flex-end;
}

.badge-new, .badge-nocode, .badge-lowcode, .badge-free {
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-new {
  background-color: var(--badge-bg);
}

.badge-nocode {
  background-color: var(--badge-bg);
}

.badge-lowcode {
  background-color: var(--badge-bg);
}

.badge-free {
  background-color: var(--badge-bg);
}

/* Buttons */
.btn { 
  padding: 0.6rem 1.2rem; 
  border-radius: 0.5rem; 
  border: none; 
  cursor: pointer; 
  font-weight: 600; 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem; 
  text-decoration: none; 
  transition: all var(--transition-speed) ease;
  font-size: 0.9rem;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
  color: #fff;
  box-shadow: 0 4px 15px rgba(106, 64, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(106, 64, 241, 0.4);
}

.btn-outline { 
  background: transparent; 
  color: var(--primary-color); 
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(106, 64, 241, 0.3);
}

.btn-large { 
  padding: 0.875rem 1.75rem; 
  font-size: 1.1rem; 
}

/* Favorite Button */
.btn-fav {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn-fav:hover {
  background-color: rgba(124, 58, 237, 0.1);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.btn-fav.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  color: white;
  animation: heartBeat 0.8s ease-in-out;
}

.btn-fav i {
  font-size: 1.1rem;
  transition: transform var(--transition-speed) ease;
}

.btn-fav:hover i {
  transform: scale(1.2);
}

/* Heart Animation */
@keyframes heartBeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.25); }
  40% { transform: scale(1); }
  60% { transform: scale(1.15); }
  80% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes heartParticles {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.btn-fav.active::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  opacity: 0;
  animation: heartParticles 0.8s ease-out;
}



@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   TOOL PREVIEW MODAL - FINAL RESPONSIVE FIX
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  overflow-y: auto; /* Allow scroll if content too tall */
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: modalFadeIn var(--transition-speed) ease;
  position: relative;
  margin: auto;
}

/* Adjustments for tablets and phones */
@media (max-width: 900px) {
  .modal-content {
    width: 95%;
    max-width: none;
    padding: 1.5rem;
    max-height: 85vh;
    border-radius: 0.75rem;
  }
}

@media (max-width: 600px) {
  .modal-content {
    width: 96%;
    height: auto;
    max-height: 80vh;
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }
}

/* Optional: make it scroll smoothly inside modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

#previewContent .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

#previewContent .btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(400px);
  transition: transform var(--transition-speed) ease;
  z-index: 3000;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateX(0);
}

.toast .toast-icon {
  font-size: 1.5rem;
}

.toast.success .toast-icon {
  color: var(--success-color);
}

/* Sections */
.features-section, .stats-section, .testimonials-section, .cta-section { 
  padding: 4rem 1rem; 
}

.features-container, .stats-container, .testimonials-container, .cta-container { 
  max-width: 1200px; 
  margin: 0 auto; 
}

.section-header { 
  text-align: center; 
  margin-bottom: 3rem; 
}

.section-title { 
  font-size: 2.5rem; 
  font-weight: 700; 
  background: linear-gradient(135deg, var(--text-primary), var(--secondary-color)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle { 
  color: var(--text-secondary); 
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Grids */
.features-grid, .testimonials-grid { 
  display: grid; 
  gap: 1.5rem; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.feature-card, .testimonial-card { 
  background: var(--bg-card); 
  border: 1px solid var(--border-color); 
  border-radius: 1rem; 
  padding: 2rem; 
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover, .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon { 
  width: 70px; 
  height: 70px; 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.5rem; 
  margin-bottom: 1.5rem; 
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 4px 15px rgba(106, 64, 241, 0.3);
}

/* States */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.loading-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Footer */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

/* Footer Social Icons - Updated with single color scheme */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all var(--transition-speed) ease;
  text-decoration: none; /* Remove any underline */
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--primary-color); /* Use primary color on hover */
  color: white; /* White icons on hover */
}



.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}



@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .tool-actions {
    flex-wrap: wrap;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .btn-fav {
    width: 40px;
    height: 40px;
  }
  
  .btn-fav i {
    font-size: 1rem;
  }
  
  .home-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .home-title {
    font-size: 1.8rem;
  }
  
  .tool-card {
    padding: 1.25rem;
  }
  
  .tool-header {
    gap: 0.75rem;
  }
  
  .tool-icon {
    width: 50px;
    height: 50px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


















        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(30px, -30px) scale(1.05); }
            50% { transform: translate(-20px, 20px) scale(0.95); }
            75% { transform: translate(40px, 10px) scale(1.02); }
        }

        .contact-section {
          display: flex;
          justify-content: center;
          align-items: center;
            min-height: 100vh; /* full viewport height */
          padding: 40px 20px;
          position: relative;
            z-index: 1; /* keeps the form above the blurred circles */
}


        .contact-container {
            max-width: 800px;
            width: 100%;
            background: var(--bg-card);
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            position: relative;
            z-index: 1;
            border: 1px solid var(--border-color);
        }

        .contact-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            padding: 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .contact-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 30s linear infinite;
        }

       

        .contact-header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--heading-color);
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .contact-header p {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
            position: relative;
            z-index: 1;
        }

        .contact-form-wrapper {
            padding: 40px;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color var(--transition-speed);
        }

        .form-group label .required {
            color: var(--accent-color);
            margin-left: 4px;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg-dark);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 1rem;
            font-family: var(--font-primary);
            transition: all var(--transition-speed);
            outline: none;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            background: rgba(106, 64, 241, 0.05);
            box-shadow: 0 0 0 3px rgba(106, 64, 241, 0.1);
        }

        .form-control.error {
            border-color: #ef4444;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        textarea.form-control {
            resize: vertical;
            min-height: 120px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .error-message {
            color: #ef4444;
            font-size: 0.85rem;
            margin-top: 5px;
            display: none;
            animation: slideDown 0.3s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .error-message.show {
            display: block;
        }

        .submit-btn {
            width: 100%;
            padding: 14px 28px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-speed);
            position: relative;
            overflow: hidden;
            margin-top: 10px;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .submit-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(106, 64, 241, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .submit-btn.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .submit-btn.loading .btn-text {
            opacity: 0;
        }

        .spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            display: none;
        }

        .submit-btn.loading .spinner {
            display: block;
        }

        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .form-message {
            padding: 16px;
            border-radius: 10px;
            margin-top: 20px;
            display: none;
            animation: slideDown 0.3s ease-out;
            text-align: center;
            font-weight: 500;
        }

        .form-message.success {
            background: rgba(106, 64, 241, 0.1);
            border: 1px solid var(--primary-color);
            color: var(--accent-color);
        }

        .form-message.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid #ef4444;
            color: #ef4444;
        }

        .form-message.show {
            display: block;
        }

        .contact-info {
            background: var(--bg-dark);
            padding: 30px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-secondary);
            transition: color var(--transition-speed);
        }

        .info-item:hover {
            color: var(--primary-color);
        }

        .info-item svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        @media (max-width: 768px) {
            .contact-header h1 {
                font-size: 2rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .contact-form-wrapper {
                padding: 30px 20px;
            }

            .contact-info {
                flex-direction: column;
                align-items: center;
            }
        }

       