/* projects.css - Styling for the projects */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* --- Global Styles --- */
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #000;
  color: #fff;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* dark overlay */
}

.hero-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-sizing: border-box;
}

.hero-top-nav .logo a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 4px;
}

.hero-top-nav .center-nav {
  display: flex;
  gap: 30px;
}

.hero-top-nav .center-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.hero-top-nav .center-nav a:hover,
.hero-top-nav .center-nav a.active {
  color: #fff;
}

.hero-top-nav.sticky {
  position: fixed;
  top: 0;
  transform: translateY(-100%);
  background-color: rgba(17, 17, 17, 0.95);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-top-nav.sticky.scrolled {
  transform: translateY(0);
}

.hero-top-nav .right-nav .menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  transform: translateY(-60px);
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
  .hero-top-nav .center-nav {
    display: none;
  }
  .hero-title {
    font-size: 40px;
  }
}

/* --- Timeline Wrapper --- */
.projects-timeline {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #fff;
  color: #000;
  overflow: hidden;
}

.timeline-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  position: relative;
}


.timeline-left {
  width: 35%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: #fff;
}

.timeline-right {
  width: 65%;
  height: calc(100% - 65px);
  margin-top: 65px;
  overflow-y: auto;
  position: relative;
  padding: 40px 40px 80vh 40px; /* Padding to allow last item to reach the top */
  box-sizing: border-box;
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.timeline-right::-webkit-scrollbar {
  display: none;
}

.timeline-item {
  width: 100%;
  height: 70px;
  padding: 0 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.timeline-item:hover,
.timeline-item.active,
.timeline-item.hover {
  background-color: #f7f7f7;
}


.timeline-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.timeline-read-btn {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.timeline-read-btn:hover {
  opacity: 0.6;
}


/* Right Column: Images Grid */
.timeline-images {
  width: 100%;
  margin-bottom: 30px;
  opacity: 1;
  visibility: visible;
}

.timeline-images:last-child {
  margin-bottom: 0;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}

.img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.timeline-images.active .img-grid img,
.timeline-images:hover .img-grid img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
  }
  .timeline-left {
    width: 100%;
    height: auto;
    padding: 20px 0;
  }
  .timeline-right {
    width: 100%;
    margin-top: 0;
    padding: 20px;
  }
  .img-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Project Individual Pages Gallery Hover Effect --- */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #ffffff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.gallery-caption {
  color: #111111;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  transform: translateY(8px);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  margin: 0;
}

.gallery-item:hover img {
  opacity: 0.15;
  transform: scale(1.03);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  visibility: visible;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

