/* ==========================================================================
   PORTFOLIO STYLESHEET (CV / RESUME FORMAT)
   Built upon the case-study design system with modern CSS best practices.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & AMBIENT ATMOSPHERE
   -------------------------------------------------------------------------- */
:root {
  --portfolio-sidebar-left-w: 340px;
  --portfolio-sidebar-right-w: 320px;
  --portfolio-header-h: 72px;
}

/* Atmospheric Glow Background — deeper, more cinematic */
.portfolio-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.portfolio-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}

.portfolio-orb--1 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 87, 87, 0.22) 0%, rgba(255, 87, 87, 0.05) 55%, transparent 70%);
  top: -180px;
  left: -140px;
}

.portfolio-orb--2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(100, 60, 220, 0.14) 0%, transparent 65%);
  bottom: 2%;
  right: -150px;
}

.portfolio-orb--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 100, 0.07) 0%, transparent 65%);
  top: 38%;
  right: 22%;
}

.portfolio-orb--4 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(50, 110, 220, 0.14) 0%, rgba(30, 70, 160, 0.04) 50%, transparent 68%);
  top: 45%;
  left: 32%;
}

.portfolio-orb--5 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 87, 87, 0.11) 0%, rgba(180, 50, 50, 0.03) 50%, transparent 68%);
  top: 76%;
  left: 45%;
}

/* --------------------------------------------------------------------------
   2. TOP BAR — PREMIUM EDITORIAL HEADER
   -------------------------------------------------------------------------- */
.portfolio-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--portfolio-header-h);
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 8px 32px -8px rgba(0,0,0,0.5);
}

.portfolio-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.portfolio-brand img {
  height: 30px;
  width: auto;
  filter: brightness(0.95);
}

.portfolio-brand-text {
  font-family: var(--cs-font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.portfolio-brand-tag {
  font-family: var(--cs-font-mono);
  font-size: 10px;
  color: var(--accent-color);
  background: rgba(255, 87, 87, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 87, 87, 0.22);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   3. THREE-COLUMN ARCHITECTURE (FIXED LEFT + SCROLLABLE CENTER + FIXED RIGHT)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .cs-sidebar,
  .cs-sidebar--left {
    position: fixed;
    top: var(--portfolio-header-h, 72px);
    left: 0 !important;
    width: var(--portfolio-sidebar-left-w, 340px) !important;
    height: calc(100vh - var(--portfolio-header-h, 72px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    box-sizing: border-box;
    padding: 1.25rem 1.25rem 2rem 1.45rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }

  .cs-sidebar-right {
    position: fixed;
    top: var(--portfolio-header-h, 72px);
    right: 0 !important;
    width: var(--portfolio-sidebar-right-w, 320px) !important;
    height: calc(100vh - var(--portfolio-header-h, 72px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    box-sizing: border-box;
    padding: 1.25rem 1.45rem 2rem 1.25rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }
}

.cs-sidebar::-webkit-scrollbar,
.cs-sidebar-right::-webkit-scrollbar {
  width: 5px;
}

.cs-sidebar::-webkit-scrollbar-thumb,
.cs-sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.cs-sidebar::-webkit-scrollbar-thumb:hover,
.cs-sidebar-right::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Sidebar Scroll Containers */
.sidebar-content-inner,
.sidebar-right-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.cs-sidebar-right .sidebar-bottom-status {
  margin-top: auto;
}

/* 2-COLUMN UNIFIED LAYOUT — LEFT FIXED SIDEBAR + RIGHT SCROLLABLE CONTENT */
@media (min-width: 1200px) {
  .cs-content {
    margin-left: var(--portfolio-sidebar-left-w, 340px) !important;
    margin-right: 0 !important;
    width: calc(100% - var(--portfolio-sidebar-left-w, 340px)) !important;
    max-width: 1180px !important;
    padding: calc(var(--portfolio-header-h, 72px) + 1.5rem) 2.5rem 4rem 2.5rem !important;
    box-sizing: border-box;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --portfolio-sidebar-left-w: 300px;
  }
  .cs-sidebar,
  .cs-sidebar--left {
    width: var(--portfolio-sidebar-left-w, 300px) !important;
    padding: 1rem 1rem 1.5rem 1rem !important;
  }
  .cs-content {
    margin-left: var(--portfolio-sidebar-left-w, 300px) !important;
    margin-right: 0 !important;
    width: calc(100% - var(--portfolio-sidebar-left-w, 300px)) !important;
    max-width: none !important;
    padding: calc(var(--portfolio-header-h, 72px) + 1.25rem) 1.5rem 3rem 1.5rem !important;
  }
}

/* ═══════════════════════════════════════════════
   PORTRAIT HERO — Cinematic Studio Stage
   ═══════════════════════════════════════════════ */
.sidebar-portrait-stage {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(50, 110, 200, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(255, 87, 87, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #0d1521 0%, #080c14 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 48px -8px rgba(0, 0, 0, 0.8),
    0 8px 16px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Floor glow strip */
.sidebar-portrait-stage::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(50, 110, 200, 0.18) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Top vignette frame */
.sidebar-portrait-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.sidebar-portrait-stage:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 87, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 87, 87, 0.12),
    0 24px 56px -6px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(255, 87, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Dynamic studio backlight */
.sidebar-portrait-aura {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(80, 160, 255, 0.5) 0%,
    rgba(100, 140, 220, 0.3) 30%,
    rgba(255, 87, 87, 0.12) 60%,
    transparent 75%
  );
  filter: blur(36px);
  pointer-events: none;
  z-index: 1;
  animation: sidebar-aura-pulse 4s ease-in-out infinite;
}

@keyframes sidebar-aura-pulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* Portrait photo */
.sidebar-portrait-img {
  position: relative;
  z-index: 2;
  width: 92%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 -2px 20px rgba(80, 150, 255, 0.35))
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75));
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.sidebar-portrait-stage:hover .sidebar-portrait-img {
  transform: scale(1.04) translateY(-3px);
  filter:
    drop-shadow(0 -4px 28px rgba(80, 150, 255, 0.5))
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.8));
}

/* ── AVAILABLE badge (top-right) */
.sidebar-status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(5, 12, 22, 0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(0, 229, 117, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 229, 117, 0.08);
  font-family: var(--cs-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00e575;
  text-transform: uppercase;
}

.sidebar-status-beacon {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

.sidebar-status-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00e575;
  box-shadow: 0 0 6px rgba(0, 229, 117, 0.6);
}

.sidebar-status-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00e575;
  animation: cs-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ── Role chip (top-left) */
.sidebar-role-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--cs-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(220, 225, 235, 0.9);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   IDENTITY BLOCK
   ═══════════════════════════════════════════════ */
.sidebar-identity-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.1rem 0;
}

.sidebar-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--cs-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-color);
  text-transform: uppercase;
  opacity: 0.9;
}

.sidebar-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-verified-badge {
  color: var(--accent-color);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 10px rgba(255, 87, 87, 0.5));
  animation: sidebar-badge-glow 3s ease-in-out infinite;
}

@keyframes sidebar-badge-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 87, 87, 0.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 87, 87, 0.7)); }
}

.sidebar-title {
  font-family: var(--cs-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #b8bec9;
  margin: 0;
  letter-spacing: 0.01em;
}

.sidebar-bio-text {
  font-size: 0.795rem;
  color: rgba(155, 162, 175, 0.85);
  line-height: 1.6;
  margin: 0.2rem 0 0 0;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid rgba(255, 87, 87, 0.5);
  border-radius: 0 8px 8px 0;
}

/* ═══════════════════════════════════════════════
   MICRO METRICS TRIO
   ═══════════════════════════════════════════════ */
.sidebar-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  touch-action: pan-y;
}

.sidebar-metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.4rem;
  position: relative;
  transition: background 0.25s ease;
  touch-action: pan-y;
}

.sidebar-metric-box:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-metric-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-metric-num {
  font-family: var(--cs-font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sidebar-metric-lbl {
  font-family: var(--cs-font-mono);
  font-size: 9px;
  color: var(--cs-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ═══════════════════════════════════════════════
   CONTACT CLUSTER
   ═══════════════════════════════════════════════ */
.sidebar-contact-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  padding: 0.5rem 0.8rem;
  border-radius: 11px;
  transition: all 0.22s ease;
}

.sidebar-contact-row:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.sidebar-contact-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #cdd1db;
  font-size: 0.785rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.sidebar-contact-main i {
  color: var(--accent-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-contact-main:hover {
  color: #ffffff;
}

.sidebar-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cs-muted);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 11.5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-copy-btn:hover {
  background: rgba(255, 87, 87, 0.15);
  border-color: rgba(255, 87, 87, 0.5);
  color: #ffffff;
  transform: scale(1.08);
}

.sidebar-contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.sidebar-contact-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.65rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--cs-muted);
  font-size: 0.74rem;
  text-decoration: none;
  transition: all 0.22s ease;
  font-weight: 500;
}

.sidebar-contact-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e8ebf0;
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-contact-chip i {
  color: var(--accent-color);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SOCIAL ICON ROW
   ═══════════════════════════════════════════════ */
.sidebar-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.sidebar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #adb3bf;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 87, 87, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sidebar-social-btn:hover {
  background: rgba(255, 87, 87, 0.1);
  border-color: rgba(255, 87, 87, 0.4);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 87, 87, 0.22);
}

.sidebar-social-btn:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   SECTION NAVIGATION
   ═══════════════════════════════════════════════ */
.sidebar-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem;
  margin-bottom: -0.1rem;
}

.sidebar-nav-label {
  font-family: var(--cs-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(140, 148, 165, 0.6);
  text-transform: uppercase;
}

.cs-sidebar .cs-nav-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.58rem 0.75rem;
  border-radius: 9px;
  font-size: 12px;
  font-family: var(--cs-font-sans);
  font-weight: 500;
  color: rgba(155, 162, 178, 0.8);
  text-decoration: none;
  border-left: 2.5px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.cs-sidebar .cs-nav-link:hover {
  color: #e8ebf0;
  background: rgba(255, 255, 255, 0.045);
  border-left-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.cs-sidebar .cs-nav-link.active,
#sidebar-nav a:is(:target-current, .active) {
  border-left-color: var(--accent-color);
  background: linear-gradient(90deg, rgba(255, 87, 87, 0.14) 0%, rgba(255, 87, 87, 0.02) 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#sidebar-nav {
  scroll-target-group: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#sidebar-nav a:is(:target-current, .active) .cs-nav-num {
  color: var(--accent-color);
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   BOTTOM CTA + STATUS
   ═══════════════════════════════════════════════ */
.sidebar-bottom-status {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-resume-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 87, 87, 0.18) 0%, rgba(255, 87, 87, 0.06) 100%);
  border: 1px solid rgba(255, 87, 87, 0.35);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-resume-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff4040 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sidebar-resume-cta:hover::before {
  opacity: 1;
}

.sidebar-resume-cta > * {
  position: relative;
  z-index: 1;
}

.sidebar-resume-cta:hover {
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 87, 87, 0.38);
  transform: translateY(-2px);
  border-color: transparent;
}

.sidebar-cta-pill {
  font-family: var(--cs-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   3.0 SCROLLABLE CONTENT — MASTER GLASSMORPHISM & SMOOTH SCROLL SYSTEM
   High-Fidelity Obsidian Frosted Glass with Specular Rim Reflections
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--portfolio-header-h, 72px) + 1.25rem);
}

body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cs-content {
  position: relative;
  z-index: 1;
  scroll-behavior: smooth;
  --cs-muted: #cbd5e1;
}

.cs-content p,
.cs-content .prose {
  color: #e2e8f0;
  line-height: 1.7;
}

.cs-content p strong,
.cs-content p b {
  color: #ffffff;
  font-weight: 600;
}

/* Lightfall Interactive WebGL2 Background (Center Scrollable Column) */
.cs-lightfall-container {
  position: fixed;
  top: var(--portfolio-header-h, 72px);
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.28;
  will-change: transform;
  transform: translateZ(0);
  background: transparent;
}

@media (min-width: 1200px) {
  .cs-lightfall-container {
    left: var(--portfolio-sidebar-left-w, 340px);
    right: var(--portfolio-sidebar-right-w, 320px);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .cs-lightfall-container {
    left: var(--portfolio-sidebar-left-w, 290px);
    right: var(--portfolio-sidebar-right-w, 270px);
  }
}

@media (max-width: 991.98px) {
  .cs-lightfall-container {
    top: 60px;
    left: 0;
    right: 0;
  }
}

.lightfall-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cs-content > section,
.cs-content > footer {
  position: relative;
  z-index: 1;
}

/* Master Obsidian Glassmorphic Card */
.cs-glass-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.72) 0%, rgba(10, 14, 24, 0.54) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 0 16px 0 rgba(255, 255, 255, 0.02),
    0 16px 40px -10px rgba(0, 0, 0, 0.65) !important;
  border-radius: 20px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background 0.35s ease;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cs-glass-card--accent-left {
  border-left: 3px solid var(--accent-color) !important;
}

/* Specular Top Rim Light — catches overhead chromatic light */
.cs-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.32) 30%, rgba(255, 87, 87, 0.28) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cs-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 0 0 20px 0 rgba(255, 87, 87, 0.04),
    0 24px 50px -10px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(255, 87, 87, 0.10) !important;
  transform: translateY(-3px);
}

/* Glass Bezel — Elevated Hero Direct Hub */
.cs-glass-bezel {
  position: relative;
  background: linear-gradient(135deg, rgba(18, 22, 34, 0.82) 0%, rgba(9, 12, 19, 0.68) 100%) !important;
  border: 1px solid rgba(255, 87, 87, 0.32) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.24),
    inset 0 0 20px 0 rgba(255, 87, 87, 0.05),
    0 24px 60px -12px rgba(0, 0, 0, 0.85),
    0 0 36px rgba(255, 87, 87, 0.12) !important;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.cs-glass-bezel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 40%, var(--accent-color) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cs-glass-bezel:hover {
  border-color: rgba(255, 87, 87, 0.5) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.32),
    0 28px 68px -12px rgba(0, 0, 0, 0.9),
    0 0 44px rgba(255, 87, 87, 0.18) !important;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   3.5 PROFILE & SUMMARY SHOWCASE CARD (WITH PORTRAIT INTEGRATION)
   -------------------------------------------------------------------------- */
.profile-summary-card {
  padding: 2.25rem !important;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.74) 0%, rgba(10, 14, 24, 0.58) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(30px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 0 0 16px 0 rgba(255, 255, 255, 0.02),
    0 20px 48px -10px rgba(0, 0, 0, 0.7) !important;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.profile-summary-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.profile-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.profile-summary-tags .cs-tag {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.22s ease;
}

.profile-summary-tags .cs-tag:hover {
  background: rgba(255, 87, 87, 0.12);
  border-color: rgba(255, 87, 87, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.profile-summary-media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.profile-card-stage {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(50, 110, 200, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 87, 87, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #0e141f 0%, #080b11 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 40px -8px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.profile-card-stage:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 87, 0.4);
  box-shadow:
    0 22px 50px -6px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(255, 87, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.profile-card-aura {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 160, 255, 0.45) 0%, rgba(255, 87, 87, 0.15) 55%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
}

.profile-card-img {
  position: relative;
  z-index: 2;
  width: 90%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7));
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-stage:hover .profile-card-img {
  transform: scale(1.03);
}

.profile-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: rgba(10, 15, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--cs-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.profile-card-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

.profile-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(6, 9, 14, 0.95) 0%, rgba(6, 9, 14, 0.7) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card-name {
  font-family: var(--cs-font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.profile-card-sub {
  font-family: var(--cs-font-mono);
  font-size: 10px;
  color: var(--cs-muted);
}

@media (max-width: 900px) {
  .profile-summary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-summary-media {
    order: -1;
  }

  .profile-card-stage {
    height: clamp(240px, 60vw, 320px);
    max-width: 280px;
  }

  .profile-summary-card {
    padding: 1.25rem !important;
  }
}

/* --------------------------------------------------------------------------
   4. EXECUTIVE METRICS & VERIFIED TELEMETRY (SCROLLABLE HERO COMPONENT)
   -------------------------------------------------------------------------- */
.portfolio-exec-metrics-section {
  position: relative;
  margin: 2.25rem 0 2.75rem 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.75) 0%, rgba(9, 12, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 1.5rem 1.6rem;
  overflow: hidden;
}

.portfolio-exec-metrics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.portfolio-exec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-exec-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portfolio-exec-tag {
  font-family: var(--cs-font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

.portfolio-exec-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--cs-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-color, #00e5ff);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
}

.portfolio-exec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

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

@media (max-width: 640px) {
  .portfolio-exec-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-exec-metrics-section {
    padding: 1.1rem;
  }
}

.portfolio-exec-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 26, 40, 0.7) 0%, rgba(10, 14, 24, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  overflow: hidden;
}

.portfolio-exec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.portfolio-exec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 229, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.portfolio-exec-card--accent:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.portfolio-exec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.portfolio-exec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--cs-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.portfolio-exec-chip--green {
  color: var(--cs-green, #10b981);
}

.portfolio-exec-index {
  font-family: var(--cs-font-mono, monospace);
  font-size: 9.5px;
  color: #475569;
}

.portfolio-exec-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.1rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.portfolio-exec-unit {
  color: var(--accent-color, #00e5ff);
  font-size: 0.75em;
  font-weight: 700;
  margin-left: 2px;
}

.portfolio-exec-number--green .portfolio-exec-unit {
  color: var(--cs-green, #10b981);
}

.portfolio-exec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.portfolio-exec-desc {
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 1.15rem 0;
  flex-grow: 1;
}

.portfolio-exec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--cs-font-mono, monospace);
  font-size: 10px;
}

.portfolio-exec-subtag {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portfolio-exec-metric-pill {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

/* Fallback legacy support for portfolio-metrics-grid */
.portfolio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.75rem 0;
}

.portfolio-metric-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.72) 0%, rgba(11, 15, 24, 0.58) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: left;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
}

.portfolio-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 40%, rgba(255, 87, 87, 0.28) 70%, transparent 100%);
  pointer-events: none;
}

.portfolio-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 87, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 48px -8px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(255, 87, 87, 0.14);
}

.portfolio-metric-card:hover::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 40%, var(--accent-color) 70%, transparent 100%);
}

/* Strategic Advantages Frosted Sub-panels */
.portfolio-adv-grid > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.portfolio-adv-grid > div:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 87, 87, 0.35);
  transform: translateY(-2px);
}

.portfolio-metric-val {
  font-family: var(--cs-font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
}

.portfolio-metric-val span {
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: 700;
}

.portfolio-metric-label {
  font-size: 0.72rem;
  color: var(--cs-muted);
  line-height: 1.45;
  font-family: var(--cs-font-sans);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   5. TIMELINE / WORK EXPERIENCE — EDITORIAL EDITORIAL VERTICAL TRACK
   -------------------------------------------------------------------------- */
.portfolio-timeline {
  position: relative;
  padding-left: 2.25rem;
  margin-top: 2.5rem;
}

.portfolio-timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 1.5px;
  background: linear-gradient(180deg,
    var(--accent-color) 0%,
    rgba(255, 87, 87, 0.3) 60%,
    transparent 100%);
}

.portfolio-timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

.portfolio-timeline-item:last-child {
  margin-bottom: 0;
}

.portfolio-timeline-node {
  position: absolute;
  left: -2.25rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #ff9898);
  box-shadow: 0 0 0 4px rgba(255,87,87,0.12), 0 0 16px rgba(255,87,87,0.4);
  z-index: 2;
}

.portfolio-exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.portfolio-exp-company {
  font-size: 1.0rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--cs-font-mono);
}

.portfolio-exp-badge {
  font-family: var(--cs-font-mono);
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e4ec;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}

.portfolio-exp-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.portfolio-exp-meta {
  font-family: var(--cs-font-mono);
  font-size: 0.75rem;
  color: var(--cs-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.portfolio-exp-bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.875rem;
  color: #c0c5cf;
  line-height: 1.65;
}

.portfolio-exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Phased / Multi-role Experience Cards (Promotions & Career Progression) */
.portfolio-exp-phase {
  position: relative;
  padding-left: 1.35rem;
  border-left: 2px solid rgba(255, 87, 87, 0.25);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-exp-phase:first-of-type {
  margin-top: 0.85rem;
}

.portfolio-exp-phase:last-of-type {
  margin-bottom: 0;
}

.portfolio-exp-phase-node {
  position: absolute;
  left: -5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

.portfolio-exp-phase-node--intern {
  background: #9ca3af;
  box-shadow: 0 0 6px rgba(156, 163, 175, 0.4);
}

.portfolio-exp-tag-pill {
  font-size: 10px;
  font-family: var(--cs-font-mono);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-left: 0.45rem;
}

.portfolio-exp-tag-pill--fulltime {
  color: var(--cs-green);
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.28);
}

.portfolio-exp-tag-pill--intern {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-exp-tag-pill--parttime {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

/* --------------------------------------------------------------------------
   6. SKILLS CATEGORY CARDS — UPGRADED ICON CARDS WITH HOVER GLOW
   -------------------------------------------------------------------------- */
.portfolio-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}

.portfolio-skill-group {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.70) 0%, rgba(10, 14, 24, 0.54) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px -6px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
}

.portfolio-skill-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), rgba(255, 87, 87, 0.28), transparent);
  pointer-events: none;
}

.portfolio-skill-group:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 87, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 44px -6px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 87, 87, 0.12);
}

.portfolio-skill-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portfolio-skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 87, 87, 0.18) 0%, rgba(255, 87, 87, 0.05) 100%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 87, 87, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(255, 87, 87, 0.15);
  flex-shrink: 0;
}

.portfolio-skill-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--cs-font-sans);
  margin: 0;
  letter-spacing: -0.01em;
}

.portfolio-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-skill-tag {
  font-family: var(--cs-font-mono);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.045);
  color: #b8bdc8;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  cursor: default;
}

.portfolio-skill-tag:hover {
  background: rgba(255, 87, 87, 0.14);
  border-color: rgba(255, 87, 87, 0.4);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 87, 87, 0.2);
}

/* --------------------------------------------------------------------------
   7. PROJECTS SHOWCASE CARDS — CINEMATIC EDITORIAL GRID
   -------------------------------------------------------------------------- */
.portfolio-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 2rem;
}

.portfolio-project-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.74) 0%, rgba(10, 14, 24, 0.58) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 44px -8px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.portfolio-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), rgba(255, 87, 87, 0.3), transparent);
  pointer-events: none;
  z-index: 3;
}

.portfolio-project-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(255, 87, 87, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 24px 56px -8px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(255, 87, 87, 0.15);
}

.portfolio-proj-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  aspect-ratio: 16 / 10;
  background: #0d0d12;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.portfolio-proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-project-card:hover .portfolio-proj-img {
  transform: scale(1.07);
}

/* Image overlay on hover */
.portfolio-proj-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portfolio-project-card:hover .portfolio-proj-img-wrap::after {
  opacity: 1;
}

/* Card body wrapper */
.portfolio-proj-body {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-proj-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.portfolio-proj-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.3rem 0;
}

.portfolio-proj-role {
  font-family: var(--cs-font-mono);
  font-size: 0.72rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-proj-desc {
  font-size: 0.83rem;
  color: #9ea3ae;
  line-height: 1.6;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.portfolio-proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
}

.portfolio-proj-tag {
  font-family: var(--cs-font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #8a8f99;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-proj-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem 1.15rem;
  margin-top: auto;
  background: rgba(8, 11, 18, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-proj-actions .portfolio-btn {
  font-size: 0.75rem;
  padding: 0.42rem 0.9rem;
}

/* --------------------------------------------------------------------------
   8. EDUCATION CARDS — ELEVATED INSTITUTIONAL CARDS
   -------------------------------------------------------------------------- */
.portfolio-edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.portfolio-edu-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.72) 0%, rgba(10, 14, 24, 0.56) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px -6px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
}

.portfolio-edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), rgba(255, 87, 87, 0.28), transparent);
  pointer-events: none;
}

.portfolio-edu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 87, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 44px -6px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 87, 87, 0.12);
}

.portfolio-edu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-edu-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.portfolio-edu-degree {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.portfolio-edu-school {
  font-size: 0.82rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 0.1rem;
  font-family: var(--cs-font-mono);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. PROFESSIONAL CERTIFICATIONS (SLIDER & BUNDLE CARDS)
   -------------------------------------------------------------------------- */
.cert-slider-section {
  margin-top: 2.5rem;
  position: relative;
}

.cert-slider-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-slider-nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cert-slider-counter {
  font-family: var(--cs-font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 87, 87, 0.08);
  border: 1px solid rgba(255, 87, 87, 0.25);
  border-radius: 999px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.cert-slider-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cert-slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.cert-slider-arrow:hover:not(:disabled) {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #000000;
  transform: translateY(-1px);
}

.cert-slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Track & Slides */
.cert-slider-viewport {
  position: relative;
  width: 100%;
}

.cert-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.cert-slider-track::-webkit-scrollbar {
  display: none;
}

.cert-slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
}

/* Individual Certification Bundle Card */
.cert-bundle-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.75) 0%, rgba(10, 14, 24, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 44px -10px rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cert-bundle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), rgba(255, 87, 87, 0.3), transparent);
  pointer-events: none;
  z-index: 2;
}

.cert-bundle-card:hover {
  border-color: rgba(255, 87, 87, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 56px -10px rgba(0, 0, 0, 0.82),
    0 0 32px rgba(255, 87, 87, 0.15);
}

/* Card Header */
.cert-bundle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-bundle-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.cert-bundle-badge-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cert-bundle-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-bundle-meta-block {
  min-width: 0;
}

.cert-bundle-issuer {
  font-family: var(--cs-font-mono);
  font-size: 0.725rem;
  color: var(--accent-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.2rem;
}

.cert-bundle-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.cert-bundle-status-pill {
  font-family: var(--cs-font-mono);
  font-size: 0.75rem;
  color: #ffffff;
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Card Body (Split Columns) */
.cert-bundle-body {
  display: flex;
  flex-direction: row;
  padding: 1.5rem;
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .cert-bundle-body {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

/* Left: Main Specialization Showcase */
.cert-bundle-main {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cert-bundle-main-media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  display: block;
  text-align: left;
}

.cert-bundle-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.cert-bundle-main-media:hover .cert-bundle-main-img,
.cert-bundle-main-media:focus-visible .cert-bundle-main-img {
  transform: scale(1.04);
}

.cert-bundle-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(10, 10, 14, 0.4) 60%, rgba(14, 14, 18, 0.85) 100%);
  pointer-events: none;
}

.cert-bundle-main-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cert-bundle-main-media:hover .cert-bundle-main-hint,
.cert-bundle-main-media:focus-visible .cert-bundle-main-hint {
  opacity: 1;
}

.cert-bundle-main-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: rgba(18, 18, 24, 0.92);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transform: translateY(4px);
  transition: transform 0.25s ease;
}

.cert-bundle-main-media:hover .cert-bundle-main-hint-btn {
  transform: translateY(0);
}

.cert-bundle-desc {
  font-size: 0.85rem;
  color: #c4c8d0;
  line-height: 1.55;
  margin: 1rem 0 0.85rem 0;
}

.cert-bundle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.cert-bundle-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* Right: Sub-Certificates & Course Milestones */
.cert-bundle-sub {
  flex: 1 1 52%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cert-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-sub-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cert-sub-count-tag {
  font-family: var(--cs-font-mono);
  font-size: 0.685rem;
  color: var(--accent-color);
  background: rgba(255, 87, 87, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 87, 87, 0.2);
}

.cert-sub-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-right: 6px;
}

.cert-sub-scroll-list::-webkit-scrollbar {
  width: 5px;
}

.cert-sub-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.cert-sub-scroll-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Sub-Certificate Item */
.cert-sub-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  width: 100%;
  text-align: left;
}

.cert-sub-card:hover,
.cert-sub-card:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 87, 87, 0.45);
  transform: translateX(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cert-sub-thumb-wrap {
  position: relative;
  width: 76px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cert-sub-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cert-sub-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffffff;
  font-size: 0.8rem;
}

.cert-sub-card:hover .cert-sub-thumb-overlay {
  opacity: 1;
}

.cert-sub-details {
  flex-grow: 1;
  min-width: 0;
}

.cert-sub-num {
  font-family: var(--cs-font-mono);
  font-size: 0.68rem;
  color: var(--accent-color);
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.cert-sub-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin: 1px 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-sub-focus {
  font-family: var(--cs-font-mono);
  font-size: 0.68rem;
  color: var(--cs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-sub-view-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9cdd4;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cert-sub-card:hover .cert-sub-view-icon {
  background: rgba(255, 87, 87, 0.2);
  border-color: var(--accent-color);
  color: #ffffff;
}

/* Markers / Pagination Navigation */
.cert-carousel-markers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cert-marker-dot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a0a0a0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--cs-font-mono);
  font-size: 0.725rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-marker-dot:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cert-marker-dot[aria-current="true"] {
  background: rgba(255, 87, 87, 0.15);
  border-color: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
}

.cert-marker-dot[aria-current="true"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
}

/* Micro skill chips & actions */
.portfolio-cert-tag {
  font-family: var(--cs-font-mono);
  font-size: 0.685rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.portfolio-cert-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.portfolio-cert-action-btn--primary {
  background: rgba(255, 87, 87, 0.12);
  border: 1px solid rgba(255, 87, 87, 0.35);
  color: #ffffff;
}

.portfolio-cert-action-btn--primary:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #000000;
  transform: translateY(-1px);
}

.portfolio-cert-action-btn--outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c9cdd4;
}

.portfolio-cert-action-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   CERTIFICATE LIGHTBOX MODAL (<dialog>)
   -------------------------------------------------------------------------- */
dialog.portfolio-cert-modal {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #0c0c10;
  color: #ffffff;
  max-width: min(920px, 94vw);
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
              0 0 40px -10px rgba(255, 87, 87, 0.2);
  margin: auto;
}

dialog.portfolio-cert-modal:modal {
  overscroll-behavior: contain;
}

dialog.portfolio-cert-modal::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.cert-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.95);
}

.cert-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cert-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-modal-meta {
  font-family: var(--cs-font-mono);
  font-size: 0.725rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.cert-modal-close-btn:hover {
  background: rgba(255, 87, 87, 0.2);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: rotate(90deg);
}

.cert-modal-body {
  padding: 1rem;
  background: #050507;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.cert-modal-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.95);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. BUTTONS & PILLS — PRECISION ELEVATED CONTROLS
   -------------------------------------------------------------------------- */
.portfolio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.58rem 1.2rem;
  font-size: 0.82rem;
  font-family: var(--cs-font-sans);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.portfolio-btn--primary {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 87, 87, 0.4), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.portfolio-btn--primary:hover {
  background: #ff6b6b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 87, 87, 0.5), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.portfolio-btn--outline {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6d9e0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-btn--outline:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9.5 TESTIMONIALS & CONTACT GLASS CHANNELS
   -------------------------------------------------------------------------- */
.portfolio-testimonials-grid .cs-glass-card {
  border-radius: 20px;
}

.portfolio-contact-channels-grid .cs-glass-card {
  border-radius: 16px;
  padding: 1.05rem 1.25rem !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.portfolio-contact-channels-grid .cs-glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 87, 87, 0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 36px -8px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(255, 87, 87, 0.14) !important;
}

/* Glass Section Badge in Scrollable Content */
.cs-content .cs-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cs-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  background: rgba(255, 87, 87, 0.08);
  border: 1px solid rgba(255, 87, 87, 0.22);
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1250px) {
  .portfolio-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   MOBILE & RESPONSIVE MASTERCLASS
   Precision calibrated from iPhone SE (320px/375px) to latest flagships (430px+)
   ========================================================================== */

/* ── 1. TABLET & COMPACT DESKTOP (≤ 991.98px) ── */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .portfolio-topbar {
    padding: 0 1rem;
    height: 60px;
  }

  .portfolio-brand img {
    height: 26px;
  }

  .portfolio-top-actions .btn-text-hide {
    display: none;
  }

  .cs-sidebar,
  .cs-sidebar--left,
  .cs-sidebar-right {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    background: rgba(8, 8, 12, 0.98);
  }

  .cs-sidebar,
  .cs-sidebar--left {
    margin-top: 60px;
    padding: 1.25rem 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--cs-border) !important;
  }

  .cs-sidebar-right {
    margin: 0 !important;
    padding: 1.25rem 1rem !important;
    border-left: none !important;
    border-bottom: 1px solid var(--cs-border) !important;
  }

  .sidebar-content-inner,
  .sidebar-right-inner,
  .sidebar-metrics-row,
  .sidebar-metric-box,
  .sidebar-contact-cluster,
  .sidebar-contact-row,
  .sidebar-social-grid,
  .sidebar-bottom-status {
    touch-action: pan-y !important;
  }

  /* Studio portrait stage — responsive height */
  .sidebar-portrait-stage {
    height: clamp(210px, 52vw, 260px);
  }

  /* Horizontal swipeable navigation bar on mobile */
  .sidebar-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 0.15rem;
  }

  #sidebar-nav {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.45rem;
    padding: 0.35rem 0.1rem 0.65rem 0.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0.2rem 0 0 0;
  }

  #sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .cs-sidebar .cs-nav-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: auto !important;
    padding: 0.42rem 0.75rem;
    font-size: 11px;
    border-left: none !important;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    color: #9ea3ae;
    transform: none !important;
  }

  .cs-sidebar .cs-nav-link.active,
  #sidebar-nav a:is(:target-current, .active) {
    border-color: rgba(255, 87, 87, 0.45) !important;
    background: rgba(255, 87, 87, 0.14) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(255, 87, 87, 0.2);
  }

  .cs-sidebar .cs-nav-link .cs-nav-tag {
    display: none;
  }

  .sidebar-contact-split {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-social-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Center scrollable content */
  .cs-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.75rem 1.15rem !important;
  }

  .portfolio-skills-grid,
  .portfolio-edu-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 2. PHABLETS & LARGE SMARTPHONES (≤ 767.98px) ── */
@media (max-width: 767.98px) {
  .portfolio-projects-grid {
    grid-template-columns: 1fr;
  }

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

  .cs-glass-card.cs-p-8 {
    padding: 1.5rem !important;
  }

  /* Cert slider controls wrap */
  .cert-slider-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cert-slider-nav-wrap {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── 3. STANDARD SMARTPHONES (≤ 575.98px) ── */
@media (max-width: 575.98px) {
  .portfolio-topbar {
    padding: 0 0.85rem;
  }

  .cs-sidebar,
  .cs-sidebar--left,
  .cs-sidebar-right {
    padding: 1rem 0.85rem !important;
  }

  .cs-content {
    padding: 1.25rem 0.85rem 2rem 0.85rem !important;
  }

  /* Single column grids */
  .portfolio-adv-grid,
  .portfolio-metrics-grid,
  .portfolio-contact-channels-grid {
    grid-template-columns: 1fr !important;
  }

  /* Editorial work experience timeline compact */
  .portfolio-timeline {
    padding-left: 1.5rem;
    margin-top: 1.75rem;
  }

  .portfolio-timeline::before {
    left: 6px;
  }

  .portfolio-timeline-node {
    left: -1.5rem;
    top: 5px;
    width: 14px;
    height: 14px;
  }

  .portfolio-exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .portfolio-exp-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
  }

  /* Cert card body stacks nicely */
  .cert-bundle-body {
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .cert-bundle-header {
    padding: 1rem 1rem !important;
  }

  .cert-bundle-badge-box {
    width: 44px;
    height: 44px;
  }

  .cert-bundle-title {
    font-size: 1.05rem;
  }

  .cert-bundle-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .cert-bundle-actions .portfolio-cert-action-btn {
    width: 100%;
    justify-content: center;
  }

  /* Cert modal dialog compact */
  dialog.portfolio-cert-modal {
    max-width: 95vw;
    border-radius: 12px;
  }

  .cert-modal-header {
    padding: 0.75rem 1rem;
  }

  .cert-modal-title {
    font-size: 0.95rem;
  }

  .cert-modal-body {
    padding: 0.75rem;
    min-height: 200px;
  }

  .cert-modal-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .cert-modal-footer .portfolio-btn {
    width: 100%;
    justify-content: center;
  }

  /* Project card touch actions */
  .portfolio-proj-actions {
    padding: 0.75rem 1rem 0.95rem;
  }

  .portfolio-proj-actions .portfolio-btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── 4. COMPACT PHONES: iPHONE SE 2/3 (≤ 420px) ── */
@media (max-width: 420px) {
  .portfolio-brand-tag {
    display: none;
  }

  /* Shorten Download CV to CV on tight headers */
  .btn-text-cv {
    font-size: 0;
  }

  .btn-text-cv::before {
    content: 'CV';
    font-size: 11px;
    font-weight: 700;
  }

  /* Studio portrait stage pills */
  .sidebar-role-pill {
    font-size: 8px;
    padding: 0.22rem 0.45rem;
    gap: 0.25rem;
  }

  .sidebar-status-pill {
    font-size: 8px;
    padding: 0.22rem 0.5rem;
    gap: 0.35rem;
  }

  /* Name sizing */
  .sidebar-name {
    font-size: 1.5rem;
  }

  /* Metrics boxes */
  .sidebar-metric-num {
    font-size: 1.1rem;
  }

  .sidebar-metric-lbl {
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  /* Split chips: stack vertically so phone & city have 100% room */
  .sidebar-contact-split {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .sidebar-contact-chip {
    padding: 0.42rem 0.6rem;
    font-size: 0.72rem;
  }

  .sidebar-contact-main {
    font-size: 0.73rem;
  }

  .sidebar-copy-btn {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .sidebar-social-btn {
    height: 34px;
    font-size: 0.85rem;
  }

  /* Sub-cert item thumb */
  .cert-sub-thumb-wrap {
    width: 62px;
    height: 42px;
  }

  .cert-sub-card {
    padding: 0.5rem 0.6rem;
    gap: 0.65rem;
  }
}

/* ── 5. ULTRA-COMPACT: iPHONE SE 1st GEN (≤ 350px / 320px) ── */
@media (max-width: 350px) {
  .portfolio-topbar {
    padding: 0 0.6rem;
  }

  .portfolio-brand img {
    height: 22px;
  }

  .btn-text-cv {
    display: none;
  }

  .cs-sidebar,
  .cs-sidebar--left,
  .cs-sidebar-right,
  .cs-content {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  .sidebar-portrait-stage {
    height: 195px;
  }

  .sidebar-name {
    font-size: 1.35rem;
  }

  .portfolio-timeline {
    padding-left: 1.35rem;
  }

  .portfolio-timeline-node {
    left: -1.35rem;
    width: 13px;
    height: 13px;
  }
}
