/* ===== PROJECT PAGE ===== */
.project-page { padding-top: 70px; }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text);
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== REVEAL ===== */
.deliverable,
.process-step,
.sidebar-card,
.project-img-placeholder {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.prj-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== HERO ===== */
.project-page-hero {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.project-page-hero-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 32px 56px;
  position: relative;
  z-index: 2;
}

.project-page-hero-icon {
  position: absolute;
  right: 80px;
  bottom: 40px;
  opacity: 0.4;
  z-index: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.2s;
  text-decoration: none;
}
.back-btn:hover { color: #fff; }

.project-page-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.project-page-meta .project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.project-page-meta .project-year { font-size: 0.72rem; color: rgba(255,255,255,0.35); }

.project-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 28px;
}

.project-page-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-page-tags span {
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ===== BODY ===== */
.project-page-body { padding: 72px 32px 100px; }

.project-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* ===== IMAGE PLACEHOLDERS ===== */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.project-images-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-img-placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 10px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.project-img-placeholder.wide { aspect-ratio: 16/7; }
.project-img-placeholder:hover { border-color: var(--text-muted); background: var(--surface); }

.project-img-placeholder svg { opacity: 0.4; }
.project-img-placeholder span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
}

.project-img-placeholder input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.project-img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

/* ===== SECTIONS ===== */
.project-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.project-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.project-section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.project-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.project-section p:last-child { margin-bottom: 0; }

/* ===== DELIVERABLES ===== */
.project-deliverables {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.deliverable {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
  align-items: flex-start;
}
.deliverable:last-child { border-bottom: none; }
.deliverable:hover { background: var(--bg-alt); }

.deliverable-icon {
  width: 38px; height: 38px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.deliverable h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.deliverable p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ===== PROCESS ===== */
.project-process { display: flex; flex-direction: column; }

.process-step {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.process-step:last-child { border-bottom: none; }

.process-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  min-width: 26px;
  padding-top: 2px;
}

.process-step h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.process-step p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ===== SIDEBAR ===== */
.project-page-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.sidebar-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.sidebar-card dl { display: flex; flex-direction: column; }

.sidebar-card dt {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 10px;
}
.sidebar-card dd {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card dt:first-child { padding-top: 0; }
.sidebar-card dd:last-child  { border-bottom: none; padding-bottom: 0; }

.sidebar-tools { display: flex; flex-direction: column; }
.sidebar-tools li {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-tools li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--text-faint);
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-tools li:last-child { border-bottom: none; }

.sidebar-nav { display: flex; flex-direction: column; gap: 8px; }

.sidebar-prev {
  font-size: 0.78rem;
  color: var(--text-faint);
  transition: color 0.2s;
  text-decoration: none;
}
.sidebar-prev:hover { color: var(--text); }

.sidebar-next {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.sidebar-next:hover { background: var(--bg-alt); border-color: var(--text-faint); }
.sidebar-next span  { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.sidebar-next strong { font-size: 0.9rem; font-weight: 700; color: var(--text); }

/* ===== FOOTER (project pages) ===== */
.project-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 0;
}

.project-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name  { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-right: auto; }
.footer-role  { font-size: 0.78rem; color: var(--text-faint); margin-right: 32px; }
.footer-copy  { font-size: 0.78rem; color: var(--text-faint); }

/* ===== PARALLAX HERO ===== */
.project-page-hero {
  will-change: transform, opacity;
  transform-origin: center top;
}

/* ===== CLIP-PATH REVEAL ===== */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.clip-reveal.clip-visible {
  clip-path: inset(0 0% 0 0);
}

.clip-reveal-up {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.clip-reveal-up.clip-visible {
  clip-path: inset(0 0 0% 0);
}

/* ===== STORY SECTION (sticky storytelling) ===== */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 80px;
}

.story-visual {
  position: sticky;
  top: 90px;
  height: calc(100vh - 120px);
  overflow: hidden;
  border-radius: 12px;
}

.story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 12px;
}

.story-img-placeholder-inner {
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  overflow: hidden;
}

.story-img-placeholder-inner input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.story-img.story-img-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.story-panels {
  padding: 0 0 0 48px;
}

.story-panel {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.35;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-panel:last-child { border-bottom: none; }

.story-panel.story-panel-active {
  opacity: 1;
  transform: translateY(0);
}

.story-panel-num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.story-panel h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.story-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 400px;
}

.story-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.story-panel-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ===== HORIZONTAL SCROLL GALLERY ===== */
.hscroll-wrapper {
  position: relative;
  height: 300vw;
  margin-bottom: 80px;
}

.hscroll-sticky {
  position: sticky;
  top: 90px;
  height: calc(100vh - 110px);
  overflow: hidden;
}

.hscroll-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
  padding: 0 2px;
}

.hscroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  transition: transform 0.05s linear;
}

.hscroll-item {
  width: 55vw;
  height: calc(100vh - 180px);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
}

.hscroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hscroll-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  position: relative;
  overflow: hidden;
}

.hscroll-item-placeholder input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hscroll-item-placeholder span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.hscroll-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.hscroll-item:hover .hscroll-caption {
  opacity: 1;
  transform: translateY(0);
}

.hscroll-progress {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.hscroll-dot {
  width: 20px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s, width 0.3s;
}

.hscroll-dot.active {
  background: var(--text);
  width: 36px;
}

/* ===== PRJ-REVEAL (generic) ===== */
.prj-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.prj-reveal.prj-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STATS ROW (proje içi istatistik) ===== */
.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 52px;
}

.project-stat {
  background: var(--surface);
  padding: 24px 20px;
  text-align: center;
}

.project-stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.project-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .project-page-grid    { grid-template-columns: 1fr; }
  .project-page-sidebar { position: static; }
  .project-page-hero-icon { display: none; }
  .project-images-row   { grid-template-columns: 1fr; }
  .story-section        { grid-template-columns: 1fr; }
  .story-visual         { position: relative; top: 0; height: 55vw; margin-bottom: 24px; }
  .story-panels         { padding: 0; }
  .story-panel          { min-height: auto; padding: 28px 0; }
  .hscroll-item         { width: 80vw; }
  .hscroll-wrapper      { height: 500vw; }
}

@media (max-width: 600px) {
  .project-page-body            { padding: 40px 20px 60px; }
  .project-page-hero-content    { padding: 40px 20px 36px; }
  .project-footer .footer-inner { padding: 0 20px; }
  .footer-role                  { display: none; }
  .hscroll-item                 { width: 88vw; }
  .project-stats                { grid-template-columns: 1fr 1fr; }
}

/* ── Site Screenshot Gallery ── */
.site-gallery { display: flex; flex-direction: column; gap: 32px; margin: 24px 0; }
.site-gallery-item { }
.site-gallery-item img { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.08); display: block; }
.site-gallery-caption { margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.site-gallery-caption strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }

/* ── Proje Navigasyonu ── */
.prj-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Inter', sans-serif;
}
.prj-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
}
.prj-nav-link:hover { border-color: var(--text-muted); background: var(--bg-alt); transform: translateY(-2px); }
.prj-nav-next { flex-direction: row-reverse; text-align: right; }
.prj-nav-prev span, .prj-nav-next span { display: flex; flex-direction: column; gap: 2px; }
.prj-nav-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
}
.prj-nav-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.prj-nav-all {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--text-faint);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px; border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.prj-nav-all:hover { color: var(--text); background: var(--bg-alt); }

@media (max-width: 640px) {
  .prj-nav { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; padding: 24px 20px; gap: 10px; }
  .prj-nav-all { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; }
  .prj-nav-title { font-size: 0.8rem; }
}
