/* Timeline Container */
.timeline-container {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.timeline-wrapper {
  position: relative;
}

/* Timeline Line */
.timeline-line {
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #e8e8e8 0%, #ddd 50%, #e8e8e8 100%);
  z-index: 1;
}

/* Timeline Sections */
.timeline-section {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}


/* Timeline Year */
.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  z-index: 3;
}

.year-text {
  display: inline-block;
  font-size: 2.8rem;
  font-weight: 800;
  color: #2c2c2c;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  padding: 18px 24px;
  border-radius: 15px;
  border: 2px solid #e8e8e8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
}

.year-text:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* Timeline Items */
.timeline-items {
  margin-left: 140px;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Timeline Dots */
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e8e8e8;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-dot.patent {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

.timeline-dot.certification {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.timeline-dot.award {
  background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
}

.timeline-dot.product {
  background: linear-gradient(135deg, #7b1fa2 0%, #8e24aa 100%);
}

.timeline-dot.partnership {
  background: linear-gradient(135deg, #c2185b 0%, #d81b60 100%);
}

.timeline-dot.milestone {
  background: linear-gradient(135deg, #00695c 0%, #00796b 100%);
}


.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

/* Timeline Content */
.timeline-content {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #ddd;
}

/* Item Date */
.item-date {
  background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
  color: white;
  padding: 14px 24px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}


/* Item Main Content */
.item-main {
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.item-main.single {
  padding: 25px;
}

/* Item Image */
.item-image {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.item-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 44, 44, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.item-image:hover .image-overlay {
  opacity: 1;
}

.item-image:hover img {
  transform: scale(1.1);
}

/* Item Info */
.item-info {
  flex: 1;
}

.item-info.single {
  flex: none;
}

.item-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.item-detail {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

/* Item Tags */
.item-tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.item-tag.patent {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.item-tag.certification {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.item-tag.award {
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
  color: #e65100;
}

.item-tag.product {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
}

.item-tag.partnership {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
  color: #c2185b;
}

.item-tag.milestone {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  color: #00695c;
}

.item-tag.founding {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #e65100;
}

/* Image Modal */
.modal-backdrop { background-color: rgba(0,0,0,.8); }

.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 25px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 15px 15px 0 0;
}

.modal-title {
  font-weight: 700;
  color: #2c2c2c;
}

.modal-body {
  padding: 25px;
}

.modal-body img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}


/* Responsive Design */
@media (max-width: 768px) {
  .timeline-container {
    padding: 0 15px;
  }
  
  .timeline-line {
    left: 50px;
  }
  
  .timeline-year {
    left: 0;
    width: 80px;
  }
  
  .year-text {
    font-size: 1.6rem;
    padding: 10px 15px;
    min-width: 80px;
  }
  
  .timeline-items {
    margin-left: 90px;
    padding-left: 15px;
  }
  
  .timeline-dot {
    left: -22px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-dot.founding {
    width: 16px;
    height: 16px;
    left: -24px;
  }
  
  .timeline-content {
    border-radius: 12px;
  }
  
  .item-date {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .item-main {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  
  .item-image {
    width: 100px;
    height: 130px;
    align-self: center;
  }
  
  .item-info h3 {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .item-detail {
    font-size: 1rem;
    text-align: center;
  }
  
  .item-tag {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  
}

@media (max-width: 480px) {
  .timeline-line {
    left: 40px;
  }
  
  .timeline-year {
    width: 70px;
  }
  
  .year-text {
    font-size: 1.4rem;
    padding: 8px 12px;
    min-width: 70px;
  }
  
  .timeline-items {
    margin-left: 80px;
    padding-left: 10px;
  }
  
  .timeline-dot {
    left: -18px;
    width: 10px;
    height: 10px;
  }
  
  .timeline-dot.founding {
    width: 14px;
    height: 14px;
    left: -20px;
  }
  
  .item-main {
    padding: 15px;
  }
  
  .item-image {
    width: 80px;
    height: 100px;
  }
  
  .item-info h3 {
    font-size: 1rem;
  }
  
  .item-detail {
    font-size: 1rem;
  }
  
}