/* Case Studies / Portfolio - Page Styles (Cinematic Dark Theme) */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

:root {
  --dxb-blue: #1056C4; --dxb-blue-dark: #0a3d8f; --dxb-blue-mid: #0e3a8c;
  --dxb-blue-light: #EEF4FF; --dxb-dark: #0d1b2a; --dxb-dark2: #111827;
  --dxb-r: 14px; --dxb-r-sm: 8px; --dxb-ease: all .3s ease;
  --cs-bg: #05070d; --cs-bg2: #0a0f1c; --cs-panel: #0e1526; --cs-border: rgba(255,255,255,.09);
  --cs-text: rgba(255,255,255,.86); --cs-muted: rgba(255,255,255,.52);
}

.portfolio-page { font-family: 'Inter', sans-serif; color: var(--cs-text); line-height: 1.6; overflow: hidden; background: var(--cs-bg); }
.portfolio-page a { text-decoration: none; color: inherit; }
.portfolio-page ul { list-style: none; margin: 0; padding: 0; }
.portfolio-page img { max-width: 100%; height: auto; }

/* ICONS */
.portfolio-page svg.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-page svg.ic-solid { fill: currentColor; stroke: none; }

.portfolio-page .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.portfolio-page .sec { padding: 90px 0; position: relative; }

/* UTILS */
.portfolio-page .dxb-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.06); color: #7fb2ff; border: 1px solid rgba(127,178,255,.28); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; padding: 7px 16px; border-radius: 100px; margin-bottom: 16px; }
.portfolio-page h1.dxb-ttl, .portfolio-page h2.dxb-ttl { font-size: clamp(26px,3.4vw,46px); font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 14px; }
.portfolio-page p.dxb-sub { font-size: 16px; color: var(--cs-muted); line-height: 1.8; max-width: 640px; margin-bottom: 20px; }
.portfolio-page .dxb-tc { text-align: center; }
.portfolio-page .dxb-tc p.dxb-sub { margin-left: auto; margin-right: auto; }

.portfolio-page .dxb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--dxb-ease); border: none; white-space: nowrap; text-decoration: none; }
.portfolio-page .dxb-btn-blue { background: linear-gradient(135deg,#2f6fed,#1056C4); color: #fff; }
.portfolio-page .dxb-btn-blue:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(47,111,237,.4); color: #fff; }
.portfolio-page .dxb-btn-white { background: #fff; color: var(--dxb-blue); }
.portfolio-page .dxb-btn-white:hover { background: #FFD166; color: var(--dxb-dark); transform: translateY(-2px); }
.portfolio-page .dxb-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.portfolio-page .dxb-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* REVEAL */
.portfolio-page .dxb-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.portfolio-page .dxb-reveal.vis { opacity: 1; transform: none; }

/* BACKDROP GLOW (persists across whole page) */
.portfolio-page { position: relative; }
.portfolio-page::before { content: ''; position: fixed; top: -10%; right: -10%; width: 640px; height: 640px; background: radial-gradient(circle,rgba(47,111,237,.14) 0%,transparent 70%); border-radius: 50%; pointer-events: none; z-index: 0; }
.portfolio-page::after { content: ''; position: fixed; bottom: 10%; left: -10%; width: 560px; height: 560px; background: radial-gradient(circle,rgba(236,72,153,.08) 0%,transparent 70%); border-radius: 50%; pointer-events: none; z-index: 0; }
.portfolio-page > * { position: relative; z-index: 1; }

/* HERO */
.portfolio-page .cs-hero { padding: 150px 0 80px; background:
    linear-gradient(rgba(5,7,13,.4), rgba(5,7,13,.75)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
  position: relative; overflow: hidden; }
.portfolio-page .cs-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.portfolio-page .cs-hero h1 { font-size: clamp(34px,4.6vw,60px); font-weight: 800; color: #fff; line-height: 1.14; margin-bottom: 18px; }
.portfolio-page .cs-hero-sub { font-size: 19px; font-weight: 600; color: #FFD166; margin-bottom: 18px; }
.portfolio-page .cs-hero-p { font-size: 16.5px; color: var(--cs-muted); line-height: 1.9; max-width: 680px; }
.portfolio-page .cs-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--cs-border); position: relative; z-index: 1; }
.portfolio-page .cs-hero-stat-n { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; background: linear-gradient(135deg,#fff,#9fc4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.portfolio-page .cs-hero-stat-l { font-size: 13px; color: var(--cs-muted); margin-top: 6px; }

/* FILTER BAR */
.portfolio-page .filter-sec { padding: 36px 0; border-bottom: 1px solid var(--cs-border); background: rgba(10,15,28,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.portfolio-page .filter-row { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.portfolio-page .filter-row:last-of-type { margin-bottom: 0; }
.portfolio-page .filter-lbl { flex-shrink: 0; width: 112px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cs-muted); padding-top: 8px; }
.portfolio-page .filter-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.portfolio-page .filter-pill { background: rgba(255,255,255,.04); border: 1px solid var(--cs-border); color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 100px; cursor: pointer; transition: var(--dxb-ease); white-space: nowrap; }
.portfolio-page .filter-pill:hover { border-color: #7fb2ff; color: #fff; }
.portfolio-page .filter-pill.active { background: linear-gradient(135deg,#2f6fed,#1056C4); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(47,111,237,.4); }
.portfolio-page .filter-count { padding: 18px 0 0; font-size: 13px; color: var(--cs-muted); }
.portfolio-page .filter-count b { color: #fff; }

/* BENTO PROJECT GRID */
.portfolio-page .proj-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-flow: dense; gap: 22px; margin-top: 44px; }
.portfolio-page .proj-card { --acc: #7fb2ff; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--cs-border); border-radius: var(--dxb-r); display: flex; flex-direction: column; transition: opacity .6s ease, transform .6s ease, box-shadow .35s ease, border-color .35s ease; position: relative; overflow: hidden; grid-column: span 1; opacity: 0; transform: translateY(30px); }
.portfolio-page .proj-card.vis { opacity: 1; transform: none; }
.portfolio-page .proj-card.featured { grid-column: span 2; flex-direction: row; }
.portfolio-page .proj-card::before { content: ''; position: absolute; inset: 0; border-radius: var(--dxb-r); padding: 1px; background: linear-gradient(135deg, var(--acc), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 2; }
.portfolio-page .proj-card::after { content: ''; position: absolute; top: -40%; right: -30%; width: 220px; height: 220px; background: radial-gradient(circle, var(--acc) 0%, transparent 70%); opacity: 0; filter: blur(10px); transition: opacity .35s ease; pointer-events: none; z-index: 2; }
.portfolio-page .proj-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.portfolio-page .proj-card:hover::before { opacity: 1; }
.portfolio-page .proj-card:hover::after { opacity: .18; }
.portfolio-page .proj-card.hidden-card { display: none; }

.portfolio-page .proj-img { position: relative; aspect-ratio: 16/10; overflow: hidden; flex-shrink: 0; }
.portfolio-page .proj-card.featured .proj-img { width: 42%; aspect-ratio: auto; }
.portfolio-page .proj-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.portfolio-page .proj-card:hover .proj-img img { transform: scale(1.08); }
.portfolio-page .proj-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 30%, transparent) 0%, transparent 45%, rgba(5,7,13,.9) 100%); }
.portfolio-page .proj-card.featured .proj-img::after { background: linear-gradient(90deg, transparent 55%, rgba(9,12,20,.95) 100%); }
.portfolio-page .proj-ind { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; background: rgba(8,10,18,.72); backdrop-filter: blur(6px); color: var(--acc); font-size: 11px; font-weight: 700; padding: 5px 13px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); }
.portfolio-page .proj-platform { position: absolute; top: 14px; right: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; background: rgba(8,10,18,.72); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.portfolio-page .proj-platform .ic { width: .95em; height: .95em; }

.portfolio-page .proj-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.portfolio-page .proj-card h3 { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.35; margin-bottom: 10px; }
.portfolio-page .proj-card.featured h3 { font-size: 24px; }
.portfolio-page .proj-card p { font-size: 14px; color: var(--cs-muted); line-height: 1.8; margin-bottom: 20px; flex: 1; }
.portfolio-page .proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cs-border); }
.portfolio-page .proj-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.62); background: rgba(255,255,255,.05); padding: 4px 10px; border-radius: 100px; }
.portfolio-page .proj-empty { display: none; text-align: center; padding: 70px 20px; color: var(--cs-muted); font-size: 15px; }
.portfolio-page .proj-empty.vis { display: block; }

/* TESTIMONIALS */
.portfolio-page .tslider { position: relative; overflow: hidden; margin-top: 52px; }
.portfolio-page .tslides { display: flex; gap: 24px; transition: transform .4s ease; will-change: transform; }
.portfolio-page .tslide { min-width: calc(33.333% - 16px); background: rgba(255,255,255,.035); border: 1px solid var(--cs-border); border-radius: var(--dxb-r); padding: 32px; flex-shrink: 0; transition: var(--dxb-ease); display: flex; flex-direction: column; }
.portfolio-page .tslide:hover { border-color: #7fb2ff; }
.portfolio-page .tslide-text { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.85; font-style: italic; margin-bottom: 24px; flex: 1; }
.portfolio-page .tslide-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--cs-border); padding-top: 20px; }
.portfolio-page .tslide-av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,#2f6fed,#1056C4); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.portfolio-page .tslide-name { font-size: 15px; font-weight: 700; color: #fff; }
.portfolio-page .tslide-role { font-size: 12px; color: var(--cs-muted); }
.portfolio-page .t-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.portfolio-page .t-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cs-border); background: rgba(255,255,255,.04); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--dxb-ease); color: #fff; }
.portfolio-page .t-btn:hover { background: var(--dxb-blue); border-color: var(--dxb-blue); }
.portfolio-page .t-dots { display: flex; gap: 8px; align-items: center; }
.portfolio-page .t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-border); cursor: pointer; transition: var(--dxb-ease); }
.portfolio-page .t-dot.on { background: var(--dxb-blue); width: 24px; border-radius: 4px; }

/* CTA */
.portfolio-page .cta-band { background: linear-gradient(135deg,#0a0f1c 0%,#0b2260 60%,#1056C4 100%); padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.portfolio-page .cta-band::before { content: ''; position: absolute; top: -50%; right: -20%; width: 700px; height: 700px; background: radial-gradient(circle,rgba(255,255,255,.06) 0%,transparent 70%); border-radius: 50%; pointer-events: none; }
.portfolio-page .cta-band h2 { font-size: clamp(28px,4vw,48px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.15; position: relative; z-index: 1; }
.portfolio-page .cta-band p { font-size: 17px; color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto 38px; line-height: 1.75; position: relative; z-index: 1; }
.portfolio-page .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* RESPONSIVE */
@media(max-width:900px){
  .portfolio-page .proj-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-page .proj-card.featured { grid-column: span 2; grid-row: auto; flex-direction: column; }
  .portfolio-page .proj-card.featured .proj-img { width: 100%; aspect-ratio: 16/10; }
  .portfolio-page .proj-card.featured .proj-img::after { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 30%, transparent) 0%, transparent 45%, rgba(5,7,13,.9) 100%); }
  .portfolio-page .tslide { min-width: calc(50% - 12px); }
  .portfolio-page .filter-row { flex-direction: column; gap: 8px; }
  .portfolio-page .filter-lbl { width: auto; padding-top: 0; }
}
@media(max-width:768px){
  .portfolio-page .wrap { padding: 0 16px; }
  .portfolio-page .sec { padding: 60px 0; }
  .portfolio-page .cs-hero { padding: 120px 0 60px; }
  .portfolio-page .cs-hero-stats { gap: 24px; margin-top: 32px; padding-top: 28px; }
  .portfolio-page .cs-hero-stat-n { font-size: 26px; }
  .portfolio-page h1.dxb-ttl, .portfolio-page h2.dxb-ttl { font-size: clamp(24px,5vw,34px); }
  .portfolio-page .filter-sec { position: static; }
  .portfolio-page .proj-grid { grid-template-columns: 1fr; }
  .portfolio-page .proj-card, .portfolio-page .proj-card.featured { grid-column: span 1; grid-row: auto; }
  .portfolio-page .tslide { min-width: 100%; padding: 24px; }
}
@media(max-width:480px){
  .portfolio-page .wrap { padding: 0 14px; }
  .portfolio-page .sec { padding: 48px 0; }
  .portfolio-page .cs-hero { padding: 110px 0 48px; }
  .portfolio-page .dxb-btn { width: 100%; justify-content: center; padding: 13px 20px; font-size: 14px; }
  .portfolio-page .cta-btns { flex-direction: column; align-items: stretch; }
  .portfolio-page .proj-card { padding: 22px; }
}

/* Footer padding override — only this page loads this CSS */
footer { padding-top: 4rem !important; }
