/* ================================================================
   UX/UI PAGE — ux-ui.css
   ================================================================ */

/* ── DARK THEME OVERRIDE FOR UX/UI PAGE ─────────────────────── */
body.page-uxui .bg-noise {
  display: none;
}

/* Menu dots: flip to dark when fluid passes over (same dramatic effect as home) */
body.page-uxui .menu-dots.fluid-over span {
  background: #1a0a0a;
}

body.page-uxui {
  --bg:        #ef4444;
  --fg:        #fff;
  --fg-dim:    rgba(255, 255, 255, 0.45);
  --fg-dimmer: rgba(255, 255, 255, 0.08);
  --border:    rgba(255, 255, 255, 0.15);
  --accent:      #fff;
  --accent-dark: rgba(255, 255, 255, 0.75);
  --accent-glow: rgba(255, 255, 255, 0.20);
  --line:        rgba(255, 255, 255, 0.18);
  overflow: auto;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  position: fixed;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  z-index: 10;
  text-align: right;
  pointer-events: none;
  user-select: none;
}
.page-header-nr {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}
.page-header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  text-transform: uppercase;
  line-height: 0.88;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

/* ── PROJECTS HERO TITLE — fluid mask ───────────────────────── */
.projects-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 11vw, 13rem);
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.01em;
  margin: 0 0 40px 0;
  /* fluid mask applied by JS — fallback */
  color: rgba(255, 255, 255, 0.85);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85));
}

/* ── PAGE INTRO ──────────────────────────────────────────────── */
.page-intro {
  width: 100%;
  padding: 0;
  margin-bottom: 64px;
}

.page-intro-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  width: 100%;
}

@media (max-width: 768px) {
  .page-intro {
    padding: 0;
    margin-bottom: 28px;
  }
}

/* ── PROJECTS WRAP ───────────────────────────────────────────── */
.projects-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 120px 64px 0 48px;
  overflow-y: auto;
  scrollbar-width: none;
}
.projects-wrap::-webkit-scrollbar { display: none; }

/* ── PROJECT LIST ────────────────────────────────────────────── */
.projects-list {
  width: 100%;
  list-style: none;
  margin: 0 0 64px 0;
  padding: 0;
}

/* ── PROJECT ROW ─────────────────────────────────────────────── */
.project-row {
  border-top: 1px solid var(--line);
  cursor: none;
  transition: border-color 0.3s;
}
.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

/* ── ROW HEAD (always visible) ───────────────────────────────── */
.project-row-head {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 22px 0;
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-row-nr {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.18);
  width: 72px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.35s;
}

.project-row-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.70);
  flex: 1;
  transition: color 0.35s, letter-spacing 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-row-cat,
.project-row-client {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 2.2rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  padding: 0 20px;
  transition: color 0.35s;
}

.project-row-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.30);
  flex-shrink: 0;
  padding-top: 4px;
  transition: color 0.35s;
}

/* hover / active states — text turns black */
.project-row:hover .project-row-title,
.project-row.is-active .project-row-title {
  color: #0d0d0d;
  letter-spacing: 0.03em;
}
.project-row:hover .project-row-nr,
.project-row.is-active .project-row-nr {
  color: #0d0d0d;
}
.project-row:hover .project-row-cat,
.project-row.is-active .project-row-cat,
.project-row:hover .project-row-client,
.project-row.is-active .project-row-client {
  color: #0d0d0d;
}
.project-row:hover .project-row-year,
.project-row.is-active .project-row-year {
  color: rgba(0, 0, 0, 0.45);
}
.project-row:hover .project-tag,
.project-row.is-active .project-tag {
  color: #0d0d0d;
  border-color: rgba(0, 0, 0, 0.25);
}

/* ── ROW BODY (accordion, hidden by default) ─────────────────── */
.project-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.project-row.is-active .project-row-body {
  grid-template-rows: 1fr;
}
.project-row-body-inner {
  overflow: hidden;
  min-height: 0;
}
.project-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 20px 72px;
}
.project-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ── MAGNETIC FLOATING IMAGE ─────────────────────────────────── */
.magnetic-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.magnetic-img.is-visible {
  opacity: 1;
}
.magnetic-img-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.magnetic-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}
.magnetic-img-el.is-changing {
  opacity: 0;
}

/* ── ROW TRANSITION ANIMATIONS ──────────────────────────────── */
.project-row.is-tx-entering {
  animation: txRowEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.project-row.is-tx-exiting {
  animation: txRowExit 0.38s cubic-bezier(0.77, 0, 0.18, 1) both;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

/* Detay sayfası için yumuşak geçişli resimler */
.gallery-img {
  width: 100%;
  margin: 60px 0;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img:hover {
  transform: translateY(-10px) scale(1.02);
}

/* ================================================================
   CLIENTS SECTION
   ================================================================ */
.clients-section {
  padding: 48px 0 64px;
}

.clients-header {
  padding: 0 0 32px 0;
}

.clients-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ── MARQUEE ────────────────────────────────────────────────── */
.clients-marquee {
  overflow: hidden;
  width: 100%;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  will-change: transform;
  animation: clientsScroll 30s linear infinite;
}
.clients-track:hover {
  animation-play-state: paused;
}

@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

.client-logo {
  height: 54px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.3s;
  flex-shrink: 0;
  display: block;
}
.client-logo:hover {
  opacity: 0.92;
}


/* ================================================================
   JOURNEY SECTION
   ================================================================ */
.journey-section {
  padding: 60px 0 64px;
}

/* ── Hero header ── */
.journey-hero {
  padding: 0 0 72px 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.journey-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 11vw, 13rem);
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: #ef4444;
  margin: 0 0 48px 0;
  overflow: hidden;
}
.journey-hero-title .jc-inner {
  transition-delay: calc(var(--ci) * 0.06s);
}
.journey-hero.is-visible .journey-hero-title .jc-inner {
  transform: translateY(0);
}
.journey-hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(28, 25, 23, 0.75);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease 0.50s, transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.50s;
}
.journey-hero.is-visible .journey-hero-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ── Entry ── */
.journey-entry {
  border-top: 1px solid rgba(28, 25, 23, 0.10);
  padding: 28px 0;
  position: relative;
}
.journey-entry:last-child {
  border-bottom: 1px solid rgba(28, 25, 23, 0.10);
}

.journey-entry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.journey-nr {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1c1917;
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.journey-company {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: #1c1917;
  margin: 0;
  overflow: hidden;
}

.journey-period {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #1c1917;
  opacity: 0.35;
  flex-shrink: 0;
  margin-left: auto;
}

.journey-entry-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 44px;
}

.journey-entry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.journey-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1c1917;
  opacity: 0.85;
}

.journey-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f4f2ee;
  background: #1c1917;
  padding: 5px 12px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
  margin-bottom: 0;
}

.journey-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
  color: #1c1917;
  opacity: 0.68;
  margin: 0;
  max-width: 640px;
}

/* ── Char animation on company name ── */
.journey-company .jc {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}
.journey-company .jc-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ci) * 0.045s);
}
.journey-entry.is-visible .journey-company .jc-inner {
  transform: translateY(0);
}

/* Entry fade-up on scroll */
.journey-entry-body {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.25s;
}
.journey-entry.is-visible .journey-entry-body {
  opacity: 1;
  transform: translateY(0);
}

/* ── Skills ── */
.journey-skills-wrap {
  padding: 64px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.journey-skills-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1c1917;
  opacity: 1;
}
.journey-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #1c1917;
  border: 1px solid rgba(28, 25, 23, 0.22);
  padding: 6px 16px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.journey-skills-wrap.is-visible .skill-tag { opacity: 1; transform: translateY(0); }
.journey-skills-wrap.is-visible .skill-tag:nth-child(1) { transition-delay: 0.00s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(2) { transition-delay: 0.05s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(3) { transition-delay: 0.10s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(4) { transition-delay: 0.15s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(5) { transition-delay: 0.20s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(6) { transition-delay: 0.25s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(7) { transition-delay: 0.30s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(8) { transition-delay: 0.35s; }
.journey-skills-wrap.is-visible .skill-tag:nth-child(9) { transition-delay: 0.40s; }

/* ── Download ── */
.journey-footer {
  padding: 56px 0 0 0;
}
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1c1917;
  text-decoration: none;
  border: 1px solid rgba(28, 25, 23, 0.30);
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cv-btn:hover {
  background: #1c1917;
  color: #f4f2ee;
  border-color: #1c1917;
}
.cv-btn-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cv-btn:hover .cv-btn-arrow {
  transform: translateY(3px);
}

/* ── Contact ── */
.journey-contact {
  margin-top: 80px;
  padding: 64px 0 0;
  border-top: 1px solid rgba(28, 25, 23, 0.10);
}
.journey-contact-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ef4444;
  opacity: 1;
  margin-bottom: 18px;
}
.journey-contact-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  text-transform: uppercase;
  line-height: 0.90;
  color: #1c1917;
  margin: 0 0 32px;
  letter-spacing: 0.01em;
}
.journey-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #1c1917;
  text-decoration: none;
  border: 1px solid rgba(28, 25, 23, 0.30);
  padding: 13px 24px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.journey-contact-btn:hover {
  background: #1c1917;
  color: #f4f2ee;
}

/* ── Footer ── */
.site-footer {
  margin-left: -48px;
  margin-right: -64px;
  padding: 56px 64px 48px 48px;
  background: #1c1917;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.40);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-nav-link:hover { color: #fff; }
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.footer-instagram {
  /* inherits footer-nav-link styles */
}
.footer-location {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 20px;
  text-align: center;
}
.footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.16);
}

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {

  /* Wrap */
  .projects-wrap { padding: 80px 24px 0 24px; }

  /* Projects hero title */
  .projects-hero-title { font-size: clamp(3.5rem, 16vw, 6rem); margin-bottom: 28px; }

  /* Intro */
  .page-intro { margin-bottom: 40px; }

  /* Projects list */
  .page-header { display: none; }
  .magnetic-img { display: none; }
  .projects-list { margin-bottom: 48px; }
  .project-row-cat,
  .project-row-client { display: none; }
  .project-tags { padding: 0 0 14px 0; }
  .project-tag { color: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.18); }

  /* Clients */
  .clients-header { padding: 0 0 24px 0; }
  .clients-track  { gap: 48px; }
  .client-logo    { height: 36px; }

  /* Journey hero */
  .journey-hero { padding: 0 0 40px 0; }
  .journey-hero-title { font-size: clamp(3.5rem, 16vw, 6rem); margin-bottom: 32px; }

  /* Journey entries */
  .journey-entry { padding: 20px 0; }
  .journey-entry-head { flex-wrap: wrap; gap: 8px; }
  .journey-nr { font-size: 0.68rem; width: 24px; }
  .journey-company { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .journey-period { width: 100%; padding-left: 32px; margin-left: 0; }
  .journey-entry-body { padding-left: 32px; gap: 6px; }
  .journey-desc { font-size: 0.78rem; max-width: 100%; }

  /* Skills */
  .journey-skills-wrap { padding: 48px 0 0; }

  /* Contact */
  .journey-contact { margin-top: 56px; padding: 48px 0 0; }
  .journey-contact-heading { font-size: clamp(1.8rem, 7vw, 3rem); }

  /* Footer */
  .site-footer { margin-left: -24px; margin-right: -24px; padding: 44px 24px 36px; }
  .footer-main { flex-direction: column; gap: 32px; }
  .footer-right { align-items: flex-start; }
  .footer-nav-link { font-size: clamp(1rem, 5vw, 1.5rem); }
}
