/* About Page Styles */
.hero-section {
  background-image: url('sourceImg/about-page/malaysia-hero.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.about-section {
  padding: 50px 0;
  background-color: #f5f5f5;
}

.feature-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--light-bg) !important;
  animation: fadeInUp 1s ease-out;
}

.welcome-title {
  font-size: 1.8rem;
  color: #f25a70;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.content-block {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.content-block.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.content-block h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.float-image {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 40%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 5rem;
}

.service-item {
  background-color: #fff;
  padding: 1rem;
  opacity: 1 !important;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
}

.team-section {
  background-color: #fff;
  padding: 50px 0;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.team-member {
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-section {
  background-color: var(--accent-color);
  color: #fff;
  text-align: center;
  padding: 50px 0;
}

.cta-button {
  display: inline-block;
  background-color: #fff;
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .services-grid,
  .team-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .feature-title {
    font-size: 2rem;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .float-image {
    float: none;
    margin: 0 0 1rem 0;
    max-width: 100%;
  }

  .services-grid,
  .team-container {
    grid-template-columns: 1fr;
  }
}

/* Scroll-triggered animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}