/**
 * B2B Enterprises - Custom Styles
 */

/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 0% 0%, rgba(140, 82, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(140, 82, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(140, 82, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(140, 82, 255, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(140, 82, 255, 0.01) 0px, rgba(140, 82, 255, 0.01) 1px, transparent 1px, transparent 10px);
  opacity: 0.7;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 90%;
  max-width: 1200px;
}

.section-intro {
  font-size: 1.2rem;
  margin: 1rem auto 2rem;
  max-width: 800px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

h2 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn, .btn-large {
  border-radius: 4px;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.mt-4 {
  margin-top: 2rem;
}

/* Primary brand colors based on business card */
.brand-primary {
  background-color: #8c52ff !important;
}

.brand-primary-text {
  color: #8c52ff !important;
}

.brand-gradient {
  background: linear-gradient(135deg, #a67dff 0%, #8c52ff 100%) !important;
}

/* Header & Navigation */
.navbar-fixed {
  height: 64px;
}

nav .brand-logo {
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-logo {
  height: 50px;
  margin-right: 15px;
}

.nav-brand-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  line-height: 1;
}

/* Mobile Navigation */
@media only screen and (max-width: 600px) {
  .nav-logo {
    height: 45px;
    margin-right: 12px;
  }
  
  .nav-brand-text {
    font-size: 1.3rem;
  }
}

.dropdown-content {
  min-width: 200px;
}

.dropdown-content li > a {
  color: #8e44ad;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-logo {
  max-height: 300px;
  margin-top: 1rem;
}

.hero-cta {
  margin-top: 2rem;
}

.hero-cta .btn-large {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Wave Separator */
.separator-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  transform: scale(1, 1);
}

/* Introduction Section */
.intro {
  padding: 4rem 0;
}

/* Hardware/Product Cards */
.hardware-section {
  padding: 4rem 0;
}

.hardware-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hardware-card .card-image {
  max-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.hardware-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 4px 4px 0 0;
}

.hardware-card .card-content {
  flex-grow: 1;
}

.hardware-card .card-action {
  padding-top: 16px;
  border-top: 1px solid rgba(160, 160, 160, 0.2);
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: #f5f5f5;
}

.feature-row {
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-icon {
  padding: 2rem;
}

.feature-icon i.large {
  font-size: 5rem;
  color: #8c52ff;
}

.feature-content h3 {
  margin-top: 0;
  color: #8c52ff;
}

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.feature-list i.tiny {
  margin-right: 0.5rem;
  color: #8c52ff;
  margin-top: 0.25rem;
}

/* Solutions Section */
.solutions {
  padding: 4rem 0;
}

.solution-content {
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
}

/* Industries Section */
.industries {
  padding: 4rem 0;
  background-color: #f5f5f5;
}

.industry-card {
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
  height: 100%;
}

/* Blog Preview Section */
.blog-preview {
  padding: 4rem 0;
}

.blog-preview .card-image {
  max-width: 150px;
}

.blog-preview .card-title {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Parallax Background Elements */
.bg-shape-1, .bg-shape-2, .bg-shape-3 {
  position: fixed;
  opacity: 0.03;
  z-index: -2;
  border-radius: 50%;
  background: #8c52ff;
  filter: blur(30px);
  transform: translateZ(0);
  will-change: transform;
  pointer-events: none;
}

.bg-shape-1 {
  width: 800px;
  height: 800px;
  top: -200px;
  right: -200px;
  animation: float-1 40s infinite ease-in-out;
}

.bg-shape-2 {
  width: 600px;
  height: 600px;
  bottom: -100px;
  left: -100px;
  animation: float-2 35s infinite ease-in-out;
}

.bg-shape-3 {
  width: 500px;
  height: 500px;
  top: 30%;
  left: 50%;
  animation: float-3 30s infinite ease-in-out;
}

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

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

@keyframes float-3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-100px, 30px, 0); }
  66% { transform: translate3d(50px, -50px, 0); }
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  border-bottom: 5px solid #8c52ff;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
}/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #8c52ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.back-to-top i {
  font-size: 24px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #a67dff;
}

@media only screen and (max-width: 600px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section-intro, .cta p {
    font-size: 1rem;
  }
  
  .feature-icon i.large {
    font-size: 4rem;
  }
}

/* Business Ecosystem Section */
.business-ecosystem {
  padding: 4rem 0;
}

.business-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.business-card .card-image {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
}

.business-card .card-image img {
  max-height: 100px;
  max-width: 100px;
  object-fit: contain;
}

.business-card .card-title {
  background: #8e44ad;
  color: white;
  text-align: center;
  padding: 12px 16px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.business-card .card-content {
  flex-grow: 1;
  padding: 20px;
}

.business-card .card-content p:first-child {
  color: #8e44ad;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.business-card .feature-list {
  margin-top: 1rem;
}

.business-card .feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.business-card .feature-list i {
  margin-right: 8px;
  color: #8e44ad;
}

.ecosystem-integration {
  background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
  color: white;
  margin-top: 2rem;
  padding: 2rem;
}

.ecosystem-integration h3 {
  color: white;
  margin-bottom: 1rem;
}

.ecosystem-integration .brand-primary-text {
  color: #ffffff !important;
}

.ecosystem-integration h5 {
  color: white;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.ecosystem-integration p {
  color: rgba(255,255,255,0.9);
}

/* Responsive adjustments for business cards */
@media only screen and (max-width: 992px) {
  .business-card {
    margin-bottom: 1rem;
  }
}

@media only screen and (max-width: 600px) {
  .business-ecosystem {
    padding: 2rem 0;
  }
  
  .ecosystem-integration {
    padding: 1.5rem;
  }
  
  .ecosystem-integration .flow-text {
    font-size: 1.1rem;
  }
}
