* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --background-color: #f0f0f0;
  --text-color: #333;
  --link-color: #0066cc;
  --icon-light: #000;
  --icon-dark: #fff;
  --animated-color: #1e90ff;
}

body.dark-mode {
  --background-color: #121212;
  --text-color: #f0f0f0;
  --link-color: #1e90ff;
  --icon-light: #fff;
  --icon-dark: #000;
  --animated-color: #1e90ff;
}

body {
  font-family: "SUSE", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; 
  text-align: center;
  position: relative;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 3rem;
}

.landing-page .content h2 span{
  color: var(--animated-color);
  position: relative;
} 

.landing-page .content h2 span::before{
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  border-left: 3px solid blue;
  animation: writeText 4s steps(17) infinite;
}

@keyframes writeText {
  40%, 60% {
    left: calc(100% + 4px);
  }
  100% {
    left: 0%
  }
}

.contact-links {
  margin-top: 20px;
  display: flex;
  gap: 20px; 
}

.contact-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--link-color);
}

.contact-links .icon {
  width: 24px; 
  height: 24px;
  margin-right: 8px; 
  fill: var(--icon-light);
  transition: fill 0.3s;
}

body.dark-mode .contact-links .icon {
  fill: var(--icon-light); 
}


.dark-mode-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--background-color); 
  color: var(--text-color);
  border: none;
  border-radius: 50%; 
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  z-index: 1000;
}

.dark-mode-button:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

.sun-icon,
.moon-icon {
  font-size: 1.5rem; 
}


.scroll-down-button {
  position: absolute;
  bottom: 30px;
  background-color: var(--button-background);
  color: var(--button-text-color);
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

img {
  width: 250px; 
  height: 200px; 
  object-fit: cover; 
  border-radius: 8px;
}

video {
  width: 250px; 
  height: 200px; 
  object-fit: cover;
  border-radius: 8px;
}

.scroll-down-button:hover {
  background-color: var(--button-hover-background);
  transform: translateY(-5px); 
}


.my-journey {
  padding: 50px 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
}

.my-journey h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.project-blurb {
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 10px; 
  margin-bottom: 10px; 
}


.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto; 
  padding: 0 20px; 
  width: 100%; 
}


.timeline-branch {
  position: absolute;
  top: 0;
  left: 50%; 
  width: 2px;
  height: 100%;
  background-color: var(--text-color);
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  left: 50%; 
  width: 14px;
  height: 14px;
  background-color: var(--text-color);
  border-radius: 50%;
  transform: translateX(-50%);
}


.timeline-item {
  position: relative;
  width: calc(50% - 30px); 
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: -50px;
}

.timeline-item:nth-child(odd) {
  align-self: flex-start; 
  text-align: right;
  margin-right: 60px;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  text-align: left;
  margin-left: 60px; 
}

.timeline-content {
  border: 1px solid var(--text-color);
  padding: 15px;
  border-radius: 8px;
  background-color: var(--background-color);
  color: var(--text-color);
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px; 
}

.timeline-item {
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  .timeline {
    padding: 0;
  }

  .timeline-branch {
    display: none;
  }

  .timeline-item {
    width: 100%; 
    margin-bottom: 20px; 
    text-align: left; 
    padding: 15px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    align-self: stretch; 
    margin: 0; 
    text-align: left;
  }

  .timeline-dot {
    left: 15px; 
    transform: none;
  }

  .timeline-content {
    margin: 0; 
  }
}
