/* Founders & Leadership Section - Cool Modern UI/UX Design */

/* Section Title Styling - Enhanced with gradient effects */
#founders .section-title {
  color: var(--text-primary, #ffffff) !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-size: 3rem !important;
  margin-bottom: 1rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3) !important;
  position: relative !important;
}

#founders .section-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100px !important;
  height: 4px !important;
  background: linear-gradient(90deg, #667eea, #f093fb) !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5) !important;
}

#founders .section-subtitle {
  color: var(--text-secondary, #a0a0a0) !important;
  text-align: center !important;
  font-size: 1.25rem !important;
  margin-bottom: 3rem !important;
  font-weight: 400 !important;
}

/* Founders Grid Layout - Enhanced modern grid with cool spacing */
.founders-grid-layout {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
  gap: 3rem !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 3rem 1rem !important;
  justify-items: center !important;
  align-items: stretch !important;
  position: relative !important;
}

.founders-grid-layout::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 75% 75%, rgba(240, 147, 251, 0.1) 0%, transparent 50%) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Individual Founder Card - Cool modern design with glassmorphism */
.founder-card {
  width: 100% !important;
  max-width: 420px !important;
  height: 500px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 5% !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
}

/* Enhanced border glow effect */
.founder-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.3) 0%, 
    rgba(240, 147, 251, 0.3) 50%, 
    rgba(118, 75, 162, 0.3) 100%) !important;
  border-radius: 5% !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  z-index: -1 !important;
  filter: blur(1px) !important;
}

.founder-card:hover::before {
  opacity: 1 !important;
}

.founder-card:hover {
  transform: translateY(-12px) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Card Header - Enhanced with subtle gradient overlay */
.founder-card-header {
  background: transparent !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  height: 300px !important;
  border-radius: 5% 5% 0 0 !important;
}

/* Subtle overlay for enhanced depth */
.founder-card-header::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(
    135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    transparent 50%, 
    rgba(240, 147, 251, 0.1) 100%
  ) !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.founder-card:hover .founder-card-header::after {
  opacity: 1 !important;
}

/* Remove the shimmer effect since there's no background */
.founder-card-header::before {
  display: none !important;
}

/* Founder Avatar - Enhanced with cool effects */
.founder-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 15% !important;
  border: none !important;
  object-fit: cover !important;
  position: relative !important;
  z-index: 2 !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  filter: contrast(1.1) saturate(1.1) !important;
}

.founder-card:hover .founder-avatar {
  transform: scale(1.05) !important;
  filter: contrast(1.2) saturate(1.2) brightness(1.1) !important;
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Fallback for missing images - with 15% border radius */
.founder-avatar[src=""],
.founder-avatar:not([src]) {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
              linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
              linear-gradient(-45deg, transparent 75%, #f0f0f0 75%) !important;
  background-size: 20px 20px !important;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted, rgba(255, 255, 255, 0.6)) !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  border-radius: 15% !important; /* 15% border radius for fallback images */
}

/* Card Body/Content - Enhanced typography and spacing */
.founder-card-body {
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex-grow: 1 !important;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%) !important;
  position: relative !important;
}

.founder-card-body::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60px !important;
  height: 1px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%) !important;
}

/* Founder Name Styling - Enhanced with gradient text */
.founder-name {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--text-primary, #ffffff) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.2 !important;
  text-align: center !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0f3ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
}

/* Founder Title/Position Styling - Enhanced with glow effect */
.founder-title {
  font-size: 1.25rem !important;
  color: var(--accent-color, #ffd700) !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  position: relative !important;
}

.founder-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 30px !important;
  height: 2px !important;
  background: linear-gradient(90deg, #ffd700, #ffb347) !important;
  border-radius: 1px !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

/* Social Icons Container - Enhanced with modern styling */
.founder-social-icons {
  display: flex !important;
  gap: 1.25rem !important;
  justify-content: center !important;
  margin-top: auto !important;
  padding-top: 1rem !important;
}

/* Individual Social Links - Cool glassmorphism design */
.founder-social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 15px !important;
  color: var(--text-secondary, rgba(255, 255, 255, 0.9)) !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1) !important;
  backdrop-filter: blur(15px) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Cool hover effect with gradient background */
.founder-social-link::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.8) 0%, 
    rgba(240, 147, 251, 0.8) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  z-index: -1 !important;
}

.founder-social-link:hover::before {
  opacity: 1 !important;
}

.founder-social-link:hover {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.05) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 
    0 10px 25px rgba(102, 126, 234, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.founder-social-link svg {
  width: 22px !important;
  height: 22px !important;
  position: relative !important;
  z-index: 1 !important;
  transition: transform 0.3s ease !important;
}

.founder-social-link:hover svg {
  transform: scale(1.1) !important;
}

/* Shimmer Animation for loading states */
@keyframes shimmerFounder {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Cool floating animation for cards */
@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Gradient animation for backgrounds */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Pulse glow effect */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
  }
}

/* Add subtle floating animation to cards */
.founder-card {
  animation: floatCard 6s ease-in-out infinite !important;
}

.founder-card:nth-child(1) {
  animation-delay: 0s !important;
}

.founder-card:nth-child(2) {
  animation-delay: 2s !important;
}

.founder-card:nth-child(3) {
  animation-delay: 4s !important;
}

/* Add gradient animation to the grid background */
.founders-grid-layout::before {
  background-size: 400% 400% !important;
  animation: gradientShift 8s ease infinite !important;
}

/* Responsive Design */

/* Large screens - Enhanced for better visual impact */
@media (min-width: 1200px) {
  .founders-grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
    gap: 3.5rem !important;
  }
  
  .founder-card {
    max-width: 460px !important;
    height: 550px !important;
  }
  
  .founder-card-header {
    height: 340px !important;
  }
  
  .section-title {
    font-size: 3.5rem !important;
  }
  
  .founder-name {
    font-size: 2rem !important;
  }
  
  .founder-title {
    font-size: 1.4rem !important;
  }
  
  .founder-social-link {
    width: 55px !important;
    height: 55px !important;
  }
  
  .founder-social-link svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .founders-grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2rem !important;
  }
  
  .founder-card {
    max-width: 380px !important;
    height: 430px !important;
  }
  
  .founder-card-header {
    height: 260px !important;
  }
}

/* Small screens and tablets - Maintaining cool effects */
@media (max-width: 767px) {
  .founders-grid-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    padding: 2rem 1rem !important;
  }
  
  .founder-card {
    max-width: 100% !important;
    height: 420px !important;
  }
  
  .founder-card-header {
    height: 240px !important;
  }
  
  .founder-card-body {
    padding: 1.5rem 1rem !important;
  }
  
  .founder-name {
    font-size: 1.4rem !important;
  }
  
  .founder-title {
    font-size: 1.1rem !important;
  }
  
  .founder-social-link {
    width: 42px !important;
    height: 42px !important;
  }
  
  .founder-social-link svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .section-title {
    font-size: 2.5rem !important;
  }
  
  .section-subtitle {
    font-size: 1.1rem !important;
  }
}

/* Mobile phones - Optimized cool design */
@media (max-width: 480px) {
  .founders-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 2rem 1rem !important;
  }
  
  .founder-card {
    max-width: 100% !important;
    height: 450px !important;
  }
  
  .founder-card-header {
    height: 280px !important;
  }
  
  .founder-card-body {
    padding: 1.75rem 1.25rem !important;
  }
  
  .founder-name {
    font-size: 1.5rem !important;
  }
  
  .founder-title {
    font-size: 1.15rem !important;
  }
  
  .section-title {
    font-size: 2.25rem !important;
  }
  
  .section-subtitle {
    font-size: 1rem !important;
  }
  
  .founder-social-link {
    width: 45px !important;
    height: 45px !important;
  }
  
  .founder-social-link svg {
    width: 21px !important;
    height: 21px !important;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .founder-card {
    height: 380px !important;
    border-radius: 5% !important; /* Keep 5% for card */
  }
  
  .founder-card-header {
    height: 220px !important;
    border-radius: 5% 5% 0 0 !important; /* Match card radius */
  }
  
  .founder-avatar {
    border-radius: 15% !important; /* Keep 15% for images */
  }
  
  .founder-card-body {
    padding: 1rem !important;
  }
  
  .founder-name {
    font-size: 1.2rem !important;
  }
  
  .founder-title {
    font-size: 0.95rem !important;
  }
  
  .founder-social-icons {
    gap: 0.75rem !important;
  }
  
  .founder-social-link {
    width: 36px !important;
    height: 36px !important;
  }
  
  .founder-social-link svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .founder-card {
    border: 2px solid var(--text-primary, #ffffff) !important;
    background: rgba(0, 0, 0, 0.9) !important;
  }
  
  .founder-name,
  .founder-title {
    color: var(--text-primary, #ffffff) !important;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .founder-card,
  .founder-avatar,
  .founder-social-link {
    transition: none !important;
  }
}
