 /* General body styling */
body {
  margin: 0;
  font-family: 'Helvetica', Arial, sans-serif;
  background-color: #000; /* Fallback background */
  color: white;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Matrix background */
.matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Send it behind content */
}

/* Header styling */
header {
  padding: 20px;
  background: transparent; /* Make transparent */
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Optional subtle line */
}

/* Header container for logo and title */
header .header-container {
  display: flex;
  align-items: center; /* Vertically align logo and text */
  justify-content: space-between; /* Space between logo and title if needed */
}

/* Logo styling */
header .header-container .logo {
  max-height: 60px; /* Set max height for the logo */
  margin-right: 20px; /* Add spacing between logo and text */
}

/* Header title */
header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Enhance readability */
  flex-grow: 1; /* Allow title to take remaining space */
}

/* Main content */
main {
  padding: 20px;
  color: white;
}

/* Section headers */
section h2 {
  margin-top: 20px;
  font-size: 1.8rem;
  color: #ffffff;
}

/* Footer styling */
footer {
  padding: 10px;
  text-align: center;
  background: transparent; /* Make transparent */
  color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Optional subtle line */
  position: relative; /* Default flow with content */
}

footer p {
  margin: 0;
}

/* Table styling for agenda */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

thead th {
  background-color: #333333;
  color: white;
  text-align: left;
  padding: 10px;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

tbody tr:nth-child(even) {
  background-color: #333337;
}

/* Responsive styling */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  header .header-container {
    flex-wrap: wrap; /* Allow wrapping of logo and title on smaller screens */
  }

  header h1 {
    text-align: center; /* Center the title on smaller screens */
    margin-top: 10px;
  }

  header .header-container .logo {
    margin-right: 0; /* Remove margin when wrapping */
    margin-bottom: 10px; /* Add spacing below the logo */
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.4rem;
  }
}


.speakers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible column count */
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.speaker-box {
  background: rgba(255, 255, 255, 0.1); /* White with transparency */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.speaker-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.speaker-box h3 {
  font-size: 1.25em;
  margin-bottom: 8px;
  color: white;
}

.speaker-box p {
  font-size: 0.9em;
  line-height: 1.4;
  color: white;
}

#speakers h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
  color: white;
}

/* Center the subsection titles */
section h2 {
  margin-top: 20px;
  font-size: 1.8rem;
  color: #ffffff;
  text-align: center; /* Center the text */
  position: relative;
}

/* Style the last word of subsection titles */
section h2 span.last-word {
  color: #FF6600; /* Match the orange in the logo */
}



/* Timeline-specific styles */
.timeline {
  position: relative;
  padding: 10px 0; /* Adjust padding to bring the timeline closer */
  margin-top: 10px; /* Adjust spacing above the timeline */
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%; /* Center the timeline line */
  top: 0;
  width: 4px;
  height: 100%;
  background: #FF6600; /* Orange line */
  transform: translateX(-50%);
  z-index: 0; /* Ensure it stays behind items */
}

.timeline-item {
  display: flex;
  justify-content: flex-end; /* Align right by default */
  align-items: center;
  padding: 10px 20px; /* Adjust padding for closer spacing */
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start; /* Alternate align left */
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px; /* Reduced size of the bullet point */
  height: 16px;
  background: #FF6600; /* Orange bullet point */
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* Ensure it sits above the line */
}

.timeline-item:nth-child(odd)::before {
  left: 50%; /* Align bullet point to the left */
}

.timeline-item:nth-child(even)::before {
  left: 50%; /* Align bullet point to the right */
}

.timeline-item-content {
  background: rgba(255, 255, 255, 0.1); /* Transparent background */
  padding: 10px; /* Reduce padding inside the content box */
  border-radius: 8px;
  width: 40%; /* Make content boxes narrower */
  text-align: center;
  margin: 5px 0; /* Reduce vertical spacing between boxes */
}

.timeline-item-content h3 {
  margin: 0;
  font-size: 1rem; /* Slightly smaller text */
  color: #FF6600; /* Match orange theme */
}

.timeline-item-content p {
  font-size: 0.85rem; /* Slightly smaller text */
  color: white;
  margin: 5px 0 0; /* Compact spacing */
}

/* Responsive timeline adjustments */
@media (max-width: 768px) {
  .timeline-item-content {
    width: 60%; /* Adjust content width for smaller screens */
  }

  .timeline::before {
    left: 50%;
  }
}

@media (max-width: 480px) {
  .timeline-item-content {
    width: 75%; /* Adjust content width further for very small screens */
  }
}


/* Navigation Bar Styling */
nav {
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  position: sticky; /* Sticks to the top of the screen */
  top: 0;
  z-index: 1000; /* Ensures the nav is above other elements */
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

nav ul {
  list-style: none; /* Remove bullet points */
  display: flex;
  justify-content: center; /* Center the navigation links */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px; /* Space between navigation items */
}

nav ul li a {
  text-decoration: none; /* Remove underline */
  color: white;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 8px 12px;
  transition: color 0.3s ease, background-color 0.3s ease; /* Smooth hover effect */
}

nav ul li a:hover,
nav ul li a.active {
  color: #FF6600; /* Highlight color */
  font-weight: bold;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
  }

  nav ul li {
    margin: 5px 0; /* Reduce spacing between items */
  }
}

@media (max-width: 480px) {
  nav ul li a {
    font-size: 0.9rem; /* Smaller font size for very small screens */
    padding: 6px 8px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
