/*---------------------------------------
  OUR STORY PAGE - TIMELINE WITH PHOTOS             
-----------------------------------------*/

/* Timeline Section */
.timeline-section {
  background: linear-gradient(135deg, #070711 0%, #0A0A18 100%);
  position: relative;
  overflow: hidden;
}

.timeline-with-photos {
  position: relative;
  padding: 40px 0;
}

/* Center Line */
.timeline-with-photos::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    var(--gold-muted) 0%, 
    var(--gold-soft) 50%, 
    rgba(211, 178, 102, 0.2) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

/* Timeline Item Container */
.timeline-item-photo {
  position: relative;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.timeline-item-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Marker (Center Dot) */
.timeline-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--gold-muted);
  border: 5px solid #ECECF1;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.5s ease;
}

.timeline-item-photo.is-visible .timeline-marker {
  animation: markerPulse 2.5s infinite;
}

@keyframes markerPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(211, 178, 102, 0.7);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(211, 178, 102, 0);
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Timeline Row (Content + Photo) */
.timeline-row {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Alternate Layout: Odd items (Photo on right) */
.timeline-item-photo:nth-child(odd) .timeline-row {
  flex-direction: row;
}

/* Alternate Layout: Even items (Photo on left) */
.timeline-item-photo:nth-child(even) .timeline-row {
  flex-direction: row-reverse;
}

/* Timeline Content Box */
.timeline-content {
  flex: 1;
  max-width: 48%;
  background: rgba(11, 13, 26, 0.5);
  border-radius: var(--border-radius-medium);
  padding: 35px 30px;
  border: 1px solid rgba(211, 178, 102, 0.2);
  backdrop-filter: blur(12px);
  transition: all 0.6s ease;
  transform: scale(0.95);
  opacity: 0;
}

.timeline-item-photo.is-visible .timeline-content {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.3s;
}

.timeline-content:hover {
  background: rgba(211, 178, 102, 0.1);
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(211, 178, 102, 0.2);
}

/* Timeline Year Badge */
.timeline-year {
  display: inline-block;
  background: var(--gold-muted);
  color: var(--primary-color);
  padding: 8px 22px;
  border-radius: var(--border-radius-large);
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h5 {
  color: var(--gold-muted);
  margin-bottom: 15px;
  font-weight: var(--font-weight-bold);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.timeline-content p {
  color: var(--white-color);
  line-height: 1.8;
  margin-bottom: 0;
  font-size: 1rem;
  opacity: 0.95;
}

/* Timeline Photo Container */
.timeline-photo {
  flex: 1;
  max-width: 48%;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.85) translateY(40px);
  opacity: 0;
  transition: all 0.8s ease;
}

.timeline-item-photo.is-visible .timeline-photo {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 0.5s;
}

.timeline-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(211, 178, 102, 0.15) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.timeline-photo:hover::before {
  opacity: 1;
}

.timeline-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  border-radius: var(--border-radius-medium);
}

.timeline-photo:hover img {
  transform: scale(1.08);
}

/* Reveal Animation Class */
.reveal-timeline {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal-timeline.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation for Content and Photo */
.timeline-item-photo:nth-child(1).is-visible {
  transition-delay: 0s;
}

.timeline-item-photo:nth-child(2).is-visible {
  transition-delay: 0.15s;
}

.timeline-item-photo:nth-child(3).is-visible {
  transition-delay: 0.3s;
}

.timeline-item-photo:nth-child(4).is-visible {
  transition-delay: 0.45s;
}

.timeline-item-photo:nth-child(5).is-visible {
  transition-delay: 0.6s;
}

.timeline-item-photo:nth-child(6).is-visible {
  transition-delay: 0.75s;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 991px) {
  .timeline-with-photos::before {
    left: 32px;
  }

  .timeline-marker {
    left: 29px;
    transform: translateY(-50%);
  }

  .timeline-item-photo.is-visible .timeline-marker {
    animation: markerPulse 2.5s infinite;
    transform: translateY(-50%) scale(1);
  }

  @keyframes markerPulse {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(211, 178, 102, 0.7);
      transform: translateY(-50%) scale(1);
    }
    50% {
      box-shadow: 0 0 0 15px rgba(211, 178, 102, 0);
      transform: translateY(-50%) scale(1.1);
    }
  }

  .timeline-row {
    flex-direction: column !important;
    gap: 30px;
    margin-left: 70px;
  }

  .timeline-content,
  .timeline-photo {
    max-width: 100%;
    width: 100%;
  }

  .timeline-content {
    padding: 25px 20px;
  }

  .timeline-item-photo {
    margin-bottom: 80px;
  }
}

@media screen and (max-width: 576px) {
  .timeline-with-photos::before {
    left: 20px;
  }

  .timeline-marker {
    left: 10px;
    width: 18px;
    height: 18px;
    border-width: 4px;
  }

  .timeline-row {
    margin-left: 50px;
    gap: 20px;
  }

  .timeline-content {
    padding: 20px 18px;
  }

  .timeline-content h5 {
    font-size: 1.3rem;
  }

  .timeline-year {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

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

/* Additional Enhancement: Parallax Effect on Scroll */
@media screen and (min-width: 992px) {
  .timeline-photo img {
    will-change: transform;
  }
}

/* Loading State */
.timeline-with-photos.loading .timeline-item-photo {
  opacity: 0;
  transform: translateY(60px);
}

/* Section Title Enhancement */
.timeline-section h2 {
  letter-spacing: 0.4em;
  font-weight: var(--font-weight-bold);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.timeline-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--gold-muted) 50%, 
    transparent 100%);
}

/*---------------------------------------
  ACHIEVEMENTS SECTION             
-----------------------------------------*/

.achievements-section {
  background: linear-gradient(135deg, #0A0A18 0%, #070711 100%);
  position: relative;
  overflow: hidden;
}

.achievements-section h2 {
  color: var(--gold-muted);
  letter-spacing: 0.4em;
  font-weight: var(--font-weight-bold);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.achievements-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--gold-muted) 50%, 
    transparent 100%);
}

.achievements-subtitle {
  color: var(--white-color);
  opacity: 0.7;
  font-size: 1.1rem;
  margin-top: 10px;
}

.achievements-grid {
  margin-top: 40px;
}

/* Achievement Card */
.achievement-card {
  background: rgba(11, 13, 26, 0.6);
  border: 1px solid rgba(211, 178, 102, 0.2);
  border-radius: var(--border-radius-medium);
  padding: 40px 25px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  backdrop-filter: blur(10px);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gold-muted), 
    transparent);
  transition: left 0.6s ease;
}

.achievement-card:hover::before {
  left: 100%;
}

.reveal-achievement.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.achievement-card:hover {
  background: rgba(211, 178, 102, 0.12);
  border-color: var(--gold-muted);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(211, 178, 102, 0.25);
}

/* Achievement Icon */
.achievement-icon {
  font-size: 3rem;
  color: var(--gold-muted);
  margin-bottom: 20px;
  transition: all 0.4s ease;
  display: inline-block;
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--gold-soft);
}

/* Achievement Number */
.achievement-number {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--white-color);
  line-height: 1;
  margin-bottom: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.achievement-suffix {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gold-muted);
  margin-left: 5px;
  vertical-align: super;
  line-height: 0;
}

/* Achievement Label */
.achievement-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-color);
  opacity: 0.8;
  font-weight: var(--font-weight-medium);
  margin-top: 10px;
}

/* Stagger Animation */
.reveal-achievement:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-achievement:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-achievement:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-achievement:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal-achievement:nth-child(5) {
  transition-delay: 0.5s;
}

.reveal-achievement:nth-child(6) {
  transition-delay: 0.6s;
}

.reveal-achievement:nth-child(7) {
  transition-delay: 0.7s;
}

/* Responsive Adjustments for Achievements */
@media screen and (max-width: 991px) {
  .achievement-card {
    padding: 35px 20px;
    margin-bottom: 20px;
  }

  .achievement-number {
    font-size: 3rem;
  }

  .achievement-icon {
    font-size: 2.5rem;
  }

  .achievement-label {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 576px) {
  .achievements-section h2 {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
  }

  .achievement-card {
    padding: 30px 18px;
  }

  .achievement-number {
    font-size: 2.5rem;
  }

  .achievement-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .achievement-suffix {
    font-size: 2rem;
  }

  .achievement-label {
    font-size: 0.8rem;
  }
}