body {
  font-family: 'Spline Sans Mono', 'Courier New', monospace, Arial, sans-serif;
  font-size: 12px;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: #f5f5f5; /* Match body background for flat design */
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.header h1 {
  font-size: 20px;
  margin: 0;
}
.nav {
  display: flex;
  align-items: center;
}
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #080708;
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 16px;
  line-height: 20px;
}
.language-selector {
  position: relative;
  margin-left: 20px;
}
.flag-icon {
  width: 24px;
  height: 16px; /* Better aspect ratio for flags */
  border: 1px solid #ddd; /* Subtle border */
  border-radius: 3px; /* Slightly rounded corners instead of circle */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effects */
  object-fit: cover; /* Ensure image fits properly */
  display: block; /* Proper display for images */
}
.flag-icon:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow on hover */
}
.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.language-selector:hover .language-dropdown {
  display: block;
}
.flag-option {
  width: 24px;
  height: 16px; /* Better aspect ratio for flags */
  margin: 5px;
  border: 1px solid #ddd; /* Subtle border */
  border-radius: 3px; /* Slightly rounded corners instead of circle */
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease; /* Smooth hover effects */
  object-fit: cover; /* Ensure image fits properly */
  display: block; /* Proper display for images */
}
.flag-option:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  background-color: #f0f0f0; /* Light gray background on hover */
}
.intro-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.intro-text {
  width: 60%;
  font-family: 'Spline Sans Mono', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 400;
  color: rgb(8, 8, 33);
  line-height: 28px;
  text-align: start;
  overflow-wrap: break-word;
  word-break: break-word;
}
.intro-text h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 24px;
  line-height: 28px;
  color: #080708;
  text-transform: none;
  margin-bottom: 20px;
}
.intro-text p {
  line-height: 28px;
  color: rgb(8, 8, 33);
}
.intro-image {
  width: 30%; /* Revert to original width */
  margin-top: 48px; /* Align top image with first line of paragraph text */
}
.intro-image img {
  width: 100%;
  border-radius: 8px;
}
.stacked-image {
  display: block;
  margin-bottom: 15px;
  /* Ensure GIF animations play smoothly */
  image-rendering: auto;
  -webkit-image-rendering: auto;
}
.stacked-image:last-child {
  margin-bottom: 0;
}
.experience-section h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 20px;
}
.experience-table {
  width: 100%;
  border-collapse: collapse;
}
.experience-table th, .experience-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.experience-table th {
  font-weight: bold;
  width: 20%;
}
.experience-table .years {
  width: 15%;
}
.experience-table .company {
  width: 15%;
}
.experience-table .toggle {
  width: 5%;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.experience-table .toggle-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.experience-table .toggle-icon:hover {
  background-color: #d3d3d3; /* Light grey circle */
  border-radius: 50%;
}
.experience-details {
  display: none;
  padding: 15px;
  background-color: #f5f5f5; /* Match body background for flat design */
  border-bottom: 1px solid #ddd;
}
.experience-details p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}
.partners-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.partners-section h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 20px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.partner-item {
  display: flex;
  align-items: center;
  padding: 15px;
  transition: transform 0.2s ease;
  min-height: 80px;
}

.partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.partner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  width: 100%;
}

.partner-name {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  color: #333;
}

.partner-use-case {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.2;
  color: #666;
}

.partner-item:hover {
  transform: scale(1.05);
}

.partner-logo {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo[alt="AWS"] {
  max-width: 80px;
  max-height: 35px;
  margin-bottom: 12px;
}

.partner-item:hover .partner-logo {
  transform: scale(1.05);
}

/* Competencies Section */
.competencies-section {
  margin: 40px 0;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.competencies-section h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  margin: 0;
  margin-bottom: 20px;
  min-width: 120px;
  flex-shrink: 0;
}

.competencies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.competency-item {
  background: #e8e8e8;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: "Spline Sans Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.competency-item:hover {
  background: #d0d0d0;
}

/* Content Section for embedded media */
.content-section {
  margin: 20px 0;
}

.content-section .image-with-caption {
  max-width: 600px;
  margin: 0;
}

.content-section .stacked-image {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.content-section .image-caption {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Publications Section */
.publications-section {
  margin: 40px 0;
}

.publications-section h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.publications-section::before {
  display: none;
}

.publications-section::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin-top: 20px;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publication-item {
  padding: 0;
  background: transparent;
  border: none;
  transition: none;
}

.publication-item:hover {
  background: transparent;
  transform: none;
}

.publication-text {
  font-family: "Spline Sans Mono", monospace;
  font-size: 12px;
  line-height: 18px;
  color: #333;
  display: block;
}

.work-section {
  margin-top: 40px;
}
.work-section h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 24px;
  line-height: 28px;
  color: #080708;
  text-transform: none;
  margin-bottom: 20px;
}
.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Set to 4 columns */
  gap: 20px;
}
.work-item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Ensure square images */
  object-fit: cover;
  border-radius: 8px;
}
.work-item .hover-image {
  transition: opacity 0.3s ease; /* Smooth transition for image swap */
}
.work-item p {
  margin: 5px 0 0;
  text-align: center;
  line-height: 1.6;
}
/* Connect section and banner styling */
.connect-section {
  margin-top: 40px;
}
.connect-banner {
  margin-bottom: 20px;
  display: block;
  width: 100%;
}
.connect-banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  max-width: 100%;
}
.connect-content {
  display: flex;
  justify-content: flex-start; /* Align items to the left */
}
.connect-title {
  width: 30%;
  margin-right: 5%; /* Add some spacing between columns */
}
.connect-title h2 {
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 24px;
  line-height: 28px;
  color: #080708;
  text-transform: none;
  margin: 0;
}
.connect-details {
  width: 65%;
  text-align: right; /* Align text to the right */
}
.connect-details p {
  line-height: 1.6;
  margin: 5px 0;
}
.social-links {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  justify-content: flex-start; /* Align icons to the left */
}
.social-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}
.social-icon:hover {
  transform: scale(1.2);
}
.social-icon svg {
  fill: #333;
}

/* Claude Credit Styling */
.claude-credit {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-top: 10px;
}

.claude-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}

/* Work detail page styles */
.work-detail {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.work-detail h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.work-detail-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.work-detail p {
  line-height: 28px;
  color: rgb(8, 8, 33);
  font-size: 12px;
}

/* Work item links */
.work-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.work-item-link:hover {
  transform: translateY(-2px);
}

.work-item-link:hover .work-item img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  /* Container adjustments for mobile */
  .container {
    margin: 20px auto;
    padding: 20px;
  }
  
  /* Header adjustments for mobile */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .header h1 {
    font-size: 18px;
  }
  
  .nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav a {
    margin-left: 0;
    margin-right: 15px;
    font-size: 14px;
    line-height: 18px;
  }
  
  .language-selector {
    margin-left: 0;
  }
  
  /* Work gallery mobile optimization */
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* Intro section mobile optimization */
  .intro-section {
    flex-direction: column;
    margin-bottom: 30px;
  }
  
  .intro-text {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .intro-text h2 {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 15px;
  }
  
  .intro-text p {
    font-size: 11px;
    line-height: 24px;
  }
  
  .intro-image {
    width: 100%;
    margin-top: 0;
  }
  
  /* Experience table mobile optimization */
  .experience-section {
    margin-top: 30px;
  }
  
  .experience-section h2 {
    font-family: "Spline Sans Mono", monospace;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 15px;
  }
  
  .experience-table {
    font-size: 10px;
  }
  
  .experience-table th, .experience-table td {
    padding: 10px 8px;
  }
  
  .experience-table th {
    font-size: 11px;
    width: 35%;
  }
  
  .experience-table .years {
    width: 25%;
    font-size: 9px;
  }
  
  .experience-table .company {
    width: 25%;
    font-size: 10px;
  }
  
  .experience-table .toggle {
    width: 15%;
  }
  
  .experience-details p {
    font-size: 10px;
    line-height: 20px;
    padding: 5px 0;
  }
  
  /* Competencies section mobile optimization */
  .competencies-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .competencies-section h2 {
    font-size: 16px;
    line-height: 20px;
    min-width: auto;
  }
  
  .competencies-grid {
    gap: 8px;
  }
  
  .competency-item {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  /* Publications section mobile optimization */
  .publications-section {
    margin: 30px 0;
  }
  
  .publications-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  .publications-section::after {
    margin-top: 15px;
  }
  
  .publications-list {
    gap: 6px;
  }
  
  .publication-text {
    font-size: 11px;
    line-height: 16px;
  }
  
  /* Content section mobile optimization */
  .content-section .image-with-caption {
    max-width: 100%;
  }
  
  .content-section .stacked-image {
    max-width: 100%;
  }
  
  .content-section .image-caption {
    font-size: 11px;
  }
  
  /* Work section mobile optimization */
  .work-section {
    margin-top: 30px;
  }
  
  .work-section h2 {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 15px;
  }
  
  .work-item p {
    font-size: 10px;
    margin: 8px 0 0;
  }
  
  /* Partners section mobile optimization */
  .partners-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  .partners-section h2 {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 15px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .partner-item {
    min-height: 60px;
    padding: 10px;
  }
  
  .partner-link {
    gap: 8px;
  }
  
  .partner-logo {
    max-width: 70px;
    max-height: 35px;
  }
  
  .partner-logo[alt="AWS"] {
    max-width: 55px;
    max-height: 25px;
    margin-bottom: 8px;
  }
  
  .partner-name {
    font-size: 11px;
  }
  
  .partner-use-case {
    font-size: 9px;
  }
  
  /* Connect section mobile optimization */
  .connect-section {
    margin-top: 30px;
  }
  
  .connect-content {
    flex-direction: column;
  }
  
  .connect-title {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .connect-title h2 {
    font-size: 24px;
    line-height: 28px;
  }
  
  .connect-details {
    width: 100%;
    text-align: left;
  }
  
  .connect-details p {
    font-size: 11px;
    margin: 8px 0;
    line-height: 20px;
  }
  
  /* Social links mobile optimization */
  .social-links {
    justify-content: flex-start;
    gap: 12px;
  }
  
  .social-icon svg {
    width: 20px;
    height: 20px;
  }
  
  /* Claude credit mobile optimization */
  .claude-credit {
    font-size: 9px;
    margin-top: 8px;
  }
  
  .claude-icon {
    width: 14px;
    height: 14px;
  }
  
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
  .container {
    margin: 15px auto;
    padding: 15px;
  }
  
  .header h1 {
    font-size: 16px;
  }
  
  .nav a {
    font-size: 12px;
    line-height: 16px;
    margin-right: 12px;
  }
  
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .experience-table th, .experience-table td {
    padding: 8px 5px;
  }
  
  .experience-table th {
    font-size: 10px;
  }
  
  .experience-table .years,
  .experience-table .company {
    font-size: 8px;
  }
  
  .experience-details p {
    font-size: 9px;
    line-height: 1.3;
  }
  
  .experience-table .toggle-icon {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
  }
  
  /* Partners section very small mobile optimization */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .partner-item {
    min-height: 50px;
    padding: 8px;
  }
  
  .partner-link {
    gap: 6px;
  }
  
  .partner-logo {
    max-width: 50px;
    max-height: 25px;
  }
  
  .partner-logo[alt="AWS"] {
    max-width: 40px;
    max-height: 18px;
    margin-bottom: 6px;
  }
  
  .partner-name {
    font-size: 10px;
  }
  
  .partner-use-case {
    font-size: 8px;
  }
}