/* ========================================
   BuildWeave Professional Features Enhancement
   Quantique Minds - Construction Intelligence Excellence
   ======================================== */

/* CSS Custom Properties */
.buildweave-theme {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 6px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --transition-fast: 0.3s ease;
  --shadow-card: 0 6px 25px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Sophisticated Footer with Glass Morphism & Indigo Tint */
.buildweave-theme .footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Glass Morphism Footer Sections with Indigo Tint */
.buildweave-theme .footer-section {
  background: rgba(79, 70, 229, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(79, 70, 229, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.buildweave-theme .footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #3730a3);
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buildweave-theme .footer-section:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.12), 0 6px 15px rgba(0, 0, 0, 0.1);
}

.buildweave-theme .footer-section:hover::before {
  opacity: 1;
}

/* Enhanced Footer Typography with Gradient Text */
.buildweave-theme .footer-section h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buildweave-theme .footer-section h4 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.buildweave-theme .footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #3730a3);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.buildweave-theme .footer-section:hover h4::after {
  width: 50px;
}

.buildweave-theme .footer-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.buildweave-theme .footer-section:hover p {
  color: rgba(255, 255, 255, 0.95);
}

/* Professional List Styling */
.buildweave-theme .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.buildweave-theme .footer-section ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.2rem;
  transition: transform 0.2s ease;
}

.buildweave-theme .footer-section ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: #4f46e5;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.buildweave-theme .footer-section ul li:hover {
  transform: translateX(4px);
}

.buildweave-theme .footer-section ul li:hover::before {
  transform: translateX(4px);
  color: #6366f1;
}

/* Enhanced Footer Links with Hover Effects */
.buildweave-theme .footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.buildweave-theme .footer-section a:hover {
  color: white;
  background: rgba(79, 70, 229, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin: -0.4rem -0.8rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.buildweave-theme .footer-section a:hover::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #3730a3);
  border-radius: 1px;
}

/* Enhanced Contact Info */
.buildweave-theme .contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.buildweave-theme .contact-info p:hover {
  background: rgba(79, 70, 229, 0.1);
  color: white;
  transform: translateX(4px);
}

/* Sophisticated Tech Badge */
.buildweave-theme .footer-tech-badge {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(79, 70, 229, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 25px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.buildweave-theme .footer-tech-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.buildweave-theme .footer-tech-badge:hover::before {
  left: 100%;
}

.buildweave-theme .footer-tech-badge:hover {
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.buildweave-theme .footer-tech-badge span {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* Refined Footer Bottom */
.buildweave-theme .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(79, 70, 229, 0.2);
  text-align: center;
  margin-top: 2rem;
}

.buildweave-theme .footer-bottom p {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.buildweave-theme .footer-bottom p:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive footer */
@media (max-width: 1024px) {
  .buildweave-theme .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .buildweave-theme .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* Base Card System */
.buildweave-theme .base-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.buildweave-theme .base-card:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(15, 23, 42, 0.15);
}

.buildweave-theme .base-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.buildweave-theme .base-card:hover::before {
  opacity: 1;
}

/* Utility Classes */
.buildweave-theme .gradient-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.buildweave-theme .gradient-blue {
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
}

.buildweave-theme .gradient-green {
  background: linear-gradient(135deg, #059669, #10B981);
}

.buildweave-theme .gradient-red {
  background: linear-gradient(135deg, #DC2626, #EF4444);
}

.buildweave-theme .gradient-purple {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
}

.buildweave-theme .gradient-teal {
  background: linear-gradient(135deg, #0891B2, #06B6D4);
}

.buildweave-theme .gradient-amber {
  background: linear-gradient(135deg, var(--color-energy), var(--color-energy));
}

.buildweave-theme .card-animation {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease-out forwards;
}

/* Professional Feature Cards for Construction */
.buildweave-theme .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.buildweave-theme .feature-card {
  border-radius: 24px;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
}


/* Professional Icon Container */
.buildweave-theme .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 20px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.buildweave-theme .feature-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buildweave-theme .feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
}

.buildweave-theme .feature-card:hover .feature-icon::before {
  opacity: 1;
}

/* Professional Icon Symbols */
.buildweave-theme .feature-icon .icon-symbol {
  font-size: 2rem;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Enhanced Typography */
.buildweave-theme .feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.buildweave-theme .feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Professional Feature List */
.buildweave-theme .feature-list {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.buildweave-theme .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--neutral-600);
  font-weight: 500;
  transition: all 0.2s ease;
}

.buildweave-theme .feature-list li::before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.buildweave-theme .feature-list li::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: -20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.buildweave-theme .feature-list li:hover {
  color: var(--neutral-700);
  transform: translateX(4px);
}

/* Animated Decorative Elements */
.buildweave-theme .feature-card .decoration {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(107, 33, 168, 0.05));
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.buildweave-theme .feature-card:hover .decoration {
  opacity: 1;
  transform: scale(1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}


/* Animation Delays */
.buildweave-theme .feature-card:nth-child(1) { animation-delay: 0.1s; }
.buildweave-theme .feature-card:nth-child(2) { animation-delay: 0.2s; }
.buildweave-theme .feature-card:nth-child(3) { animation-delay: 0.3s; }
.buildweave-theme .feature-card:nth-child(4) { animation-delay: 0.4s; }
.buildweave-theme .feature-card:nth-child(5) { animation-delay: 0.5s; }
.buildweave-theme .feature-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Construction Workflow Steps Enhancement */
.buildweave-theme .workflow-steps {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.buildweave-theme .workflow-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
}

.buildweave-theme .step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

.buildweave-theme .step-content h3 {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.buildweave-theme .step-content p {
  color: var(--neutral-700);
  line-height: 1.6;
  margin: 0;
}

/* Construction Progress Cards */
.buildweave-theme .progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.buildweave-theme .progress-card {
  text-align: center;
}

.buildweave-theme .progress-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem;
  color: white;
}

.buildweave-theme .progress-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.buildweave-theme .progress-description {
  color: var(--neutral-600);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Professional Project Type Cards */
.buildweave-theme .project-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.buildweave-theme .project-type-card {
  padding: 2rem 1.5rem;
  text-align: center;
}


/* Professional Project Icons */
.buildweave-theme .project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 18px;
  margin: 0 auto 1.5rem auto;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.25);
}

.buildweave-theme .project-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buildweave-theme .project-type-card:hover .project-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

.buildweave-theme .project-type-card:hover .project-icon::before {
  opacity: 1;
}

/* Professional Icon Symbols */
.buildweave-theme .project-icon .icon-symbol {
  font-size: 2rem;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Enhanced Typography for Project Cards */
.buildweave-theme .project-type-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.buildweave-theme .project-type-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--neutral-600);
  margin: 0;
  font-weight: 500;
}

/* Animated Decorative Elements for Project Cards */
.buildweave-theme .project-type-card .decoration {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(107, 33, 168, 0.04));
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.4s ease;
}

.buildweave-theme .project-type-card:hover .decoration {
  opacity: 1;
  transform: scale(1);
  animation: pulse 2.5s ease-in-out infinite;
}



.buildweave-theme .project-type-card:nth-child(1) { animation-delay: 0.1s; }
.buildweave-theme .project-type-card:nth-child(2) { animation-delay: 0.2s; }
.buildweave-theme .project-type-card:nth-child(3) { animation-delay: 0.3s; }
.buildweave-theme .project-type-card:nth-child(4) { animation-delay: 0.4s; }
.buildweave-theme .project-type-card:nth-child(5) { animation-delay: 0.5s; }
.buildweave-theme .project-type-card:nth-child(6) { animation-delay: 0.6s; }


/* Construction-Specific Elements */
.buildweave-theme .construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(107, 33, 168, 0.05));
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.buildweave-theme .safety-highlight {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-weight: 500;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .buildweave-theme .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .buildweave-theme .feature-card {
    padding: 2rem;
  }
  
  .buildweave-theme .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .buildweave-theme .feature-icon .icon-symbol {
    font-size: 1.75rem;
  }
  
  .buildweave-theme .feature-card h3 {
    font-size: 1.25rem;
  }
  
  .buildweave-theme .workflow-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .buildweave-theme .progress-cards {
    grid-template-columns: 1fr;
  }
  
  /* Project Type Cards Mobile */
  .buildweave-theme .project-types {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .buildweave-theme .project-type-card {
    padding: 1.5rem 1rem;
  }
  
  .buildweave-theme .project-icon {
    width: 60px;
    height: 60px;
  }
  
  .buildweave-theme .project-icon .icon-symbol {
    font-size: 1.75rem;
  }
  
  .buildweave-theme .project-type-card h3 {
    font-size: 1.1rem;
  }
  
  .buildweave-theme .project-type-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .buildweave-theme .feature-card {
    padding: 1.5rem;
  }
  
  .buildweave-theme .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .buildweave-theme .feature-icon .icon-symbol {
    font-size: 1.5rem;
  }
  
  .buildweave-theme .feature-card:hover {
    transform: translateY(-8px);
  }
  
  .buildweave-theme .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Project Type Cards Extra Small Mobile */
  .buildweave-theme .project-types {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .buildweave-theme .project-type-card {
    padding: 1.25rem;
  }
  
  .buildweave-theme .project-icon {
    width: 55px;
    height: 55px;
  }
  
  .buildweave-theme .project-icon .icon-symbol {
    font-size: 1.5rem;
  }
  
  .buildweave-theme .project-type-card:hover {
    transform: translateY(-6px);
  }
}

/* High Contrast and Accessibility */
@media (prefers-contrast: high) {
  .buildweave-theme .feature-card {
    background: white;
    border: 2px solid var(--color-primary);
  }
  
  .buildweave-theme .feature-icon {
    background: var(--color-primary);
  }
  
  .buildweave-theme .project-type-card {
    background: white;
    border: 2px solid var(--color-primary);
  }
  
  .buildweave-theme .project-icon {
    background: var(--color-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .buildweave-theme .feature-card,
  .buildweave-theme .feature-icon,
  .buildweave-theme .decoration,
  .buildweave-theme .project-type-card,
  .buildweave-theme .project-icon {
    animation: none;
    transition: none;
  }
  
  .buildweave-theme .feature-card:hover,
  .buildweave-theme .project-type-card:hover {
    transform: none;
  }
}