/* --- General Page Setup --- */
.about-us-page-content {
  /* padding-top: var(--header-height); */
  overflow-x: hidden;
}

.about-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--space-xl);
  font-weight: 700;
}

/* --- Animation Setup --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 1. Hero Section --- */
.about-hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--neutral-light);
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      to right,
      rgba(26, 26, 46, 0.85),
      rgba(123, 66, 246, 0.7)
    ),
    url("https://halogeniusideas.com/wp-content/uploads/2025/11/about-halogenius-ideas.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.about-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: #fff;
}

.about-hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  opacity: 0.9;
}

/* --- 2. Mission & Values Section --- */
.about-mission-section {
  padding: var(--space-xl) 0;
  background-color: var(--background-secondary);
}

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-mission-statement h2 {
  margin-bottom: var(--space-md);
  font-size: 2.5rem;
}

.about-mission-statement p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.about-value-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.about-value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.8);
}

.value-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.about-value-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--neutral-dark);
}

/* --- 3. Story Section (Timeline) --- */
.about-story-section {
  padding: var(--space-xl) 0;
  background-color: var(--neutral-dark);
  color: var(--neutral-light);
}

.about-story-section .about-section-title {
  color: var(--neutral-light);
}

.about-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.about-timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background: var(--gradient);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  z-index: 1;
}

.timeline-item {
  padding: var(--space-sm) var(--space-lg);
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  /* padding-right: 50px; */
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
  text-align: left;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -11.5px;
  background-color: var(--neutral-light);
  border: 4px solid var(--accent);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(even)::after {
  left: -11.5px; /* Changed from -10px */
  right: auto; /* Added to override the 'right' property */
}

.timeline-content {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- 4. What We Do Section --- */
.about-services-section {
  padding: var(--space-xl) 0;
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.about-service-card {
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.about-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- 5. Why Choose Us Section --- */
.about-why-us-section {
  padding: var(--space-xl) 0;
  background-color: var(--background-secondary);
}
.about-why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}
.about-why-us-card {
  padding: var(--space-lg);
  border-left: 4px solid;
  border-image: var(--gradient) 1;
}

/* --- 6. Founder Section --- */
.about-founder-section {
  padding: var(--space-xl) 0;
}
.about-founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.founder-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.founder-content h3 {
  font-size: 1.8rem;
}
.founder-content h4 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.founder-stats {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}
.stat {
  font-size: 1.1rem;
}
.stat strong {
  font-size: 2rem;
  color: var(--primary);
  display: block;
}
.founder-socials a {
  color: var(--neutral-dark);
  font-size: 1.5rem;
  margin-right: var(--space-md);
  transition: color 0.3s ease;
}
.founder-socials a:hover {
  color: var(--primary);
}

/* --- 7. CTA Section --- */
.about-cta-section {
  padding: var(--space-xl) 0;
  background: var(--neutral-dark);
  color: var(--neutral-light);
  text-align: center;
}
.about-cta-content h2 {
  font-size: 2.5rem;
  color: #fff;
}
.about-cta-content p {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0.8;
}
.about-cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
  .about-mission-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-founder-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

@media (max-width: 767px) {
  .about-hero-content h1 {
    font-size: 2.5rem;
  }
  .about-section-title {
    font-size: 2rem;
  }
  .about-timeline::after {
    left: 20px;
    margin-left: 0;
  }
  .timeline-item,
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 45px; /* Adjusted padding */
    padding-right: 15px;
    text-align: left !important; /* Force left alignment */
  }
  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 10px; /* Corrected for mobile alignment */
    right: auto;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}
