/* ==========================================================================
   Public Portfolio Styles — Hero, Snapshot, Overview Grid, Vertical Timelines,
   Skills, Projects, Certifications & Contact Avatar
   (Public Website Only — Not Loaded by Admin Panel)
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.25rem;
}

/* Subtle ambient cyan/blue aura behind the hero */
.hero-section::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 94vw);
  height: 420px;
  background: radial-gradient(
    ellipse 60% 55% at 28% 35%,
    rgba(34, 211, 238, 0.1) 0%,
    rgba(7, 89, 133, 0.08) 45%,
    transparent 74%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.94fr);
  gap: 3rem;
  align-items: start;
}

/* Left Column: Primary Introduction */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.35rem;
  min-width: 0;
}

/* Open to Work Status Pill (Semantic Green Status Indicator Only) */
.open-to-work-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: rgba(17, 26, 43, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.1);
}

.open-to-work-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  flex-shrink: 0;
  animation: status-pulse 2.8s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-meta-divider {
  color: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-location svg {
  color: var(--accent);
}

/* Pure White Display Name */
.hero-name {
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.hero-headline {
  margin-top: 1.05rem;
  font-size: clamp(1.06rem, 1.55vw, 1.22rem);
  font-weight: 600;
  line-height: 1.48;
  color: var(--text-primary);
  max-width: 56ch;
}

.hero-summary {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.99rem;
  line-height: 1.76;
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 2.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.hero-btn {
  min-height: 46px;
  padding: 0.78rem 1.45rem;
}

/* Unified Navy + Cyan + Teal CTA Styles (No Decorative Green/Amber/Purple) */
.btn-github {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent);
  border-color: rgba(165, 243, 252, 0.35);
  font-weight: 700;
  box-shadow:
    0 6px 20px rgba(6, 182, 212, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-github:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  border-color: var(--accent-ice);
  color: var(--on-accent);
  box-shadow:
    0 10px 26px rgba(34, 211, 238, 0.34),
    0 0 18px rgba(34, 211, 238, 0.22);
}

.btn-email-amber {
  background-color: rgba(14, 116, 144, 0.24);
  color: var(--accent-ice);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: var(--shadow-sm);
}

.btn-email-amber:hover {
  background-color: rgba(34, 211, 238, 0.18);
  border-color: var(--accent-light);
  color: #ffffff;
  box-shadow:
    0 8px 22px rgba(4, 9, 20, 0.45),
    0 0 18px rgba(34, 211, 238, 0.22);
}

/* Right Column: Academic & Professional Snapshot Card */
.hero-snapshot {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-snapshot:hover {
  transform: none;
}

.snapshot-block {
  padding: 1.4rem 1.55rem;
  border-bottom: 1px solid var(--border);
}

.snapshot-block:last-child {
  border-bottom: none;
}

.snapshot-featured {
  background: linear-gradient(
    180deg,
    rgba(14, 116, 144, 0.14) 0%,
    rgba(14, 22, 38, 0.72) 100%
  );
}

.snapshot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.snapshot-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.snapshot-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.snapshot-title {
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.32;
}

.snapshot-subtitle {
  font-size: 0.99rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.snapshot-org {
  margin-top: 0.3rem;
  font-size: 0.89rem;
  color: var(--text-secondary);
}

.snapshot-note {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Cyan-Tinted Technical Chips (Replaces Legacy Purple Chips) */
.snapshot-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.snapshot-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-ice);
  background-color: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.68rem;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.snapshot-tag:hover {
  background-color: rgba(34, 211, 238, 0.16);
  border-color: rgba(103, 232, 249, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.16);
}

/* ==========================================================================
   About My Journey Section
   ========================================================================== */
.about-journey-section {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
}

.about-journey-card {
  padding: 1.9rem 2.1rem;
}

.about-journey-card:hover {
  transform: none;
}

.about-journey-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.about-journey-title {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.about-journey-body {
  font-size: 0.96rem;
  line-height: 1.78;
  color: var(--text-secondary);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

.about-journey-body p {
  white-space: pre-line;
}

.about-journey-body p + p {
  margin-top: 0.95rem;
}

/* ==========================================================================
   Six-Card Portfolio Overview Grid (3x2 Desktop / 2x3 Tablet / 1x6 Mobile)
   ========================================================================== */
.stats-strip {
  margin-top: 3.5rem;
  padding-top: 2.85rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card {
  position: relative;
  background-color: rgba(17, 26, 43, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.45rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.35) 50%,
    transparent 100%
  );
  opacity: 0.65;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.stat-card-link {
  cursor: pointer;
  text-decoration: none;
}

.stat-card:hover,
.stat-card-link:focus-visible {
  border-color: rgba(34, 211, 238, 0.45);
  background-color: rgba(22, 34, 56, 0.96);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan-glow);
}

.stat-card:hover::before,
.stat-card-link:focus-visible::before {
  opacity: 1;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.05rem;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.stat-card:hover .stat-icon,
.stat-card-link:focus-visible .stat-icon {
  background-color: var(--accent);
  border-color: var(--accent-light);
  color: var(--on-accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.36);
  transform: scale(1.04);
}

.stat-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.25;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.stat-card:hover .stat-value,
.stat-card-link:focus-visible .stat-value {
  color: var(--accent-light);
}

.stat-label {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-sublabel {
  margin-top: 0.25rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.stat-view-cue {
  margin-top: auto;
  padding-top: 1.1rem;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  transition: color var(--transition-fast);
}

.stat-view-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.stat-card-link:hover .stat-view-cue,
.stat-card-link:focus-visible .stat-view-cue {
  color: var(--accent-ice);
}

.stat-card-link:hover .stat-view-arrow,
.stat-card-link:focus-visible .stat-view-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Dedicated Public Pages — Headers & Empty States
   ========================================================================== */
.page-section {
  padding: 3.75rem 0 5rem;
}

.page-header {
  position: relative;
  margin-bottom: 2.75rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid var(--border);
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  margin-bottom: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.page-back-link:hover {
  color: var(--accent-light);
}

.page-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading-copy {
  min-width: 0;
}

/* Empty State Card */
.empty-state {
  text-align: center;
  padding: 3.25rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-state:hover {
  transform: none;
}

.empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background-color: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.34);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.empty-state-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.empty-state-text {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: 1.65rem;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* ==========================================================================
   Experience, Education & Learning Journey — Vertical Cyan Timeline + Cards
   ========================================================================== */
.experience-groups {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.group-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.group-heading::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), transparent);
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-left: 1.95rem;
}

/* Thin Cyan Vertical Timeline Rail */
.timeline-list::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0.5rem;
  width: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(34, 211, 238, 0.38) 65%,
    rgba(14, 116, 144, 0.12) 100%
  );
  pointer-events: none;
}

.timeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: visible;
}

/* Glowing Cyan Timeline Node on Rail */
.timeline-card::after {
  content: "";
  position: absolute;
  top: 1.85rem;
  left: calc(-1.45rem - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--bg);
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.16),
    0 0 14px rgba(34, 211, 238, 0.55);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-card:hover {
  transform: translateY(-2px);
}

.timeline-card:hover::after {
  transform: scale(1.18);
  box-shadow:
    0 0 0 5px rgba(34, 211, 238, 0.24),
    0 0 18px rgba(34, 211, 238, 0.75);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.timeline-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.32;
}

.timeline-org {
  margin-top: 0.28rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.timeline-submeta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.timeline-location {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.timeline-location svg {
  color: var(--accent);
}

.timeline-bullets {
  margin-top: 0.25rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.timeline-bullets li::marker {
  color: var(--accent);
}

/* ==========================================================================
   Projects & Certifications Card Grids
   ========================================================================== */
.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.record-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.record-card:hover {
  transform: translateY(-3px);
}

.record-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.record-title {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.record-description {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.66;
}

.record-meta-line {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-ice);
  background-color: rgba(14, 22, 38, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.34rem 0.62rem;
  align-self: flex-start;
}

.record-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  margin-top: 1.15rem;
  border-top: 1px solid rgba(31, 42, 61, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.record-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition-fast);
}

.record-action-link:hover {
  color: var(--accent-ice);
}

.record-action-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.record-action-link:hover .record-action-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Dedicated Technical Skills Page
   ========================================================================== */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.skill-category-card {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 1.55rem 1.6rem;
}

.skill-category-card:hover {
  transform: translateY(-2px);
}

.skill-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.skill-category-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.skill-category-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-ice);
  background-color: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.62rem;
  flex-shrink: 0;
}

.skill-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-md);
  background-color: rgba(14, 22, 38, 0.78);
  border: 1px solid var(--border);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.skill-item:hover {
  border-color: rgba(34, 211, 238, 0.34);
  background-color: rgba(14, 116, 144, 0.12);
}

.skill-item--learning {
  border-color: rgba(34, 211, 238, 0.36);
  background-color: rgba(34, 211, 238, 0.08);
}

.skill-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
}

.skill-item-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.skill-item-proficiency {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.skill-learning-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ice);
  background-color: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   Learning Journey Cards & Semantic Stage Badges
   ========================================================================== */
.journey-heading-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.journey-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.journey-category-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ice);
  background-color: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.24rem 0.6rem;
}

.journey-stage-badge {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 0.24rem 0.68rem;
  white-space: nowrap;
}

.journey-stage-badge--planned {
  color: var(--text-secondary);
  background-color: rgba(154, 167, 184, 0.12);
  border: 1px solid rgba(154, 167, 184, 0.3);
}

.journey-stage-badge--in_progress {
  color: var(--warning);
  background-color: var(--status-warning-bg);
  border: 1px solid rgba(251, 191, 36, 0.36);
}

.journey-stage-badge--completed {
  color: var(--success);
  background-color: var(--status-success-bg);
  border: 1px solid rgba(52, 211, 153, 0.36);
}

.journey-description {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.journey-description p {
  white-space: pre-line;
}

.journey-progress {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding-top: 0.3rem;
}

.journey-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.journey-progress-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.journey-progress-value {
  font-weight: 600;
  color: var(--accent-light);
}

.journey-progress-bar {
  width: 100%;
  height: 8px;
  border: none;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--terminal);
  appearance: none;
  -webkit-appearance: none;
}

.journey-progress-bar::-webkit-progress-bar {
  background-color: var(--terminal);
  border-radius: var(--radius-full);
}

.journey-progress-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
}

.journey-progress-bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Project Detail Page (/projects/<slug>)
   ========================================================================== */
.project-detail-header {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.project-detail-heading-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-detail-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.project-detail-eyebrow-row .section-eyebrow {
  margin-bottom: 0;
}

.project-detail-lead {
  margin-top: 0.55rem;
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 72ch;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.project-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-detail-thumbnail-card {
  margin: 0;
  padding: 0.8rem;
}

.project-detail-thumbnail-card:hover {
  transform: none;
}

.project-detail-thumbnail {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: var(--terminal);
}

.project-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.8rem 1.95rem;
}

.project-detail-card:hover {
  transform: none;
}

.project-detail-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.project-detail-section-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-detail-description {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

.project-detail-description p {
  white-space: pre-line;
  overflow-wrap: break-word;
}

.project-detail-tags {
  margin-top: 0;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-gallery-item {
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--terminal);
  overflow: hidden;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.project-gallery-item:hover,
.project-gallery-item:focus-visible {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--shadow-cyan-glow);
  transform: translateY(-2px);
}

.project-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-detail-footer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Contact Section, Circular Profile Avatar & Brand-Inspired Action Buttons
   ========================================================================== */
.contact-subtitle {
  max-width: none;
}

.contact-card {
  max-width: 760px;
  padding: 2.4rem 2.25rem;
}

.contact-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}

.contact-actions .btn {
  min-height: 44px;
  padding: 0.65rem 1rem;
  gap: 0.45rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

.contact-actions .btn svg {
  flex-shrink: 0;
}

/* 1. GitHub Profile — White / Light-Grey Accent on Dark Transparent Fill */
.contact-actions .btn-github {
  background: rgba(11, 18, 32, 0.58);
  color: #e6edf3;
  border-color: rgba(230, 237, 243, 0.34);
  font-weight: 600;
}

.contact-actions .btn-github:hover {
  background: rgba(230, 237, 243, 0.1);
  border-color: rgba(230, 237, 243, 0.65);
  color: #ffffff;
  box-shadow:
    0 8px 22px rgba(4, 9, 20, 0.48),
    0 0 18px rgba(230, 237, 243, 0.2);
}

.contact-actions .btn-github:focus-visible {
  outline: 2px solid #e6edf3;
  outline-offset: 3px;
}

/* 2. LinkedIn Profile — LinkedIn Blue (#0A66C2) on Dark Transparent Fill */
.contact-actions .btn-secondary {
  background: rgba(11, 18, 32, 0.58);
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.52);
}

.contact-actions .btn-secondary:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(59, 150, 240, 0.78);
  color: #3b96f0;
  box-shadow:
    0 8px 22px rgba(4, 9, 20, 0.48),
    0 0 18px rgba(10, 102, 194, 0.32);
}

.contact-actions .btn-secondary:focus-visible {
  outline: 2px solid #3b96f0;
  outline-offset: 3px;
}

/* 3. Email Me — Cyan (#22D3EE) on Dark Transparent Fill */
.contact-actions .btn-email-amber {
  background: rgba(11, 18, 32, 0.58);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.44);
}

.contact-actions .btn-email-amber:hover {
  background: rgba(34, 211, 238, 0.13);
  border-color: rgba(103, 232, 249, 0.75);
  color: #67e8f9;
  box-shadow:
    0 8px 22px rgba(4, 9, 20, 0.48),
    0 0 18px rgba(34, 211, 238, 0.24);
}

.contact-actions .btn-email-amber:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}

.contact-card--with-avatar {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 2.1rem;
}

.contact-card--with-avatar .contact-card-body {
  flex: 1;
  min-width: 0;
}

.contact-card--with-avatar .empty-state-text {
  max-width: 52ch;
}

.contact-card--with-avatar .contact-actions {
  justify-content: flex-start;
}

/* Circular Profile Image — Subtle Cyan Border + Soft Cyan Glow (No Hexagon/Shield) */
.contact-avatar-wrap {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid rgba(34, 211, 238, 0.58);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(103, 232, 249, 0.25) 0%,
    rgba(14, 116, 144, 0.22) 100%
  );
  box-shadow:
    0 0 0 5px rgba(34, 211, 238, 0.08),
    0 0 28px rgba(34, 211, 238, 0.24);
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.contact-card:hover .contact-avatar-wrap {
  border-color: var(--accent-light);
  box-shadow:
    0 0 0 6px rgba(34, 211, 238, 0.12),
    0 0 34px rgba(34, 211, 238, 0.34);
}

.contact-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--terminal);
}

/* ==========================================================================
   Responsive Refinements (Mobile-First Safe, Zero Horizontal Overflow)
   ========================================================================== */
@media (max-width: 980px) {
  .hero-section {
    padding: 3.25rem 0 4.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .about-journey-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.75rem;
    padding-top: 2.25rem;
  }

  .records-grid,
  .skills-categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .contact-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .project-detail-card {
    padding: 1.4rem 1.3rem;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2.5rem 0 3.25rem;
  }

  .page-section {
    padding: 2.5rem 0 3.75rem;
  }

  .open-to-work-badge {
    margin-bottom: 0.95rem;
    font-size: 0.72rem;
    padding: 0.36rem 0.78rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
  }

  .contact-actions .btn {
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 44px;
  }

  .snapshot-block {
    padding: 1.2rem 1.25rem;
  }

  .about-journey-card {
    padding: 1.4rem 1.25rem;
  }

  .about-journey-body {
    font-size: 0.94rem;
    line-height: 1.72;
    text-align: left;
  }

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

  .timeline-list::before {
    left: 0.25rem;
  }

  .timeline-card::after {
    left: calc(-1.1rem - 4px);
    width: 8px;
    height: 8px;
  }

  .timeline-meta {
    align-items: flex-start;
  }

  .skill-category-card {
    padding: 1.3rem 1.2rem;
  }

  .skill-item {
    flex-wrap: wrap;
    padding: 0.65rem 0.8rem;
  }

  .empty-state,
  .contact-card {
    padding: 2.25rem 1.35rem;
  }

  .contact-card--with-avatar {
    flex-direction: column;
    text-align: center;
    gap: 1.35rem;
  }

  .contact-card--with-avatar .contact-actions {
    justify-content: center;
  }

  .contact-avatar-wrap {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 560px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Respect Reduced Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .open-to-work-dot {
    animation: none !important;
  }

  .stat-card:hover,
  .stat-card-link:focus-visible,
  .stat-card:hover .stat-icon,
  .stat-card-link:focus-visible .stat-icon,
  .stat-card-link:hover .stat-view-arrow,
  .stat-card-link:focus-visible .stat-view-arrow,
  .timeline-card:hover,
  .timeline-card:hover::after,
  .record-card:hover,
  .skill-category-card:hover,
  .project-gallery-item:hover,
  .project-gallery-item:focus-visible,
  .record-action-link:hover .record-action-arrow,
  .contact-actions .btn:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   First-Visit Cybersecurity PH Logo Intro Animation (Exact 2.0s, Public Only)
   ========================================================================== */
.site-intro[hidden] {
  display: none !important;
}

.site-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      680px 440px at 50% 44%,
      rgba(14, 116, 144, 0.26) 0%,
      rgba(7, 89, 133, 0.14) 44%,
      transparent 74%
    ),
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.site-intro.is-exiting {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

.site-intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  max-width: 520px;
}

/* Subtle SVG Circuit-Board Traces (Scales Cleanly on Desktop, Tablet & Mobile) */
.site-intro-circuit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  width: min(500px, 92vw);
  aspect-ratio: 420 / 220;
  height: auto;
  display: block;
  pointer-events: none;
}

.intro-circuit-line {
  stroke: rgba(34, 211, 238, 0.58);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.intro-circuit-line--alt {
  stroke: rgba(14, 116, 144, 0.72);
  stroke-width: 1.05;
}

.intro-circuit-node {
  fill: var(--accent);
  opacity: 0;
}

/* Existing PH Brand Emblem — Crisp & Centered on Desktop and Mobile */
.site-intro-logo {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.2) 0%,
    rgba(14, 116, 144, 0.36) 100%
  );
  border: 1.5px solid rgba(34, 211, 238, 0.62);
  box-shadow:
    0 0 0 6px rgba(34, 211, 238, 0.07),
    0 0 36px rgba(34, 211, 238, 0.26),
    inset 0 1px 0 rgba(165, 243, 252, 0.24);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
}

.site-intro-monogram {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-ice);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.42);
}

/* Smooth Cyan Digital Scan Sweep Inside the PH Logo */
.site-intro-scan {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(34, 211, 238, 0.08) 40%,
    rgba(103, 232, 249, 0.52) 50%,
    rgba(34, 211, 238, 0.08) 60%,
    transparent 100%
  );
  transform: translateY(-100%);
  pointer-events: none;
}

/* Identity Text Below Logo */
.site-intro-identity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(10px);
}

.site-intro-name {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-primary);
  padding-left: 0.24em;
}

.site-intro-bar {
  width: 80px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
}

/* Synchronized 2.0s Choreography (Reveal 0ms–1280ms, Hold 300ms, Exit 1580ms–2000ms) */
.site-intro.is-active .intro-circuit-line {
  animation: intro-circuit-draw 600ms cubic-bezier(0.22, 1, 0.36, 1) 40ms forwards;
}

.site-intro.is-active .intro-circuit-node {
  animation: intro-node-fade 280ms ease 420ms forwards;
}

.site-intro.is-active .site-intro-logo {
  animation: intro-logo-reveal 520ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.site-intro.is-active .site-intro-scan {
  animation: intro-scan-sweep 730ms cubic-bezier(0.4, 0, 0.2, 1) 320ms forwards;
}

.site-intro.is-active .site-intro-identity {
  animation: intro-name-reveal 500ms cubic-bezier(0.22, 1, 0.36, 1) 620ms forwards;
}

.site-intro.is-active .site-intro-bar {
  animation: intro-bar-expand 460ms cubic-bezier(0.22, 1, 0.36, 1) 820ms forwards;
}

@keyframes intro-circuit-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes intro-node-fade {
  to {
    opacity: 0.85;
  }
}

@keyframes intro-logo-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes intro-scan-sweep {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(115%);
  }
}

@keyframes intro-name-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-bar-expand {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  .site-intro-logo {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .site-intro-monogram {
    font-size: 1.75rem;
  }

  .site-intro-name {
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
}

/* Always Skip Intro When Reduced Motion Is Enabled */
@media (prefers-reduced-motion: reduce) {
  .site-intro {
    display: none !important;
  }
}