/* 
 * About Section Styles for Jan Gessenhardt Website
 * Enhanced for visual impact and professional presentation
 */

:root {
  --primary-color: #1A365D;     /* Deep blue */
  --secondary-color: #3182CE;   /* Medium blue */
  --accent-color: #D69E2E;      /* Gold */
  --text-dark: #2D3748;         /* Dark gray for text */
  --text-light: #FFFFFF;        /* White for text on dark backgrounds */
  --background-light: #FFFFFF;  /* White background */
  --background-gray: #F7FAFC;   /* Light gray background */
  --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-standard: all 0.3s ease-in-out;
}

/* Challenges Section */
.challenges {
  padding: 100px 0;
  background-color: var(--background-light);
}

.challenges .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.challenge-card {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-standard);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.challenge-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.challenge-icon i {
  font-size: 24px;
  color: var(--primary-color);
}

.challenge-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.challenge-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  flex-grow: 1;
}

.challenges-conclusion {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.challenges-conclusion p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.challenges-conclusion .cta-button {
  margin: 0 auto;
}

/* Expertise Section */
.expertise {
  padding: 100px 0;
  background-color: var(--background-gray);
}

.expertise .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.expertise-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.expertise-image {
  flex: 1;
  position: relative;
}

.expertise-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.expertise-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  z-index: -1;
}

.expertise-text {
  flex: 1;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.expertise-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expertise-icon i {
  font-size: 20px;
  color: var(--primary-color);
}

.expertise-content-text h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.expertise-content-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Timeline Section */
.timeline-section {
  padding: 100px 0;
  background-color: var(--background-light);
  position: relative;
  overflow: hidden;
}

.timeline-section .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 30px;
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-standard);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 40px);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.timeline-date {
  position: absolute;
  top: -30px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-date {
  right: 0;
}

.timeline-item:nth-child(even) .timeline-date {
  left: 0;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.timeline-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -60px;
}

.timeline-cta {
  text-align: center;
  margin-top: 80px;
}

.timeline-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .expertise-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .expertise-image {
    margin: 0 auto;
    max-width: 350px;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    left: 80px !important;
  }
  
  .timeline-date {
    left: 0 !important;
    right: auto !important;
  }
  
  .timeline-icon {
    left: 20px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  
  .expertise-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .timeline-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .challenges, .expertise, .timeline-section {
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 50px);
    left: 50px !important;
    padding: 15px;
  }
  
  .timeline-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    left: 5px !important;
  }
  
  .timeline-date {
    font-size: 1rem;
    top: -25px;
  }
}

/* High-contrast mode for accessibility */
@media (prefers-contrast: high) {
  .challenge-card, .expertise-item, .timeline-content {
    border: 1px solid #000;
  }
  
  .challenge-icon, .expertise-icon {
    background-color: #000;
  }
  
  .challenge-icon i, .expertise-icon i {
    color: #fff;
  }
  
  .timeline::before {
    background-color: #000;
  }
  
  .timeline-icon {
    background-color: #000;
  }
}
