/* CSS Variables - Essential for navbar and chatbot styling */
:root {
    /* Color Palette */
    --primary-color: #00f5ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-tech: linear-gradient(135deg, #00f5ff 0%, #8338ec 50%, #ff006e 100%);
    
    /* Dark Tech Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #151515;
    --bg-card: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #555555;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 30px rgba(0, 245, 255, 0.3);
    --glow-secondary: 0 0 30px rgba(255, 0, 110, 0.3);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Animated Background */
.animated-3d-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.glitch {
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-bot {
    position: relative;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

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

.bot-core {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 15s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation-duration: 8s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bot-center {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    z-index: 2;
}

/* Features Section */
.features-section, .categories-section {
    padding: 4rem 2rem;
    position: relative;
}

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

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features-grid, .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card, .category-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
}

.feature-card:hover, .category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.feature-icon, .category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3, .category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-bot {
        width: 200px;
        height: 200px;
    }
    
    .bot-center {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* AI Search Modal Advanced 3D Neon/Glassmorphism Styles */
.ai-search-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
}
.ai-search-modal.active {
  display: flex;
}
.ai-search-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 30, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1;
}
.ai-search-modal-container {
  position: relative;
  margin: auto;
  z-index: 2;
  background: rgba(30, 40, 60, 0.95);
  border-radius: 2.5rem;
  box-shadow: 0 0 40px 8px #00fff7a0, 0 8px 32px 0 #000a;
  border: 2px solid #00fff7;
  min-width: 700px !important;
  max-width: 1200px !important;
  width: 96vw !important;
  min-height: 600px !important;
  max-height: 98vh !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: neonPop 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes neonPop {
  0% { transform: scale(0.8) rotateX(10deg); opacity: 0; }
  100% { transform: scale(1) rotateX(0); opacity: 1; }
}
.ai-search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem 1.2rem 2.5rem;
  border-bottom: 1px solid #00fff7;
  background: linear-gradient(90deg, #0f2027 0%, #2c5364 100%);
  box-shadow: 0 2px 16px 0 #00fff733;
}
.ai-search-title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.ai-search-title-icon {
  font-size: 2.5rem;
  color: #00fff7;
  filter: drop-shadow(0 0 8px #00fff7cc);
}
.ai-search-title-text h2 {
  font-size: 2rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}
.ai-search-title-text p {
  color: #00fff7;
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}
.ai-search-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.ai-search-modal-close:hover {
  color: #00fff7;
}
.ai-search-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  background: linear-gradient(120deg, #23243a 60%, #1a1b2b 100%);
  overflow-y: auto;
}
.ai-search-upload-section {
  display: none;
}
.ai-search-file-name {
  color: #fff;
  font-size: 1rem;
  opacity: 0.7;
}
.ai-search-bar-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.ai-search-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 1.2rem;
  border: 1.5px solid #00fff7;
  background: rgba(0,255,247,0.08);
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  transition: border 0.2s;
}
.ai-search-input:focus {
  border: 2px solid #00fff7;
  background: rgba(0,255,247,0.18);
}
.ai-search-btn {
  background: linear-gradient(90deg, #00fff7 0%, #00bfff 100%);
  color: #23243a;
  border: none;
  border-radius: 1.2rem;
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px #00fff7cc;
  transition: background 0.2s, color 0.2s;
}
.ai-search-btn:hover {
  background: #23243a;
  color: #00fff7;
}
.ai-search-results-section {
  flex: 1;
  background: rgba(0,255,247,0.06);
  border-radius: 1.5rem;
  box-shadow: 0 0 16px #00fff733;
  padding: 1.2rem;
  overflow-y: auto;
  min-height: 120px;
  max-height: 320px;
  margin-top: 0.5rem;
}
.ai-search-placeholder {
  text-align: center;
  color: #00fff7;
  opacity: 0.7;
  margin-top: 2.5rem;
}
.ai-search-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px #00fff7cc);
}
.ai-search-placeholder p {
  color: #00fff7;
  opacity: 0.6;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.ai-search-result-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  margin-top: 0.5rem;
}
.ai-search-result-table th, .ai-search-result-table td {
  border: 1px solid #00fff7;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(0,255,247,0.08);
}
.ai-search-result-table th {
  background: rgba(0,255,247,0.18);
  color: #00fff7;
  font-weight: 700;
}
.ai-search-highlight {
  background: #00fff7;
  color: #23243a;
  border-radius: 0.3rem;
  padding: 0 0.2rem;
  font-weight: 700;
}
.ai-search-business-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ai-search-business-btn {
  background: linear-gradient(90deg, #00fff7 0%, #00bfff 100%);
  color: #23243a;
  border: none;
  border-radius: 1.2rem;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px #00fff7cc;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}
.ai-search-business-btn.active, .ai-search-business-btn:focus {
  background: #23243a;
  color: #00fff7;
  outline: 2px solid #00fff7;
  transform: scale(1.05);
}
.ai-search-business-btn:hover {
  background: #23243a;
  color: #00fff7;
}

/* --- Enhanced Filter Section --- */
.ai-search-filters-section {
  display: flex;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  background: rgba(0,255,247,0.10);
  border-radius: 1.5rem;
  padding: 1.5rem 2.5rem 1.2rem 2.5rem;
  box-shadow: 0 2px 24px 0 rgba(0,255,247,0.13);
  border: 2px solid rgba(0,255,247,0.18);
  position: relative;
  min-height: 80px;
  margin-top: 1.2rem;
  animation: filterFadeIn 0.5s cubic-bezier(.4,2,.6,1);
}
@keyframes filterFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-search-filters-section label {
  font-size: 1.18rem;
  color: #00fff7;
  font-weight: 700;
  margin-right: 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px #00fff7cc, 0 0.5px 0 #222;
  background: linear-gradient(90deg, #00fff7 0%, #00bfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-search-filters-section select, .ai-search-filters-section input[type="text"] {
  background: rgba(30, 32, 40, 0.92);
  border: 2px solid #00fff7;
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1.18rem;
  font-weight: 600;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(0,255,247,0.13);
  margin-right: 10px;
}
.ai-search-filters-section select:focus, .ai-search-filters-section input[type="text"]:focus {
  border: 2px solid #00bfff;
  box-shadow: 0 4px 18px 0 rgba(0,191,255,0.22);
}
.ai-search-filters-section .ai-search-filter-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 32px;
  background: rgba(0,255,247,0.08);
  border-radius: 12px;
  padding: 10px 18px 10px 14px;
  box-shadow: 0 1px 8px 0 rgba(0,255,247,0.08);
  border: 1.5px solid rgba(0,255,247,0.13);
  min-width: 280px;
}
.ai-search-filters-section .ai-search-filter-group label {
  flex: 1;
  text-align: left;
  margin-right: 18px;
}
.ai-search-filters-section .ai-search-filter-group select,
.ai-search-filters-section .ai-search-filter-group input[type="text"] {
  flex: 1;
  text-align: right;
  margin-right: 0;
}
.ai-search-filters-section select {
  min-width: 150px;
}
.ai-search-filters-section .filter-icon {
  margin-right: 12px;
  color: #00fff7;
  font-size: 1.35rem;
  opacity: 0.98;
  text-shadow: 0 1px 8px #00fff7cc;
}

@media (max-width: 900px) {
  .ai-search-modal-container {
    min-width: 96vw !important;
    max-width: 99vw !important;
    width: 99vw !important;
    min-height: 400px !important;
    padding: 0.5rem;
  }
}
@media (max-width: 600px) {
  .ai-search-modal-container {
    min-width: 90vw;
    max-width: 98vw;
    padding: 0.5rem;
  }
  .ai-search-modal-header, .ai-search-modal-body {
    padding: 1rem !important;
  }
}
