/* === ABOUT PAGE STYLES === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  padding: 1rem 0;
}

.timeline {
  position: relative;
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0;
    padding-left: 50px;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .timeline-item:nth-child(odd), 
  .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
    top: 10px;
  }
  
  .timeline-item h3 {
    margin: 0.5rem 0;
    display: block;
  }
  
  .timeline-year {
    margin-bottom: 0.5rem;
    display: inline-block;
  }
  
  .timeline-item p {
    margin-bottom: 0;
  }
}

/* Cards with icons in About page */
.card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: transform 0.8s, background 0.3s, color 0.3s;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(360deg);
} 