/* Mission and Vision Styles */

/* Common section styles */
.mission-vision,
.strategic-pillars,
.our-values {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Mission and Vision Section */
.mission-vision {
  background-color: #fff;
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  color: #333;
}

.mission-vision::before,
.mission-vision::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.mission-vision::before {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 217, 87, 0.05) 0%, rgba(126, 217, 87, 0) 70%);
  top: -100px;
  left: -100px;
  animation: pulse-green 8s infinite alternate ease-in-out;
}

.mission-vision::after {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0) 70%);
  bottom: -50px;
  right: -50px;
  animation: pulse-yellow 7s infinite alternate ease-in-out;
}

@keyframes pulse-green {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2) translate(50px, 30px);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
}

@keyframes pulse-yellow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
  60% {
    transform: scale(1.3) translate(-40px, -20px);
    opacity: 0.6;
  }
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.3;
  }
}

.mission-vision-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 30px;
}

/* Decorative floating elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.element {
  position: absolute;
  opacity: 0.4;
  pointer-events: none;
}

.element.circle {
  border-radius: 50%;
  border: 2px solid;
}

.element.square {
  transform: rotate(45deg);
  border: 2px solid;
}

.element.triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid;
  background-color: transparent !important;
}

.element.green {
  border-color: rgba(126, 217, 87, 0.4);
  background-color: rgba(126, 217, 87, 0.1);
}

.element.yellow {
  border-color: rgba(255, 193, 7, 0.4);
  background-color: rgba(255, 193, 7, 0.1);
}

.element.e1 {
  width: 20px;
  height: 20px;
  top: 15%;
  left: 10%;
  animation: float-around 20s infinite linear;
}

.element.e2 {
  width: 35px;
  height: 35px;
  top: 70%;
  left: 15%;
  animation: float-around 25s infinite linear reverse;
}

.element.e3 {
  top: 30%;
  right: 15%;
  animation: float-around 22s infinite linear;
}

.element.e4 {
  top: 80%;
  right: 10%;
  animation: float-around 18s infinite linear reverse;
}

.element.e5 {
  width: 15px;
  height: 15px;
  top: 40%;
  left: 30%;
  animation: float-around 15s infinite ease-in-out alternate;
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, 25px) rotate(90deg);
  }
  50% {
    transform: translate(0, 50px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 25px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Header section styling */
.mission-vision .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.mission-vision .section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  display: inline-block;
}

.mission-vision .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #7ED957, #29B6F6);
}

.mission-vision .section-header h2 span {
  color: #FFC107;
}

.mission-vision .subtitle {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 20px auto 0;
}

/* Cards styling */
.mission-vision-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.mission-card,
.vision-card {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.mission-card {
  border-top: 5px solid #7ED957;
  background-color: rgba(126, 217, 87, 0.08);
}

.vision-card {
  border-top: 5px solid #FFC107;
  background-color: rgba(255, 193, 7, 0.08);
}

/* Icon styling */
.mission-vision .icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.mission-card .icon-container {
  background-color: rgba(126, 217, 87, 0.15);
  border: 2px solid #7ED957;
  box-shadow: 0 5px 15px rgba(126, 217, 87, 0.2);
}

.vision-card .icon-container {
  background-color: rgba(255, 193, 7, 0.15);
  border: 2px solid #FFC107;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.mission-vision .icon {
  font-size: 32px;
}

.mission-card .icon i {
  color: #7ED957;
}

.vision-card .icon i {
  color: #FFC107;
}

/* Content styling */
.mission-card h3,
.vision-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

.mission-card h3,
.vision-card h3 {
  color: #FFC107;
}

.mission-card p,
.vision-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Keywords styling */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.keyword {
  padding: 6px 15px;
  background-color: rgba(126, 217, 87, 0.1);
  border: 1px solid rgba(126, 217, 87, 0.3);
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  color: #458a32;
  font-weight: 500;
}

/* Global impact styling */
.global-impact {
  background-color: rgba(41, 182, 246, 0.05);
  border: 1px solid rgba(41, 182, 246, 0.2);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.globe-icon {
  font-size: 24px;
  color: #FFC107;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.global-impact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1a91d1;
}

/* Strategic Pillars Section */
.strategic-pillars {
  background-color: #2A5226;
  color: white;
}

.pillars-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pillar-header {
  text-align: center;
  margin-bottom: 60px;
}

.pillar-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.pillar-header h2 span {
  color: #FFC107;
}

.pillar-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pillar-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.pillar-item::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 193, 7, 0.1);
  top: -40px;
  right: -40px;
  z-index: 1;
}

.pillar-icon {
  font-size: 36px;
  color: #FFC107;
  margin-bottom: 20px;
}

.pillar-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #FFC107;
}

.pillar-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Achievements Section (White Separator) */
.achievements-section {
  background-color: #fff;
  padding: 80px 0;
  position: relative;
}

.achievements-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.achievement-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.achievement-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.achievement-icon {
  font-size: 36px;
  color: #7ED957;
  margin-bottom: 15px;
}

.achievement-numbers {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1;
}

.achievement-item h3 {
  font-size: 18px;
  color: #666;
  margin: 0;
}

.counter {
  display: inline-block;
}

/* Values Section */
.our-values {
  background-color: #2A5226; /* Same green as strategic pillars */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: white;
}

.values-outer-container {
  position: relative;
}

/* Floating animated shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.2;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.circle {
  width: 100px;
  height: 100px;
  background-color: #FFC107;
  border-radius: 50%;
  top: 10%;
  left: 5%;
  animation-name: floatCircle;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 120px solid #7ED957;
  top: 50%;
  right: 10%;
  animation-name: floatTriangle;
}

.square {
  width: 80px;
  height: 80px;
  background-color: #AB47BC;
  transform: rotate(45deg);
  bottom: 15%;
  left: 20%;
  animation-name: floatSquare;
}

.squiggle {
  width: 120px;
  height: 40px;
  background: linear-gradient(90deg, #FFC107 25%, transparent 25%, transparent 50%, #FFC107 50%, #FFC107 75%, transparent 75%);
  background-size: 40px 40px;
  top: 30%;
  right: 20%;
  animation-name: floatSquiggle;
}

@keyframes floatCircle {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(100px, 50px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes floatTriangle {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-80px, 30px) rotate(120deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes floatSquare {
  0% { transform: translate(0, 0) rotate(45deg); }
  50% { transform: translate(60px, -60px) rotate(90deg); }
  100% { transform: translate(0, 0) rotate(405deg); }
}

@keyframes floatSquiggle {
  0% { transform: translate(0, 0) skew(0deg); }
  25% { transform: translate(-30px, 30px) skew(5deg); }
  75% { transform: translate(30px, -30px) skew(-5deg); }
  100% { transform: translate(0, 0) skew(0deg); }
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.values-header {
  text-align: center;
  margin-bottom: 60px;
}

.values-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: white;
}

.values-header h2 span {
  color: #FFC107; /* Yellow for highlighting, like in strategic pillars */
}

.values-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.value-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  border-radius: 15px;
  padding: 30px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy animation */
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.value-item:hover {
  transform: translateY(-15px) scale(1.03);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.value-item:hover .value-hover-indicator {
  transform: scaleX(1);
}

.value-hover-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFC107, #7ED957, #FFC107);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.value-icon-container {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.value-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 193, 7, 0.2); /* Subtle yellow background */
  border-radius: 50%;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.value-item:hover .value-icon-bg {
  transform: scale(1.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.value-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #FFC107; /* Yellow icons */
  z-index: 2;
  transition: all 0.3s ease;
}

.value-item:hover .value-icon i {
  transform: scale(1.2) rotate(10deg);
  animation: shake 1s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
}

.value-content {
  position: relative;
  z-index: 2;
}

.value-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #FFC107; /* Yellow for heading */
  transition: all 0.3s ease;
}

.value-item:hover h3 {
  transform: translateX(5px);
}

.value-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.value-item:hover p {
  color: white;
}

/* Delay animations for cascading effect */
.animate__fadeInUp[data-delay="100"] {
  animation-delay: 0.1s;
}

.animate__fadeInUp[data-delay="200"] {
  animation-delay: 0.2s;
}

.animate__fadeInUp[data-delay="300"] {
  animation-delay: 0.3s;
}

.animate__fadeInUp[data-delay="400"] {
  animation-delay: 0.4s;
}

.animate__fadeInUp[data-delay="500"] {
  animation-delay: 0.5s;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .mission-vision-cards {
    flex-direction: column;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .value-item {
    flex: 0 0 calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .mission-card,
  .vision-card {
    min-width: 100%;
  }
  
  .pillar-header h2,
  .values-header h2 {
    font-size: 28px;
  }
  
  .value-item {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .value-item {
    flex: 0 0 100%;
  }
}
