body {
    background-color: #ffffff !important;
}

#about, .futuristic-section {
    background-color: #ffffff !important;
    background-image: none !important;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ascent-section, .timeline-container, .youtube-section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Ensure inner elements have appropriate contrast */
.focus-container,
.foothills-content-box {
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.timeline-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0.5rem auto;
  padding: 30px 50px; /* Add horizontal padding */
  background-color: #ffffff !important;
}

.timeline-nav-container {
  position: relative;
  margin-bottom: 60px; /* Increased margin */
}

.timeline-nav {
  position: relative;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  height: 100%;
  background-color: #28a745;
  width: 0;
  transition: width 0.4s ease;
}

.timeline-years {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-year-marker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-year-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid #e0e0e0;
  color: #757575;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.timeline-year-btn:hover {
  transform: scale(1.1);
  border-color: #28a745;
}

.timeline-year-btn:active {
  transform: scale(0.95);
}

.timeline-year-btn.active {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
  transform: scale(1.2);
  box-shadow: none;
}

.timeline-year-btn.active:hover {
  transform: scale(1.3);
}

.timeline-year-btn.active:active {
  transform: scale(1.15);
}

.timeline-content-container {
  position: relative;
}

.timeline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #28a745;
  font-size: 36px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.timeline-arrow.prev {
  left: -20px;
}

.timeline-arrow.next {
  right: -20px;
}

.timeline-arrow:hover {
  color: #1e7e34;
  transform: translateY(-50%) scale(1.2);
}

.timeline-arrow:disabled {
  color: #e0e0e0;
  cursor: not-allowed;
}

.timeline-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.timeline-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  visibility: hidden;
}

.timeline-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  visibility: visible;
}

.timeline-slide.prev {
  transform: translateX(-10%) scale(0.9);
  opacity: 0;
  visibility: hidden;
}

.timeline-slide.next {
  transform: translateX(10%) scale(0.9);
  opacity: 0;
  visibility: hidden;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center; /* Center image vertically */
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.milestone-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid #fff;
}

.milestone-title {
  color: #28a745;
}

.milestone-desc {
  line-height: 1.7;
}

.youtube-section {
    margin-top: 1rem;
    margin-bottom: 5rem; /* Increased margin */
}

.youtube-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Mobile Timeline Fixes */
@media (max-width: 767px) {
    .timeline-nav-container {
        margin-bottom: 30px;
    }

    .timeline-nav {
        background: transparent; /* Hide the line visual but keep container */
        height: auto;
    }

    .timeline-progress {
        display: none; /* Hide progress bar on mobile */
    }

    .timeline-years {
        position: relative;
        transform: none;
        top: auto;
        padding: 0;
        justify-content: center;
        margin-top: 0;
        display: flex;
    }

    .timeline-year-marker {
        align-items: center;
    }

    .timeline-container {
        padding: 15px;
    }

    .timeline-content-container {
        position: relative;
        padding: 0 35px; /* Add horizontal space for the arrows */
    }

    .timeline-content {
        display: grid;
    }

    .timeline-slide {
        grid-column: 1;
        grid-row: 1;
        opacity: 0;
        transform: scale(0.9);
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        visibility: hidden;
        margin-bottom: 0;
    }

    .timeline-slide.active {
        opacity: 1;
        transform: scale(1);
        z-index: 3;
        visibility: visible;
    }

    .timeline-arrow {
        display: block; /* Show arrows */
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .timeline-arrow.prev {
        left: 0;
    }

    .timeline-arrow.next {
        right: 0;
    }

    .glass-card {
        flex-direction: column;
        text-align: center;
        margin-top: 0;
    }

    .milestone-image {
        margin-bottom: 15px;
    }
}
