/* ====================================
   About Us Page - Enhanced Version
   ==================================== */

/* Import AOS library */
@import url("https://unpkg.com/aos@2.3.1/dist/aos.css");

/* General Styles */
.about-us-page {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================================
   Hero Section with Background Image
   ==================================== */
.about-us-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Background Image Layer */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/family-home.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  transition: transform 0.1s ease-out;
}

/* Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 23, 31, 0.85) 0%,
    rgba(71, 61, 82, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease-out;
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.breadcrumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 0.75rem;
  opacity: 0.7;
}

.breadcrumbs .current {
  opacity: 1;
  font-weight: 600;
}

/* Responsive */
/* =========================
   Breadcrumbs Responsive Fix
   ========================= */
@media (max-width: 768px) {
  .breadcrumbs {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #fff;
    margin-top: 1rem;
    z-index: 3;
    position: relative;
  }

  .breadcrumbs a {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    margin-top: 2rem;
  }

  .breadcrumbs .separator {
    opacity: 0.8;
    margin-top: 2rem;
  }

  .breadcrumbs .current {
    opacity: 1;
    font-weight: 600;
    margin-top: 2rem;
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.stat-number {
  display: inline;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-symbol {
  font-size: 2rem;
  margin-left: 5px;
}

.stat-label {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

@media (max-width: 480px) {
  /* This part forces the row layout */
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Prevents stacking */
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px; /* Adds a tiny gap between items */
  }

  .stat-item {
    flex: 1; /* Ensures each of the 3 items takes up equal width */
    text-align: center;
  }

  .stat-number {
    font-size: 1.2rem;
    display: inline-block;
  }

  .stat-label {
    font-size: 0.7rem;
    display: block;
    line-height: 1.2; /* Prevents labels from being too tall */
    margin-top: 4px;
  }
}

/* ====================================
   CEO Message Section
   ==================================== */
/* Container */
.ceo-message-section {
  background: linear-gradient(
    135deg,
    #646c76,
    #47484a
  ); /* professional gradient */
  padding: 80px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* Flex Wrapper */
.ceo-message-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* responsive stacking */
}

/* CEO Image Container */
.ceo-image-container {
  flex: 1 1 300px;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease;
}

.ceo-image-container:hover {
  transform: translateY(-10px);
}

.ceo-image-frame {
  position: relative;
  display: inline-block;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.ceo-image-frame img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.ceo-image-frame:hover img {
  transform: scale(1.05);
}

/* Decorative overlay */
.image-decoration {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 1;
}

/* CEO Credentials */
.ceo-credentials {
  margin-top: 20px;
  text-align: center;
}

.ceo-credentials h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.ceo-credentials p {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.ceo-signature img {
  width: 120px;
  margin-top: 5px;
}

/* CEO Message Content */
/* Make message text responsive */
.ceo-message-content {
  flex: 2 1 500px; /* default for desktop */
  width: 100%; /* ensures full width on smaller screens */
}

.message-text {
  display: flex;
  flex-direction: column; /* stack paragraphs vertically */
  gap: 15px; /* equal spacing between paragraphs */
  width: 100%;
}

/* Opening quote styling */
.opening-quote {
  font-style: italic;
  position: relative;
}

/* Quote mark styling */
.quote-mark {
  font-size: 2rem;
  font-weight: bold;
  color: #1a73e8;
  margin-right: 5px;
  vertical-align: top;
}

/* Closing statement styling */
.closing-statement {
  font-weight: 600;
  color: #e6e6e6;
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ceo-message-wrapper {
    flex-direction: column;
    gap: 30px;
    text-align: center; /* center text on mobile */
  }

  .ceo-message-content {
    width: 100%; /* full width */
  }

  .message-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 auto; /* center paragraphs */
    max-width: 600px; /* optional: limits very wide text */
  }

  .opening-quote .quote-mark {
    display: block; /* puts quote mark above text on mobile */
    margin: 0 auto 5px;
  }
}

@media (max-width: 576px) {
  .ceo-message-section {
    padding: 50px 15px;
  }

  .message-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* CEO Contact Links */
.ceo-contact {
  margin-top: 25px;
  display: flex;
  gap: 20px;
}

.ceo-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ceo-contact a:hover {
  background: linear-gradient(90deg, #1e3a8a, #facc15);
  color: #fff;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
  .ceo-message-wrapper {
    flex-direction: column-reverse;
    gap: 30px;
    text-align: center;
  }

  .ceo-message-content h2 {
    font-size: 1.8rem;
  }

  .ceo-contact {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .ceo-message-section {
    padding: 50px 15px;
  }

  .ceo-message-content h2 {
    font-size: 1.5rem;
  }

  .ceo-credentials h4 {
    font-size: 1.2rem;
  }
}

/* ====================================
   Section Titles (Reused)
   ==================================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #2d3748;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #718096;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ====================================
   Mission & Values Section
   ==================================== */
.about-us-mission {
  padding: 6rem 0;
  background: #f7fafc;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid #e2e8f0;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: rotate(360deg);
}

.value-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
}

.value-card p {
  color: #718096;
  line-height: 1.7;
  font-size: 1rem;
}

/* ====================================
   Story Timeline Section
   ==================================== */
.about-us-story {
  padding: 6rem 0;
  background: white;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-end;
  text-align: right;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  text-align: left;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid #667eea;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  width: 30px;
  height: 30px;
  background: #667eea;
}

.timeline-content {
  background: #f7fafc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  max-width: 400px;
}

.timeline-content:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.timeline-content h3 {
  color: #667eea;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #4a5568;
  line-height: 1.7;
}

/* ====================================
   Team Section
   ==================================== */
.about-us-team {
  padding: 6rem 0;
  background: #f7fafc;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-member {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .team-image-wrapper img {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9),
    rgba(118, 75, 162, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .team-overlay {
  opacity: 1;
}

.team-social {
  display: flex;
  gap: 1rem;
}

.team-social a {
  width: 45px;
  height: 45px;
  background: white;
  color: #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.team-member:hover .team-social a {
  transform: translateY(0);
  opacity: 1;
}

.team-social a:nth-child(1) {
  transition-delay: 0.1s;
}

.team-social a:nth-child(2) {
  transition-delay: 0.2s;
}

.team-social a:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.team-info {
  padding: 2rem;
}

.team-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.team-role {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-bio {
  color: #718096;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ====================================
   Call to Action Section
   ==================================== */
.about-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.about-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid white;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ====================================
   Animations
   ==================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 992px) {
  .ceo-message-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ceo-message-content {
    padding-left: 0;
  }

  .ceo-image-container {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .ceo-message-content h2 {
    font-size: 2rem;
  }

  .opening-quote {
    font-size: 1.1rem;
    padding-left: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 3rem auto 0;
  }

  .about-cta h2 {
    font-size: 2rem;
  }

  .about-cta p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .ceo-message-section,
  .about-us-mission,
  .about-us-story,
  .about-us-team,
  .about-cta {
    padding: 4rem 0;
  }

  .ceo-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .ceo-contact a {
    width: 100%;
    justify-content: center;
  }
}

/* ====================================
   Accessibility
   ==================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* left side image with link style */
.sticky-left-link {
  position: fixed;
  left: 0;
  top: 90%;
  transform: translateY(-50%);
  z-index: 9999;

  display: flex;
  align-items: center;

  background: #ffffff; /* Light background */
  padding: 10px 16px 10px 10px;
  border-radius: 0 30px 30px 0;

  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #007bff; /* Blue accent line */
  transition: all 0.3s ease;
}

/* Image */
.sticky-left-link img {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

/* Text */
.sticky-text {
  color: #007bff; /* Same blue as image */
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Hover effect */
.sticky-left-link:hover {
  transform: translateY(-50%) translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
