/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* ============================================
   HERO SECTION WITH SCROLLING BACKGROUND
   ============================================ */
.hero-section {
  position: relative;
  width: 94vw;
  height: 20vw;
  overflow: hidden;
  margin: 0 auto;
  border: double;

}

.hero-background {
  position: absolute;
  width: 94vw;
  height: 186.734vw;
  background: url('coleback1.jpg') repeat-y center top;
  background-size: 100% auto;
  animation: scroll-background 45s linear infinite;
  z-index: 1;
  opacity: 0.5;
}

/* Animated background pattern */

@keyframes scroll-background {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-89.5%);
  }
}

.hero-overlay {
  position: absolute;
  width: 94vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
}

.hero-title {
  font-weight: 500;
  text-shadow: -0.2vw 0.2vw 0.2vw var(--brand-gold);
  width: 74vw;
  text-align: center;
  font-size: 3vw;
  color: var(--brand-red);
}

/* ============================================
   INTRODUCTION SECTION
   ============================================ */
.intro-section {
  background: var(--color-surface);
  padding: var(--space-16) 0;
}

.intro-content {
  max-width: 94vw;
  margin: 0 auto;
  text-align: left;
}

.intro-content h2 {
  margin-bottom: var(--space-6);
}

.intro-content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.intro-highlight {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--primary-blue);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  border-radius: var(--radius-md);
}


/* ============================================
   TIMELINE SECTION - PURE CSS ACCORDION (NO JAVASCRIPT)
   Replace existing timeline section in home.css
   ============================================ */

.timeline-section {
  background: var(--color-surface);
  padding: var(--space-12) 0;
}

/* ============================================
   TIMELINE ACCORDION (using <details>)
   ============================================ */
.timeline-accordion {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================
   SUMMARY (Always Visible - Click to Expand)
   ============================================ */
.timeline-summary {
  padding: var(--space-6);
  cursor: pointer;
  list-style: none;
  /* Remove default arrow */
  user-select: none;
}

/* Remove default disclosure triangle */
.timeline-summary::-webkit-details-marker {
  display: none;
}

.timeline-summary::marker {
  display: none;
}

.summary-content h2 {
  margin-bottom: var(--space-4);
  text-align: center;
}

/* Current Status Display */
.timeline-current {
  background: var(--color-surface-alt);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.timeline-summary:hover .timeline-current {
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.current-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.status-icon {
  font-size: var(--text-3xl);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-icon.current {
  background: var(--primary-blue);
  color: var(--white);
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.current-info {
  flex: 1;
}

.current-milestone {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.current-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Next Milestone Info */
.next-milestone-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.next-label {
  font-weight: var(--font-semibold);
  color: var(--color-nav-link);
}

.next-date {
  color: var(--color-link);
  font-weight: var(--font-medium);
}

/* Expand Indicator */
.expand-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--primary-blue);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  transition: all var(--transition-base);
}

.timeline-summary:hover .expand-indicator {
  background: var(--primary-dark);
}

.expand-icon {
  transition: transform var(--transition-base);
}

/* When expanded, rotate arrow */
.timeline-accordion[open] .expand-icon {
  transform: rotate(180deg);
}

/* When expanded, change text */
.timeline-accordion[open] .expand-text::after {
  content: " Milestones";
}

/* ============================================
   TIMELINE DETAILS (Expandable Content)
   ============================================ */
.timeline-details {
  padding: var(--space-6);
  background: var(--color-surface);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline List */
.timeline-list {
  position: relative;
  padding-left: var(--space-8);
}

/* Vertical Line */
.timeline-list::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

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

/* Timeline Marker */
.timeline-marker {
  position: absolute;
  left: -var(--space-8);
  top: 0;
}

.timeline-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--primary-blue);
  position: relative;
  left: 8px;
}

.timeline-item.completed .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-item.current .timeline-dot {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-item.upcoming .timeline-dot {
  background: var(--color-surface);
  border-color: var(--color-status-upcoming);
}

/* Timeline Content */
.timeline-content {
  padding-left: var(--space-4);
}

.timeline-header-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-heading);
  padding-left: 1rem;
}

.timeline-date {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-link);
  white-space: nowrap;
}

.timeline-description {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.timeline-status {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

.timeline-status.completed {
  color: var(--color-status-completed);
}

.timeline-status.current {
  color: var(--color-status-current);
}

.timeline-status.upcoming {
  color: var(--color-status-upcoming);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 640px) {
  .timeline-summary {
    padding: var(--space-4);
  }

  .current-status {
    flex-direction: column;
    text-align: center;
  }

  .status-icon {
    margin-bottom: var(--space-2);
  }

  .next-milestone-info {
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
  }

  .timeline-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .timeline-details {
    padding: var(--space-4);
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR TIMELINE
   ============================================ */

@media (max-width: 768px) {

  /* Stack timeline vertically on mobile */
  .timeline-list::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: var(--space-12);
    padding-right: var(--space-4);
    margin-left: var(--space-8);
  }

  .timeline-header-row,
  .timeline-item:nth-child(odd) .timeline-header-row,
  .timeline-item:nth-child(even) .timeline-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(0);
  }
}



/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    height: 60vw;
    /* Proportional to viewport width like desktop */
    min-height: 200px;
    /* Ensure minimum readable size */
  }

  .hero-background {
    width: 94vw;
    height: 320vw;
    /* Increased height to prevent blank areas during scroll */
    background-size: 100% auto;
    /* Ensure background covers full width */
  }

  .hero-title {
    font-size: 6vw;
  }

  .hero-logo {
    max-width: 100px;
  }

  /* Animated background pattern */

  @keyframes scroll-background {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(-75%);
    }
  }

  /* Stack timeline vertically on mobile */
  .timeline-list::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: var(--space-12);
    padding-right: var(--space-4);
    margin-left: var(--space-8);
  }

  .timeline-header-row,
  .timeline-item:nth-child(odd) .timeline-header-row,
  .timeline-item:nth-child(even) .timeline-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(0);
  }
}