:root {
  --background: #0a192f; /* Dark blue background */
  --foreground: #ccd6f6; /* Light gray text */
  --primary: #64ffda; /* Teal accent color */
  --secondary: #8892b0; /* Gray for secondary text */
  --card-background: #112240; /* Slightly lighter dark blue for cards/sections */
  --border-color: #233554; /* Darker blue for borders/dividers */
  --radius: 0.25rem; /* Small border radius */
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    padding: 4rem 2rem;
  }
}

.sidebar {
  flex: 0 0 300px;
  padding-right: 2rem;
  position: sticky;
  top: 4rem;
  height: fit-content;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .sidebar {
    position: relative;
    top: 0;
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

.profile-info .name {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.profile-info .title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.profile-info .tagline {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-color); /* Added border for visual separation */
  padding-top: 1rem; /* Added padding for visual separation */
}

.navigation li {
  margin-bottom: 0.75rem;
}

.navigation a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 1.5rem; /* Space for the active indicator */
}

.navigation a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 1px;
  background-color: var(--secondary);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.navigation a:hover {
  color: var(--primary);
}

.navigation a:hover::before {
  width: 1.5rem;
  background-color: var(--primary);
}

.navigation a.active {
  color: var(--primary);
}

.navigation a.active::before {
  width: 1.5rem;
  background-color: var(--primary);
}

.social-links {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--foreground);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.content {
  flex: 1;
  padding-left: 2rem;
}

@media (max-width: 767px) {
  .content {
    padding-left: 0;
  }
}

.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color); /* Added border for visual separation */
  padding-bottom: 0.5rem; /* Added padding for visual separation */
}

.section p {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.section p:last-child {
  margin-bottom: 0;
}

.link {
  color: var(--primary);
  text-decoration: none;
  position: relative;
}

.link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.job-entry {
  display: flex;
  margin-bottom: 2rem;
}

.job-entry .year {
  flex: 0 0 120px;
  font-size: 0.9rem;
  color: var(--secondary);
  margin-right: 1.5rem;
}

.job-entry .details {
  flex: 1;
}

.job-entry h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.job-entry p {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.job-entry .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.job-entry .tags span {
  background-color: var(--border-color);
  color: var(--primary);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Styles for project images */
.project-image-wrapper {
  margin-bottom: 1rem; /* Space between image and details */
  border-radius: var(--radius);
  overflow: hidden; /* Ensures image corners are rounded */
}

.project-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below image */
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.project-image-wrapper a:hover img {
  transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* Adjust job-entry for image layout on larger screens */
@media (min-width: 768px) {
  .job-entry {
    display: grid;
    grid-template-columns: 120px 1fr; /* Year column and content column */
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .job-entry .year {
    grid-column: 1;
    margin-right: 0; /* Remove margin as gap handles spacing */
  }

  .job-entry .project-image-wrapper {
    grid-column: 2; /* Place image in the second column */
    margin-bottom: 0; /* Remove bottom margin as it's now in a grid */
  }

  .job-entry .details {
    grid-column: 2; /* Place details in the second column */
  }
}
