/* Projeler Sayfası */

@keyframes projHeroBg{
  0%{transform:scale(1)}
  100%{transform:scale(1.06)}
}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(28px)}
  to{opacity:1;transform:translateY(0)}
}

.projects-hero{
  position:relative;
  min-height:68vh;
  display:flex;
  align-items:flex-end;
  padding:0 var(--section-px) 90px;
  overflow:hidden;
}

.projects-hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  animation:projHeroBg 18s ease-in-out infinite alternate;
}

.projects-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,rgba(var(--primary-rgb),.88) 0%,rgba(0,0,0,.28) 55%,rgba(var(--primary-rgb),.72) 100%),
    linear-gradient(to top,rgba(var(--primary-rgb),.96) 0%,transparent 45%);
  z-index:1;
}

.projects-hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
}

.projects-hero-content .hero-tag{
  display:inline-block;
  margin-bottom:18px;
  animation:fadeUp .7s ease both;
}

.projects-hero h1{
  font-family:var(--font-heading);
  color:#fff;
  font-size:clamp(40px,5.5vw,78px);
  line-height:1.02;
  letter-spacing:-2px;
  animation:fadeUp .8s .1s ease both;
}

.projects-hero p{
  margin-top:22px;
  max-width:680px;
  color:rgba(255,255,255,.72);
  font-size:19px;
  line-height:1.7;
  animation:fadeUp .8s .2s ease both;
}

/* Status Tabs */
.project-status-tabs{
  display:flex;
  gap:14px;
  padding:48px var(--section-px) 0;
  margin-bottom:44px;
  background:var(--bg-light);
}

.status-btn{
  padding:14px 38px;
  background:var(--bg-white);
  border:2px solid var(--border);
  color:var(--text-muted);
  font-family:var(--font-heading);
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  border-radius:50px;
  transition:var(--transition);
}

.status-btn:hover{
  border-color:var(--secondary);
  color:var(--secondary);
  transform:translateY(-2px);
}

.status-btn.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  box-shadow:0 8px 28px rgba(var(--primary-rgb),.22);
}

/* Filter Buttons */
.project-filter{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:40px;
  padding:0 var(--section-px);
}

.filter-btn{
  border:none;
  padding:12px 22px;
  border-radius:30px;
  background:var(--bg-white);
  color:var(--text-dark);
  font-family:var(--font-heading);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  transition:var(--transition);
}

.filter-btn:hover{
  border-color:var(--secondary);
  transform:translateY(-2px);
}

.filter-btn.active{
  background:var(--secondary);
  color:#fff;
  border-color:var(--secondary);
}

/* Project List */
.projects-list-inner{
  display:grid;
  gap:30px;
  padding:0 var(--section-px);
  padding-bottom:var(--section-py);
  background:var(--bg-light);
}

/* Project Card */
.lux-project-card{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  min-height:520px;
  background:var(--bg-white);
  text-decoration:none;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
  animation:projectFade .4s ease;
}

.lux-project-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
  border-color:var(--secondary);
}

.lux-project-image{overflow:hidden}

.lux-project-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.7s ease;
}

.lux-project-card:hover .lux-project-image img{
  transform:scale(1.05);
}

.lux-project-content{
  padding:55px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.lux-project-content span{
  color:var(--secondary);
  font-family:var(--font-heading);
  font-size:12px;
  font-weight:800;
  letter-spacing:3px;
  text-transform:uppercase;
}

.lux-project-content h2{
  margin-top:18px;
  font-family:var(--font-heading);
  color:var(--text-dark);
  font-size:clamp(28px,3.5vw,48px);
  line-height:1.1;
}

.lux-project-content p{
  margin-top:20px;
  color:var(--text-muted);
  font-size:16px;
  line-height:1.8;
}

.project-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
}

.project-meta strong{
  padding:8px 14px;
  background:var(--bg-light);
  color:var(--text-dark);
  font-size:13px;
  font-weight:700;
  border-radius:20px;
}

.lux-project-content em{
  margin-top:30px;
  color:var(--accent);
  font-style:normal;
  font-family:var(--font-heading);
  font-weight:800;
  font-size:14px;
  letter-spacing:.5px;
  transition:var(--transition);
}

.lux-project-card:hover em{
  color:var(--secondary);
  transform:translateX(4px);
}

/* Empty State */
.empty-projects{
  padding:70px;
  background:var(--bg-white);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  text-align:center;
}

.empty-projects h3{
  font-family:var(--font-heading);
  color:var(--text-dark);
  font-size:28px;
}

.empty-projects p{
  margin-top:12px;
  color:var(--text-muted);
  font-size:16px;
}

/* ===== PROJECT DETAIL ===== */
.project-detail-hero{
  position:relative;
  height:78vh;
  min-height:580px;
  overflow:hidden;
}

.project-detail-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.project-detail-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,rgba(var(--primary-rgb),.8),rgba(0,0,0,.3),rgba(var(--primary-rgb),.65)),
    linear-gradient(to top,rgba(var(--primary-rgb),.9) 0%,transparent 40%);
}

.project-detail-title{
  position:absolute;
  left:var(--section-px);
  bottom:80px;
  max-width:900px;
  color:#fff;
}

.project-detail-title span{
  color:var(--accent);
  font-family:var(--font-heading);
  font-size:13px;
  font-weight:800;
  letter-spacing:4px;
  text-transform:uppercase;
}

.project-detail-title h1{
  margin-top:16px;
  font-family:var(--font-heading);
  font-size:clamp(32px,5vw,70px);
  line-height:1.04;
  letter-spacing:-2px;
}

.project-detail-title p{
  margin-top:20px;
  max-width:700px;
  color:var(--text-light);
  font-size:19px;
  line-height:1.6;
}

/* Detail Content */
.project-detail-content{
  padding:var(--section-py) var(--section-px);
  display:grid;
  grid-template-columns:1fr 340px;
  gap:65px;
  background:var(--bg-white);
}

.project-detail-text .section-tag{margin-bottom:8px}

.project-detail-text h2{
  margin-top:14px;
  font-family:var(--font-heading);
  color:var(--text-dark);
  font-size:clamp(30px,4vw,54px);
  line-height:1.1;
}

.project-detail-text p{
  margin-top:22px;
  color:var(--text-muted);
  font-size:17px;
  line-height:1.9;
}

/* Detail Sidebar */
.project-detail-info{
  align-self:start;
  background:var(--bg-light);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:34px;
  position:sticky;
  top:100px;
}

.project-detail-info div{
  padding:20px 0;
  border-bottom:1px solid #ddd;
}

.project-detail-info div:last-child{border-bottom:none}

.project-detail-info strong{
  color:var(--secondary);
  font-family:var(--font-heading);
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
}

.project-detail-info p{
  margin-top:8px;
  color:var(--text-dark);
  font-size:17px;
  font-weight:700;
}

/* Gallery */
.project-gallery-section{
  padding:var(--section-py) var(--section-px);
  background:var(--bg-light);
}

.project-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:45px;
}

.gallery-item{
  position:relative;
  height:280px;
  overflow:hidden;
  border-radius:var(--radius-md);
  cursor:pointer;
  opacity:0;
  transform:translateY(30px) scale(.97);
  transition:.6s cubic-bezier(.22,.68,0,1);
  transition-delay:calc(var(--gi,0) * .07s);
  box-shadow:var(--shadow-sm);
}

.gallery-item.visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.5s ease;
}

.gallery-item:hover img{transform:scale(1.08)}

.gallery-item-overlay{
  position:absolute;
  inset:0;
  background:rgba(var(--primary-rgb),.55);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:.3s ease;
}

.gallery-item:hover .gallery-item-overlay{opacity:1}

.gallery-item-overlay svg{
  width:38px;height:38px;
  color:#fff;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

/* Lightbox */
.gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(0,0,0,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:.3s ease;
}

.gallery-lightbox.active{opacity:1;visibility:visible}

.lb-img-wrap{
  max-width:90vw;
  max-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lb-img-wrap img{
  max-width:100%;
  max-height:88vh;
  object-fit:contain;
  border-radius:var(--radius-sm);
  box-shadow:0 24px 80px rgba(0,0,0,.5);
  transition:opacity .2s ease;
}

.lb-close{
  position:absolute;
  top:20px;right:24px;
  width:46px;height:46px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:.25s ease;
}

.lb-close:hover{background:rgba(255,255,255,.22)}

.lb-prev,.lb-next{
  position:absolute;
  top:50%;transform:translateY(-50%);
  width:54px;height:54px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  color:#fff;
  font-size:30px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:.25s ease;
}

.lb-prev{left:24px}
.lb-next{right:24px}
.lb-prev:hover,.lb-next:hover{background:rgba(255,255,255,.22)}

.lb-counter{
  position:absolute;
  bottom:24px;left:50%;
  transform:translateX(-50%);
  color:rgba(255,255,255,.55);
  font-family:var(--font-heading);
  font-size:14px;
  font-weight:600;
  letter-spacing:.5px;
}

/* Video */
.project-video{margin-bottom:50px}

.project-video video{
  width:100%;
  max-height:680px;
  object-fit:cover;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  background:#000;
}

/* Back Link */
.project-back{
  padding:65px var(--section-px);
  background:var(--bg-white);
  text-align:center;
}

.project-back a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:16px 34px;
  background:var(--primary);
  color:#fff;
  font-family:var(--font-heading);
  font-weight:800;
  font-size:15px;
  border-radius:30px;
  transition:var(--transition);
}

.project-back a:hover{
  background:var(--secondary);
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(var(--secondary-rgb),.3);
}

@keyframes projectFade{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

/* Responsive */
@media(max-width:1000px){
  .lux-project-card{grid-template-columns:1fr}
  .lux-project-image{height:400px}
  .project-detail-content{grid-template-columns:1fr}
  .project-detail-info{position:static}
  .project-gallery{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:768px){
  .projects-hero{min-height:55vh;padding:0 24px 70px}

  .project-status-tabs{
    padding:36px 24px 0;
    gap:10px;
    flex-wrap:wrap;
  }

  .status-btn{
    padding:12px 28px;
    font-size:14px;
    flex:1;
    text-align:center;
  }

  .projects-list-inner{padding:0 24px;padding-bottom:var(--section-py)}

  .lux-project-content{padding:30px}

  .project-detail-hero{height:65vh;min-height:480px}

  .project-detail-title{left:24px;right:24px;bottom:50px}

  .project-detail-content,
  .project-gallery-section{padding:var(--section-py) var(--section-px)}

  .project-gallery{grid-template-columns:1fr}
  .gallery-item{height:240px}

  .lb-prev{left:12px}
  .lb-next{right:12px}
  .lb-prev,.lb-next{width:44px;height:44px;font-size:24px}
}
