/* About Page Animations */

/* Fade In Down Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Flip In Animation */
@keyframes flipIn {
  from {
    opacity: 0;
    transform: rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0);
  }
}

/* Pop In Animation */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations */
.fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-up-delay {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoom-in {
  animation: zoomIn 0.7s ease-out both;
}

.flip-in {
  animation: flipIn 0.8s ease-out both;
  perspective: 1000px;
}

.pop-in {
  animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

/* About Hero Section */
.about-hero {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,100 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: auto 100%;
  animation: wave 15s linear infinite;
}

@keyframes wave {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1200px 0;
  }
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.about-hero .hero-icon {
  font-size: 80px;
  margin-bottom: 20px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  animation: bounce 2s ease-in-out infinite;
}

.about-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
}

.about-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 300;
}

/* Foundation Story Section */
.foundation-story {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-content {
  color: #1f2937;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.story-header i {
  font-size: 35px;
  color: #16a34a;
}

.story-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.story-content p:hover {
  color: #1f2937;
}

.story-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid #16a34a;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: popIn 0.6s ease-out both;
}

.highlight:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.15);
}

.highlight i {
  font-size: 20px;
  color: #16a34a;
  flex-shrink: 0;
}

.highlight span {
  font-weight: 600;
  color: #1f2937;
  transition: color 0.3s ease;
}

.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-image:hover img {
  transform: scale(1.05);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: #0284c7;
}

/* Mission, Vision & Values Section */
.mission-vision-values {
  padding: 80px 20px;
  background: white;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.mvv-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #dcfce7;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.mvv-card:hover::before {
  left: 100%;
}

.mvv-card:hover {
  transform: translateY(-15px);
  border-color: #16a34a;
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.2);
}

.card-icon {
  font-size: 50px;
  color: #16a34a;
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.mvv-card:hover .card-icon {
  transform: scale(1.2) rotate(10deg);
}

.mvv-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
}

.mvv-card p {
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.mvv-card:hover p {
  color: #1f2937;
}

/* Leadership Section */
.leadership {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
}

.leadership-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  transition: all 0.4s ease;
  max-width: 900px;
  margin: 0 auto;
}

.leadership-card:hover {
  box-shadow: 0 20px 50px rgba(22, 163, 74, 0.15);
}

.leadership-image {
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.leadership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.leadership-card:hover .leadership-image img {
  transform: scale(1.08) rotate(1deg);
}

.leadership-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadership-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif;
}

.leadership-content .role {
  color: #16a34a;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leadership-content .bio {
  color: #475569;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.leadership-content:hover .bio {
  color: #1f2937;
}

.qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #16a34a;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.badge:hover {
  background: #16a34a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(22, 163, 74, 0.3);
}

.badge i {
  font-size: 1rem;
}

/* Branches Section */
.branches {
  padding: 80px 20px;
  background: white;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.branch-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #bae6fd;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.branch-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.branch-card:hover::after {
  transform: translateX(100%);
}

.branch-card:hover {
  transform: translateY(-10px) rotateY(5deg);
  border-color: #0284c7;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.2);
}

.branch-icon {
  font-size: 45px;
  color: #0284c7;
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.branch-card:hover .branch-icon {
  transform: scale(1.2) bounce;
  animation: bounce 0.6s ease-out;
}

.branch-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.branch-card p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.branch-card:hover p {
  color: #1f2937;
}

/* Trust & Compliance Section */
.trust-compliance {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-item {
  background: white;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  border-bottom: 4px solid transparent;
  position: relative;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a34a, #059669);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.trust-item:hover::before {
  transform: scaleX(1);
}

.trust-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(22, 163, 74, 0.15);
}

.trust-icon {
  font-size: 45px;
  color: #16a34a;
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.trust-item:hover .trust-icon {
  transform: scale(1.2) rotateY(360deg);
}

.trust-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.trust-item p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.2rem;
  }

  .about-hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-highlights {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: 300px;
  }

  .mvv-grid {
    gap: 30px;
  }

  .leadership-card {
    grid-template-columns: 1fr;
  }

  .leadership-content {
    padding: 35px;
  }

  .leadership-image {
    min-height: 300px;
  }

  .story-header h2 {
    font-size: 2rem;
  }

  .leadership-content h3 {
    font-size: 1.5rem;
  }
}
