/* ================ */
/* 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-top: 80px;
  transition: box-shadow 0.5s ease;
}

.about-hero:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.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);
}

.services-header {
  background-color: #2a4759;
  color: #fff;
  padding: 100px 0 60px;
  text-align: center;
}

.services-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.services-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-container {
  padding: 40px 0;
}

.service-section {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.service-section:last-child {
  border-bottom: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contact Page Styles */
.contact-container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.office-section {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  min-height: 80vh;
  background-color: var(--secondary-color-2);
  overflow: hidden;
  position: relative;
  border-left: 5px solid var(--primary-color-4);
  transition: all 0.4s ease;
}

/* Improved filling line animation at the bottom */
.office-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color-3),
    var(--primary-color-5)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease-out;
  box-shadow: 0 0 10px var(--primary-color-4);
}

.office-section:hover::after {
  transform: scaleX(1);
}

/* Subtle background shift on hover */
.office-section:hover {
  background-image: linear-gradient(
    to right,
    var(--secondary-color-2),
    var(--secondary-color)
  );
}

.office-section:nth-child(odd) {
  background-color: var(--secondary-color);
}

.office-section:nth-child(odd):hover {
  background-image: linear-gradient(
    to left,
    var(--secondary-color-2),
    var(--secondary-color)
  );
}

/* Keep this to prevent the section from jumping but allow the line animation */
.office-section:hover {
  box-shadow: none;
  transform: none;
}

.office-info {
  flex: 1;
  padding: 60px 40px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Enhanced heading with subtle effect */
.office-info h2 {
  color: var(--text-color-2);
  margin-bottom: 35px;
  font-size: 28px;
  font-weight: 500;
  position: relative;
  padding-bottom: 15px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.office-section:hover .office-info h2 {
  color: var(--primary-color-5);
  text-shadow: 0 0 1px var(--primary-color-5);
}

.office-info h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color-3),
    var(--primary-color-5)
  );
  transition: width 0.5s ease, box-shadow 0.5s ease;
}

.office-section:hover .office-info h2:after {
  width: 120px;
  box-shadow: 0 0 8px var(--primary-color-4);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: padding-left 0.4s ease;
}

.info-item:hover {
  padding-left: 10px;
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-item i {
  color: var(--primary-color-4);
  margin-right: 15px;
  font-size: 22px;
  margin-top: 3px;
  width: 25px;
  text-align: center;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Remove transform on icon hover */
.info-item:hover i {
  transform: none;
}

.info-item:hover i {
  color: var(--text-color-2);
  text-shadow: 0 0 10px var(--primary-color-4);
}

/* Add subtle pulse animation for icons */
@keyframes gentle-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

.office-section:hover .info-item i {
  animation: gentle-pulse 2s infinite;
}

.info-item p {
  color: var(--primary-color-4);
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.info-item:hover p {
  color: var(--text-color-2);
}

.office-map-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-width: 300px;
  /* Remove transition effect */
}

/* Remove padding transition on hover */
.office-section:hover .office-map-container {
  padding: 40px; /* Keep padding consistent */
}

.office-map {
  width: 100%;
  height: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  /* Remove transition effects */
  overflow: hidden;
}

/* Remove box shadow change on hover */
.office-section:hover .office-map {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Remove border effect on map */
.office-map::before {
  content: none;
}

.office-map::after {
  content: none;
}

/* Remove zoom effect on map iframe hover */
.office-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  /* Remove transition */
}

/* Remove scale on hover */
.office-map:hover iframe {
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .office-section {
    min-height: auto;
    padding: 20px 0;
  }

  .office-map-container {
    padding: 20px;
  }

  .office-map {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .office-section {
    flex-direction: column;
    border-left: none;
    border-top: 5px solid var(--primary-color-4);
  }

  .office-map-container {
    width: 100%;
    padding: 0 0 30px 0;
  }

  .office-map {
    height: 300px;
  }

  .office-info {
    padding: 40px 30px;
  }

  .office-info h2 {
    font-size: 24px;
  }

  .about-title {
    font-size: 3rem;
  }

  .about-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .office-info {
    padding: 30px 25px;
  }

  .office-map {
    min-height: 300px;
  }

  .about-title {
    font-size: 2.5rem;
  }
}
