body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background-color: #1f1e1e;
  animation: fadeIn 1s ease;
  /* Change to your preferred dark color */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cursor {
  display: inline-block;
  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Update header styling */
header {
  text-align: center;
  color: #fff;
  padding: 50px 0;
  border-bottom-left-radius: 50% 20px;
  border-bottom-right-radius: 50% 20px;
  margin-bottom: 50px;
  /* Add margin to separate header from sections */
  background: linear-gradient(-45deg, #007bff, #0087ff, #007bff, #0087ff);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite, waveAnimation 2s linear infinite;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes waveAnimation {
  0% {
    background-color: #007bff;
  }

  50% {
    background-color: #0087ff;
  }

  100% {
    background-color: #007bff;
  }
}

header h1 {
  font-size: 48px;
  margin: 10px 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

header p {
  font-size: 20px;
  margin: 0;
  color: #fff;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid #fff;
  transition: transform 0.3s ease-in-out;
}

.profile-picture:hover {
  transform: scale(1.1); /* Increase the size of the picture on hover */
}

section {
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: #fff;
  transition: box-shadow 0.2s ease-in-out, backdrop-filter 0.2s ease-in-out;
  backdrop-filter: blur(2px); /* Add blur effect to the background */
}

section:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px); /* Increase blur on hover */
}

section:not(:first-child) {
  margin-top: 50px;
  /* Add top margin to create consistent spacing */
}

section h2 {
  font-size: 32px;
  color: #007bff;
  margin-bottom: 20px;
}

section p {
  font-size: 18px;
  line-height: 1.6;
}

section p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* CV */
#cv {
  padding: 30px;
  border-radius: 5px;
  color: #fff;
}

#cv h2 {
  font-size: 32px;
  color: #007bff;
  margin-bottom: 20px;
}

.timeline {
  position: relative;
}

.timeline-item {
  margin-bottom: 20px;
  position: relative;
  padding: 20px;
  border-left: 2px solid #007bff;
  /* Default color for the timeline line */
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Update the indicator colors based on entry type */
.timeline-indicator.school {
  background-color: #007bff;
  /* Blue for school */
}

.timeline-indicator.work {
  background-color: #00cc00;
  /* Green for work */
}

.timeline-indicator.internship {
  background-color: #ff6600;
  /* Orange for internship */
}

.timeline-indicator {
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  position: relative;
  padding-left: 20px;
}

.timeline-content h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.timeline-content p {
  margin-bottom: 5px;
}

/* Add indicators on the timeline line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #007bff;
}

/* Change the color of the left border for each section */
#school .timeline-item {
  border-color: #007bff;
  /* Blue for school */
}

#work .timeline-item {
  border-color: #00cc00;
  /* Green for work */
}

#internship .timeline-item {
  border-color: #ff6600;
  /* Orange for internship */
}

.timeline .timeline-item {
  position: relative;
}

.timeline .timeline-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.timeline-year {
  font-size: 14px;
  color: #acacac; /* Blue color for timeline-year */
  font-weight: bold;
  margin-bottom: 5px;
}

/* Style the timeline-company */
.timeline-company {
  font-size: 16px; /* Adjust the font size as needed */
  color: #fff; /* White color for timeline-company */
  font-weight: bold;
  margin-bottom: 10px;
}

/* Add responsiveness */
@media screen and (max-width: 600px) {
  header h1 {
    font-size: 36px;
  }

  header p {
    font-size: 16px;
  }

  section h2 {
    font-size: 28px;
  }
}
