/* ============================================
   ABOUT PAGE STYLES - OPTIMIZED
   CoreClasses - SEO & Performance Ready
   ============================================ */

/* ===== ABOUT HERO SECTION ===== */
.about-hero {
  padding: var(--spacing-5xl) 0 var(--spacing-4xl);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0; /* Shorthand for top/left/right/bottom */
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #fce7f3 100%);
  opacity: 0.8;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: patternMove 20s ease-in-out infinite;
  will-change: transform; /* Performance Hint */
}

@keyframes patternMove {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  flex-wrap: wrap; /* Safety for small screens */
}

.breadcrumb a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.breadcrumb .separator { color: var(--color-gray-400); }
.breadcrumb .current { color: var(--color-dark); font-weight: 600; }

/* Hero Content */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-primary); /* Thinner border looks cleaner */
  color: var(--color-primary);
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInDown 0.6s ease backwards;
}

.hero-title {
  font-size: 3.5rem; /* Fallback */
  font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive typography */
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  animation: fadeInUp 0.8s ease backwards;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* Standard way to hide text for gradient */
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4b5563; /* Accessible gray */
  line-height: 1.6;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 1s ease backwards;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.95); /* Better readability */
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1.2s ease backwards;
  backdrop-filter: blur(10px); /* Modern glass effect */
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-top: 5px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-gray-300);
}

/* ===== MISSION & VISION SECTION ===== */
.mission-vision-section {
  padding: var(--spacing-5xl) 0;
  background-color: var(--color-white);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.mission-card, .vision-card {
  padding: 3rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%; /* Equal height */
}

.mission-card {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #bfdbfe;
}

.vision-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
}

/* Hover Shine Effect */
.mission-card::before, .vision-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mission-card:hover::before, .vision-card:hover::before { opacity: 1; }

.mission-card:hover, .vision-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 70px; height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mission-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.vision-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ===== VALUES SECTION ===== */
.values-section {
  padding: var(--spacing-5xl) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  padding: 2.5rem;
  background-color: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.value-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section {
  padding: 5rem 0;
  background-color: white;
}

.philosophy-list {
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.philosophy-item:hover {
  border-color: var(--color-primary-light);
  transform: translateX(10px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.philosophy-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(31, 60, 136, 0.1);
  color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fff5f7 0%, #fffbeb 100%);
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.certificates-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
  z-index: 0;
}

.certificates-section .container { position: relative; z-index: 1; }

.certificates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section-description {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 2rem;
}

.certificate-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #4b5563;
  font-weight: 500;
}

.feature-item svg {
  color: #10b981; /* Success Green */
  flex-shrink: 0;
}

.certificate-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-verify-certificate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-verify-certificate:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(31, 60, 136, 0.15);
}

/* Certificate Preview Mockup */
.certificate-mockup {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.3);
  text-align: center;
  color: white;
  position: relative;
  /* Use will-change for performance */
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.certificate-title {
  font-family: 'Poppins', serif; /* Simulating formal text */
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.certificate-name {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  display: inline-block;
  padding-bottom: 5px;
  margin: 1.5rem 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 0;
  background-color: white;
}

.cta-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #4338ca 100%);
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
}

/* Animated Circles Background */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.circle-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.circle-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: #e0e7ff;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Reuse existing buttons but ensure contrast */
.btn-primary-cta {
  background: white;
  color: var(--color-primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-secondary-cta {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-primary-cta:hover { transform: translateY(-2px); }
.btn-secondary-cta:hover { background: rgba(255,255,255,0.2); }

/* ===== ANIMATION CLASSES (Used by JS) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-pattern, .certificate-mockup, .circle-1, .circle-2, .circle-3 {
    animation: none !important;
  }
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 992px) {
  .mission-vision-grid, 
  .values-grid, 
  .certificates-grid {
    grid-template-columns: 1fr; /* Stack vertically on tablets */
    gap: 3rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .philosophy-item {
    flex-direction: column; /* Icon on top */
    text-align: center;
  }
  
  .philosophy-icon { margin: 0 auto 1rem; }
  .philosophy-item:hover { transform: none; } /* Disable hover move on touch */
  
  .cta-buttons { flex-direction: column; }
  .btn-primary-cta, .btn-secondary-cta { width: 100%; justify-content: center; }
}