/* Light Theme Enhancements */

/* Enhanced Body Background for Light Theme */
.light-theme body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-attachment: fixed;
}

/* Enhanced Hero Section for Light Theme */
.light-theme .hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.light-theme .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  z-index: 0; /* do not cover digital rain */
}

/* Enhanced Grid Overlay for Light Theme */
.light-theme .grid-overlay {
  background-image: 
    linear-gradient(rgba(79, 70, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1; /* under digital rain */
}

/* Enhanced Gradient Orbs for Light Theme */
.light-theme .orb-1 {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  filter: blur(60px);
}

.light-theme .orb-2 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(245, 158, 11, 0.12) 50%, transparent 70%);
  filter: blur(60px);
}

.light-theme .orb-3 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  filter: blur(60px);
}

/* Enhanced Gradient Text for Light Theme */
.light-theme .gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 30%, #A855F7 60%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}

/* Enhanced Hero Title for Light Theme */
.light-theme .hero-title {
  text-shadow: 
    0 2px 4px rgba(79, 70, 229, 0.1),
    0 8px 16px rgba(6, 182, 212, 0.08);
}

/* Enhanced Cards for Light Theme */
.light-theme .service-card,
.light-theme .product-card,
.light-theme .card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: 
    0 8px 32px rgba(79, 70, 229, 0.12),
    0 2px 8px rgba(6, 182, 212, 0.08);
}

.light-theme .service-card:hover,
.light-theme .product-card:hover,
.light-theme .card:hover {
  box-shadow: 
    0 16px 48px rgba(79, 70, 229, 0.2),
    0 8px 24px rgba(6, 182, 212, 0.15),
    0 0 40px rgba(168, 85, 247, 0.1);
  transform: translateY(-8px) scale(1.02);
}

/* Enhanced Floating Widgets for Light Theme */
.light-theme .floating-widget {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: 
    0 8px 32px rgba(79, 70, 229, 0.15),
    0 2px 8px rgba(6, 182, 212, 0.1);
}

.light-theme .floating-widget:hover {
  box-shadow: 
    0 12px 40px rgba(79, 70, 229, 0.2),
    0 4px 16px rgba(6, 182, 212, 0.15),
    0 0 30px rgba(168, 85, 247, 0.1);
}

/* Enhanced Widget Dropdown for Light Theme */
.light-theme .widget-dropdown {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: 
    0 16px 48px rgba(79, 70, 229, 0.2),
    0 8px 24px rgba(6, 182, 212, 0.12);
}

/* Enhanced Navigation for Light Theme */
.light-theme .navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}
.light-theme .brand-text {
  color: #0f172a; /* slate-900 实色，提升识别 */
  transition: color var(--transition-base);
}

.light-theme .brand-logo:hover .brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.light-theme .logo-symbol {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%); /* 轻柔底色 */
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-base);
}

.light-theme .logo-symbol::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(6,182,212,0.18));
  filter: blur(14px);
  opacity: 0.4;
  pointer-events: none;
}

.light-theme .logo-icon {
  background: #111827; /* 深色内核 */
}

.light-theme .logo-icon::before {
  background: #6366f1; /* indigo 点缀 */
}

.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 32px rgba(79, 70, 229, 0.15),
    0 2px 8px rgba(6, 182, 212, 0.08);
}

/* Enhanced Sections for Light Theme */
.light-theme .services-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.light-theme .services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 90%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  z-index: -1;
}

.light-theme .contact-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
}

.light-theme .contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  z-index: -1;
}

/* Enhanced Buttons for Light Theme */
.light-theme .btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 50%, #3B82F6 100%);
  box-shadow: 
    0 8px 24px rgba(79, 70, 229, 0.3),
    0 2px 8px rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
}

.light-theme .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.light-theme .btn-primary:hover::before {
  left: 100%;
}

.light-theme .btn-primary:hover {
  box-shadow: 
    0 16px 32px rgba(79, 70, 229, 0.4),
    0 8px 16px rgba(6, 182, 212, 0.3),
    0 0 40px rgba(168, 85, 247, 0.2);
}

/* Enhanced Form Elements for Light Theme */
.light-theme .form-input,
.light-theme .form-select,
.light-theme .form-textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(10px);
}

.light-theme .form-input:focus,
.light-theme .form-select:focus,
.light-theme .form-textarea:focus {
  border-color: #4F46E5;
  box-shadow: 
    0 0 0 3px rgba(79, 70, 229, 0.1),
    0 4px 16px rgba(6, 182, 212, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

/* Enhanced Tech Cards for Light Theme */
.light-theme .tech-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: 
    0 8px 24px rgba(79, 70, 229, 0.12),
    0 2px 8px rgba(6, 182, 212, 0.08);
}

.light-theme .tech-card:hover {
  box-shadow: 
    0 16px 32px rgba(79, 70, 229, 0.2),
    0 8px 16px rgba(6, 182, 212, 0.15),
    0 0 30px rgba(168, 85, 247, 0.1);
}

/* Enhanced Particles for Light Theme */
.light-theme .particle {
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.3), rgba(6, 182, 212, 0.2));
}

/* Enhanced Footer for Light Theme */
.light-theme .footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(79, 70, 229, 0.1);
}

/* Enhanced Scroll Progress for Light Theme */
.light-theme .scroll-progress {
  background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 50%, #A855F7 100%);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Animation Keyframes for Light Theme */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced Mobile Responsiveness for Light Theme */
@media (max-width: 768px) {
  .light-theme .hero-section::before {
    background: 
      radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  }
  
  .light-theme .floating-widget {
    box-shadow: 
      0 6px 20px rgba(79, 70, 229, 0.12),
      0 2px 6px rgba(6, 182, 212, 0.08);
  }
}