/* ========================================
   ABOUT PAGE MODERN STYLES (about.html)
======================================== */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* About Section Modern Layout */
.sub_page .about_section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

.sub_page .about_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 187, 240, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.about_section .container {
  position: relative;
  z-index: 2;
}

/* Heading Container */
.about_section .heading_container {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.about_section .heading_container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about_section .heading_container p {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* About Features Grid */
.about_features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.about_features .feature_item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.about_features .feature_item:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(102, 126, 234, 0.1);
}

.about_features .feature_item i {
  font-size: 1.5rem;
  color: #667eea;
  min-width: 24px;
}

.about_features .feature_item span {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a202c;
}

/* Mission and Vision Cards - Fixed Visibility */
.mission_vision_section {
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}

.mission_vision_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-bottom: 0;
}

.mission_card, 
.vision_card {
  background: white;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.mission_card {
  animation-delay: 0.3s;
}

.vision_card {
  animation-delay: 0.5s;
}

.mission_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px 24px 0 0;
}

.vision_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 24px 24px 0 0;
}

.mission_card:hover,
.vision_card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 30px rgba(102, 126, 234, 0.1);
}

.mission_card .card_icon,
.vision_card .card_icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  transition: all 0.3s ease;
}

.vision_card .card_icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mission_card:hover .card_icon,
.vision_card:hover .card_icon {
  transform: scale(1.1) rotate(5deg);
}

.mission_card .card_icon i,
.vision_card .card_icon i {
  font-size: 2rem;
  color: white;
}

.mission_card h4,
.vision_card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 25px;
  line-height: 1.3;
}

.mission_card p,
.vision_card p {
  font-family: 'Inter', sans-serif;
  color: #4a5568;
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0;
}

/* Values Section - Enhanced Styling */
.values_section {
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}

.values_section .heading_container {
  text-align: center;
  margin-bottom: 80px;
}

.values_section .heading_container h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.values_section .heading_container p {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.values_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 0;
}

.value_card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.value_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transition: left 0.6s ease;
}

.value_card:nth-child(1) { animation-delay: 0.1s; }
.value_card:nth-child(2) { animation-delay: 0.2s; }
.value_card:nth-child(3) { animation-delay: 0.3s; }
.value_card:nth-child(4) { animation-delay: 0.4s; }

.value_card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 8px 30px rgba(102, 126, 234, 0.1);
}

.value_card:hover::before {
  left: 100%;
}

.value_card .value_icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.value_card:hover .value_icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.value_card h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.3;
}

.value_card p {
  font-family: 'Inter', sans-serif;
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Ensure Value Card Icons are Visible */
.value_card .value_icon i {
  font-family: 'FontAwesome' !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: auto !important;
  color: white !important;
  font-size: 2rem !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Specific icon fixes with Unicode fallbacks */
.value_card .value_icon i.fa-lightbulb-o::before {
  content: "\f0eb" !important; /* FontAwesome lightbulb-o Unicode */
  font-family: 'FontAwesome' !important;
}

.value_card .value_icon i.fa-shield::before {
  content: "\f132" !important; /* FontAwesome shield Unicode */
  font-family: 'FontAwesome' !important;
}

.value_card .value_icon i.fa-trophy::before {
  content: "\f091" !important; /* FontAwesome trophy Unicode */
  font-family: 'FontAwesome' !important;
}

.value_card .value_icon i.fa-users::before {
  content: "\f0c0" !important; /* FontAwesome users Unicode */
  font-family: 'FontAwesome' !important;
}

/* CSS-only fallback icons if FontAwesome fails */
.value_card .value_icon[data-fallback="innovation"]::after {
  content: "💡";
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value_card .value_icon[data-fallback="integrity"]::after {
  content: "🛡️";
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value_card .value_icon[data-fallback="excellence"]::after {
  content: "🏆";
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value_card .value_icon[data-fallback="collaboration"]::after {
  content: "👥";
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show fallback if FontAwesome icon is not visible */
.value_card .value_icon:not(:has(i:before))::after {
  opacity: 1;
}

/* Statistics Section - Fixed Visibility and Layout */
.stats_section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  border-radius: 25px;
  margin: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.stats_section::before {
  content: '';
  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 100 100"><defs><pattern id="stats-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stats-pattern)"/></svg>');
}

.stats_section .container {
  position: relative;
  z-index: 1;
}

.stats_section .row {
  position: relative;
  z-index: 1;
}

.stat_item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.stat_item:nth-child(1) { animation-delay: 0.1s; }
.stat_item:nth-child(2) { animation-delay: 0.2s; }
.stat_item:nth-child(3) { animation-delay: 0.3s; }
.stat_item:nth-child(4) { animation-delay: 0.4s; }

.stat_item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.stat_number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: white;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat_label {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: white;
  opacity: 0.9;
  font-weight: 500;
}

/* Statistics Section Enhancement */
.about_stats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  border-radius: 25px;
  margin: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.about_stats::before {
  content: '';
  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 100 100"><defs><pattern id="about-stats-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23about-stats-pattern)"/></svg>');
}

.about_stats .container {
  position: relative;
  z-index: 1;
}

.about_stats h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about_stats_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

/* Team Section (if exists) */
.team_section {
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

/* CTA Section Enhancement */
.about_cta {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border-radius: 24px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.about_cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about_cta:hover::before {
  opacity: 1;
}

.about_cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about_cta p {
  color: #4a5568;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.about_cta .btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.about_cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about_section .heading_container h2 {
    font-size: 3rem;
  }
  
  .mission_vision_cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .values_grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .value_card {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .sub_page .about_section {
    padding: 60px 0 80px;
  }
  
  .about_section .heading_container {
    margin-bottom: 60px;
  }
  
  .about_section .heading_container h2 {
    font-size: 2.5rem;
  }
  
  .about_features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 60px;
  }
  
  .mission_vision_section {
    margin-bottom: 80px;
  }
  
  .mission_card, 
  .vision_card {
    padding: 40px 30px;
  }
  
  .mission_card h4,
  .vision_card h4 {
    font-size: 1.75rem;
  }
  
  .values_section .heading_container h3 {
    font-size: 2.25rem;
  }
  
  .values_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .value_card {
    padding: 30px 24px;
  }
  
  .stats_section {
    padding: 60px 0;
    margin: 60px 0;
  }
  
  .stat_item {
    padding: 25px 15px;
    margin-bottom: 20px;
  }
  
  .stat_number {
    font-size: 2.5rem;
  }
  
  .about_cta {
    padding: 60px 30px;
  }
  
  .about_cta h3 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .about_section .heading_container h2 {
    font-size: 2rem;
  }
  
  .mission_card, 
  .vision_card {
    padding: 30px 20px;
  }
  
  .mission_card .card_icon,
  .vision_card .card_icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .mission_card .card_icon i,
  .vision_card .card_icon i {
    font-size: 1.5rem;
  }
  
  .mission_card h4,
  .vision_card h4 {
    font-size: 1.5rem;
  }
  
  .values_section .heading_container h3 {
    font-size: 1.875rem;
  }
  
  .values_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .value_card .value_icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .value_card h5 {
    font-size: 1.25rem;
  }
  
  .stat_item {
    padding: 20px 10px;
  }
  
  .stat_number {
    font-size: 2rem;
  }
  
  .stat_label {
    font-size: 1rem;
  }
  
  .about_cta h3 {
    font-size: 1.75rem;
  }
  
  .about_cta .btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .mission_card,
  .vision_card,
  .value_card,
  .about_features {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .mission_card:hover,
  .vision_card:hover,
  .value_card:hover,
  .about_cta .btn:hover {
    transform: translateY(-2px);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .mission_card,
  .vision_card,
  .value_card,
  .about_cta {
    border: 2px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sub_page .about_section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  }
  
  .about_section .heading_container h2 {
    color: #f7fafc;
  }
  
  .about_section .heading_container p {
    color: #cbd5e0;
  }
  
  .mission_card,
  .vision_card,
  .value_card,
  .about_cta {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .mission_card h4,
  .vision_card h4,
  .value_card h5,
  .about_cta h3 {
    color: #f7fafc;
  }
  
  .mission_card p,
  .vision_card p,
  .value_card p,
  .about_cta p {
    color: #cbd5e0;
  }
}
