﻿/* ===== PROJECT PAGE ===== */
:root {
  --dark-bg: #0a0a12;
  --accent: #22c55e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Page transition */
.page-transition {
  position: fixed; inset: 0; z-index: 9998;
  background: #03030a; opacity: 1; pointer-events: none;
  transition: opacity 0.38s ease;
}
.page-transition.pt-done   { opacity: 0; }
.page-transition.pt-active { opacity: 1; pointer-events: all; }

body {
  background: var(--dark-bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.proj-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.proj-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}

.proj-nav-back:hover {
  color: rgba(255, 255, 255, 0.9);
  gap: 12px;
}

.proj-nav-back svg { flex-shrink: 0; }

.proj-nav-logo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* HERO */
.proj-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 48px 36px;
}

.proj-category-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  background: rgba(34,197,94, 0.14);
  border: 1px solid rgba(34,197,94, 0.32);
  color: rgba(160, 175, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.proj-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 18px;
}

.proj-description {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.48);
  max-width: 680px;
}

.proj-hero-divider {
  max-width: 1240px;
  margin: 36px auto 0;
  padding: 0 48px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* GALLERY */
.proj-gallery {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 48px 100px;
}

.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.proj-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.proj-gallery-item:hover {
  transform: scale(1.025);
  box-shadow: 0 12px 48px rgba(34,197,94, 0.18);
  border-color: rgba(34,197,94, 0.3);
}

.proj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  display: block;
}

/* Watermark */
.proj-gallery-item::after {
  content: 'UNQ DESIGN';
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* Hover zoom icon */
.proj-gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34,197,94, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.proj-gallery-item:hover::before { opacity: 1; }

/* LOADING / EMPTY STATES */
.proj-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: rgba(255, 255, 255, 0.3);
  gap: 16px;
}

.proj-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(34,197,94, 0.7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.proj-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 40px;
}

.proj-not-found h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.proj-not-found p {
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 28px;
  font-size: 15px;
}

.proj-not-found a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(140, 155, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.proj-not-found a:hover { color: #fff; }

/* LIGHTBOX */
.proj-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbIn 0.18s ease;
}

.proj-lightbox.hidden { display: none; }

@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.lb-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 26px;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  user-select: none;
}

.lb-arrow:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-img-wrap {
  position: relative;
  max-width: min(90vw, 1400px);
  max-height: 85vh;
}

.lb-img-wrap img {
  display: block;
  max-width: min(90vw, 1400px);
  max-height: 85vh;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Watermark on lightbox */
.lb-img-wrap::after {
  content: 'UNQ DESIGN';
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  user-select: none;
}

.lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== PROJECT FOOTER ===== */
.pft-footer {
  position: relative; overflow: hidden;
  margin-top: 40px;
}

/* Background */
.pft-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pft-blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.pft-blob-1 {
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.14) 0%, transparent 70%);
  top: -120px; left: -60px;
  animation: pftBlob1 22s ease-in-out infinite;
}
.pft-blob-2 {
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(22,163,74,0.10) 0%, transparent 70%);
  bottom: -60px; right: 5%;
  animation: pftBlob2 28s ease-in-out infinite;
}
@keyframes pftBlob1 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(60px,30px); }
}
@keyframes pftBlob2 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-50px,-25px); }
}
.pft-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 56px 56px;
}
.pft-scan {
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.04), transparent);
  animation: pftScan 9s linear infinite;
}
@keyframes pftScan { to { left: 150%; } }

/* Top animated border */
.pft-top-line {
  position: relative; z-index: 3; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(34,197,94,0.8) 20%,
    rgba(74,222,128,1) 50%, rgba(34,197,94,0.8) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: pftLine 4s linear infinite;
}
@keyframes pftLine {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Wrap */
.pft-wrap {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 56px 48px 0;
}

/* ── Centered brand ── */
.pft-center {
  text-align: center;
  padding: 56px 0 44px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.pft-logo {
  font-size: 24px; font-weight: 800; letter-spacing: 0.06em;
  color: #fff; text-transform: uppercase;
}
.pft-logo span {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pft-tagline {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,0.35);
  max-width: 440px;
}
.pft-avail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 11px; border-radius: 50px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  font-size: 11px; font-weight: 500;
  color: rgba(100,220,130,0.85);
}
.pft-avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.8);
  flex-shrink: 0; animation: pftDot 2s ease-in-out infinite;
}
@keyframes pftDot {
  0%,100% { box-shadow: 0 0 5px rgba(34,197,94,0.8); transform: scale(1); }
  50%      { box-shadow: 0 0 14px rgba(34,197,94,1); transform: scale(1.25); }
}

/* ── Wide banner ── */
.pft-banner {
  position: relative; border-radius: 28px; padding: 2px;
  background: linear-gradient(130deg,
    rgba(34,197,94,0.9), rgba(74,222,128,0.95),
    rgba(20,83,45,0.7), rgba(254,243,199,0.85), rgba(34,197,94,0.9));
  background-size: 300% 300%;
  animation: pftBannerBorder 5s ease infinite;
  box-shadow: 0 8px 60px rgba(34,197,94,0.28), 0 0 120px rgba(34,197,94,0.12);
  transition: box-shadow 0.3s ease;
}
.pft-banner:hover {
  box-shadow: 0 12px 80px rgba(34,197,94,0.45), 0 0 160px rgba(34,197,94,0.20);
}
@keyframes pftBannerBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pft-banner-glow {
  position: absolute; inset: 0; border-radius: 28px;
  background: radial-gradient(ellipse 60% 80% at 50% 50%,
    rgba(34,197,94,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: pftGlowPulse 4s ease-in-out infinite;
}
@keyframes pftGlowPulse {
  0%,100% { opacity: 0.6; } 50% { opacity: 1; }
}
.pft-banner-shine { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; pointer-events: none; z-index: 1; }
.pft-banner-shine::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: pftShine 4s ease-in-out infinite;
}
@keyframes pftShine { 0% { left: -100%; } 40% { left: 150%; } 100% { left: 150%; } }

.pft-banner-inner {
  position: relative; z-index: 2;
  background: rgba(8,8,20,0.90); border-radius: 26px;
  padding: 36px 48px;
  display: flex; align-items: center; gap: 36px;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
.pft-banner-icon {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(34,197,94,0.10), 0 4px 24px rgba(34,197,94,0.50);
  animation: pftIconPulse 3s ease-in-out infinite;
}
.pft-banner-icon svg { width: 32px; height: 32px; color: #fff; }
@keyframes pftIconPulse {
  0%,100% { box-shadow: 0 0 0 8px rgba(34,197,94,0.10), 0 4px 24px rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(34,197,94,0.06), 0 4px 36px rgba(34,197,94,0.7); }
}
.pft-banner-text { flex: 1; min-width: 0; }
.pft-banner-title {
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 800;
  color: #fff; margin-bottom: 8px; line-height: 1.2;
}
.pft-banner-desc {
  font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.42);
}
.pft-banner-cta { flex-shrink: 0; }
.pft-back-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(20,83,45,0.3));
  border: 1px solid rgba(34,197,94,0.5);
  color: rgba(254,243,199,0.95);
  font-size: 14px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s;
  box-shadow: 0 4px 20px rgba(34,197,94,0.30);
}
.pft-back-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, rgba(34,197,94,0.5), rgba(20,83,45,0.5));
  border-color: rgba(34,197,94,0.8);
  box-shadow: 0 10px 40px rgba(34,197,94,0.55);
  color: #fff;
}

/* Watermark */
.pft-watermark {
  position: relative;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  text-align: center; line-height: 1; padding: 16px 0 0;
  user-select: none; pointer-events: none; overflow: hidden;
}

/* Bottom bar */
.pft-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 28px; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.pft-copy { font-size: 11px; color: rgba(255,255,255,0.20); letter-spacing: 0.06em; }
.pft-bottom-r { font-size: 11px; color: rgba(255,255,255,0.16); letter-spacing: 0.05em; }

/* Responsive */
@media (max-width: 768px) {
  .pft-banner-inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; }
  .pft-banner-cta { align-items: flex-start; }
}
@media (max-width: 640px) {
  .pft-wrap { padding: 0 16px; }
  .pft-center { padding: 36px 0 32px; }
  .pft-bottom { flex-direction: column; align-items: center; text-align: center; }
  .pft-watermark { font-size: 16vw; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .proj-nav { padding: 14px 20px; }
  .proj-hero { padding: 40px 20px 24px; }
  .proj-hero-divider { padding: 0 20px; }
  .proj-gallery { padding: 28px 20px 60px; }
  .proj-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .lb-arrow { width: 40px; height: 40px; font-size: 20px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .proj-nav-logo { display: none; }
}

/* ── Language widget (standalone for project page) ── */
.lang-widget {
  position: fixed; top: 14px; right: 16px; z-index: 10001;
  font-family: 'Inter', sans-serif;
}
.lang-current {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px 6px 8px;
  background: rgba(10,10,18,0.72);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 100px;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  cursor: pointer; color: #e0e0f0; font-size: 12px;
  font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lang-current:hover {
  border-color: rgba(34,197,94,0.55);
  background: rgba(34,197,94,0.12);
  box-shadow: 0 0 16px rgba(34,197,94,0.20);
}
.lang-flag { font-size: 15px; line-height: 1; }
.lang-code { display: none; }
.lang-chevron {
  opacity: 0.55; flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.lang-chevron.rotated { transform: rotate(180deg); opacity: 0.9; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 152px;
  background: rgba(10,10,20,0.88); border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px; backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  padding: 6px; display: none; flex-direction: column; gap: 2px; overflow: hidden;
}
.lang-dropdown.open {
  display: flex;
  animation: langDropIn 0.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes langDropIn {
  from { transform: scale(0.88) translateY(-8px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}
.lang-option {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  background: transparent; border: none; border-radius: 9px;
  cursor: pointer; color: rgba(255,248,220,0.80);
  font-size: 13px; font-weight: 500; width: 100%; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover  { background: rgba(34,197,94,0.14); color: #e8e8ff; }
.lang-option.active { color: #a8b0ff; font-weight: 600; background: rgba(34,197,94,0.10); }
.lang-opt-flag  { font-size: 16px; flex-shrink: 0; }
.lang-opt-name  { flex: 1; }
.lang-opt-check { color: #22c55e; flex-shrink: 0; }
@media (max-width: 480px) {
  .lang-widget  { top: 10px; right: 10px; }
  .lang-current { padding: 5px 8px 5px 7px; }
  .lang-code    { display: none; }
}
