/* ===================================
   LEGACY PAGE STYLES
   ===================================
   
   Styles for End Group's Legacy/History page
   Professional timeline, milestones, and values showcase
   
   =================================== */

/* ===================================
   1. LEGACY HERO SECTION
   =================================== */
.legacy-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(
    135deg,
    var(--first-color) 0%,
    hsl(220, 68%, 45%) 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}

.legacy-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
}

.legacy-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.legacy-hero__title {
  font-size: 3rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.legacy-hero__subtitle {
  font-size: 1.5rem;
  font-weight: var(--font-medium);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.legacy-hero__description {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   2. LEGACY VISION SECTION
   =================================== */
.legacy-vision {
  padding: 5rem 0;
  background-color: #fff;
}

.legacy-vision__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.legacy-vision__highlights {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-item i {
  font-size: 2rem;
  color: var(--first-color);
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 1.1rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

.legacy-vision__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  background: linear-gradient(
    135deg,
    var(--first-color-lighten) 0%,
    hsl(220, 68%, 92%) 100%
  );
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px dashed var(--first-color);
}

.image-placeholder i {
  font-size: 4rem;
  color: var(--first-color);
  opacity: 0.5;
}

.image-placeholder p {
  font-size: 1.1rem;
  font-weight: var(--font-medium);
  color: var(--title-color);
  opacity: 0.6;
}

/* ===================================
   3. TIMELINE SECTION
   =================================== */
.legacy-timeline {
  padding: 5rem 0;
  background-color: var(--body-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

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

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--first-color-lighten);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-dot--current {
  width: 28px;
  height: 28px;
  background: linear-gradient(
    135deg,
    var(--first-color) 0%,
    hsl(220, 68%, 45%) 100%
  );
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--first-color-lighten), 0 0 0 8px transparent;
  }
  50% {
    box-shadow: 0 0 0 4px var(--first-color-lighten),
      0 0 0 12px rgba(66, 133, 244, 0.2);
  }
}

.timeline-line {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(
    180deg,
    var(--first-color) 0%,
    var(--first-color-lighten) 100%
  );
  margin-top: 0.5rem;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--first-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.timeline-era {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--first-color);
  background-color: var(--first-color-lighten);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.timeline-achievements {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.timeline-achievements li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

.timeline-achievements i {
  color: var(--first-color);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===================================
   4. CORE VALUES SECTION
   =================================== */
.legacy-values {
  padding: 5rem 0;
  background-color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: var(--body-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--first-color-lighten);
}

.value-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--first-color) 0%,
    hsl(220, 68%, 45%) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

.value-card__title {
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.value-card__description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* ===================================
   5. LEGACY STATS SECTION
   =================================== */
.legacy-stats {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    var(--first-color) 0%,
    hsl(220, 68%, 45%) 100%
  );
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-item__icon {
  font-size: 3rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.stat-item__number {
  font-size: 3rem;
  font-weight: var(--font-semi-bold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.3;
}

/* ===================================
   6. LOOKING FORWARD SECTION
   =================================== */
.legacy-forward {
  padding: 5rem 0;
  background-color: var(--body-color);
}

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

.forward-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-medium);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--first-color);
  color: #fff;
  border-color: var(--first-color);
}

.btn-primary:hover {
  background-color: hsl(220, 68%, 45%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--title-color);
  border-color: var(--title-color);
}

.btn-secondary:hover {
  background-color: var(--title-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===================================
   7. RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet: 768px and up */
@media screen and (min-width: 768px) {
  .legacy-hero__title {
    font-size: 3.5rem;
  }

  .legacy-vision__grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 3rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .forward-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Desktop: 1024px and up */
@media screen and (min-width: 1024px) {
  .legacy-hero {
    padding: 8rem 0 6rem;
  }

  .legacy-hero__title {
    font-size: 4rem;
  }

  .legacy-hero__subtitle {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .timeline-item {
    grid-template-columns: 100px 1fr;
    gap: 4rem;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

/* ===================================
   END OF LEGACY PAGE STYLES
   =================================== */
