/* CSS Variables */
:root {
  --font-size: 16px;
  --background: #0a0e1a;
  --foreground: #ffffff;
  --card: rgba(255, 255, 255, 0.05);
  --card-foreground: #ffffff;
  --popover: rgba(10, 14, 26, 0.95);
  --popover-foreground: #ffffff;
  --primary: #00D9FF;
  --primary-foreground: #0a0e1a;
  --secondary: rgba(139, 92, 246, 0.1);
  --secondary-foreground: #ffffff;
  --muted: rgba(255, 255, 255, 0.1);
  --muted-foreground: rgba(255, 255, 255, 0.7);
  --accent: rgba(0, 217, 255, 0.1);
  --accent-foreground: #00D9FF;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.05);
  --input-background: rgba(255, 255, 255, 0.05);
  --switch-background: rgba(255, 255, 255, 0.2);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #00D9FF;
  --chart-1: #00D9FF;
  --chart-2: #8B5CF6;
  --chart-3: #06b6d4;
  --chart-4: #a855f7;
  --chart-5: #3b82f6;
  --radius: 0.75rem;
  --sidebar: rgba(10, 14, 26, 0.95);
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #00D9FF;
  --sidebar-primary-foreground: #0a0e1a;
  --sidebar-accent: rgba(0, 217, 255, 0.1);
  --sidebar-accent-foreground: #00D9FF;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-ring: #00D9FF;
  
  /* Custom AI Theme Colors */
  --electric-blue: #00D9FF;
  --ai-purple: #8B5CF6;
  --ai-cyan: #06b6d4;
  --deep-navy: #0a0e1a;
  --dark-surface: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1428 100%);
  color: var(--foreground);
  min-height: 100vh;
  font-size: var(--font-size);
  line-height: 1.5;
}

/* Glassmorphism utilities */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Neural network background pattern */
.neural-bg {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 50%, #06b6d4 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}

/* Navigation Styles */
.nav-animation {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.6s ease-out forwards;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

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

.nexus-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #00D9FF, #8B5CF6);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nexus-logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo-text {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInRight 0.6s ease-out 0.1s forwards;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: #00D9FF;
  transform: scale(1.05);
}

.nav-underline {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: linear-gradient(to right, #00D9FF, #8B5CF6);
  transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
  width: 100%;
}

/* Dropdown Styles */
.products-dropdown {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.products-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  display: block !important;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  color: #00D9FF;
  background: rgba(255, 255, 255, 0.05);
}

/* Button Styles */
.btn-outline {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #00D9FF, #8B5CF6);
  color: black;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, rgba(0, 217, 255, 0.9), rgba(139, 92, 246, 0.9));
}

.btn-hero-primary {
  padding: 1rem 2rem;
  background: linear-gradient(to right, #00D9FF, #06b6d4);
  color: black;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.btn-hero-primary:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, rgba(0, 217, 255, 0.9), rgba(6, 182, 212, 0.9));
}

.btn-hero-outline {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.mobile-menu {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.show {
  opacity: 1;
  max-height: 500px;
  display: block !important;
}

.mobile-nav-link, .mobile-nav-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-item:hover {
  color: #00D9FF;
}

.mobile-nav-item {
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.mobile-products-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-products-submenu.show {
  max-height: 200px;
  display: block !important;
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 0.8s ease-out forwards;
}

.floating-particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(0, 217, 255, 0.4);
  border-radius: 50%;
  animation: floatParticle 4s ease-in-out infinite;
}

/* Product Card Styles */
.product-card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-image-container {
  position: relative;
}

.product-image-container::before {
  content: '';
  position: absolute;
  inset: -1rem;
  border-radius: 1.5rem;
  background: var(--gradient);
  opacity: 0.2;
  filter: blur(2rem);
  z-index: -1;
}

.product-image-container:hover .product-image {
  transform: scale(1.1);
}

.product-image {
  transition: transform 0.5s ease;
}

.product-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

.product-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: #00D9FF;
}

/* Keyframe Animations */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes pulse-glow {
  from { box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); }
  to { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6); }
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Float animation classes */
.float {
  animation: float 6s ease-in-out infinite;
}

.float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .btn-hero-primary, .btn-hero-outline {
    padding: 0.75rem 1.5rem;
  }
}

/* Intersection Observer Animation Delays */
.fade-in-up[style*="animation-delay: 0.1s"] { animation-delay: 0.1s; }
.fade-in-up[style*="animation-delay: 0.2s"] { animation-delay: 0.2s; }
.fade-in-up[style*="animation-delay: 0.3s"] { animation-delay: 0.3s; }
.fade-in-up[style*="animation-delay: 0.4s"] { animation-delay: 0.4s; }
.fade-in-up[style*="animation-delay: 0.5s"] { animation-delay: 0.5s; }
.fade-in-up[style*="animation-delay: 0.6s"] { animation-delay: 0.6s; }
.fade-in-up[style*="animation-delay: 0.7s"] { animation-delay: 0.7s; }
.fade-in-up[style*="animation-delay: 0.8s"] { animation-delay: 0.8s; }
.fade-in-up[style*="animation-delay: 0.9s"] { animation-delay: 0.9s; }

.fade-in-right[style*="animation-delay: 0.4s"] { animation-delay: 0.4s; }

/* Enhanced Products Dropdown - Matching React Version */
.products-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  width: 640px;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1428 100%);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 16px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.8), 
    0 0 0 1px rgba(0, 217, 255, 0.2), 
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.products-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dropdown Header */
.dropdown-header {
  padding: 24px 24px 12px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  background-color: rgba(10, 14, 26, 0.8);
}

.dropdown-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
}

.dropdown-header-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Products Grid */
.dropdown-products {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Individual Product Items */
.dropdown-product-item {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.dropdown-product-item:hover {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(0, 217, 255, 0.3);
  transform: scale(1.02);
}

.dropdown-product-content {
  position: relative;
  z-index: 10;
}

.dropdown-product-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.dropdown-product-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dropdown-product-item:hover .dropdown-product-icon {
  transform: scale(1.1);
}

.dropdown-product-icon i {
  width: 20px;
  height: 20px;
  color: white;
}

.dropdown-product-info {
  flex: 1;
  min-width: 0;
}

.dropdown-product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dropdown-product-category {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.dropdown-product-item:hover .dropdown-product-category {
  background: rgba(255, 255, 255, 0.2);
}

.dropdown-product-title {
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin: 0 0 4px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.dropdown-product-item:hover .dropdown-product-title {
  color: #00D9FF;
}

.dropdown-product-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.dropdown-product-item:hover .dropdown-product-desc {
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-product-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.dropdown-product-item:hover .dropdown-product-arrow {
  color: #00D9FF;
  transform: translateX(4px);
}

/* Dropdown Footer */
.dropdown-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
  background-color: rgba(10, 14, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.dropdown-footer-link {
  font-size: 12px;
  color: rgba(0, 217, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.dropdown-footer-link:hover {
  color: #00D9FF;
}

.dropdown-footer-link i {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.dropdown-footer-link:hover i {
  transform: translateX(2px);
}

/* Contact Sales CTA Button Styles */
.contact-sales-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 100%);
  color: #0a0e1a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.contact-sales-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-sales-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

.contact-sales-btn:hover::before {
  opacity: 0.1;
}

.contact-sales-btn i,
.contact-sales-btn span {
  position: relative;
  z-index: 1;
}

.contact-sales-btn-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 100%);
  color: #0a0e1a;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.25);
}

.contact-sales-btn-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

/* Glassmorphism Base Styles */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Neural network background pattern */
.neural-bg {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 50%, #06b6d4 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

.float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Pulse glow effect */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

/* Button Styles */
.btn-hero-primary {
  background: linear-gradient(135deg, #00D9FF 0%, #8B5CF6 100%);
  color: #0a0e1a;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00D9FF;
  border-color: rgba(0, 217, 255, 0.5);
}

/* Dropdown Animation Classes */
.dropdown-product-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpProduct 0.2s ease-out forwards;
}

.dropdown-product-item:nth-child(1) { animation-delay: 0s; }
.dropdown-product-item:nth-child(2) { animation-delay: 0.05s; }
.dropdown-product-item:nth-child(3) { animation-delay: 0.1s; }
.dropdown-product-item:nth-child(4) { animation-delay: 0.15s; }
.dropdown-product-item:nth-child(5) { animation-delay: 0.2s; }
.dropdown-product-item:nth-child(6) { animation-delay: 0.25s; }

@keyframes fadeInUpProduct {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide animations when dropdown is hidden */
.products-dropdown:not(.show) .dropdown-product-item {
  animation: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll to Top Button */
#scroll-to-top {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#scroll-to-top:hover {
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

#scroll-to-top:active {
  transform: scale(0.95);
}