/* ==========================================================================
   SILICON-VALLEY SINGLE PROJECT / APP SHOWCASE THEATER (2026/2027)
   ========================================================================== */
.main_page__.modern_single_project_wrapper,
.modern_single_project_wrapper {
  position: relative !important;
  padding-top: 28px !important;
  padding-bottom: 60px !important;
  overflow: hidden !important;
}

.project_ambient_glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

.project_showcase_header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto 36px;
}

.project_showcase_header .modern_breadcrumbs {
  margin-bottom: 16px !important;
  display: inline-flex !important;
  height: 36px !important;
  font-size: 13px !important;
  padding: 0 18px !important;
}

.project_title_badge_row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.project_cat_pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #00f5d4;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
}

.project_status_pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(138, 75, 255, 0.12);
  border: 1px solid rgba(138, 75, 255, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
}

.project_date_pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
}

.project_main_headline {
  font-family: var(--font-heading, inherit);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary, #ffffff);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.project_sub_lead {
  font-size: 15px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* App Launchpad Bar (Official Store & Web Buttons) */
.project_launchpad_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.launch_store_pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.28s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.store_btn_text {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.store_sub {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 500;
}

.store_title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Apple Store Button */
.apple_store_btn {
  background: rgba(20, 15, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(14px);
}
.apple_store_btn:hover {
  background: #ffffff;
  color: #0b051e;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.2);
}

/* Google Play Button */
.google_play_btn {
  background: rgba(20, 15, 35, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: #ffffff;
  backdrop-filter: blur(14px);
}
.google_play_btn:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: #00f5d4;
  color: #00f5d4;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 245, 212, 0.25);
}

/* Live Web Platform Button */
.live_web_btn {
  background: linear-gradient(135deg, #8a4bff 0%, #6015b3 60%, #00f5d4 120%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.live_web_btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 15px 35px rgba(138, 75, 255, 0.5),
    0 0 25px rgba(0, 245, 212, 0.35);
  filter: brightness(1.1);
  color: #ffffff;
}

/* Behance Button */
.behance_btn {
  background: rgba(5, 62, 255, 0.15);
  border: 1px solid rgba(5, 62, 255, 0.35);
  color: #4f80ff;
}
.behance_btn:hover {
  background: #053eff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 62, 255, 0.4);
}

/* Project Mockup / Theater Stage */
.project_mockup_stage {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto 42px;
}

.mockup_glass_frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-glass, rgba(138, 75, 255, 0.25));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(138, 75, 255, 0.12);
  background: #0b051e;
}

.project_theater_image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.mockup_stage_badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(11, 5, 30, 0.85);
  border: 1px solid rgba(138, 75, 255, 0.35);
  backdrop-filter: blur(14px);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  pointer-events: none;
}

.badge_logo_dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f5d4;
  box-shadow: 0 0 8px #00f5d4;
}

/* Architecture & Specs Bento Grid */
.project_specs_bento_grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 45px;
}

@media (max-width: 860px) {
  .project_specs_bento_grid {
    grid-template-columns: 1fr;
  }
}

.spec_card {
  background: var(--bg-card, rgba(18, 10, 42, 0.75));
  border: 1px solid var(--border-glass, rgba(138, 75, 255, 0.2));
  border-radius: 20px;
  padding: 26px 22px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.spec_card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 245, 212, 0.35);
}

.spec_icon_wrap {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(138, 75, 255, 0.15);
  border: 1px solid rgba(138, 75, 255, 0.3);
  color: #00f5d4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.spec_title {
  font-family: var(--font-heading, inherit);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin: 0 0 8px;
}

.spec_desc {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.spec_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.spec_tags span {
  font-size: 12px;
  font-weight: 600;
  color: #b78aff;
  background: rgba(138, 75, 255, 0.1);
  border: 1px solid rgba(138, 75, 255, 0.2);
  padding: 4px 9px;
  border-radius: 7px;
}

/* Project Editorial Content Container */
.project_editorial_box {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto 45px;
  background: var(--bg-card, rgba(18, 10, 42, 0.75));
  border: 1px solid var(--border-glass, rgba(138, 75, 255, 0.2));
  border-radius: 22px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
}

.editorial_title {
  font-family: var(--font-heading, inherit);
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin: 0 0 14px;
}

.editorial_body {
  font-size: 15px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.75;
}

/* Conversion Banner */
.project_conversion_banner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto 48px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(88, 27, 129, 0.4) 0%,
    rgba(18, 10, 42, 0.85) 100%
  );
  border: 1px solid rgba(138, 75, 255, 0.35);
  padding: 38px 30px;
  backdrop-filter: blur(20px);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.banner_pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #00f5d4;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.banner_headline {
  font-family: var(--font-heading, inherit);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.banner_subline {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.banner_cta_buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta_wa_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}
.cta_wa_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.cta_form_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.cta_form_btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #8a4bff;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Related Projects Section */
.project_related_section {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto;
}

.related_header_row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.related_badge {
  font-size: 12px;
  font-weight: 700;
  color: #00f5d4;
  display: block;
  margin-bottom: 4px;
}

.related_headline {
  font-family: var(--font-heading, inherit);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin: 0;
}

.view_all_projects_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00f5d4;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.view_all_projects_link:hover {
  gap: 12px;
  color: #ffffff;
}

.related_projects_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .related_projects_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related_projects_grid {
    grid-template-columns: 1fr;
  }
}

.related_project_card {
  background: var(--bg-card, rgba(18, 10, 42, 0.75));
  border: 1px solid var(--border-glass, rgba(138, 75, 255, 0.2));
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.28s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.related_project_card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 75, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.related_card_thumb_wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b051e;
}

.related_card_thumb_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related_project_card:hover .related_card_thumb_wrap img {
  transform: scale(1.06);
}

.related_card_cat {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #00f5d4;
  background: rgba(11, 5, 30, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.3);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 999px;
}

.related_card_content {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related_card_title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0;
  flex: 1;
}

.related_card_action {
  font-size: 12.5px;
  color: var(--brand-cyan, #00f5d4);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   AVANT-GARDE PORTFOLIO ARCHIVE (TABS + INSTANT LIVE SEARCH)
   ========================================================================== */
.modern_projects_archive_wrapper {
  position: relative;
  padding: 20px 0 90px;
  overflow: hidden;
}

.archive_ambient_glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.modern_portfolio_hub_section {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.portfolio_controls_matrix {
  max-width: 1120px;
  margin: 0 auto 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Live Search Box */
.portfolio_search_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.search_input_wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
}

.search_input_wrap .search_icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--brand-cyan, #00f5d4);
  pointer-events: none;
}

.portfolio_search_input {
  width: 100% !important;
  background: var(--bg-card, rgba(18, 10, 42, 0.75)) !important;
  border: 1px solid var(--border-glass, rgba(138, 75, 255, 0.25)) !important;
  border-radius: 999px !important;
  padding: 16px 52px 16px 44px !important;
  color: var(--text-primary, #ffffff) !important;
  font-size: 15px !important;
  font-family: var(--font-sans, inherit) !important;
  outline: none !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.portfolio_search_input:focus {
  border-color: #8a4bff !important;
  background: rgba(25, 14, 55, 0.9) !important;
  box-shadow:
    0 12px 35px rgba(138, 75, 255, 0.35),
    0 0 0 3px rgba(138, 75, 255, 0.2) !important;
}

.portfolio_search_input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.clear_search_btn {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.clear_search_btn:hover {
  background: rgba(239, 68, 68, 0.8);
  color: #ffffff;
}

.search_results_meta {
  font-size: 13.5px;
  color: var(--text-muted, #94a3b8);
}
.search_results_meta strong {
  color: var(--brand-cyan, #00f5d4);
  font-weight: 700;
}

/* Category Filter Tabs */
.portfolio_tabs_container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio_tab_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary, #cbd5e1);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  backdrop-filter: blur(10px);
}

.portfolio_tab_btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(138, 75, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.portfolio_tab_btn.is-active {
  background: linear-gradient(135deg, #8a4bff 0%, #6015b3 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(138, 75, 255, 0.4);
}

.tab_count_badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

/* Portfolio Projects Grid Container & 4-Column Layout */
.modern_projects_archive_wrapper .container {
  max-width: 1420px;
}

.modern_portfolio_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .modern_portfolio_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .modern_portfolio_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .modern_portfolio_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.modern_project_item {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.project_card_anchor {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, rgba(18, 10, 42, 0.75));
  border: 1px solid var(--border-glass, rgba(138, 75, 255, 0.2));
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  height: 100%;
}

.project_card_anchor:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 75, 255, 0.55);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(138, 75, 255, 0.2);
}

.project_thumb_viewport {
  position: relative;
  aspect-ratio: 16 / 11.5;
  min-height: 220px;
  overflow: hidden;
  background: #0b051e;
}

.project_card_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project_card_anchor:hover .project_card_image {
  transform: scale(1.07);
}

.project_card_category_tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #00f5d4;
  background: rgba(11, 5, 30, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.3);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}

.project_hover_overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 5, 30, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.project_card_anchor:hover .project_hover_overlay {
  opacity: 1;
}

.hover_view_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8a4bff 0%, #6015b3 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.project_card_anchor:hover .hover_view_btn {
  transform: translateY(0);
}

.project_card_info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project_card_title {
  font-family: var(--font-heading, inherit);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin: 0 0 14px;
  line-height: 1.35;
}

.project_card_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project_enterprise_tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}
.project_enterprise_tag svg {
  color: #00f5d4;
}

.project_platform_icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plat_icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: all 0.2s ease;
}
.plat_apple {
  color: #ffffff;
}
.plat_android {
  color: #00f5d4;
}
.plat_web {
  color: #00f5d4;
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.25);
}

/* Empty State */
.portfolio_empty_state {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.empty_icon_box {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(138, 75, 255, 0.12);
  border: 1px solid rgba(138, 75, 255, 0.25);
  color: #00f5d4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.portfolio_empty_state h3 {
  font-family: var(--font-heading, inherit);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin: 0 0 8px;
}

.portfolio_empty_state p {
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin: 0 0 22px;
}

.reset_filter_cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8a4bff 0%, #6015b3 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(138, 75, 255, 0.4);
}
.reset_filter_cta_btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Portfolio Footer CTA */
.portfolio_footer_cta {
  position: relative;
  z-index: 2;
  margin-top: 70px;
}

.portfolio_cta_card {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(88, 27, 129, 0.45) 0%,
    rgba(18, 10, 42, 0.9) 100%
  );
  border: 1px solid rgba(138, 75, 255, 0.35);
  padding: 48px 36px;
  backdrop-filter: blur(20px);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.cta_tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #00f5d4;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.portfolio_cta_card h2 {
  font-family: var(--font-heading, inherit);
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}

.portfolio_cta_card p {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.cta_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta_primary_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}
.cta_primary_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.cta_secondary_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.cta_secondary_btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #8a4bff;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Light Mode Adapters for Projects & Archive */
html[data-theme="light"] .spec_card,
html[data-theme="light"] .project_editorial_box,
html[data-theme="light"] .related_project_card,
html[data-theme="light"] .project_card_anchor {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(81, 28, 129, 0.15);
  box-shadow: 0 16px 40px rgba(81, 28, 129, 0.08);
}
html[data-theme="light"] .portfolio_search_input {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(81, 28, 129, 0.2) !important;
  color: #1e1133 !important;
}
html[data-theme="light"] .portfolio_search_input::placeholder {
  color: rgba(30, 17, 51, 0.45) !important;
}
html[data-theme="light"] .portfolio_tab_btn {
  background: rgba(81, 28, 129, 0.04);
  border-color: rgba(81, 28, 129, 0.12);
  color: #35253e;
}
html[data-theme="light"] .portfolio_tab_btn.is-active {
  background: linear-gradient(135deg, #8a4bff 0%, #6015b3 100%);
  color: #ffffff;
}
html[data-theme="light"] .project_card_title,
html[data-theme="light"] .related_card_title,
html[data-theme="light"] .spec_title,
html[data-theme="light"] .editorial_title {
  color: #1e1133;
}
html[data-theme="light"] .spec_desc,
html[data-theme="light"] .editorial_body {
  color: #4b5563;
}


/* ===== Auto light-mode adaptation ===== */
html[data-theme="light"] .project_date_pill{background:rgba(81, 28, 129,0.06) !important;}
html[data-theme="light"] .apple_store_btn{background:#ffffff !important;color:#0f172a !important;}
html[data-theme="light"] .google_play_btn{background:#ffffff !important;color:#0f172a !important;}
html[data-theme="light"] .mockup_glass_frame{background:#ffffff !important;box-shadow:0 12px 35px rgba(81, 28, 129,0.08) !important;}
html[data-theme="light"] .mockup_stage_badge{background:#ffffff !important;color:#0f172a !important;}
html[data-theme="light"] .spec_card{background:#ffffff !important;}
html[data-theme="light"] .project_editorial_box{background:#ffffff !important;}
html[data-theme="light"] .banner_headline{color:#0f172a !important;}
html[data-theme="light"] .cta_form_btn{background:rgba(81, 28, 129,0.06) !important;color:#0f172a !important;}
html[data-theme="light"] .cta_form_btn:hover{background:rgba(81, 28, 129,0.06) !important;color:#0f172a !important;}
html[data-theme="light"] .related_badge{color:#0284c7 !important;}
html[data-theme="light"] .view_all_projects_link{color:#0284c7 !important;}
html[data-theme="light"] .related_project_card{background:#ffffff !important;}
html[data-theme="light"] .related_card_thumb_wrap{background:#ffffff !important;}
html[data-theme="light"] .related_card_cat{background:#ffffff !important;color:#0284c7 !important;}
html[data-theme="light"] .clear_search_btn{background:rgba(81, 28, 129,0.06) !important;}
html[data-theme="light"] .project_card_anchor{background:#ffffff !important;box-shadow:0 12px 35px rgba(81, 28, 129,0.08) !important;}
html[data-theme="light"] .project_thumb_viewport{background:#ffffff !important;}
html[data-theme="light"] .project_card_category_tag{background:#ffffff !important;color:#0284c7 !important;}
html[data-theme="light"] .project_hover_overlay{background:#ffffff !important;}
html[data-theme="light"] .project_enterprise_tag svg{color:#0284c7 !important;}
html[data-theme="light"] .plat_icon{background:rgba(81, 28, 129,0.06) !important;color:#0f172a !important;}
html[data-theme="light"] .plat_apple{color:#0f172a !important;}
html[data-theme="light"] .plat_android{color:#0284c7 !important;}
html[data-theme="light"] .portfolio_cta_card h2{color:#0f172a !important;}
html[data-theme="light"] .cta_secondary_btn{background:rgba(81, 28, 129,0.06) !important;color:#0f172a !important;}
html[data-theme="light"] .cta_secondary_btn:hover{background:rgba(81, 28, 129,0.06) !important;color:#0f172a !important;}

/* Light mode: conversion banners & CTA cards follow the light surface */
html[data-theme="light"] .project_conversion_banner,
html[data-theme="light"] .portfolio_cta_card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%) !important;
  border-color: rgba(81, 28, 129, 0.22) !important;
  box-shadow: 0 18px 45px rgba(81, 28, 129, 0.10) !important;
}
html[data-theme="light"] .banner_subline,
html[data-theme="light"] .portfolio_cta_card p { color: #475569 !important; }
html[data-theme="light"] .banner_pill,
html[data-theme="light"] .cta_tag { color: #511c81 !important; }

/* Light mode: portfolio filter tabs — clear active state */
html[data-theme="light"] .portfolio_tab_btn:hover {
  background: rgba(81, 28, 129, 0.10);
  border-color: rgba(81, 28, 129, 0.35);
  color: #511c81;
}
html[data-theme="light"] .portfolio_tab_btn.is-active,
html[data-theme="light"] .portfolio_tab_btn.is-active:hover {
  background: linear-gradient(135deg, #511c81 0%, #511c81 100%) !important;
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(81, 28, 129, 0.32);
}
html[data-theme="light"] .tab_count_badge {
  background: rgba(81, 28, 129, 0.12);
  color: #511c81;
}
html[data-theme="light"] .portfolio_tab_btn.is-active .tab_count_badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Project content: ignore inline colors pasted from the editor so text stays readable in both themes */
html[data-theme="dark"] .editorial_body,
html[data-theme="dark"] .editorial_body p,
html[data-theme="dark"] .editorial_body li,
html[data-theme="dark"] .editorial_body span { color: #e4def8 !important; }
html[data-theme="dark"] .editorial_body strong,
html[data-theme="dark"] .editorial_body h2,
html[data-theme="dark"] .editorial_body h3 { color: #ffffff !important; }
html[data-theme="light"] .editorial_body,
html[data-theme="light"] .editorial_body p,
html[data-theme="light"] .editorial_body li,
html[data-theme="light"] .editorial_body span { color: #334155 !important; }

/* ===== Light mode: brand #511c81 fills (dark mode keeps the lighter violet) ===== */
html[data-theme="light"] .live_web_btn:hover{box-shadow:0 15px 35px rgba(81, 28, 129, 0.5),
    0 0 25px rgba(0, 245, 212, 0.35) !important;}
html[data-theme="light"] .mockup_glass_frame{box-shadow:0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(81, 28, 129, 0.12) !important;}
html[data-theme="light"] .portfolio_search_input:focus{box-shadow:0 12px 35px rgba(81, 28, 129, 0.35),
    0 0 0 3px rgba(81, 28, 129, 0.2) !important !important;}
html[data-theme="light"] .portfolio_tab_btn.is-active{background:linear-gradient(135deg, #6b2fa3 0%, #511c81 100%) !important;box-shadow:0 8px 24px rgba(81, 28, 129, 0.4) !important;}
html[data-theme="light"] .project_card_anchor:hover{box-shadow:0 22px 55px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(81, 28, 129, 0.2) !important;}
html[data-theme="light"] .hover_view_btn{background:linear-gradient(135deg, #6b2fa3 0%, #511c81 100%) !important;}
html[data-theme="light"] .reset_filter_cta_btn{background:linear-gradient(135deg, #6b2fa3 0%, #511c81 100%) !important;box-shadow:0 8px 24px rgba(81, 28, 129, 0.4) !important;}

/* ===== Light mode: cyan / sky-blue accents -> brand #511c81 ===== */
html[data-theme="light"] .project_cat_pill{color:#511c81 !important;background:rgba(81, 28, 129, 0.1) !important;border:1px solid rgba(81, 28, 129, 0.25) !important;}
html[data-theme="light"] .google_play_btn{border:1px solid rgba(81, 28, 129, 0.3) !important;}
html[data-theme="light"] .google_play_btn:hover{background:rgba(81, 28, 129, 0.15) !important;border-color:#511c81 !important;color:#511c81 !important;box-shadow:0 14px 35px rgba(81, 28, 129, 0.25) !important;}
html[data-theme="light"] .live_web_btn{background:linear-gradient(135deg, #8a4bff 0%, #6015b3 60%, #511c81 120%) !important;}
html[data-theme="light"] .live_web_btn:hover{box-shadow:0 15px 35px rgba(138, 75, 255, 0.5),
    0 0 25px rgba(81, 28, 129, 0.35) !important;}
html[data-theme="light"] .badge_logo_dot{background:#511c81 !important;box-shadow:0 0 8px #511c81 !important;}
html[data-theme="light"] .spec_card:hover{border-color:rgba(81, 28, 129, 0.35) !important;}
html[data-theme="light"] .spec_icon_wrap{color:#511c81 !important;}
html[data-theme="light"] .banner_pill{color:#511c81 !important;background:rgba(81, 28, 129, 0.1) !important;border:1px solid rgba(81, 28, 129, 0.25) !important;}
html[data-theme="light"] .related_badge{color:#511c81 !important;}
html[data-theme="light"] .view_all_projects_link{color:#511c81 !important;}
html[data-theme="light"] .related_card_cat{color:#511c81 !important;border:1px solid rgba(81, 28, 129, 0.3) !important;}
html[data-theme="light"] .related_card_action{color:#511c81 !important;}
html[data-theme="light"] .search_input_wrap .search_icon{color:#511c81 !important;}
html[data-theme="light"] .search_results_meta strong{color:#511c81 !important;}
html[data-theme="light"] .project_card_category_tag{color:#511c81 !important;border:1px solid rgba(81, 28, 129, 0.3) !important;}
html[data-theme="light"] .project_enterprise_tag svg{color:#511c81 !important;}
html[data-theme="light"] .plat_android{color:#511c81 !important;}
html[data-theme="light"] .plat_web{color:#511c81 !important;background:rgba(81, 28, 129, 0.08) !important;border-color:rgba(81, 28, 129, 0.25) !important;}
html[data-theme="light"] .empty_icon_box{color:#511c81 !important;}
html[data-theme="light"] .cta_tag{color:#511c81 !important;background:rgba(81, 28, 129, 0.1) !important;border:1px solid rgba(81, 28, 129, 0.25) !important;}
html[data-theme="light"] .related_badge{color:#511c81 !important;}
html[data-theme="light"] .view_all_projects_link{color:#511c81 !important;}
html[data-theme="light"] .related_card_cat{color:#511c81 !important;}
html[data-theme="light"] .project_card_category_tag{color:#511c81 !important;}
html[data-theme="light"] .project_enterprise_tag svg{color:#511c81 !important;}
html[data-theme="light"] .plat_android{color:#511c81 !important;}
html[data-theme="light"] .live_web_btn:hover{box-shadow:0 15px 35px rgba(81, 28, 129, 0.5),
    0 0 25px rgba(81, 28, 129, 0.35) !important;}
