/* 
 * Bixing Technology Website - Consolidated Section Styles
 * Combines styles for multiple section types into a single file
 * Created: May 25, 2025
 */

/* ===== COMMON SECTION STYLES ===== */

.section-padding {
  padding: var(--spacing-xl) 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Background styles for sections */
.ai-circuit-bg {
  position: relative;
}

.ai-circuit-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxwYXRoIGQ9Ik0gMCwxMCBMIDQwLDEwIiBzdHJva2U9IiMwMDY2ZmYxMCIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIi8+PHBhdGggZD0iTSAxMCwwIEwgMTAsNDAiIHN0cm9rZT0iIzAwNjZmZjEwIiBzdHJva2Utd2lkdGg9IjAuNSIgZmlsbD0ibm9uZSIvPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTAiIHI9IjIiIGZpbGw9IiMwMDY2ZmYxMCIvPjwvcGF0dGVybj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
  opacity: 0.05;
  z-index: -1;
}

.ai-nodes-bg {
  position: relative;
}

.ai-nodes-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxjaXJjbGUgY3g9IjEwIiBjeT0iMTAiIHI9IjIiIGZpbGw9IiMwMDY2ZmYxNSIvPjxjaXJjbGUgY3g9IjMwIiBjeT0iMzAiIHI9IjIiIGZpbGw9IiMwMDY2ZmYxNSIvPjxjaXJjbGUgY3g9IjUwIiBjeT0iMTAiIHI9IjIiIGZpbGw9IiMwMDY2ZmYxNSIvPjxwYXRoIGQ9Ik0gMTAsMTAgTCAzMCwzMCIgc3Ryb2tlPSIjMDA2NmZmMTAiIHN0cm9rZS13aWR0aD0iMC41IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTSAzMCwzMCBMIDUwLDEwIiBzdHJva2U9IiMwMDY2ZmYxMCIgc3Ryb2tlLXdpZHRoPSIwLjUiIGZpbGw9Im5vbmUiLz48L3BhdHRlcm4+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.1;
  z-index: -1;
}

/* ===== HERO SECTION STYLES ===== */

/* Hero Section Container */
.hero-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--dark-bg);
  color: var(--white);
  overflow: hidden;
}

/* Background gradient overlay */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--dark-bg));
  z-index: 1;
}

/* Text gradient effect */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Enhanced title gradient */
.hero-title.text-gradient {
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 184, 0, 0.2);
  display: inline-block;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 1rem;
}

/* Title styling */
.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Override Bootstrap display-4 class */
.hero-title.display-4 {
  font-size: 2.8rem !important;
}

/* Subtitle styling */
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

/* Button container */
.hero-buttons {
  margin-top: 2rem;
}

/* Button styling */
.hero-buttons .btn {
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Hero particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Hero wave shape */
.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  transform: translateY(10px);
}

/* Secondary hero styles */
.secondary-hero {
  height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.secondary-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.secondary-hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.secondary-hero-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--gray-light);
}

/* ===== SERVICES SECTION STYLES ===== */

.services-section {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.service-card {
  background-color: var(--dark-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 168, 255, 0.1) 50%);
  border-radius: 0 0 0 100px;
  z-index: 1;
}

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
  color: var(--white);
  font-size: 1.5rem;
}

.service-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-description {
  margin-bottom: var(--spacing-md);
  color: var(--gray-light);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-lg);
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.service-features li::before {
  content: '✓';
  color: var(--accent-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-card .btn {
  margin-top: auto;
  align-self: center;
  min-width: 140px;
}

.service-card .btn-outline {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: var(--white);
  border: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.service-card .btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== PORTFOLIO SECTION STYLES ===== */

.portfolio-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--dark-bg);
  position: relative;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.portfolio-title {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.portfolio-category {
  color: var(--accent-blue);
  font-size: 0.9rem;
}

/* ===== CTA SECTION STYLES ===== */

.cta-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--gray-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/cta-bg-pattern.svg');
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

/* ===== INSIGHTS SECTION STYLES ===== */

.insights-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--dark-bg);
}

.insight-card {
  background-color: var(--dark-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.insight-image {
  height: 200px;
  overflow: hidden;
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.insight-card:hover .insight-image img {
  transform: scale(1.05);
}

.insight-content {
  padding: var(--spacing-lg);
}

.insight-date {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: var(--spacing-xs);
}

.insight-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.insight-excerpt {
  color: var(--gray-light);
  margin-bottom: var(--spacing-md);
}

.insight-link {
  color: var(--accent-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.insight-link i {
  margin-left: 5px;
  transition: transform var(--transition-fast);
}

.insight-link:hover i {
  transform: translateX(5px);
}

.tag-compact {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  line-height: 1.2;
  border-radius: 8px;
  margin-right: 5px;
}

.tag-date {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--gray-light);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.tag-category {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: var(--white);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/* ===== TESTIMONIALS SECTION STYLES ===== */

.testimonials-section {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/testimonials-bg.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.8;
  z-index: 0;
}

.testimonial-item {
  background-color: rgba(10, 25, 41, 0.85);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-content {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-left: 2rem;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-blue);
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  opacity: 0.3;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: var(--spacing-md);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.testimonial-info p {
  margin: 0;
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ===== DEMO SECTION STYLES ===== */

.demo-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--dark-surface);
  position: relative;
  overflow: hidden;
}

.demo-placeholder {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(0, 168, 255, 0.3);
}

.demo-placeholder i {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-placeholder h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.demo-placeholder p.small {
  font-size: 1rem;
  opacity: 0.7;
}

.demo-content h3 {
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
}

/* ===== EMPOWERED BY SECTION STYLES ===== */

.empowered-by-section {
  padding: var(--spacing-md) 0;
  background-color: rgba(10, 25, 41, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
}

.empowered-by-title {
  font-size: 1rem;
  color: var(--gray-light);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.ai-models {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.ai-model {
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all var(--transition-normal);
}

.ai-model.gpt4 {
  background: linear-gradient(135deg, #74aa9c, #10a37f);
  color: white;
}

.ai-model.claude {
  background: linear-gradient(135deg, #b884f3, #8c5cf5);
  color: white;
}

.ai-model.gemini {
  background: linear-gradient(135deg, #4285f4, #8ab4f8);
  color: white;
}

.ai-model.llama {
  background: linear-gradient(135deg, #f28b66, #ea4335);
  color: white;
}

.ai-model:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-section {
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: center;
  }
  
  .secondary-hero {
    height: 400px;
  }
  
  .secondary-hero-title {
    font-size: 2.5rem;
  }
  
  .secondary-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    margin-bottom: var(--spacing-md);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .testimonial-item {
    margin: var(--spacing-sm) 0;
  }
  
  .empowered-by-section {
    padding: var(--spacing-sm) 0;
  }
  
  .ai-models {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .secondary-hero {
    height: 350px;
  }
  
  .secondary-hero-title {
    font-size: 2rem;
  }
  
  .secondary-hero-subtitle {
    font-size: 1rem;
  }
  
  .service-header {
    flex-direction: column;
    text-align: center;
  }
  
  .service-icon {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .testimonial-content {
    font-size: 1rem;
    padding-left: 1rem;
  }
  
  .testimonial-content::before {
    font-size: 3rem;
    top: -1rem;
    left: -0.5rem;
  }
}
