/* ==============================================
   PROJECT GALLERY SECTION 
   ============================================== */

.project-gallery-section {
  padding: 4rem 0;
  background-color: var(--color-white);
  color: var(--color-dark);
}

.container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1400px;
}

/* ==============================================
     LAYOUT STRUCTURE 
     ============================================== */

.sidebar-col {
  padding-right: 2rem;
  position: relative;
}

.gallery-col {
  padding-left: 2rem;
}

/* ==============================================
     SIDEBAR STYLES 
     ============================================== */

.project-sidebar {
  padding: 0;
  height: calc(100vh - 120px);
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-dark);
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-dark);
  letter-spacing: 0.5px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-links::-webkit-scrollbar {
  width: 6px;
}
.sidebar-links::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

.sidebar-links a {
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  position: relative;
  background-color: transparent;
}

.sidebar-links a:hover {
  background-color: var(--color-gold);
  color: var(--color-dark);
}

.sidebar-links a.active {
  background-color: var(--color-dark);
  color: var(--color-gold);
  font-weight: 700;
}

.sidebar-links a.active::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  animation: fadeIn 0.3s ease;
}

.sidebar-links a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-gold);
  border-radius: 0 2px 2px 0;
  animation: slideIn 0.3s ease;
}

/* ==============================================
     PROJECT HEADER 
     ============================================== */

.project-header {
  margin-bottom: 3rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: var(--fs-base);
  color: var(--color-dark);
}

/* ==============================================
     GALLERY STYLES 
     ============================================== */

.gallery-container {
  margin-bottom: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.zoom-btn {
  background: var(--color-gold);
  color: var(--color-dark);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zoom-btn:hover {
  background: var(--color-gold);
  transform: scale(1.1);
}

/* ==============================================
     PROJECT DETAILS 
     ============================================== */

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.meta-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.meta-item:hover {
  transform: translateY(-5px);
  background: rgba(251, 210, 22, 0.1);
}

.meta-item i {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-top: 3px;
}

.meta-item h4 {
  font-size: var(--fs-sm);
  color: var(--color-dark);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.meta-item p {
  font-size: var(--fs-base);
  color: var(--color-dark);
  margin: 0;
  font-weight: 400;
}

.project-description-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-dark);
}

.project-description-content h3 {
  font-size: var(--fs-lg);
  color: var(--color-dark);
  position: relative;
  padding-left: 1.5rem;
}

.project-description-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 4px;
  background: var(--color-gold);
  border-radius: 4px;
}

.project-description-content p {
  line-height: 1.8;
  color: var(--color-dark);
}

/* ==============================================
     LIGHTBOX MODAL 
     ============================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.lightbox-content {
  display: block;
  margin: 60px auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.3s;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--color-white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: var(--color-gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.lightbox-caption {
  text-align: center;
  color: var(--color-white);
  padding: 10px 0;
  font-size: var(--fs-base);
}

/* ==============================================
     ANIMATIONS 
     ============================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* ==============================================
     RESPONSIVE ADJUSTMENTS 
     ============================================== */

@media (max-width: 992px) {
  .sidebar-col {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .gallery-col {
    padding-left: 0;
  }

  .project-sidebar {
    position: relative;
    top: 0;
    padding: 1rem;
    border-radius: 12px;
  }

  .sidebar-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar-links a {
    padding: 0.6rem 1rem;
    font-size: var(--fs-sm);
  }

  .sidebar-links a.active::before {
    width: 100%;
    height: 2px;
    top: auto;
    bottom: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
  }

  .sidebar-links a.active::after {
    display: none;
  }
}

/* ==============================================
   TOGGLE BUTTON STYLES 
   ============================================== */

.sidebar-toggle {
  display: none;
}

@media (max-width: 992px) {
  .sidebar-toggle {
    display: flex;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 80px;
    background: var(--color-white);
    border: none;
    border-radius: 0 8px 8px 0;
    color: var(--color-dark);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .sidebar-toggle i {
    font-size: 24px;
    transition: transform 0.3s ease;
  }

  .project-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  }

  .sidebar-open .project-sidebar {
    left: 0;
  }

  .sidebar-open .sidebar-toggle {
    left: 280px;
  }
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.753);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}
