/* Vision & Mission Toggle Section - iOS 18 Design System */

.vision-mission-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 12px 32px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  font-family: var(--font-primary);
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.toggle-btn:hover {
  border-color: var(--ios-cyan);
  color: var(--ios-cyan);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0, 0, 0, 0.08));
}

.toggle-btn:active {
  transform: scale(0.98);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--ios-cyan), var(--ios-teal));
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(85, 190, 240, 0.3);
  font-weight: var(--font-semibold, 600);
}

/* Vision & Mission Content Containers */
.vision-mission-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.5s;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.vision-mission-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  position: relative;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0s;
  pointer-events: auto;
}

/* Stagger animation for cards - iOS smooth animations */
.vision-mission-content.active .grid .card {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.vision-mission-content.active .grid .card:nth-child(1) {
  animation-delay: 0.15s;
}

.vision-mission-content.active .grid .card:nth-child(2) {
  animation-delay: 0.25s;
}

.vision-mission-content.active .grid .card:nth-child(3) {
  animation-delay: 0.35s;
}

/* Section header animation */
.vision-mission-content.active .section-header {
  animation: fadeInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* iOS-style animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container adjustment to handle absolute positioning */
#mission .container {
  position: relative;
  min-height: 700px;
  transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .vision-mission-toggle {
    gap: 12px;
    margin-bottom: 32px;
  }

  .toggle-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  #mission .container {
    min-height: 800px;
  }
}

@media (max-width: 480px) {
  .vision-mission-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .toggle-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  #mission .container {
    min-height: 900px;
  }
}

/* Smooth transition effects */
.vision-mission-content {
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Button press effect */
.toggle-btn:active {
  transform: scale(0.98);
}
