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

body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Oxygen, Ubuntu, Cantarell, sans-serif;
        background-color: #000;
        color: #fff;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
      }

      nav {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 4rem;
        position: relative;
        width: 100%;
        margin-left: -0.5rem;
      }

      .theme-toggle {
        position: absolute;
        left: 4.5rem;
        width: 40px;
        height: 40px;
        border: 2px solid #fff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: progress;
        transition: all 0.3s ease;
      }
.theme-toggle:hover {
  transform: rotate(180deg);
  background-color: rgba(255, 255, 255, 0.1);
}

.sun-icon {
  width: 24px;
  height: 24px;
}

.sun-icon circle {
  fill: #fff;
}

.sun-icon line {
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

main {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 3rem 2rem 6rem 2rem;
      }

      .page-title {
        font-size: 4rem;
        font-style: italic;
        margin-bottom: 4rem;
        text-align: center;
      }

      .timeline-container {
        max-width: 700px;
        width: 100%;
        position: relative;
        margin: 0 auto;
      }

      .timeline-line {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #333;
      }

      .experience-item {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 2rem;
      }

      .experience-item:last-child {
        margin-bottom: 0;
      }

      .timeline-dot {
        position: absolute;
        left: -5px;
        top: 8px;
        width: 12px;
        height: 12px;
        background-color: #cccccc;
        border-radius: 50%;
      }

      .date {
        font-style: italic;
        font-size: 1.2rem;
        color: #ffffff;
        margin-bottom: 0.5rem;
      }

      .position {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
        font-weight: 400;
      }

      .company {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        color: #ddd;
      }

      .research-project {
        font-size: 1.2rem;
        margin-top: 0.5rem;
      }

      .research-project strong {
        font-weight: 600;
      }

      .research-title {
        font-style: italic;
        color: #ddd;
      }

      .doc-icon {
        margin-left: 0.5rem;
        font-size: 1.1rem;
      }

      .chatbot-button {
  position: fixed;
  bottom: 30px;
  background-color: #5a7a6f;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 4rem;
  transition: all 0.3s ease;
  outline: none;
  border: none;
  left: 616px;
}

.chatbot-button:focus {
  outline: none;
}

.chatbot-button:hover {
  background-color: #6a8a7f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 112, 111, 0.4);
}

      footer {
        display: flex;
        justify-content: flex-end;
        padding: 2rem 4rem;
      }

      .scroll-top {
        width: 40px;
        height: 40px;
        border: 2px solid #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: transparent;
        color: #fff;
        font-size: 1.2rem;
      }

      .scroll-top:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
      }

      /* Update existing @media (max-width: 968px) with these additions */
@media (max-width: 968px) {
  .theme-toggle {
    left: 0.5rem;
    width: 35px;
    height: 35px;
  }
  
  nav {
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    margin-right: -0.7rem;
    margin-left: 0.45rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .experience-item {
    padding-left: 2rem;
  }
  
  main {
    padding: 2rem 1.5rem 5rem 1.5rem;
  }
  
  .timeline-container {
    padding: 0 1rem;
  }
  
  .chatbot-button {
    padding: 0.8rem 2rem;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  footer {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  #voiceflow-chat iframe {
        width: calc(100vw - 40px) !important;
        right: 20px !important;
        height: 70vh !important;
        bottom: 90px !important;
    }
    
    .chatbot-button {
        padding: 0.8rem 2rem;
        left: 48.8%;
        transform: translateX(-50%);
        right: auto;
        bottom: 37px;
    }
}

/* Update existing @media (max-width: 640px) with these additions */
@media (max-width: 640px) {
  .theme-toggle {
    left: 0.55rem;
    width: 32px;
    height: 32px;
  }
  
  .sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
  }
  
  .page-title {
    font-size: 2rem;
  }

  .nav-links {
    gap: 0.4rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }

  nav {
    padding: 1rem;
    margin-left: 0.35rem;
  }

  footer {
    padding: 1rem;
  }

  .date {
    font-size: 1rem;
  }

  .position {
    font-size: 1.2rem;
  }

  .company {
    font-size: 1.1rem;
  }

  .research-project {
    font-size: 1rem;
  }
  
  .experience-item {
    padding-left: 1.5rem;
  }
  
  .timeline-line {
    left: -0.5rem;
  }
  
  .timeline-dot {
    left: -5.5px;
  }
  
  main {
    padding: 1.5rem 1rem 4rem 1rem;
  }
  
  .chatbot-button {
    padding: 0.7rem 1.5rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .position {
    font-size: 1.1rem;
  }
  
  .company, .date {
    font-size: 0.95rem;
  }

  .theme-toggle {
  width: 30px;
  height: 30px;
}
}


       /* Light mode styles */
         body.light-mode {
         background-color: #fff;
         color: #000;
         }
         body.light-mode .date {
  color: #333;  /* Dark gray instead of #ccc */
}

body.light-mode .company {
  color: #444;  /* Slightly lighter than date */
}

body.light-mode .research-title {
  color: #555;  /* Medium gray for subtitle */
}
         body.light-mode nav,
         body.light-mode .theme-toggle,
         body.light-mode .nav-links a {
         color: #000;
         }
         body.light-mode .theme-toggle {
         border-color: #000;
         }
         body.light-mode .sun-icon circle,
         body.light-mode .sun-icon line {
         fill: #000;
         stroke: #000;
         }
         body.light-mode .timeline-line {
         background-color: #ddd;
         }
         body.light-mode .timeline-dot {
         background-color: #000;
         }
         body.light-mode .chatbot-button {
         background-color: #5a7a6f;
         color: #fff;
         }
         body.light-mode .chatbot-button:hover {
         background-color: #6a8a7f;
         }
         body.light-mode .scroll-top {
         border-color: #000;
         color: #000;
         }
         /* Hide sun in light mode, show moon */
         body.light-mode .sun-icon {
         display: none;
         }
         .moon-icon {
         display: none;
         width: 24px;
         height: 24px;
         }
         body.light-mode .moon-icon {
         display: block;
         }