/* About Page - Modern 2025 Design Styles */

/* Base fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Modern button base styles */
.modern-btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.modern-btn:hover::before {
  left: 100%;
}

/* Hero section enhanced animations */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content {
  animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Floating quote animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.floating-quote {
  animation: float 6s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #1e293b, #1e40af, #3730a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Pillar cards hover effects */
.pillar-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(59, 130, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Enhanced shadow effects */
.shadow-luxury {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-luxury-hover:hover {
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Team member cards enhanced styling */
.team-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover::after {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-5px);
}

/* Mission section text shadows for better readability */
.mission-text {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0d9488, #2563eb);
}

/* Enhanced typography */
.about-page {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive design enhancements */
@media (max-width: 768px) {
  .modern-btn {
    padding: 1rem 2rem;
    font-size: 0.875rem;
  }
  
  .pillar-card {
    padding: 1.5rem;
  }
  
  .team-card {
    padding: 1rem;
  }
  
  .floating-quote {
    position: static;
    margin-top: 2rem;
    transform: none;
    animation: none;
  }
}

@media (max-width: 640px) {
  .about-page h1 {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }
  
  .about-page h2 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .modern-btn {
    width: 100%;
    padding: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
  }
  
  .modern-btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-quote {
    animation: none;
  }
  
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  .about-page {
    background: white !important;
  }
  
  .modern-btn {
    border: 1px solid #000;
    background: white !important;
    color: black !important;
  }
  
  .floating-quote {
    animation: none;
    position: static;
    margin: 1rem 0;
  }
}

/* Focus styles for accessibility */
.modern-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading animation for images */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Enhanced spacing and typography for content */
.about-page p {
  text-align: justify;
  line-height: 1.7;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page h4,
.about-page h5,
.about-page h6 {
  line-height: 1.3;
  font-weight: 700;
}

/* Story section specific enhancements */
.story-section {
  position: relative;
}

.story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
}

/* Pillar icon hover animation */
.pillar-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Team member initials styling */
.team-initials {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(10px)) {
  .glass-card {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Enhanced button states */
.modern-btn:active {
  transform: translateY(1px) scale(0.98);
}

.modern-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Content container max-width for better readability */
.content-container {
  max-width: 65ch;
}

/* Enhanced visual hierarchy */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
  margin: 4rem 0;
}

/* Image lazy loading placeholder */
.image-placeholder {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Modern selection styling */
::selection {
  background: rgba(20, 184, 166, 0.2);
  color: #0f172a;
}

::-moz-selection {
  background: rgba(20, 184, 166, 0.2);
  color: #0f172a;
}

/* Leadership & Culture Image Styling */
.leadership-image-container {
  width: 100%;
  height: auto;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.leadership-team-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.leadership-team-image:hover {
  transform: scale(1.02);
}

/* Responsive adjustments for leadership image */
@media (max-width: 1024px) {
  .leadership-image-container {
    min-height: 350px;
  }
  
  .leadership-team-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .leadership-image-container {
    min-height: 300px;
  }
  
  .leadership-team-image {
    max-height: 400px;
  }
}

@media (max-width: 640px) {
  .leadership-image-container {
    min-height: 250px;
    height: 350px;
  }
  
  .leadership-team-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
}