/* ==========================================================================
   PORTFOLIO DEDICATED PAGE STYLES - ASHHDIGITAL
   Cinematic Dark Luxury Aesthetic & Glassmorphism System
   ========================================================================== */

.page-portfolio {
  background-color: #070709;
}

/* Page Hero */
.portfolio-hero {
  max-width: 900px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 5;
}

.portfolio-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Stats Ribbon */
.portfolio-stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 42, 77, 0.22);
  background: rgba(14, 12, 20, 0.68);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 42, 77, 0.1);
  margin-top: 15px;
}

.portfolio-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: #FF2A4D;
  text-shadow: 0 0 16px rgba(255, 42, 77, 0.4);
  line-height: 1;
  margin-bottom: 4px;
}

.portfolio-stat-lbl {
  font-size: 0.82rem;
  color: #C3BFD2;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.portfolio-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
}

/* Controls: Filter & Search */
.portfolio-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.portfolio-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-filter-tab {
  background: rgba(18, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A9A3BB;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-filter-tab:hover {
  color: #FFFFFF;
  border-color: rgba(255, 42, 77, 0.35);
  transform: translateY(-2px);
}

.portfolio-filter-tab.active {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(255, 42, 77, 0.42);
}

/* Search Box */
.portfolio-search-box {
  position: relative;
  min-width: 320px;
}

.portfolio-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.portfolio-search-box input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  background: rgba(14, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.portfolio-search-box input:focus {
  border-color: var(--primary-coral);
  box-shadow: 0 0 20px rgba(255, 42, 77, 0.3);
  background: rgba(20, 16, 28, 0.9);
}

.portfolio-search-box input::placeholder {
  color: #7A748A;
}

/* Portfolio Cards Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 70px;
}

/* Project Card */
.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 24px;
  position: relative;
  background: rgba(15, 13, 22, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.38s var(--ease-smooth);
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 94, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 77, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 42, 77, 0.18);
  background: rgba(22, 17, 32, 0.85);
}

.portfolio-card:hover::before {
  opacity: 1;
}

/* Featured Master Archive Card Styling */
.portfolio-card.card-featured-master {
  border-color: rgba(255, 42, 77, 0.45);
  background: rgba(24, 16, 34, 0.82);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 42, 77, 0.15);
}

.portfolio-card.card-featured-master::before {
  opacity: 1;
  background: var(--accent-gradient);
  height: 3px;
}

/* Card Top Metadata */
.portfolio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.portfolio-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFA552;
  background: rgba(255, 94, 0, 0.1);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 94, 0, 0.22);
}

.portfolio-cat-pill.pill-video {
  color: #FF5E85;
  background: rgba(255, 42, 77, 0.1);
  border-color: rgba(255, 42, 77, 0.25);
}

.portfolio-cat-pill.pill-3d {
  color: #FFAE52;
  background: rgba(255, 140, 0, 0.1);
  border-color: rgba(255, 140, 0, 0.25);
}

.portfolio-cat-pill.pill-web {
  color: #5CE1E6;
  background: rgba(92, 225, 230, 0.1);
  border-color: rgba(92, 225, 230, 0.25);
}

.portfolio-cat-pill.pill-social {
  color: #E27BFF;
  background: rgba(226, 123, 255, 0.1);
  border-color: rgba(226, 123, 255, 0.25);
}

.portfolio-cat-pill.pill-master {
  color: #FFFFFF;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255, 42, 77, 0.35);
}

.portfolio-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5CD685;
  background: rgba(92, 214, 133, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 214, 133, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5CD685;
  box-shadow: 0 0 8px #5CD685;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Icon & Graphic Header */
.portfolio-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 42, 77, 0.12);
  border: 1px solid rgba(255, 42, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-coral);
  transition: all 0.35s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.portfolio-icon-wrapper svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-icon-wrapper {
  transform: scale(1.08);
  background: rgba(255, 42, 77, 0.22);
  border-color: var(--primary-coral);
  box-shadow: 0 0 25px rgba(255, 42, 77, 0.4);
}

.portfolio-card:hover .portfolio-icon-wrapper svg {
  transform: scale(1.06);
}

/* Card Content */
.portfolio-card-title {
  font-size: 1.38rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.25;
}

.portfolio-card-subtitle {
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFAE52;
  margin-bottom: 14px;
  display: block;
}

.portfolio-card-desc {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #A9A3BB;
  margin-bottom: 22px;
  flex-grow: 1;
}

/* Deliverable / Scope Chips */
.portfolio-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.portfolio-chip {
  font-size: 0.76rem;
  color: #D3CEE0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.portfolio-card:hover .portfolio-chip {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Action CTA Button */
.btn-portfolio-drive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.btn-portfolio-drive .drive-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-portfolio-drive .icon-external {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.btn-portfolio-drive:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 42, 77, 0.45);
}

.btn-portfolio-drive:hover .icon-external {
  transform: translate(3px, -3px);
}

.portfolio-card.card-featured-master .btn-portfolio-drive {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(255, 42, 77, 0.4);
}

.portfolio-card.card-featured-master .btn-portfolio-drive:hover {
  box-shadow: 0 10px 32px rgba(255, 42, 77, 0.65);
  transform: translateY(-2px) scale(1.01);
}

/* Value Delivery Workflow Section */
.portfolio-process-section {
  margin: 60px 0 80px 0;
  padding: 44px 36px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 12, 20, 0.65);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.process-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-step-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(22, 18, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all 0.3s ease;
}

.process-step-card:hover {
  border-color: rgba(255, 42, 77, 0.3);
  transform: translateY(-4px);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-coral);
  margin-bottom: 10px;
}

.process-step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.process-step-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #A9A3BB;
}

/* Contact CTA Banner on Portfolio Page */
.portfolio-contact-cta {
  padding: 56px 44px;
  border-radius: 28px;
  border: 1px solid rgba(255, 42, 77, 0.3);
  background: radial-gradient(circle at 50% 0%, rgba(255, 42, 77, 0.15) 0%, rgba(14, 12, 20, 0.95) 75%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(255, 42, 77, 0.15);
  text-align: center;
  margin-bottom: 80px;
}

.portfolio-contact-cta h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.portfolio-contact-cta p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #C3BFD2;
  max-width: 680px;
  margin: 0 auto 36px auto;
}

.portfolio-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Empty State / No Results */
.portfolio-empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: rgba(18, 15, 26, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  margin-bottom: 50px;
}

.portfolio-empty-state h3 {
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.portfolio-empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Animation on Filter change */
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-stats-ribbon {
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portfolio-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .portfolio-search-box {
    min-width: 100%;
    width: 100%;
  }
  .portfolio-filter-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    white-space: nowrap;
    width: 100%;
    justify-content: flex-start;
  }
  .portfolio-stats-ribbon {
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px;
  }
  .portfolio-stat-divider {
    width: 60px;
    height: 1px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-contact-cta {
    padding: 40px 24px;
  }
  .portfolio-contact-cta h2 {
    font-size: 2rem;
  }
  .portfolio-card {
    padding: 26px 20px;
  }
}
