/* ===== GALLERY PAGE STYLES ===== */

/* ===== GALLERY MAIN ===== */
.gallery {
  min-height: 100vh;
  padding: 163px 0 100px;
  position: relative;
  background: var(--color-black);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.gallery__inner {
  max-width: 1920px;
  width: 100%;
  position: relative;
}

.gallery__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.gallery__curtain {
  position: absolute;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 1;
}

.gallery__curtain--left {
  left: 0;
}

.gallery__curtain--right {
  right: 0;
  transform: scaleX(-1);
}

/* Bamboo list on the left - IN FRONT of curtain */
.gallery__bamboo {
  position: absolute;
  left: -65px;
  top: -115px;
  height: 150%;
  z-index: 3;
}

/* Bamboo decoration in center - BEHIND buttons */
.gallery__bamboo-decor {
  position: absolute;
  z-index: 2;
  opacity: 0.9;
}

.gallery__bamboo-decor--center {
  left: 25%;
  top: -20px;
  height: 130%;
  transform: rotate(15deg);
}

.gallery__content {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 0 106px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  min-height: calc(100vh - 263px);
  align-items: center;
}

.gallery__categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 500px;
}

.gallery__category {
  display: block;
  background: var(--color-cream);
  padding: 40px 60px;
  border-radius: 50px;
  font-family: var(--font-pixel);
  font-size: 28px;
  color: var(--color-black);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 6;
}

.gallery__category:hover {
  transform: translateX(-10px) scale(1.02);
  box-shadow: 0 6px 30px rgba(255, 245, 225, 0.4);
}

/* ===== PROJECT PAGE STYLES ===== */
.project {
  min-height: 100vh;
  padding: 163px 106px 100px;
  background: var(--color-black);
}

.project__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 129px;
  height: 129px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  color: var(--color-white);
}

.project__back:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.project__back svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
}

.project__header {
  margin-bottom: 60px;
}

.project__category {
  font-family: var(--font-pixel);
  font-size: 72px;
  color: var(--color-white);
  margin-bottom: 10px;
}

.project__title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-style: italic;
  color: var(--color-lime);
}

.project__hero {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 80px;
}

.project__main-image {
  flex: 1;
  max-width: 810px;
  border-radius: 20px;
  overflow: hidden;
}

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

.project__decoration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.project__bamboo {
  width: 200px;
}

.project__flower {
  width: 250px;
  filter: drop-shadow(0 0 20px rgba(255, 200, 100, 0.5));
}

.project__description {
  max-width: 1600px;
  margin-bottom: 60px;
}

.project__description p {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-white);
  line-height: 1.8;
  margin-bottom: 30px;
}

.project__tools {
  margin-bottom: 60px;
}

.project__tools-label {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--color-white);
  margin-bottom: 30px;
}

.project__tools-list {
  display: flex;
  gap: 30px;
}

.project__tool {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: #2d2d2d;
  padding: 15px;
}

.project__tool:hover {
  transform: scale(1.1);
}

.project__tool img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.project__gallery-item {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project__gallery-item:hover {
  transform: scale(1.02);
}

.project__gallery-item img {
  width: 100%;
  height: auto;
}

.project__cta {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 60px;
}

.project__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

/* ===== ANIMATIONS ===== */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-element.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery bamboo sway animation */
@keyframes bambooSway {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.gallery__bamboo {
  animation: bambooSway 6s ease-in-out infinite;
  transform-origin: bottom center;
}

.gallery__bamboo-decor--center {
  animation: bambooSway 8s ease-in-out infinite reverse;
  transform-origin: bottom center;
}

/* Category buttons slide in animation */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.gallery__category {
  opacity: 0;
  animation: slideInRight 0.6s ease-out forwards;
}

.gallery__category:nth-child(1) { animation-delay: 0.1s; }
.gallery__category:nth-child(2) { animation-delay: 0.2s; }
.gallery__category:nth-child(3) { animation-delay: 0.3s; }
.gallery__category:nth-child(4) { animation-delay: 0.4s; }

/* Hover glow effect */
@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 245, 225, 0.5);
  }
}

.gallery__category:hover {
  opacity: 1;
  animation: buttonGlow 1.5s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .gallery__content {
    justify-content: center;
    padding: 0 40px;
  }
  
  .project__hero {
    flex-direction: column;
    align-items: center;
  }
  
  .project__main-image {
    max-width: 100%;
  }
  
  .project__decoration {
    flex-direction: row;
    justify-content: center;
  }
}

/* Tablet uses desktop layout */
@media (max-width: 1024px) and (min-width: 577px) {
  .gallery__content {
    padding: 0 40px;
  }
  
  .gallery__category {
    padding: 30px 50px;
    font-size: 24px;
  }
  
  .project {
    padding: 140px 40px 80px;
  }
}

/* Mobile only */
@media (max-width: 576px) {
  .gallery {
    padding: 120px 0 60px;
  }
  
  .gallery__bamboo {
    width: 200px;
    left: -100px;
    z-index: 2;
  }
  
  .gallery__bamboo-decor {
    display: none;
  }
  
  .gallery__content {
    padding: 0 20px;
  }
  
  .gallery__categories {
    width: 100%;
    max-width: none;
    gap: 20px;
  }
  
  .gallery__category {
    padding: 25px 40px;
    font-size: 20px;
    border-radius: 30px;
  }
  
  .project {
    padding: 120px 20px 60px;
  }
  
  .project__back {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
  }
  
  .project__back svg {
    width: 24px;
    height: 24px;
  }
  
  .project__category {
    font-size: 36px;
  }
  
  .project__title {
    font-size: 24px;
  }
  
  .project__description p {
    font-size: 18px;
  }
  
  .project__tools-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .project__tool {
    width: 60px;
    height: 60px;
  }
  
  .project__gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project__cta {
    flex-direction: column;
    align-items: stretch;
  }
}
