/* ======================================================
   PORTFOLIO WORK - STORY STYLE (FINAL)
   ====================================================== */

.portfolio-work{
  padding: 20px 0;
}

.portfolio-work .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.work-header{
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.work-tag{
  display: inline-block;
  background: rgba(44,110,73,0.1);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.work-header h2 span{
  color: var(--color-primary);
}

.work-header p{
  margin-top: 15px;
}

/* ======================================================
   WORK LIST
   ====================================================== */

.work-list{
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ROW */
.work-row{
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
}

/* REVERSE */
.work-row.reverse{
  flex-direction: row-reverse;
}

/* IMAGE */
.work-image{
  flex: 1;
}

.work-image img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: 0.4s;
}

.work-image:hover img{
  transform: scale(1.05);
}

/* CONTENT */
.work-content{
  flex: 1;
}

.work-content h3{
  margin-bottom: 10px;
  font-size: 24px;
}

.work-content p{
  font-size: 16px;
  line-height: 1.6;
}

/* ======================================================
   PROJECT META
   ====================================================== */

.work-meta{
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-meta div{
  border: 1px solid #2f5a3f; /* bamboo theme color */
  color: #2f5a3f;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.work-meta span{
  font-weight: 600;
  color: var(--color-dark);
}

/* Floating leaves (unchanged) */
.leaf{
  position:absolute;
  width:60px;
  height:60px;
  background:url('/assets/images/leaf.png') no-repeat center/contain;
  opacity:.45;
  animation:floatLeaf 7s ease-in-out infinite;
  z-index:1;
}

/* LEFT SIDE LEAVES */
.work-leaf-left-1{
  top: 125%;
  left:75%;
  animation-delay:0s;
}

.work-leaf-left-2{
  top:195%;
  left:22%;
  animation-delay:2s;
}

.work-leaf-left-3{
  top:270%;
  left:70%;
  animation-delay:4s;
}

.work-leaf-left-4{
  top:330%;
  left:25%;
  animation-delay:6s;
}

.work-leaf-left-5{
  top: 400%;
  left:70%;
  animation-delay:8s;
}

.work-leaf-left-6{
  top:470%;
  left:20%;
  animation-delay:10s;
}

.work-leaf-left-7{
  top:500%;
  left:80%;
  animation-delay:12s;
}

.work-leaf-left-8{
  top:550%;
  left:65%;
  animation-delay:14s;
}

@keyframes floatLeaf{
  0%{
    transform:translateY(0) rotate(0deg);
  }

  50%{
    transform:translateY(-20px) rotate(12deg);
  }

  100%{
    transform:translateY(0) rotate(0deg);
  }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media(max-width: 992px){

  .work-row,
  .work-row.reverse{
    flex-direction: column;
    text-align: center;
  }

}

@media(max-width: 576px){

  .portfolio-work{
    padding: 70px 0;
  }

}