/**
 * portfolio.css
 * Redesigned styling definitions for the Portfolio Hub page.
 * Customized for a premium Stark Light Mode aesthetic with vertical screenshot scrolling,
 * clean overlapping collage, silver-and-white values laptop, and brand-red accents.
 *
 * @package Srushti_Theme
 */

.page-portfolio-wrapper {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

/* ── 1. LIGHT MODE HERO SECTION ──────────────────────────────────────── */
.portfolio-hero-section {
  position: relative;
  padding: 120px 0 var(--space-16);
  background-color: var(--color-midnight);
  color: var(--text-primary);
  border-bottom: 1px solid var(--color-border-subtle);
  overflow: hidden;
}

.portfolio-hero-section .container {
  position: relative;
  z-index: 2;
}

.portfolio-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-hero-text .eyebrow-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 850;
  color: var(--color-brand-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-2);
}

.portfolio-hero-headline {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

.portfolio-hero-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.portfolio-hero-actions {
  display: flex;
  gap: var(--space-4);
}

/* Hero angled collage visual */
.portfolio-hero-visual-col {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-hero-collage-wrap {
  position: absolute;
  inset: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-hero-collage {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-6deg) scale(0.95);
}

.collage-item {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 10, 15, 0.08);
  border: 1px solid var(--color-border-subtle);
  width: 200px;
  height: 135px;
  background-color: var(--color-surface-2);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, z-index 0.1s;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-item-1 {
  top: 5%;
  left: 5%;
  z-index: 1;
}

.collage-item-2 {
  top: 0%;
  left: 55%;
  z-index: 2;
}

.collage-item-3 {
  top: 48%;
  left: 0%;
  z-index: 3;
}

.collage-item-4 {
  top: 44%;
  left: 50%;
  z-index: 4;
}

.collage-item:hover {
  transform: scale(1.06) translateY(-6px);
  z-index: 10;
  border-color: var(--color-brand-red);
}

/* ── 2. SCROLLABLE CATEGORY FILTERS ──────────────────────────────────── */
.portfolio-showcase-section {
  padding: var(--space-16) 0;
}

.portfolio-filters-wrap-outer {
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--space-12);
}

.portfolio-filters-wrap {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  justify-content: center;
  padding: var(--space-2) var(--space-4);
}

.portfolio-filters-wrap::-webkit-scrollbar {
  display: none;
  /* Safari & Chrome */
}

.portfolio-filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.portfolio-filter-btn:hover {
  color: var(--text-primary);
}

.portfolio-filter-btn.active {
  color: var(--color-brand-red);
}

.portfolio-filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: var(--color-brand-red);
}

/* ── 3. CARD GRID & HOVER SCREENSHOT AUTO-SCROLL ────────────────────── */
.portfolio-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--space-8);
}

.portfolio-item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-surface-1) !important;
  border: 1px solid var(--color-border-subtle) !important;
  box-shadow: 0 6px 24px rgba(10, 10, 15, 0.02) !important;
}

.portfolio-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-red) !important;
  box-shadow: 0 16px 36px rgba(10, 10, 15, 0.05) !important;
}

.portfolio-card-thumb-wrap {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-subtle);
  cursor: pointer;
}

.portfolio-card-thumb-wrap .badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  background: var(--color-surface-1) !important;
  color: var(--color-brand-red) !important;
  border: 1px solid rgba(204, 0, 0, 0.2) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(10, 10, 15, 0.05) !important;
  padding: 5px 12px !important;
  border-radius: 4px;
}

.portfolio-card-img-scroll {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transform: translateY(0);
  will-change: transform;
  transition: transform 1.5s ease-in-out;
  /* Fallback timing */
}

.portfolio-card-img-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Body / Footer layout matching mockup */
.portfolio-card-footer {
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface-1);
}

.portfolio-card-client-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.portfolio-card-client-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.portfolio-card-client-name a:hover {
  color: var(--color-brand-red);
}

.portfolio-view-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--color-brand-red);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap 0.25s ease, color 0.25s ease;
}

.portfolio-view-site-link:hover {
  color: var(--color-brand-red-bright);
  gap: 10px;
}

.portfolio-view-site-link svg {
  display: block;
}

/* ── 4. INTERMEDIARY COLLABORATION BANNER ────────────────────────────── */
.portfolio-collab-section {
  margin-top: var(--space-12);
  margin-bottom: var(--space-16);
}

.portfolio-collab-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-8) var(--space-10);
  border-radius: 12px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 8px 30px rgba(10, 10, 15, 0.02);
  flex-wrap: wrap;
  gap: var(--space-6);
}

.portfolio-collab-banner .collab-text h2 {
  margin: 0 0 var(--space-1.5);
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.portfolio-collab-banner .collab-text p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.portfolio-collab-banner .btn-primary {
  flex-shrink: 0;
}

/* ── 5. LIGHT MODE "WHY SRUSHTI" LAPTOP DISPLAY & STATISTICS ─────────── */
.section-title-wrap {
  text-align: center;
  margin-bottom: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title-wrap .label-eyebrow {
  margin-bottom: var(--space-4);
}

.section-title-wrap h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--text-primary);
}

.portfolio-collab-section {
  margin-top: var(--space-16);
  margin-bottom: var(--space-16);
}

.btn-brand-red {
  background-color: var(--color-brand-red) !important;
  color: #FFFFFF !important;
  border-color: var(--color-brand-red) !important;
}

.btn-brand-red:hover {
  background-color: var(--color-brand-red-bright) !important;
  border-color: var(--color-brand-red-bright) !important;
}

.text-center {
  text-align: center !important;
}

.portfolio-why-srushti-section {
  padding: var(--space-16) 0;
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--text-primary);
}

.laptop-mockup-wrapper {
  margin: var(--space-12) auto var(--space-16);
  max-width: 820px;
  padding: 0 var(--space-4);
}

.laptop-device {
  position: relative;
  width: 100%;
}

.laptop-screen {
  background: #FFFFFF;
  border: 14px solid #e5e5ea;
  border-radius: 18px 18px 0 0;
  aspect-ratio: 16/10;
  padding: var(--space-8);
  overflow-y: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  border-bottom: none;
}

.laptop-screen-content {
  color: var(--text-primary);
}

.laptop-screen-content h3 {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  color: var(--color-brand-red);
  margin-top: 0;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.why-srushti-screen-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.why-srushti-screen-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 1.6;
  color: var(--text-secondary);
}

.why-srushti-screen-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-red);
  box-shadow: 0 0 6px var(--color-brand-red-bright);
}

.why-srushti-screen-list li strong {
  color: var(--text-primary);
  font-weight: 750;
  margin-right: 4px;
}

.laptop-keyboard {
  height: 16px;
  background: linear-gradient(to bottom, #d1d1d6, #e5e5ea);
  border-radius: 0 0 10px 10px;
  border-bottom: 5px solid #c7c7cc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
}

.laptop-keyboard::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 75px;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

/* Laptop screen scrollbar */
.laptop-screen::-webkit-scrollbar {
  width: 6px;
}

.laptop-screen::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}

.laptop-screen::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

/* Statistics Grid */
.portfolio-stats-grid {
  margin-top: var(--space-10);
}

.stat-card {
  padding: var(--space-4);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 950;
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--color-brand-red);
}

.stat-label {
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

/* ── 6. PAGINATION MODULE ─────────────────────────────────────────── */
.pagination-wrap {
  margin-top: var(--space-16);
  width: 100%;
}

.srushti-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.srushti-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.srushti-pagination .page-numbers:hover,
.srushti-pagination .page-numbers.current {
  background: var(--color-brand-red);
  border-color: var(--color-brand-red);
  color: #FFFFFF;
}

.srushti-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--text-tertiary);
  pointer-events: none;
}

.srushti-pagination .arrow-icon-left {
  margin-right: 6px;
}

.srushti-pagination .arrow-icon:not(.arrow-icon-left) {
  margin-left: 6px;
}

/* ── 7. RESPONSIVE MEDIA OVERRIDES ───────────────────────────────────── */
@media (max-width: 992px) {
  .portfolio-hero-section {
    padding: 110px 0 var(--space-12);
  }

  .portfolio-hero-visual-col {
    margin-top: var(--space-8);
    height: 320px;
  }

  .portfolio-hero-collage {
    transform: rotate(-5deg) scale(0.95);
  }

  .portfolio-grid-list {
    grid-template-columns: 1fr !important;
    gap: var(--space-6);
  }

  .portfolio-card-thumb-wrap {
    height: 280px;
  }

  .portfolio-collab-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--space-8);
  }

  .portfolio-collab-banner .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .laptop-mockup-wrapper {
    margin: var(--space-8) auto var(--space-10);
  }

  .laptop-screen {
    padding: var(--space-6);
  }

  .portfolio-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .portfolio-stats-grid .col-3 {
    grid-column: span 1 !important;
  }

  .portfolio-contact-form-wrap {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 768px) {
  .portfolio-hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .portfolio-hero-visual-col {
    display: none;
    /* Hide collage on mobile screens to save weight and space */
  }

  .portfolio-filters-wrap {
    justify-content: flex-start;
  }

  .portfolio-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .portfolio-stats-grid .col-3 {
    grid-column: span 1 !important;
  }



  /* Remove laptop mockup wrapper on mobile and show simple clean list container */
  .laptop-screen {
    border: 1px solid var(--color-border-subtle) !important;
    border-radius: 8px !important;
    aspect-ratio: auto !important;
    padding: var(--space-6) !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    overflow-y: visible !important;
  }

  .laptop-keyboard {
    display: none !important;
  }

  .laptop-mockup-wrapper {
    margin: var(--space-6) auto var(--space-8) !important;
    padding: 0 !important;
  }
}

/* Hide redundant portfolio button inside CTA outreach band on portfolio page */
.page-portfolio-wrapper #cta-btn-portfolio {
  display: none !important;
}