/* Modern About Section Styles */

.modern-about {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  position: relative;
  overflow: hidden;
}

.modern-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Section Header */
.about-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary, #0f172a);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary, #0f172a) 0%, var(--secondary, #1e293b) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section-header .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--secondary, #1e293b);
  max-width: 600px;
  margin: 0 auto;
}

/* Mission and Values Cards */
.mission-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.mission-card,
.values-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mission-card::before,
.values-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
}

.mission-card:hover,
.values-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.mission-card h3,
.values-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary, #0f172a);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mission/Values Card Icons - Fixed oval issue */
.value-icon {
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1;
}

.value-icon i {
  line-height: 1 !important;
  display: block !important;
}

.mission-card .icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.values-card .icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--secondary, #1e293b);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list li::before {
  content: '✓';
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Company Timeline */
.timeline-container {
  position: relative;
  margin: 4rem 0;
}

.timeline-header {
  text-align: center;
  margin-bottom: 3rem;
}

.timeline-header h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary, #0f172a);
  margin-bottom: 1rem;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(odd) {
  animation-delay: 0.4s;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  backdrop-filter: blur(20px);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-year {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.3);
  z-index: 10;
}

.timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary, #0f172a);
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--secondary, #1e293b);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Technology Stack - Fixed animations */
.tech-stack-section {
  margin: 4rem 0;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-category {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.tech-category h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.tech-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tech-item span {
  font-weight: 500;
  color: var(--primary, #0f172a);
  font-size: 0.95rem;
  align-self: flex-start;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

/* Achievement Statistics - Fixed grid layout */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  justify-items: center;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 220px;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.3);
}

.achievement-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent, #0052cc);
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1;
}

.achievement-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary, #1e293b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Team Section - Refined design */
.team-section {
  margin: 4rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  display: flex;
  justify-content: center;
}

.member-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 320px;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #0052cc) 0%, var(--accent-light, #4f9bff) 100%);
}

.member-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.member-avatar {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.member-card:hover .avatar-placeholder {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.member-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary, #0f172a);
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 1rem;
  color: var(--secondary, #1e293b);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  background: rgba(0, 82, 204, 0.1);
  color: var(--accent, #0052cc);
  padding: 0.4rem 0.8rem;
  border-radius: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 82, 204, 0.2);
}

.skill-tag:hover {
  background: var(--accent, #0052cc);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-content {
    width: calc(100% - 5rem);
    margin-left: 5rem !important;
    margin-right: 0 !important;
  }
  
  .timeline-year {
    left: 2rem;
  }
  
  .mission-values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-section-header h2 {
    font-size: 2.5rem;
  }
  
  .tech-grid,
  .stats-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    width: calc(100% - 4rem);
    margin-left: 4rem !important;
  }
  
  .timeline-year {
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    font-size: 0.8rem;
  }
  
  .timeline-line {
    left: 1.5rem;
  }
}

@media (max-width: 576px) {
  .mission-card,
  .values-card,
  .tech-category,
  .stat-card,
  .team-card {
    padding: 1.5rem;
  }
  
  .timeline-content {
    width: calc(100% - 3rem);
    margin-left: 3rem !important;
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .team-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

/* Dark Mode Support */
.dark-mode .modern-about {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.dark-mode .mission-card,
.dark-mode .values-card,
.dark-mode .timeline-content,
.dark-mode .tech-category,
.dark-mode .stat-card,
.dark-mode .team-card {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.dark-mode .about-section-header h2,
.dark-mode .timeline-header h3,
.dark-mode .tech-stack-header h3,
.dark-mode .achievement-header h3,
.dark-mode .team-header h3,
.dark-mode .mission-card h3,
.dark-mode .values-card h3,
.dark-mode .tech-category h4,
.dark-mode .timeline-content h4,
.dark-mode .team-name {
  color: #ffffff;
}

.dark-mode .about-section-header .lead,
.dark-mode .timeline-content p,
.dark-mode .team-bio,
.dark-mode .skill-name,
.dark-mode .skill-level,
.dark-mode .stat-label {
  color: #cbd5e1;
}

.dark-mode .values-list li {
  color: #cbd5e1;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .timeline-item,
  .mission-card,
  .values-card,
  .tech-category,
  .stat-card,
  .team-card {
    animation: none;
    transition: none;
  }
  
  .skill-progress::after {
    animation: none;
  }
}

/* Focus States */
.team-card:focus,
.mission-card:focus,
.values-card:focus,
.tech-category:focus,
.stat-card:focus {
  outline: 2px solid var(--accent, #0052cc);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .modern-about {
    background: white;
    color: black;
  }
  
  .mission-card,
  .values-card,
  .timeline-content,
  .tech-category,
  .stat-card,
  .team-card {
    background: white;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}