/* =============================================
 SINGLE PORTFOLIO — Premium Redesign
 ============================================= */

/* ---------- HERO ---------- */
.spd-hero {
  background: var(--grad-hero);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.spd-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 79, 97, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.spd-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.spd-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.spd-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: var(--t-fast);
}

.spd-breadcrumb a:hover {
  color: var(--primary-light);
}

.spd-breadcrumb-sep {
  opacity: 0.5;
}

.spd-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-bottom: 20px;
  transition: var(--t-fast);
}

.spd-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

/* ---------- FEATURED COVER ---------- */
.spd-cover-wrap {
  max-width: 1100px;
  margin: -35px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.spd-cover-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
  position: relative;
}

.spd-cover {
  width: 100%;
  height: 100%;
  /*object-fit: cover;*/
  display: block;
  transition: transform 0.8s var(--ease);
}

.spd-cover-container:hover .spd-cover {
  transform: scale(1.03);
}

/* ---------- LAYOUT CONTAINER ---------- */
.spd-body {
  padding: 60px 0 80px;
  position: relative;
}

.spd-body-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

.spd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.spd-main {
  min-width: 0; /* Prevent overflow */
}

/* ---------- CASE STUDY CONTENT ---------- */
.spd-content {
  font-family: 'Roboto', sans-serif;
}

.spd-content > *:first-child {
  margin-top: 0;
}

.spd-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 40px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.spd-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.spd-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.spd-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 79, 97, 0.3);
  font-weight: 500;
  transition: var(--t-fast);
}

.spd-content a:hover {
  text-decoration-color: var(--primary);
}

/* Lists */
.spd-content ul,
.spd-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.spd-content li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.spd-content li::marker {
  color: var(--primary);
}

/* Blockquote / Testimonials */
.spd-content blockquote {
  margin: 36px 0;
  padding: 32px 32px 32px 28px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(0, 79, 97, 0.03) 0%, rgba(0, 115, 142, 0.02) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.spd-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 4.5rem;
  color: rgba(0, 79, 97, 0.07);
  line-height: 1;
  pointer-events: none;
}

.spd-content blockquote p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0;
}

/* Images within content */
.spd-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

/* ---------- SIDEBAR & WIDGETS ---------- */
.spd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.spd-widget {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.spd-widget-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 12px;
}

.spd-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Project Details Widget */
.spd-meta-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spd-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.spd-meta-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Tech Stack Tag Pills */
.spd-tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spd-tech-tag {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--t-fast);
  box-shadow: var(--shadow-xs);
}

.spd-tech-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* CTA Sticky Banner */
.spd-cta-widget {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  text-align: center;
  position: sticky;
  top: 100px;
  padding: 40px 32px;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
}

.spd-cta-widget::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.spd-cta-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.spd-cta-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ---------- PREMIUM NAVIGATION ---------- */
.spd-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.spd-nav-card {
  text-decoration: none;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: var(--t-base);
  position: relative;
}

.spd-nav-card:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.spd-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.spd-nav-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  transition: var(--t-fast);
}

.spd-nav-card:hover .spd-nav-title {
  color: var(--primary);
}

.spd-nav-next {
  text-align: right;
  align-items: flex-end;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .spd-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .spd-sidebar {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
  }

  .spd-cta-widget {
    position: static;
  }
}

@media (max-width: 768px) {
  .spd-hero {
    padding: 80px 0 40px;
  }

  .spd-cover-wrap {
    margin-top: -15px;
  }

  .spd-body {
    padding: 40px 0 60px;
  }

  .spd-navigation {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spd-nav-next {
    text-align: left;
    align-items: flex-start;
  }
}
