/* ============================================================
   PRABHAKAR SEENAPPA — PORTFOLIO
   Case Study / Project Page Styles
   ============================================================ */

/* ------------------------------------------------------------
   PROJECT HERO
------------------------------------------------------------ */
.project-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.project-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.7) 60%,
    rgba(0,0,0,0.9) 100%
  );
  z-index: 1;
}

.project-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
  width: 100%;
}

.project-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  transition: color var(--ease);
  text-decoration: none;
}

.project-hero__back:hover { color: #fff; }

.project-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
  margin-bottom: 20px;
}

.project-hero__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
  max-width: 780px;
}

.project-hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   PROJECT BRIEF
------------------------------------------------------------ */
.project-brief {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 48px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.project-brief__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.project-brief__item {
  padding: 8px 24px;
  position: relative;
}

.project-brief__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.project-brief__item:first-child { padding-left: 0; }
.project-brief__item:last-child  { padding-right: 0; }

.project-brief__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-300);
  margin-bottom: 6px;
}

.project-brief__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-100);
  line-height: 1.4;
}

/* ------------------------------------------------------------
   CASE STUDY SECTIONS
------------------------------------------------------------ */
.cs-section {
  padding: 80px 0;
}

.cs-section--alt {
  background: var(--bg);
}

.cs-container {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 40px;
}

.cs-container--wide {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}

.cs-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 20px;
}

.cs-section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--highlight);
}

.cs-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-100);
  margin-bottom: 24px;
}

.cs-body {
  font-size: 16px;
  color: var(--text-200);
  line-height: 1.85;
}

.cs-body + .cs-body {
  margin-top: 20px;
}

.cs-body strong {
  color: var(--text-100);
  font-weight: 600;
}

/* Problem & challenge highlight box */
.cs-highlight-box {
  background: var(--bg-dark);
  color: var(--surface);
  border-radius: var(--r-xl);
  padding: 48px;
  margin: 48px 0;
}

.cs-highlight-box .cs-section-label {
  color: rgba(255,255,255,0.5);
}

.cs-highlight-box .cs-section-label::before {
  background: rgba(255,255,255,0.3);
}

.cs-highlight-box .cs-section-title {
  color: #fff;
}

.cs-highlight-box .cs-body {
  color: rgba(255,255,255,0.7);
}

/* Problem list */
.cs-problems {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.cs-problem-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cs-problem-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cs-problem-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  padding-top: 2px;
}

.cs-problem-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* Process phases */
.cs-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.cs-phase {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--sh-xs);
  border: 1px solid var(--border);
  position: relative;
}

.cs-phase__num {
  font-size: 40px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}

.cs-phase__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.cs-phase__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 8px;
}

.cs-phase__desc {
  font-size: 13px;
  color: var(--text-200);
  line-height: 1.65;
}

/* Research methods */
.cs-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.cs-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.cs-method__icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-method__body h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-100);
}

.cs-method__body p {
  font-size: 13px;
  color: var(--text-200);
  line-height: 1.6;
}

/* Insights / callouts */
.cs-insights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.cs-insight {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--highlight);
}

.cs-insight__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 8px;
}

.cs-insight__text {
  font-size: 15px;
  color: var(--text-100);
  line-height: 1.65;
  font-weight: 500;
}

/* Outcomes / Impact */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.cs-outcome {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.cs-outcome__num {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-100);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.cs-outcome__label {
  font-size: 14px;
  color: var(--text-200);
  line-height: 1.5;
}

/* Mockup / image placeholder */
.cs-mockup {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  margin: 40px 0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-mockup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  opacity: 0.5;
}

.cs-mockup__icon { font-size: 48px; }

.cs-mockup__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

/* Key learnings */
.cs-learnings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.cs-learning {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.cs-learning__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--highlight);
  flex-shrink: 0;
  min-width: 24px;
}

.cs-learning__text {
  font-size: 15px;
  color: var(--text-100);
  line-height: 1.65;
}

/* Project navigation */
.project-nav {
  background: var(--text-100);
  padding: 60px 0;
}

.project-nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.project-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: opacity var(--ease);
}

.project-nav__item:hover { opacity: 0.7; }

.project-nav__item:last-child { text-align: right; align-items: flex-end; }

.project-nav__dir {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.project-nav__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.project-nav__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}

/* ------------------------------------------------------------
   PROJECT HERO THUMBNAIL GRADIENTS
   (match portfolio card colors on case study pages)
------------------------------------------------------------ */
.thumb--crowdstrike { background: url('../images/crowdstrike.jpg') center/cover no-repeat, linear-gradient(140deg,#0D1B2A,#1D3050); }
.thumb--autodesk    { background: url('../images/autodesk.jpg')    center/cover no-repeat, linear-gradient(140deg,#1A1A1A,#303030); }
.thumb--pruxpress   { background: url('../images/pruxpress.jpg')   center/cover no-repeat, linear-gradient(140deg,#0F2040,#1E3866); }
.thumb--lifely      { background: url('../images/lifely.jpg')      center/cover no-repeat, linear-gradient(140deg,#283540,#3A4E5E); }
.thumb--cvs         { background: url('../images/cvs.jpg')         center/cover no-repeat, linear-gradient(140deg,#2A1818,#3E2222); }
.thumb--walmart     { background: url('../images/walmart.jpg')     center/cover no-repeat, linear-gradient(140deg,#182040,#263258); }

/* ------------------------------------------------------------
   RESPONSIVE — PROJECT PAGES
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .project-brief__grid { grid-template-columns: repeat(3, 1fr); }
  .project-brief__item:nth-child(3)::after { display: none; }
  .project-brief__item:nth-child(4),
  .project-brief__item:nth-child(5) {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 24px;
  }

  .cs-phases { grid-template-columns: repeat(2, 1fr); }
  .cs-methods { grid-template-columns: repeat(2, 1fr); }
  .cs-outcomes { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .project-hero__inner { padding-inline: 20px; }
  .cs-container { padding-inline: 20px; }
  .cs-container--wide { padding-inline: 20px; }

  .project-brief { padding: 28px 20px; margin-top: -32px; }
  .project-brief__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .project-brief__item { padding: 0; }
  .project-brief__item::after { display: none !important; }

  .cs-phases { grid-template-columns: 1fr; }
  .cs-methods { grid-template-columns: 1fr; }
  .cs-insights { grid-template-columns: 1fr; }
  .cs-outcomes { grid-template-columns: 1fr; }

  .cs-highlight-box { padding: 28px 20px; }

  .project-nav__inner { grid-template-columns: 1fr; text-align: center; }
  .project-nav__item:last-child { align-items: center; }
  .project-nav__divider { display: none; }
}
