@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 100%);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  color: #ffffff;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
}

/* Add Button and Modal Styles */
.add-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00f5ff, #ff00ff);
  color: #000000;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 25px rgba(0, 245, 255, 0.6);
  z-index: 100;
  transition: all 0.3s ease;
  border: none;
}

.add-button:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 35px rgba(0, 245, 255, 0.8);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(10, 10, 20, 0.9);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.4);
  transform: translateY(50px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, #00f5ff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.close-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-button:hover {
  color: #ff00ff;
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 10px;
  padding: 15px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 10px;
  padding: 15px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300f5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
}

.form-select:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 10px;
  padding: 15px;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.submit-button {
  background: linear-gradient(45deg, #00f5ff, #ff00ff);
  color: #000000;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  margin-top: 20px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.4);
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 245, 255, 0.6);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(0, 255, 255, 0.03) 101px,
      rgba(0, 255, 255, 0.03) 102px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(255, 0, 255, 0.03) 101px,
      rgba(255, 0, 255, 0.03) 102px
    );
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, #00f5ff, #ff00ff, #ffff00, #00f5ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
  animation: gradientShift 4s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

.header .subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #00f5ff;
  text-shadow: 0 0 20px currentColor;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn.active {
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.2), rgba(255, 0, 255, 0.2));
  border-color: rgba(0, 245, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(0, 245, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3); }
  to { text-shadow: 0 0 40px rgba(0, 245, 255, 0.8), 0 0 50px rgba(255, 0, 255, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.ai-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 245, 255, 0.1) 60deg,
    transparent 120deg,
    rgba(255, 0, 255, 0.1) 180deg,
    transparent 240deg,
    rgba(255, 255, 0, 0.1) 300deg,
    transparent 360deg
  );
  animation: rotate 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(0, 245, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 245, 255, 0.5);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  box-shadow: 
    0 0 25px rgba(0, 245, 255, 0.6),
    0 0 50px rgba(255, 0, 255, 0.4);
  background: #ffffff;
  transition: all 0.3s ease;
  object-fit: cover;
  flex-shrink: 0;
}

.ai-card:hover .logo {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 0 40px rgba(0, 245, 255, 0.8),
    0 0 70px rgba(255, 0, 255, 0.6);
  animation: pulse 2s infinite;
}

.card-info {
  flex: 1;
}

.tool-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: 15px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 15px currentColor;
  font-size: 0.85rem;
}

.voice { 
  background: linear-gradient(45deg, rgba(106, 130, 251, 0.3), rgba(106, 130, 251, 0.1));
  color: #6a82fb; 
  border: 1px solid rgba(106, 130, 251, 0.5);
  box-shadow: 0 0 20px rgba(106, 130, 251, 0.3);
}

.avatar { 
  background: linear-gradient(45deg, rgba(252, 92, 125, 0.3), rgba(252, 92, 125, 0.1));
  color: #fc5c7d; 
  border: 1px solid rgba(252, 92, 125, 0.5);
  box-shadow: 0 0 20px rgba(252, 92, 125, 0.3);
}

.design { 
  background: linear-gradient(45deg, rgba(247, 151, 30, 0.3), rgba(247, 151, 30, 0.1));
  color: #f7971e; 
  border: 1px solid rgba(247, 151, 30, 0.5);
  box-shadow: 0 0 20px rgba(247, 151, 30, 0.3);
}

.general { 
  background: linear-gradient(45deg, rgba(14, 195, 230, 0.3), rgba(14, 195, 230, 0.1));
  color: #0ec3e6; 
  border: 1px solid rgba(14, 195, 230, 0.5);
  box-shadow: 0 0 20px rgba(14, 195, 230, 0.3);
}

.visit-link {
  background: linear-gradient(45deg, #00f5ff, #ff00ff);
  color: #000000;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.4);
  font-size: 0.9rem;
}

.visit-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.visit-link:hover::before {
  left: 100%;
}

.visit-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 245, 255, 0.6);
  animation: float 2s ease-in-out infinite;
}

.visit-link::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.visit-link:hover::after {
  transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px 15px;
  }
  
  .header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .header .subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  
  .stats {
    gap: 15px;
  }
  
  .stat-item {
    padding: 10px 15px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .filter-bar {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .ai-card {
    padding: 20px;
  }
  
  .card-header {
    gap: 15px;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .tool-name {
    font-size: 1.2rem;
  }
  
  .card-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .visit-link {
    align-self: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px 10px;
  }
  
  .header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .header .subtitle {
    font-size: 0.9rem;
  }
  
  .ai-card {
    padding: 15px;
  }
  
  .card-header {
    gap: 12px;
  }
  
  .logo {
    width: 45px;
    height: 45px;
  }
  
  .tool-name {
    font-size: 1.1rem;
  }
  
  .tool-description {
    font-size: 0.9rem;
  }
  
  .category {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .visit-link {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Hide elements that are loading */
.logo[src=""] {
  display: none;
}