/* EcoSyno Custom CSS */

/* Module Preview Cards */
.module-preview-container {
  margin-top: 1rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  perspective: 1000px;
}

.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

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

.module-preview-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  transform: scale(0.95);
  overflow: hidden;
}

.module-preview-card:hover {
  transform: translateY(-5px) scale(1);
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.module-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.module-preview-card:hover::before {
  opacity: 1;
}

.module-preview-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

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

.module-preview-card.environment .module-preview-icon {
  background-color: rgba(167, 243, 208, 0.15);
  color: #a7f3d0;
  box-shadow: 0 0 15px rgba(167, 243, 208, 0.3);
}

.module-preview-card.wellness .module-preview-icon {
  background-color: rgba(196, 181, 253, 0.15);
  color: #c4b5fd;
  box-shadow: 0 0 15px rgba(196, 181, 253, 0.3);
}

.module-preview-card.kitchen .module-preview-icon {
  background-color: rgba(253, 164, 175, 0.15);
  color: #fda4af;
  box-shadow: 0 0 15px rgba(253, 164, 175, 0.3);
}

.module-preview-card.wardrobe .module-preview-icon {
  background-color: rgba(253, 230, 138, 0.15);
  color: #fde68a;
  box-shadow: 0 0 15px rgba(253, 230, 138, 0.3);
}

.module-preview-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.module-preview-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* SynoMind Preview */
.synomind-preview {
  background-color: rgba(35, 116, 225, 0.1);
  border: 1px solid rgba(35, 116, 225, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: pulse 3s infinite;
  transform: translateY(-5px);
  position: relative;
  z-index: 10;
}

@keyframes pulse {
  0% { transform: scale(1) translateY(-5px); }
  50% { transform: scale(1.03) translateY(-8px); }
  100% { transform: scale(1) translateY(-5px); }
}

.synomind-preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2374e1, #4166cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(35, 116, 225, 0.5);
}

.synomind-preview-bubble {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  flex-grow: 1;
  position: relative;
}

.synomind-preview-bubble:before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.synomind-preview-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  gap: 0.75rem;
}

.synomind-preview-controls i {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
  100% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.7); }
}

.synomind-preview-controls i:hover {
  color: white;
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
  .module-preview-container {
    display: none;
  }
}

/* Enhanced Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-radius: 0 0 3rem 3rem;
  margin-bottom: 5rem;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  margin: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-feature:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-feature i {
  margin-right: 0.5rem;
}

.eco-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.eco-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.eco-btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.eco-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Background elements */
.bg-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

/* Mobile Responsiveness Enhancement */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons a {
    width: 100%;
  }
}