/* ==========================================================================
   WIPRAEXA WORK & CASE STUDIES PAGE STYLES (css/work.css)
   - UAE & Global Digital Agency Aesthetic
   - Deep Obsidian Background, Purple/Magenta Ambient Glows, Editorial Typography
   ========================================================================== */

:root {
  --work-bg: #02050a;
  --work-panel: rgba(15, 23, 42, 0.75);
  --work-card-bg: rgba(12, 18, 32, 0.85);
  --work-border: rgba(255, 255, 255, 0.08);
  --work-border-hover: rgba(147, 51, 234, 0.5);
  --work-purple: #9333ea;
  --work-magenta: #c026d3;
  --work-cyan: #38bdf8;
  --work-glow: rgba(147, 51, 234, 0.35);
  --work-radius: 28px;
  --work-radius-sm: 18px;
}

/* Page Scope */
.work-page {
  background-color: var(--work-bg);
  color: #ffffff;
  overflow-x: hidden;
}

/* Common Section Utilities */
.work-section {
  position: relative;
  padding: 100px 0;
  z-index: 2;
}

.work-section-head {
  max-width: 720px;
  margin-bottom: 54px;
}

.work-section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.work-section-head h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 16px 0;
}

.work-section-head p {
  color: #94a3b8;
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #d8b4fe 65%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ENHANCED ULTRA-ATTRACTIVE HERO SECTION (WORK PAGE)
   - 3D Angled Perspective Showcase, Dynamic Aurora Glows, Interactive Spotlight
   ========================================================================== */

.work-hero {
  position: relative;
  padding-top: 135px;
  padding-bottom: 100px;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 65% 55% at 20% 15%, rgba(147, 51, 234, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 35%, rgba(192, 38, 211, 0.2), transparent 55%),
    radial-gradient(circle 40% at 50% 90%, rgba(56, 189, 248, 0.12), transparent 60%),
    #02050a;
}

/* Atmospheric Ambient Grid & Horizon Beam */
.work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  pointer-events: none;
}

.work-hero-light-beam {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  width: 700px;
  height: 500px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(56, 189, 248, 0.2), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.7;
  animation: hero-beam-drift 10s ease-in-out infinite alternate;
}

@keyframes hero-beam-drift {
  0% { transform: translateX(-55%) rotate(-18deg) scale(0.95); opacity: 0.5; }
  100% { transform: translateX(-45%) rotate(-12deg) scale(1.1); opacity: 0.85; }
}

.work-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 5;
}

/* Eyebrow Live Badge */
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(216, 180, 254, 0.28);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.25);
  color: #d8b4fe;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
}

.live-beacon {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.live-beacon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.7);
  animation: beacon-ping 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes beacon-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.work-hero-copy h1 {
  font-size: clamp(2.9rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0 0 22px;
}

.hero-highlight-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #d8b4fe 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.work-hero-copy .lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 34px;
}

.work-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.work-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.work-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.work-meta-pill:hover {
  border-color: rgba(147, 51, 234, 0.5);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

/* ==========================================================================
   3D PERSPECTIVE SHOWCASE STAGE (RIGHT VISUAL)
   ========================================================================== */
.work-3d-stage {
  position: relative;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.work-3d-card-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-3d-stage:hover .work-3d-card-stack {
  transform: rotateY(-3deg) rotateX(2deg) translateY(-6px);
}

/* Main Showcase Glass Deck */
.showcase-deck {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(10, 15, 28, 0.96));
  border: 1px solid rgba(216, 180, 254, 0.22);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(147, 51, 234, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  overflow: hidden;
  z-index: 5;
}

/* Window Titlebar with live tabs */
.deck-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(6, 10, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deck-window-controls {
  display: flex;
  gap: 7px;
}

.deck-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.deck-dot.r { background: #ef4444; }
.deck-dot.y { background: #eab308; }
.deck-dot.g { background: #22c55e; }

.deck-tab-pill {
  font-family: monospace;
  font-size: 0.7rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.deck-status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #22c55e;
  letter-spacing: 0.08em;
}

.deck-status-live .pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Deck Interior Hero Content */
.deck-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Interactive Project Spotlight Box */
.spotlight-project-view {
  position: relative;
  border-radius: 16px;
  background: radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.25), rgba(15, 23, 42, 0.95)), #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  overflow: hidden;
}

.spotlight-project-view::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.spotlight-category-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}

.spotlight-project-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 8px;
}

.spotlight-project-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Architecture Mini-Tags */
.spotlight-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 5px;
}

/* Lower Telemetry Strip */
.deck-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.telemetry-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-card small {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.telemetry-card strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-dot-cyan { color: #38bdf8; font-size: 0.75rem; }
.telemetry-dot-purple { color: #c026d3; font-size: 0.75rem; }

/* ==========================================================================
   FLOATING SATELLITE HOLOGRAPHIC CHIPS
   ========================================================================== */
.holo-chip {
  position: absolute;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(216, 180, 254, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(147, 51, 234, 0.3);
  backdrop-filter: blur(18px);
  padding: 12px 18px;
  z-index: 10;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.holo-chip:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: scale(1.05);
}

.chip-speed {
  top: -24px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-chip-1 6s ease-in-out infinite alternate;
}

.speed-gauge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8, #9333ea);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: #ffffff;
}

.chip-speed-text small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  display: block;
}

.chip-speed-text strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.chip-code-ai {
  bottom: -22px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float-chip-2 7s ease-in-out infinite alternate;
}

.chip-code-ai .ai-icon-hex {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9333ea, #c026d3);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.chip-code-ai-text small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  display: block;
}

.chip-code-ai-text strong {
  font-size: 0.88rem;
  color: #ffffff;
}

@keyframes float-chip-1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes float-chip-2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(10px) rotate(2deg); }
}


/* ==========================================================================
   SECTION 2: OUR APPROACH (01 THINK, 02 BUILD, 03 GROW)
   ========================================================================== */
.approach-section {
  background: linear-gradient(180deg, #02050a 0%, #080c16 50%, #02050a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-card {
  position: relative;
  border-radius: var(--work-radius);
  background: var(--work-card-bg);
  border: 1px solid var(--work-border);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background-color 0.4s ease;
}

.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.approach-card:hover {
  transform: translateY(-8px);
  border-color: var(--work-border-hover);
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(147, 51, 234, 0.2);
}

.approach-card:hover::before {
  opacity: 1;
}

.approach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.approach-number {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.approach-card:hover .approach-number {
  transform: translateX(4px);
}

.approach-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #38bdf8;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.approach-card:hover .approach-icon-wrap {
  background: linear-gradient(135deg, var(--work-purple), var(--work-magenta));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.approach-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}

.approach-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 14px;
}

.approach-card p {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.approach-bottom-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d8b4fe;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.approach-card:hover .approach-bottom-line {
  opacity: 1;
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 3: SELECTED WORK / 3-COLUMN CARD PORTFOLIO GRID
   ========================================================================== */
.portfolio-section {
  position: relative;
  padding: 80px 0 110px;
}

.work-section-head.reduced-mb {
  margin-bottom: 34px;
}

/* Category Filter Wrapper (Horizontally scrollable on mobile) */
.portfolio-filters-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
  width: 100%;
}

.portfolio-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.p-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.p-filter-btn.active {
  background: linear-gradient(135deg, var(--work-purple), var(--work-magenta));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
}

/* 3-Column Card Grid Container */
.portfolio-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

/* Individual Portfolio Card */
.project-portfolio-card {
  position: relative;
  border-radius: 22px;
  background: #090e1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.project-portfolio-card.is-hidden {
  display: none !important;
}

.project-portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.75), 0 0 30px rgba(147, 51, 234, 0.22);
}

.card-clickable-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Top Image / Mockup Presentation Area */
.project-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.2;
  background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.16), rgba(4, 7, 15, 0.96)), #050812;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-browser-mockup {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-portfolio-card:hover .card-browser-mockup {
  transform: scale(1.035);
  filter: brightness(1.06);
}

.c-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(3, 6, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.c-dot.r { background: #ef4444; opacity: 0.8; }
.c-dot.y { background: #eab308; opacity: 0.8; }
.c-dot.g { background: #22c55e; opacity: 0.8; }

.c-url {
  font-family: monospace;
  font-size: 0.62rem;
  color: #94a3b8;
  margin-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interior Mockup Views */
.c-mock-preview-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-mock-hero {
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.c-mock-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.c-mock-badge.cyan { color: #38bdf8; }
.c-mock-badge.gold { color: #f59e0b; }
.c-mock-badge.purple { color: #d8b4fe; }

.c-mock-hero h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.c-mock-btn-line {
  width: 45px;
  height: 4px;
  border-radius: 2px;
  background: #38bdf8;
}
.c-mock-btn-line.green { background: #22c55e; }

.c-mock-nodes-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.node-pill {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.node-arrow {
  font-size: 0.6rem;
  color: #38bdf8;
}

.c-mock-product-row {
  display: flex;
  gap: 5px;
}
.c-prod-box {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.c-mock-chart-line {
  width: 80%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #9333ea, #38bdf8);
}

/* Card Content Area */
.project-card-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.project-card-meta {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
}

.project-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: auto;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 5px;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #d8b4fe;
  transition: color 0.25s ease;
}

.project-card-cta .cta-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.project-portfolio-card:hover .project-card-cta {
  color: #ffffff;
}

.project-portfolio-card:hover .project-card-cta .cta-arrow {
  transform: translate(4px, -4px);
}

/* ==========================================================================
   RESPONSIVE CARD GRID BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .portfolio-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .portfolio-section {
    padding: 60px 0 90px;
  }
  .portfolio-filters-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .portfolio-filters-wrap::-webkit-scrollbar {
    display: none;
  }
  .portfolio-filters {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .portfolio-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card-body {
    padding: 20px 18px 18px;
  }
  .project-card-title {
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   SECTION 4: FINAL CTA SECTION
   ========================================================================== */
.work-cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.work-cta-panel {
  position: relative;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 30%, rgba(147, 51, 234, 0.28) 0%, rgba(15, 23, 42, 0.95) 60%), #080c16;
  border: 1px solid rgba(216, 180, 254, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(147, 51, 234, 0.25);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 550px);
  height: min(80vw, 550px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.35) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: float-glow 8s ease-in-out infinite alternate;
}

.work-cta-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
  margin: 0 auto;
}

.work-cta-content h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 18px 0 20px;
  line-height: 1.08;
}

.work-cta-content p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin: 0 auto 38px;
}

.work-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .work-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .work-system-stage {
    min-height: 380px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card.featured-split,
  .project-card.featured-split.reverse {
    grid-template-columns: 1fr;
  }
  .project-card.featured-split.reverse .project-info {
    order: 1;
  }
  .project-card.featured-split.reverse .project-media-wrap {
    order: 2;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .project-media-wrap {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .portfolio-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .work-section {
    padding: 70px 0;
  }
  .work-hero {
    padding-top: 105px;
    padding-bottom: 60px;
  }
  .project-info {
    padding: 34px 24px;
  }
  .project-media-wrap {
    padding: 24px 16px;
  }
  .work-cta-panel {
    padding: 50px 24px;
    border-radius: 24px;
  }
  .work-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .work-cta-buttons .btn {
    width: 100%;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .work-glow-orb,
  .card-main-browser,
  .card-floating-code,
  .card-floating-badge,
  .cta-ambient-glow {
    animation: none !important;
  }
  .project-card,
  .approach-card {
    transition: none !important;
  }
}
