/**
 * About Page Custom Styles
 * Animated backgrounds and enhanced visuals
 */

/* Animated About Image */
.about-image-animated {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-image-animated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.2) 0%,
    rgba(0, 242, 254, 0.1) 100%
  );
  z-index: 1;
  animation: shimmer 3s ease-in-out infinite;
}

.about-image-animated img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-animated:hover img {
  transform: scale(1.05);
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Activity Icons Animation */
.single-activity {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.single-activity:hover {
  transform: translateY(-10px);
}

.single-activity-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  animation: float 4s ease-in-out infinite;
  transition: all 0.4s ease;
}

.activity .single-activity:nth-child(1) .single-activity-icon {
  animation-delay: 0s;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity:nth-child(2) .single-activity-icon {
  animation-delay: 0.5s;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.activity:nth-child(3) .single-activity-icon {
  animation-delay: 1s;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.activity:nth-child(4) .single-activity-icon {
  animation-delay: 1.5s;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.single-activity:hover .single-activity-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Teacher Card Enhancement */
.single-teachers-column {
  transition: all 0.4s ease;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.single-teachers-column:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.teachers-image-column {
  position: relative;
  overflow: hidden;
}

.teachers-image-column img {
  transition: transform 0.5s ease;
}

.single-teachers-column:hover .teachers-image-column img {
  transform: scale(1.1);
}

.image-hover {
  transition: all 0.4s ease;
}

/* Skills Section Background */
.skill-and-experience-area {
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.skill-and-experience-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite;
  z-index: 0;
}

.skill-and-experience-area .container {
  position: relative;
  z-index: 1;
}

@keyframes bgPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Progress Bars Animation */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Breadcrumb Enhancement */
.breadcrumb-banner-area {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding-top: 20px !important;
  margin-top: 0;
}

.breadcrumb-banner-area::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.breadcrumb-text {
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
}

/* School/Graduation icon for about page */
.breadcrumb-banner-area .breadcrumb-text h1::before {
  content: "\f19d";
  font-family: FontAwesome;
  margin-right: 15px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Enhanced breadcrumb styling */
.breadcrumb-banner-area .breadcrumb-text h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 0.8s ease-out;
  padding-top: 22px;
}

.breadcrumb-banner-area .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.breadcrumb-banner-area .breadcrumb a:hover {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .breadcrumb-text h1::before {
    display: none;
  }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .about-image-animated {
    margin-top: 30px;
  }

  .single-activity-icon {
    animation: none;
  }

  .single-activity:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 767px) {
  .single-activity-icon {
    width: 100px;
    height: 100px;
  }

  .single-activity-icon i {
    font-size: 40px;
  }
}
