/* Base Layout */
body {
  font-family: 'Inter', sans-serif;
  background-color: #0a1929;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin: 0.5em 0;
}

section {
  padding: 2rem;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f172a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: #60a5fa;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #93c5fd;
}

/* Event Card */
.event-card {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateX(5px);
}

/* Timeline Section */
.timeline-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 15rem 0;
  white-space: nowrap;
  position: relative;
  min-height: 5px;
  border-top: 2px solid #3b82f6;
}

/* Connecting line */
.timeline-container::after {
  content: '';
  position: absolute;
  top: 36%;
  left: 0;
  height: 2px;
  width: 140%;
  background-color: #3b82f6;
  transform: translateY(-10%);
  z-index: 0;
}

.timeline-item {
  scroll-snap-align: center;
  display: inline-block;
  position: relative;
  text-align: center;
  min-width: 200px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.6s ease forwards;
  z-index: 1;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }
.timeline-item:nth-child(5) { animation-delay: 0.9s; }
.timeline-item:nth-child(6) { animation-delay: 1.1s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #3b82f6;
  border-radius: 50%;
}

.timeline-content {
  max-width: 250px;
  background-color: #1e293b;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.timeline-item.top .timeline-content {
  transform: translateY(-140%);
}

.timeline-item.bottom .timeline-content {
  transform: translateY(20%);
}

/* Project Carousel */
.project-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
}

.project-carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 300px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: scale(1.03);
}

/* Footer */
footer {
  background-color: #0f172a;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.button {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #60a5fa;
}
