/* About Us Page Styles - Scoped to #page-about */

#page-about {
  min-height: 100vh;
}

/* Hero section improvements */
.about-hero-section {
  padding-bottom: 4rem !important;
  margin-bottom: 2rem;
}

.about-hero-inner {
  padding: 2rem 0;
}

#page-about header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Content section spacing */
.about-page-content {
  padding-top: 3rem !important;
  padding-bottom: 4rem !important;
}

.about-page-content > div {
  margin-bottom: 5rem !important;
}

.about-page-content > div:last-child {
  margin-bottom: 2rem !important;
}

/* Section titles spacing */
.about-page-content h2 {
  margin-bottom: 1.5rem !important;
}

.about-page-content .text-center.mb-4,
.about-page-content .text-center.mb-5 {
  margin-bottom: 3rem !important;
}

/* Card improvements */
#page-about .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

#page-about .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#page-about .rounded-circle {
  transition: transform 0.2s ease;
}

#page-about .rounded-circle:hover {
  transform: scale(1.05);
}

/* Values section icons */
#page-about .bg-primary-subtle,
#page-about .bg-success-subtle,
#page-about .bg-info-subtle,
#page-about .bg-warning-subtle {
  transition: all 0.3s ease;
}

#page-about .bg-primary-subtle:hover {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

#page-about .bg-success-subtle:hover {
  background-color: var(--bs-success) !important;
  color: white !important;
}

#page-about .bg-info-subtle:hover {
  background-color: var(--bs-info) !important;
  color: white !important;
}

#page-about .bg-warning-subtle:hover {
  background-color: var(--bs-warning) !important;
  color: white !important;
}

/* CTA section */
#page-about .bg-primary-subtle.rounded-3 {
  background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, rgba(var(--bs-primary-rgb), 0.1) 100%);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

/* 3D Animation Container */
.animation-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0d5d5 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#twisted-shape-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Row spacing improvements */
.about-page-content .row {
  margin-bottom: 3rem;
}

/* Story section specific spacing */
.about-page-content .row.g-5 {
  padding: 2rem 0;
}

/* Core values grid spacing */
.about-page-content .row.g-4 > div {
  padding-bottom: 1.5rem;
}

/* Build grid spacing */
.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.build-card {
  padding: 1.5rem;
}

/* Stats section */
.about-page-content .row.g-4.text-center {
  padding: 2rem 0;
  margin-bottom: 4rem !important;
}

/* CTA section spacing */
.about-page-content .text-center.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  margin-top: 3rem;
}

.about-page-content .bg-primary-subtle.rounded-3 {
  padding: 3rem !important;
}

/* Wavy Dots Pattern Animation */
.isometric-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

/* Ensure CTA content is above canvas */
.about-page-content .text-center.py-5 .position-relative {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #page-about .display-5 {
    font-size: 2rem;
  }
  
  #page-about .lead {
    font-size: 1.1rem;
  }
  
  .animation-container {
    height: 350px;
  }
  
  .about-hero-section {
    padding-bottom: 2rem !important;
  }
  
  .about-page-content {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .about-page-content > div {
    margin-bottom: 3rem !important;
  }
  
  .build-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-page-content .bg-primary-subtle.rounded-3 {
    padding: 2rem !important;
  }
  
  .isometric-bg-canvas {
    opacity: 1;
  }
}