/* Global container style */
.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.about-page {
  padding-bottom: 0;
  color: var(--text-color);
}

/* ============================================ */
/* SECTION HEADINGS - Common styling for titles */
/* ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-tag {
  display: inline-block;
  background-color: var(--primary-color-5);
  color: var(--background-color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  position: relative;
  padding-bottom: 15px;
  margin: 0;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.services-section-title {
  color: var(--text-color-2);
}

.principle-section-title {
  color: var(--secondary-color);
}

.section-subtitle {
  max-width: 800px;
  margin: 30px auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--secondary-color);
}

/* ================ */
/* HERO SECTION     */
/* ================ */
.about-hero {
  background-image: url("../../img/about-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-color-2);
  margin-bottom: 80px;
  margin-top: 80px;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    var(--background-color-secondary),
    var(--third-color)
  );
  opacity: 0.5;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.about-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: var(--text-color-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color-2);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ================ */
/* OVERVIEW SECTION */
/* ================ */
.about-overview {
  padding: 0 0 50px;
  position: relative;
  overflow: hidden;
}

.about-overview::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: var(--secondary-color);
  z-index: -1;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0% 100%);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto 50px;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

/* Stats items */
.about-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-width: 200px;
  background: var(--background-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1.1rem;
  color: var(--secondary-color);
  text-align: center;
}

/* ================ */
/* SERVICES SECTION */
/* ================ */
.about-services {
  background-color: var(--secondary-color);
  padding: 80px 0;
  position: relative;
}

.about-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../img/about/pattern-bg.png");
  opacity: 0.05;
  z-index: 0;
}

/* Services list */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 60px;
  position: relative;
  z-index: 1;
}

.services-list .service-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--secondary-color-2);
  padding: 0;
  margin-bottom: 20px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 120px;
}

.services-list .service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(
    to bottom,
    var(--primary-color-3),
    var(--primary-color-5)
  );
  transition: height 0.4s ease;
}

.services-list .service-item:hover {
  transform: translateX(10px);
}

.services-list .service-item:hover::before {
  height: 100%;
}

/* Service icon */
.services-list .service-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  color: var(--text-color-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-right: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.services-list .service-icon i {
  transition: all 0.3s ease;
}

.services-list .service-item:hover .service-icon i {
  transform: scale(1.2);
  color: var(--primary-color-5);
}

/* Service content */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 10px;
}

.services-list .service-title {
  width: 100%;
  text-align: start;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary-color-5);
}

.services-list .service-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-2);
  margin-bottom: 15px;
  width: 100%;
  text-align: start;
}

/* Service link */
.service-link-section {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 15px;
  height: 100%;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color-4);
  border: 2px solid var(--primary-color-4);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  height: 45px;
  width: 200px;
}

.service-link i {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: var(--text-color-2);
  background: var(--secondary-color);
}

/* Services CTA */
.services-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.about-mission {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
  color: var(--text-color-2);
}

/* Button styles */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  /* Replace gradient with solid color */
  background-color: var(--primary-color-3);
  color: var(--text-color-2);
  box-shadow: 0 5px 15px rgba(176, 135, 11, 0.15);
  border: 2px solid var(--primary-color-3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color-4);
  border: 2px solid var(--primary-color-4);
}

/* New hover effect for primary button */
.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color-5);
  box-shadow: 0 5px 15px rgba(176, 135, 11, 0.3);
  /* No vertical movement */
}

/* Keep secondary button hover effect but remove vertical lift */
.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-2);
  font-weight: 700;
}

/* Add ripple effect on both buttons */
.btn-primary:after,
.btn-secondary:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after,
.btn-secondary:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* ================== */
/* PRINCIPLES SECTION */
/* ================== */
.about-principles {
  background: linear-gradient(
    135deg,
    rgba(42, 71, 89, 0.05) 0%,
    rgba(176, 135, 11, 0.05) 100%
  );
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-principles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../img/about/pattern-dots.png");
  opacity: 0.08;
  z-index: 0;
}

.principles-container {
  display: flex;
  flex-wrap: wrap;
  margin: 60px -15px 0;
  position: relative;
  z-index: 1;
}

/* Principle blocks */
.principle-block {
  width: calc(25% - 30px);
  margin: 0 15px 30px;
  background-color: var(--background-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.principle-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-color-5)
  );
}

.principle-block:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Principle block color variations */
.principle-block[data-principle="honesty"]::before {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-color-4)
  );
}

.principle-block[data-principle="security"]::before {
  background: linear-gradient(90deg, #2a4759, #3a6b8a);
}

.principle-block[data-principle="quality"]::before {
  background: linear-gradient(90deg, #9e7809, #d8a611);
}

.principle-block[data-principle="growth"]::before {
  background: linear-gradient(90deg, #385e76, #5a8ba9);
}

/* Principle icons */
.principle-icon {
  width: 90px;
  height: 90px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Principle icon color variations */
.principle-block[data-principle="honesty"] .principle-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-4)
  );
}

.principle-block[data-principle="security"] .principle-icon {
  background: linear-gradient(135deg, #2a4759, #3a6b8a);
}

.principle-block[data-principle="quality"] .principle-icon {
  background: linear-gradient(135deg, #9e7809, #d8a611);
}

.principle-block[data-principle="growth"] .principle-icon {
  background: linear-gradient(135deg, #385e76, #5a8ba9);
}

.principle-block:hover .principle-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.principle-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.principle-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  z-index: 2;
}

/* ================== */
/* CALL TO ACTION     */
/* ================== */
.about-cta {
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--secondary-color-2)
  );
  padding: 80px 0;
  color: var(--text-color-2);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-2);
}

.cta-text {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================== */
/* RESPONSIVE STYLES  */
/* ================== */
@media (max-width: 1200px) {
  .principle-block {
    width: calc(50% - 30px);
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Hero responsive */
  .about-hero {
    height: 400px;
  }

  .about-title {
    font-size: 3rem;
  }

  .about-subtitle {
    font-size: 1.2rem;
  }

  /* Stats responsive */
  .stat-item {
    min-width: 150px;
  }

  /* Services responsive */
  .services-list .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    height: auto;
  }

  .services-list .service-icon {
    margin: 0 0 20px;
  }

  .service-link {
    margin-top: 10px;
  }

  .services-list .service-title,
  .services-list .service-text {
    text-align: center;
  }

  /* Principles responsive */
  .principles-container {
    margin: 40px -10px 0;
  }

  .principle-block {
    width: calc(50% - 20px);
    margin: 0 10px 20px;
    padding: 30px 15px;
  }

  .principle-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .principle-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .principle-text {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  /* Hero responsive */
  .about-hero {
    height: 350px;
  }

  .about-title {
    font-size: 2.2rem;
  }

  .about-subtitle {
    font-size: 1rem;
  }

  /* Principles responsive */
  .about-principles {
    padding: 60px 0;
  }

  .principle-block {
    width: 100%;
    margin-bottom: 20px;
  }

  .principle-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}
