/* Image Enhancements for Makgane Attorneys Website */

/* About Section Image Enhancement */
.about .about-image img {
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  height: 100%;
  min-height: 350px;
}

.about .about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about .about-image {
  position: relative;
  height: 100%;
}

.about .about-image::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border: 2px solid var(--secondary-gold);
  bottom: -15px;
  right: -15px;
  z-index: -1;
  border-radius: 8px;
}

/* Team Section Image Enhancement */
.team-image {
  position: relative;
  margin-bottom: 25px;
  overflow: hidden;
}

.team-image img {
  transition: transform 0.5s ease;
  width: 180px;
  height: 180px;
  object-fit: cover;
}

.team-member:hover .team-image img {
  transform: scale(1.05);
}

/* Practice Areas Visual Enhancement */
.practice-box {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.practice-box::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 0;
  height: 0;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: -1;
}

.practice-box:hover::before {
  transform: scale(5);
  width: 200%;
  height: 200%;
}

/* Contact Section Enhancement */
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-image: url('../images/law_office_modern.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  border-top-right-radius: 8px;
  z-index: -1;
}

/* Quality Section Enhancement */
.quality-box {
  background-image: linear-gradient(to bottom right, var(--white) 85%, rgba(212, 175, 55, 0.1) 100%);
}

/* Coverage Section Map Enhancement */
.map-container {
  position: relative;
}

.map-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  border-top: 3px solid var(--secondary-gold);
  border-left: 3px solid var(--secondary-gold);
}

.map-container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  border-bottom: 3px solid var(--secondary-gold);
  border-right: 3px solid var(--secondary-gold);
}

/* About Section Background Enhancement */
.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/law_office_desk.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: -1;
}

/* Expertise Section Background Enhancement */
.expertise {
  position: relative;
  overflow: hidden;
}

.expertise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/law_office_interior_dark.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: -1;
}

/* Footer Enhancement */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.97) 0%, rgba(0, 51, 102, 0.95) 100%);
  z-index: -1;
}

/* Animation for Feature Boxes */
@keyframes pulse {
  0% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.2);
  }
  100% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
}

.feature-box:hover {
  animation: pulse 2s infinite;
}

/* Subtle hover effects for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}
