* {
  box-sizing: border-box;
}

html {
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Page Layout */

#main-content {
  margin: 0 auto;
  max-width: 1000px;
  padding: 70px 34px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* Portfolio Header */

#portfolio-header {
  display: flex;
  gap: 20px;
  align-items: center;
}

#portfolio-header-image-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-basis: 50%;
}

.image-slideshow {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.portfolio-header-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.portfolio-header-image.active {
  transform: translateX(0);
}

.portfolio-header-image.slide-out {
  transform: translateX(-100%);
}

#portfolio-header-text-container {
  display: flex;
  flex-direction: column;
  gap: 34px;
  flex-basis: 50%;
}

/* About Section */

#about-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-section-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Project Section */

#my-work-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 100px;
  margin-top: -100px;
}

.projects-container {
  display: flex;
  gap: 34px 16px;
  flex-wrap: wrap;
}

/* Project Cards */

.project-card {
  max-width: calc((100% - 32px) / 3);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.project-card-text-container {
  flex-direction: column;
  display: flex;
  gap: 16px;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

/* Project Pages */

#project-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header-image {
  width: 100%;
  height: auto;
}

.inline-image-right {
  width: 100%;
  height: auto;
  /* border-radius: 8px; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inline-image-container-right {
  float: right;
  margin: 0 0 16px 16px;
  max-width: 300px;
}

.image-caption {
  font-size: 12px;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

#project-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-details-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Project Gallery */

#project-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-gallery-content {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 16px;
}

.gallery-image-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-image-container.half-width {
  width: calc((100% - 16px) / 2);
}

.gallery-image {
  width: 100%;
  height: auto;
}

/* Timeline Styles */

.timeline-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 30px;
}

.timeline-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-icon {
  width: 24px;
  height: 24px;
  color: #333;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  border-left: 2px solid #e0e0e0;
}

/* Restore bullet points */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.company-icon {
  width: 48px;
  height: 48px;
  color: #333;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 8px;
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.timeline-content {
  padding-bottom: 5px;
}

.timeline-item-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

.timeline-company {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  margin: 0 0 8px 0;
}

.timeline-description {
  font-size: 14px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  color: #666;
}

.timeline-bullets {
  margin: 8px 0 0 0;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  color: #666;
}

.timeline-bullets li {
  margin-bottom: 8px;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Extra Extra large devices (large laptops and desktops, 1200px and below) */
@media only screen and (max-width: 1600px) {
  #main-content {
    margin: 225px 275px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and below) */
@media only screen and (max-width: 1200px) {
  #main-content {
    margin: 225px 175px;
  }
}

/* Large devices (laptops/desktops, 1000px and below) */
@media only screen and (max-width: 1000px) {
  #main-content {
    margin: 225px 75px;
  }
}

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {
  #main-content {
    margin: 150px 50px;
  }

  #portfolio-header {
    flex-direction: column;
  }

  .project-card {
    max-width: calc((100% - 16px) / 2);
  }
}

/* Small devices (portrait tablets and large phones, 600px and below) */
@media only screen and (max-width: 600px) {
  #main-content {
    margin: 125px 20px;
  }

  .project-card {
    max-width: 100%;
  }
}
