/* ═══════════════════════════════════════════════════════════════════
   work-redesign.css — Web&Code Tech Selected Work Page
   Brand: Dark Cinematic + Liquid Glass + Editorial Typography
   ═══════════════════════════════════════════════════════════════════ */

.work-page {
  background: #0B0F14;
  color: #fff;
  overflow-x: hidden;
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.work-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 16vw, 200px) clamp(20px, 5vw, 96px) clamp(80px, 10vw, 140px);
  overflow: hidden;
  text-align: center;
}

.work-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.35;
  pointer-events: none;
}

/* Dot-grid background */
.work-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 127, 65, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.work-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.work-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 127, 65, 0.1);
  border: 1px solid rgba(255, 127, 65, 0.3);
  color: #F97316;
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both;
}

.work-hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F97316;
  box-shadow: 0 0 10px #F97316;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px #F97316; }
  50% { box-shadow: 0 0 18px #F97316; }
}

.work-hero__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.work-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #F97316, #EA580C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-hero__title-dim {
  display: block;
  color: rgba(255,255,255,0.22);
}

.work-hero__lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.58);
  max-width: 760px;
  margin: 0 auto 3rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

/* Stats bar */
.work-hero__stats {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeUp 0.7s 0.3s ease both;
}

.work-stat {
  flex: 1;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.02);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.25s;
}

.work-stat:hover { background: rgba(255,255,255,0.06); }

.work-stat--accent {
  background: rgba(255, 127, 65, 0.06);
}
.work-stat--accent:hover {
  background: rgba(255, 127, 65, 0.12);
}

.work-stat__val {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.work-stat--accent .work-stat__val {
  background: linear-gradient(135deg, #F97316, #EA580C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-stat__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
}

/* ── MARQUEE BAND ─────────────────────────────────────────────────── */
.work-band {
  padding: 18px 0;
  background: rgba(255, 127, 65, 0.07);
  border-top: 1px solid rgba(255, 127, 65, 0.15);
  border-bottom: 1px solid rgba(255, 127, 65, 0.15);
  overflow: hidden;
  white-space: nowrap;
}

.work-band__track {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: marquee 30s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.work-band__dot {
  color: #F97316;
  font-size: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PROJECT CARDS ────────────────────────────────────────────────── */
.work-projects {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 96px);
  background: #0B0F14;
}

.work-projects__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  border-color: rgba(255, 127, 65, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 127, 65, 0.1);
}

.project-card--large .project-card__link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.project-card:not(.project-card--large) .project-card__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card__link {
  text-decoration: none;
  color: inherit;
}

/* Visual / image pane */
.project-card__visual {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: #111827;
}

.project-card--large .project-card__visual {
  min-height: 500px;
}

.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 127, 65, 0.2) 0%, rgba(10, 15, 30, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card__overlay--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(10, 15, 30, 0.4) 100%);
}

.project-card__overlay--dark {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.2) 0%, rgba(10, 15, 30, 0.5) 100%);
}

.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__hover-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(255, 127, 65, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.project-card:hover .project-card__hover-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Body pane */
.project-card__body {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.project-card--large .project-card__body {
  padding: 3rem 3rem;
}

.project-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F97316;
  background: rgba(255, 127, 65, 0.1);
  border: 1px solid rgba(255, 127, 65, 0.2);
  padding: 5px 12px;
  border-radius: 9999px;
}

.project-card__year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.project-card__title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1;
}

.project-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.52);
}

/* Result pills */
.project-card__results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

.result-pill__val {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #F97316;
  letter-spacing: -0.01em;
}

.result-pill__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
}

/* Tech tags */
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ptag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 10px;
  color: rgba(255,255,255,0.55);
}

/* ── WHY OUR WORK SECTION ─────────────────────────────────────────── */
.work-why {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 96px);
  background: #111827;
  position: relative;
}

.work-why::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 127, 65, 0.3), transparent);
}

.work-why__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.work-why__header {
  margin-bottom: 3.5rem;
}

.work-why__headline {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.work-why__headline em {
  font-style: normal;
  background: linear-gradient(135deg, #F97316, #EA580C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
}

.why-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}

.why-card--accent {
  background: rgba(255, 127, 65, 0.04);
  border-color: rgba(255, 127, 65, 0.12);
}

.why-card--accent:hover {
  border-color: rgba(255, 127, 65, 0.28);
  background: rgba(255, 127, 65, 0.08);
}

.why-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

.why-card__icon--orange {
  background: rgba(255, 127, 65, 0.15);
  color: #F97316;
}

.why-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* ── CTA ──────────────────────────────────────────────────────────── */
.work-cta {
  position: relative;
  padding: clamp(100px, 14vw, 180px) clamp(20px, 5vw, 96px);
  background: #0B0F14;
  text-align: center;
  overflow: hidden;
}

.work-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 127, 65, 0.12) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}

.work-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.work-cta__headline {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.work-cta__accent {
  background: linear-gradient(135deg, #F97316, #EA580C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-cta__sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.52);
  margin-bottom: 2.5rem;
}

.work-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SHARED ANIMATION ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .project-card--large .project-card__link,
  .project-card:not(.project-card--large) .project-card__link {
    grid-template-columns: 1fr;
  }
  .project-card__visual { min-height: 260px; }
  .project-card--large .project-card__visual { min-height: 320px; }
  .work-why__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .work-hero__stats { flex-wrap: wrap; }
  .work-stat { min-width: 45%; }
  .work-cta__actions { flex-direction: column; align-items: center; }
}
