/* ========================================================================== */
/* 1) Fonts */
/* ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Raleway:300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Poppins:500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

/* ========================================================================== */
/* 2) Theme Variables */
/* ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f9fafb;
  --text: #111827;
  --text-muted: #374151;
  --primary: #2755d2;
  --primary-600: #1D4ED8;
  --secondary: #14b8a6;
  --accent: #7c3aed;
  --border: #e5e7eb;
  --overlay: rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --card-gradient: linear-gradient(-45deg, #ffffff 0%, #f3f4f6 100%);
  --bg-footer-solid: #f8fafc;
  --bg-footer-gradient: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
}

[data-theme="dark"] {
  --bg: #171717;
  --surface: #1f1f1f;
  --text: #f9fafb;
  --text-muted: #d1d5db;
  --primary: #2755d2;
  --primary-600: #1D4ED8;
  --secondary: #22d3ee;
  --accent: #a78bfa;
  --border: #2f2f2f;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --card-gradient: linear-gradient(-45deg, #1b1b1b 0%, #2a2a2a 100%);
  --bg-footer-solid: #0d0f14;
  --bg-footer-gradient: linear-gradient(180deg, var(--bg) 0%, #090c15 100%);
}

/* ========================================================================== */
/* 3) Global / Base */
/* ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  user-select: none;
  font-family: 'Poppins', sans-serif;
  transition: background-color 200ms ease, color 200ms ease;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ========================================================================== */
/* 4) Cursor System */
/* ========================================================================== */
body {
  cursor: none;
  position: relative;
}

.particle-background-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

a,
button {
  cursor: none;
}

/* Smooth Cursor (SVG arrow) */
.smooth-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 28px;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  will-change: transform;
  color: var(--text);
}

/* When smooth cursor is active, hide legacy cursor dots to avoid duplication */
body.smooth-cursor-active .cursor-dot,
body.smooth-cursor-active .cursor-outline {
  display: none !important;
}

/* While the smooth cursor is active, suppress the default hand/pointer on all targets */
body.smooth-cursor-active *,
body.smooth-cursor-active a,
body.smooth-cursor-active button {
  cursor: none !important;
}



/* Smooth cursor color swap */
[data-theme="light"] .smooth-cursor {
  color: #111827;
}

[data-theme="dark"] .smooth-cursor {
  color: #c0f010;
}

/* ========================================================================== */
/* 5) Header / Navigation */
/* ========================================================================== */
.main-header {
  width: 100%;
  padding: 24px 60px;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  z-index: 999;
}

.theme-toggle {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 10001;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  --mag-x: 0px;
  --mag-y: 0px;
  --mag-scale: 1;
  opacity: 0;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  transform: translate(var(--mag-x), var(--mag-y)) scale(var(--mag-scale));
}

.theme-toggle.is-revealed {
  animation: topControlDropIn 1000ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.theme-toggle:hover {
  --mag-scale: 1.05;
}

.theme-toggle:active {
  --mag-scale: 0.98;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle.is-dark .icon-moon {
  display: none;
}

.theme-toggle.is-dark .icon-sun {
  display: block;
}

/* ── Recruiter Mode — SaaS Dashboard ── */

.recruiter-mode-panel {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.99);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1), max-height 650ms ease;
}

body.recruiter-mode .recruiter-mode-panel {
  max-height: 6000px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.recruiter-mode .hero-section,
body.recruiter-mode .about-section,
body.recruiter-mode .certifications-section,
body.recruiter-mode .services-section,
body.recruiter-mode .projects-section,
body.recruiter-mode .blog-section,
body.recruiter-mode .main-footer,
body.recruiter-mode .top-right-nav {
  display: none !important;
}

/* Hide theme toggle in Recruiter Mode */
body.recruiter-mode .theme-toggle {
  display: none !important;
}

/* Fix double scrollbar in Recruiter Mode */
body.recruiter-mode {
  overflow: hidden;
}

/* ── Dashboard Layout ── */
.rec-dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background: var(--bg);
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

/* ── Sidebar ── */
.rec-sidebar {
  grid-row: 1 / -1;
  background: var(--surface);
  border-right: none;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

.rec-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  border-bottom: none;
  margin-bottom: 12px;
}

.rec-sidebar-brand svg {
  color: var(--primary);
  flex-shrink: 0;
}

.rec-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.rec-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.rec-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rec-nav-item:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--text);
}

.rec-nav-item.is-active {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
}

.rec-nav-item.is-active::before {
  transform: translateY(-50%) scaleY(1);
}

.rec-nav-item svg {
  flex-shrink: 0;
}

/* ── Sidebar Projects List ── */
.rec-sidebar-projects {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.rec-sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 8px 14px 6px;
  margin: 0;
}

.rec-sidebar-project-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 200ms ease;
}

.rec-sidebar-project-link:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--text);
}

.rec-sidebar-proj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--primary));
  flex-shrink: 0;
}

.rec-sidebar-info {
  padding: 0 10px;
  margin-top: 6px;
}

.rec-sidebar-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.rec-sidebar-info-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.rec-sidebar-exit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 10px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 260ms ease;
  font-family: inherit;
}

.rec-sidebar-exit:hover {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border-color: #ef4444;
  color: #ef4444;
}

/* ── Main Content ── */
.rec-main {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100vh;
  padding: 0;
}

/* ── Header ── */
.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: none;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rec-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -220px;
  right: 0;
  height: 1px;
  background: var(--border);
}

.rec-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.rec-header-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.rec-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
  font-size: 11px;
  font-weight: 600;
}

.rec-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: recPulse 2s ease-in-out infinite;
}

@keyframes recPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.rec-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rec-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-profile-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.rec-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.rec-profile-role {
  font-size: 11px;
  color: var(--text-muted);
}

.rec-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ── Views ── */
.rec-view {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px 40px;
  animation: recFadeSlide 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rec-view.is-active {
  display: flex;
}

@keyframes recFadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Summary ── */
.recruiter-summary {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 13.5px;
  max-width: 720px;
}

/* ── Metric Cards ── */
.recruiter-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.recruiter-metric-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  perspective: 800px;
  overflow: hidden;
}

.recruiter-metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 360ms ease;
}

.recruiter-metric-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-1deg);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
}

.recruiter-metric-card:hover::before {
  opacity: 1;
}

.rec-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.rec-metric-icon--blue {
  background: color-mix(in srgb, #2755d2 14%, transparent);
  color: #2755d2;
}

.rec-metric-icon--green {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
}

.rec-metric-icon--purple {
  background: color-mix(in srgb, #7c3aed 14%, transparent);
  color: #7c3aed;
}

.rec-metric-icon--orange {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #f59e0b;
}

.recruiter-metric-number {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.recruiter-metric-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ── Cards ── */
.rec-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rec-card:hover {
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.rec-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rec-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.rec-card-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.rec-card--wide {
  grid-column: 1 / -1;
}

/* ── Charts Row ── */
.rec-charts-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ── Donut Chart ── */
.rec-donut-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
}

.rec-donut-wrapper canvas {
  width: 100%;
  height: 100%;
}

.rec-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rec-donut-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.rec-donut-label {
  font-size: 11px;
  color: var(--text-muted);
}

.rec-donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.rec-donut-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.rec-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rec-donut-legend b {
  font-weight: 600;
  color: var(--text);
}

/* ── Bar Chart ── */
.rec-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding-top: 10px;
}

.rec-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.rec-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: var(--bar-color, var(--primary));
  height: 0%;
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.rec-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
}

.rec-bar-col span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Skills Card Layout ── */
.rec-skills-layout {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rec-skills-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rec-skills-list li {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  transition: all 260ms ease;
}

.rec-skills-list li:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.rec-skills-card .rec-donut-wrapper {
  flex-shrink: 0;
}

/* ── Contribution Chart (wider bars + value labels) ── */
.rec-contrib-chart {
  height: 200px;
  gap: 16px;
  padding-top: 28px;
}

.rec-bar-wide {
  max-width: 64px !important;
  min-height: 4px;
}

.rec-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Funnel ── */
.rec-funnel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-funnel-step {
  height: 38px;
  border-radius: 8px;
  background: var(--funnel-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  width: 0%;
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.rec-funnel-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.12) 100%);
}

.rec-funnel-step b {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.rec-funnel-step span {
  position: relative;
  z-index: 1;
}

/* ── Timeline ── */
.rec-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rec-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  transition: background 200ms ease;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.rec-timeline-item:last-child {
  border-bottom: none;
}

.rec-timeline-item:hover {
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.rec-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color, var(--primary));
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-color, var(--primary)) 20%, transparent);
}

.rec-timeline-item div {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.rec-timeline-item strong {
  color: var(--text);
}

.rec-tl-time {
  display: block;
  font-size: 10.5px;
  color: color-mix(in srgb, var(--text-muted) 60%, transparent);
  margin-top: 2px;
}

/* ── Candidate Profile Card ── */
.rec-candidate-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.rec-candidate-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.rec-cand-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.rec-cand-info {
  flex: 1;
}

.rec-cand-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.rec-cand-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.rec-cand-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rec-cand-meta span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

/* Score Rings */
.rec-cand-scores {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.rec-cand-score-ring {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rec-cand-score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rec-score-arc {
  transition: stroke-dashoffset 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rec-score-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}

.rec-score-lbl {
  font-size: 9px;
  color: var(--text-muted);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ── Action Buttons ── */
.rec-cand-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rec-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}

.rec-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.12);
}

.rec-action--green:hover {
  border-color: #10b981;
  color: #10b981;
  background: color-mix(in srgb, #10b981 8%, var(--surface));
}

.rec-action--blue:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.rec-action--purple:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

/* ── Skill Bars (reused) ── */
.recruiter-skill-row {
  display: grid;
  grid-template-columns: 160px 1fr 42px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.recruiter-skill-name,
.recruiter-skill-value {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.recruiter-skill-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 60%, var(--bg));
  overflow: hidden;
}

.recruiter-skill-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.recruiter-skill-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 0.2));
  border-radius: inherit;
}

.recruiter-subskills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recruiter-subskill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  transition: all 260ms ease;
}

.recruiter-subskill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

/* ── Tools Grid ── */
.recruiter-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recruiter-tools-grid span {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  transition: all 260ms ease;
}

.recruiter-tools-grid span:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ── Insight Cards ── */
.recruiter-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.recruiter-insight-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 18px;
  transition: all 360ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.recruiter-insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.recruiter-insight-card:hover {
  transform: translateY(-4px) rotateX(1deg);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.1);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.recruiter-insight-card:hover::before {
  transform: scaleX(1);
}

.recruiter-insight-card h3 {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.recruiter-insight-card p {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ── Project Cards ── */
.recruiter-top-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

a.recruiter-project-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recruiter-project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  perspective: 800px;
  position: relative;
  overflow: hidden;
}

.recruiter-project-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.14);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.rec-proj-num {
  font-size: 32px;
  font-weight: 800;
  color: color-mix(in srgb, var(--primary) 15%, transparent);
  line-height: 1;
  margin-bottom: 8px;
}

.recruiter-project-card h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.recruiter-project-card p {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.rec-proj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rec-proj-tags span {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-weight: 600;
}

/* ── Certifications ── */
.recruiter-cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recruiter-cert-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  transition: all 200ms ease;
}

.recruiter-cert-list li:last-child {
  border-bottom: none;
}

.recruiter-cert-list li:hover {
  color: var(--text);
  padding-left: 8px;
}

.recruiter-cert-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  transition: color 200ms ease;
  flex-shrink: 0;
}

.recruiter-cert-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Reduced card heights for Credentials + Core Skill Confidence ── */
.rec-funnel {
  gap: 4px;
}

.rec-funnel-step {
  height: 32px;
  font-size: 11px;
  padding: 0 12px;
}

.rec-card--timeline .recruiter-cert-list li {
  padding: 6px 0;
  font-size: 12px;
}

/* ── Resume Embed ── */
.rec-resume-embed {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 500px;
  border: none;
  display: block;
}

/* ── Contact Links ── */
.rec-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rec-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  transition: all 200ms ease;
}

.rec-contact-link:last-child {
  border-bottom: none;
}

.rec-contact-link:hover {
  padding-left: 8px;
  color: var(--primary);
}

.rec-contact-link svg {
  flex-shrink: 0;
  color: var(--primary);
}

.rec-contact-link div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-contact-link strong {
  font-size: 13px;
  font-weight: 600;
}

.rec-contact-link span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Staggered Entry Animation ── */
body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>* {
  opacity: 0;
  transform: translateY(16px);
  animation: recStagger 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(1) {
  animation-delay: 60ms;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(2) {
  animation-delay: 120ms;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(3) {
  animation-delay: 180ms;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(4) {
  animation-delay: 240ms;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(5) {
  animation-delay: 300ms;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(6) {
  animation-delay: 360ms;
}

body.recruiter-mode .recruiter-mode-panel.recruiter-animate-in .rec-view.is-active>*:nth-child(7) {
  animation-delay: 420ms;
}

@keyframes recStagger {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .rec-dashboard {
    grid-template-columns: 1fr;
  }

  .rec-header::after {
    left: 0;
  }

  .rec-sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    gap: 0;
  }

  .rec-sidebar-brand {
    display: none;
  }

  .rec-sidebar-nav {
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }

  .rec-nav-item {
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 12px;
  }

  .rec-nav-item::before {
    display: none;
  }

  .rec-nav-item span {
    display: none;
  }

  .rec-sidebar-exit {
    margin: 0 0 0 auto;
    padding: 8px 12px;
  }

  .rec-sidebar-exit span {
    display: none;
  }

  .rec-sidebar-projects {
    display: none;
  }

  .rec-main {
    max-height: none;
  }

  .recruiter-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-charts-row {
    grid-template-columns: 1fr;
  }

  .recruiter-insights-grid {
    grid-template-columns: 1fr;
  }

  .recruiter-top-projects {
    grid-template-columns: 1fr;
  }

  .rec-candidate-profile-card {
    flex-direction: column;
    text-align: center;
  }

  .rec-cand-meta {
    justify-content: center;
  }

  .rec-cand-scores {
    justify-content: center;
  }

  .rec-cand-actions {
    justify-content: center;
  }

  .rec-skills-layout {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .recruiter-metrics-grid {
    grid-template-columns: 1fr;
  }

  .rec-view {
    padding: 16px;
  }

  .rec-header {
    padding: 12px 16px;
  }

  .rec-profile-info {
    display: none;
  }

  .recruiter-skill-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .recruiter-skill-value {
    justify-self: end;
    margin-top: -22px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .recruiter-mode-panel,
  .rec-view,
  .recruiter-metric-card,
  .recruiter-project-card,
  .recruiter-insight-card,
  .recruiter-skill-fill,
  .rec-bar,
  .rec-funnel-step,
  .rec-score-arc,
  .rec-status-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* Small theme menu (for Reset to System) */
.theme-menu {
  position: fixed;
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 6px;
  z-index: 10002;
  min-width: 160px;
}

.theme-menu.show {
  display: block;
}

.theme-menu button {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.theme-menu button:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.nav-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-right-nav {
  position: absolute;
  top: 14px;
  right: 90px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-40px);
  transition: transform 1000ms cubic-bezier(0.25, 1, 0.5, 1), opacity 1000ms cubic-bezier(0.25, 1, 0.5, 1);
}

.top-right-nav.is-revealed {
  animation: topControlDropIn 1000ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.right-sidebar {
  position: absolute;
  right: 24px;
  top: 280px;
  transform: none;
  z-index: 10000;
  width: 52px;
  padding: 10px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
}

.right-sidebar.is-revealed {
  opacity: 1;
}

.right-sidebar-link {
  position: relative;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(10px);
  transition: transform 200ms ease, background-color 220ms ease, color 220ms ease, opacity 260ms ease;
}

.right-sidebar-link.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.right-sidebar-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.right-sidebar-link.is-active {
  background: color-mix(in srgb, var(--primary) 24%, transparent);
  color: var(--text);
}

.right-sidebar .sidebar-toggle-link {
  margin-top: 2px;
}

.right-sidebar.is-collapsed .right-sidebar-link {
  display: none;
}

.right-sidebar.is-collapsed .sidebar-toggle-link {
  display: inline-flex;
}

.right-sidebar.is-collapsed {
  transform: translateX(80%);
}

.right-sidebar.is-collapsed .sidebar-toggle-link svg {
  transform: rotate(180deg);
}

.right-sidebar-link:hover,
.right-sidebar-link:focus-visible {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--text);
  transform: translateX(-1px) scale(1.05);
}

.right-sidebar-link::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.right-sidebar-link:hover::after,
.right-sidebar-link:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}



.cosmic-clock-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 11500;
}

.cosmic-clock-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cosmic-clock-popup {
  position: relative;
  width: min(96vw, 1500px);
  height: min(92vh, 940px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
}

.cosmic-clock-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 15, 0.9);
  color: #d4d4d4;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.cosmic-clock-root {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #0a0a0a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  color: #e5e5e5;
  min-height: 100%;
  position: relative;
}

.cosmic-clock-root * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cosmic-clock-root canvas#canvas {
  display: block;
}

.cosmic-clock-root #info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  max-width: 220px;
  border-radius: 8px;
}

.cosmic-clock-root h1 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 3px;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cosmic-clock-root .subtitle {
  font-size: 10px;
  color: #555;
  margin-bottom: 14px;
}

.cosmic-clock-root #current-time {
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  margin: 12px 0 6px;
  letter-spacing: -1px;
}

.cosmic-clock-root #current-date {
  font-size: 11px;
  color: #777;
  margin-bottom: 16px;
}

.cosmic-clock-root .ring-legend {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.cosmic-clock-root .legend-section {
  margin-bottom: 10px;
}

.cosmic-clock-root .legend-section-title {
  font-size: 8px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.cosmic-clock-root .legend-item {
  display: flex;
  align-items: center;
  margin: 4px 0;
  font-size: 9px;
  color: #777;
}

.cosmic-clock-root .legend-color {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  margin-right: 7px;
}

.cosmic-clock-root #tooltip {
  position: absolute;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  pointer-events: none;
  display: none;
  font-size: 10px;
  z-index: 1000;
  max-width: 240px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cosmic-clock-root #tooltip h3 {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cosmic-clock-root #tooltip .detail {
  color: #888;
  margin: 2px 0;
  line-height: 1.4;
}

.cosmic-clock-root #tooltip .event-tooltip-date {
  color: #aaa;
  font-weight: 500;
}


.cosmic-clock-root #controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(15, 15, 15, 0.95);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cosmic-clock-root .control-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #666;
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: all 0.15s ease;
  border-radius: 4px;
}

.cosmic-clock-root .control-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.cosmic-clock-root .control-btn.active {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.courses-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--overlay) 74%, rgba(0, 0, 0, 0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 11200;
}

.courses-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.courses-modal {
  width: 80vw;
  height: 92vh;
  max-width: 1500px;
  min-height: 520px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 300ms ease;
}

.courses-overlay.show .courses-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.courses-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.courses-header h2 {
  font-size: 0.98rem;
  color: var(--text);
}

.courses-close-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.courses-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
}

.courses-explorer-panel {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 84%, var(--surface));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.courses-panel-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 14px 8px;
}

.courses-tree {
  min-height: 0;
  overflow: auto;
  padding: 6px 8px 10px;
  outline: none;
}

.courses-tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--text-muted);
  user-select: none;
}

.courses-tree-node:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--text);
}

.courses-tree-node.is-selected {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
}

.courses-tree-arrow {
  width: 10px;
  height: 10px;
  opacity: 0.85;
  transform: rotate(-90deg);
  transition: transform 170ms ease;
  flex: 0 0 10px;
}

.courses-tree-node.is-open .courses-tree-arrow {
  transform: rotate(0deg);
}

.courses-tree-arrow.is-file {
  opacity: 0;
}

.courses-tree-icon {
  width: 14px;
  text-align: center;
  font-size: 13px;
  flex: 0 0 14px;
}

.courses-tree-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.courses-viewer-panel {
  min-width: 0;
  min-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
}

.courses-viewer-state,
.courses-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px;
  text-align: center;
}

.courses-viewer-loading {
  display: none;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  z-index: 2;
}

.courses-viewer-loading.show {
  display: flex;
}

.courses-pdf-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.courses-text-viewer {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 24px;
  color: var(--text);
  line-height: 1.75;
  font-size: 14px;
  display: none;
}

.courses-text-viewer h1,
.courses-text-viewer h2,
.courses-text-viewer h3 {
  margin: 0 0 10px;
  line-height: 1.35;
}

.courses-text-viewer p,
.courses-text-viewer li {
  margin: 0 0 10px;
}

.courses-text-viewer ul {
  margin: 0 0 12px 18px;
}

.courses-image-preview {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.courses-image-preview-img {
  max-width: 100%;
  max-height: calc(92vh - 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 1000px) {
  .courses-modal {
    width: 92vw;
    height: 86vh;
  }

  .courses-body {
    grid-template-columns: 42% minmax(0, 1fr);
  }
}

@keyframes topControlDropIn {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gooey-style nav buttons (uses SVG filter #goo) */
@property --a {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}

/* Styles adapted directly from the provided gooey example (scoped to header .gooey-btn) */
.nav-container main.dark {
  display: block;
}

.nav-container .gooey-btn {
  background: transparent;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  padding: 6px 4px;
  margin: 0 12px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
  isolation: isolate;
}

.nav-container .gooey-btn:hover {
  color: var(--primary);
  opacity: 1;
}

.nav-container .gooey-btn:before {
  content: none;
}

.nav-container .gooey-btn:after {
  content: none;
}

/* Force text style for header nav */
.nav-container .gooey-btn {
  border-radius: 0 !important;
  animation: none !important;
  transform: scale(1) !important;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease !important;
}

/* Use theme text color for header nav */
.nav-container .gooey-btn {
  color: var(--text) !important;
}

.nav-container .gooey-btn:hover {
  color: var(--primary) !important;
  transform: scale(1.077) !important;
  /* expand visually by 1px (from 13px font size) */
}

/* Make `.gooey-btn` available outside the header so Hire Me matches header buttons */
.gooey-btn {
  --a: 0%;
  --hue: 170deg;
  --x: 50;
  --y: 50;
  --mag-x: 0px;
  --mag-y: 0px;
  --hover-y: 0px;
  --hover-scale: 1;
  --button: var(--primary-600);
  --edge: -10px;
  --size: 1em;

  background: transparent;
  color: #ffffff !important;
  font-size: 14px;
  position: relative;
  padding: 10px 14px;
  animation: color 20s linear infinite both;
  transition: --a .35s ease-in-out, transform 180ms ease;
  transform: translate(var(--mag-x), var(--mag-y)) translateY(var(--hover-y)) scale(var(--hover-scale));
  isolation: isolate;
  border: none;
  border-radius: 3px;
  margin: 0 6px;
}

.gooey-btn:hover {
  --a: 100%;
  --hover-y: -2px;
  --hover-scale: 1.02;
}

.gooey-btn:before {
  content: "";
  position: absolute;
  inset: 0em;
  filter: blur(4px) url(#goo);
  background-image:
    linear-gradient(0deg, var(--button), var(--button)),
    radial-gradient(40% 70% at calc(var(--x) * 1%) calc(var(--y) * 1%),
      hsla(var(--hue), 77%, 77%, var(--a)) 0%,
      transparent 90%);
  background-clip: content-box, border-box;
  padding: 4px;
  z-index: -1;
  border: inherit;
  animation: color 20s linear infinite both;
  border-radius: 3px;
}

/* Ensure the contact popup's Send button fits the modern redesign while preserving magnetic positioning and matching general gooey buttons */
.contact-form .gooey-btn {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  position: relative !important;
  padding: 10px 20px !important;
  --mag-x: 0px;
  --mag-y: 0px;
  --hover-y: 0px;
  --hover-scale: 1;
  border: none !important;
  border-radius: 3px !important;
  margin: 12px auto 0 !important;
  display: block !important;
  width: fit-content !important;
  min-width: 0 !important;
  box-shadow: none !important;
  transform: translate(var(--mag-x), var(--mag-y)) translateY(var(--hover-y)) scale(var(--hover-scale)) !important;
  transition: transform 180ms ease !important;
}

.contact-form .gooey-btn:hover {
  --hover-y: -2px !important;
  --hover-scale: 1.02 !important;
}

.contact-form .gooey-btn:before {
  border-radius: 3px !important;
}

.contact-form .gooey-btn[disabled] {
  background: transparent !important;
  color: #ffffff !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

.contact-form .gooey-btn[disabled]:before {
  background-image:
    linear-gradient(135deg, #60a5fa, #2563eb),
    radial-gradient(40% 70% at calc(var(--x) * 1%) calc(var(--y) * 1%),
      hsla(var(--hue), 77%, 77%, var(--a)) 0%,
      transparent 90%);
  opacity: 1 !important;
}

.contact-form .gooey-btn[disabled]:hover {
  transform: none !important;
}



/* ========================================================================== */
/* 6) Hero Section */
/* ========================================================================== */
.hero-section {
  background: transparent;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
}

#particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  background-size: cover;
  background-position: 50% 50%;
}

.hero-content {
  height: 100vh;
  width: 100%;
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: Raleway, sans-serif;
  letter-spacing: 1px;
  flex-direction: column;
  font-size: 50px;
  z-index: 1;
}

.hero-text {
  z-index: 2;
  text-align: center;
  padding-right: 60px;
}

.hero-name {
  font-weight: 700;
  font-family: Poppins, sans-serif;
  font-size: 65px;
}

.hero-title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 30px;
  padding-top: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.social-links {
  height: 100vh;
  position: absolute;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --reveal-tx: -60px;
  opacity: 0;
  transform: translateX(var(--reveal-tx));
  transition: transform 1000ms cubic-bezier(0.25, 1, 0.5, 1), opacity 1000ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.social-icon {
  color: var(--text);
  opacity: 0.85;
  margin: 10px;
  transition: transform 0.36s cubic-bezier(.2, .9, .2, 1), color 0.18s ease, opacity 0.18s ease;
  transform: scale(1);
}

/* Sequential left-side icon reveal (wave/ripple) */
.social-links .social-icon {
  opacity: 0;
  transform: translateX(-14px) scale(1);
}

.social-links .social-icon.is-revealed {
  animation: socialIconWaveIn 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes socialIconWaveIn {
  0% {
    opacity: 0;
    transform: translateX(-14px) scale(0.98);
  }

  100% {
    opacity: 0.85;
    transform: translateX(0) scale(1);
  }
}

.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

/* LinkedIn, LeetCode, Kaggle: +3px */
.social-icon[aria-label="LinkedIn"] svg {
  width: 25px;
  height: 25px;
}

.social-icon[aria-label="LeetCode"] svg {
  width: 25px;
  height: 25px;
}

.social-icon[aria-label="Kaggle"] svg {
  width: 25px;
  height: 25px;
}

/* Email: +1px */
.social-icon[aria-label="Email"] svg {
  width: 23px;
  height: 23px;
}

/* Specific GitHub icon size */
.social-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.social-icon:hover {
  color: var(--primary);
  opacity: 1;
  transform: scale(1.3);
}

/* Hover tooltips for social icons */
.social-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* Base bubble */
.social-icon::after {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  background: #2b2b2b;
  color: #ffffff;
  padding: 6px 7px;
  font-size: 10px;
  line-height: 1;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1000;
}

/* Remove arrow: no ::before triangles */

/* Show on hover/focus */
.social-icon:hover::after,
.social-icon:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

/* Position: social bar is on the left → bubble to the right, arrow pointing left */
.social-icon::after {
  left: calc(100% + 10px);
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .social-icon::after {
    transition: none;
  }

  .social-links .social-icon {
    opacity: 0.85;
    transform: translateX(0) scale(1);
    animation: none !important;
  }

  .theme-toggle,
  .top-right-nav {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
}

/* Hide tooltips on touch devices */
@media (hover: none) and (pointer: coarse) {
  .social-icon::after {
    display: none !important;
  }
}

/* All social icons are unified via the base rule above. */
.social-icon[aria-label="GitHub"] svg,
.social-icon[title="GitHub"] svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-icon[aria-label="WhatsApp"],
.social-icon[title="WhatsApp"] {
  width: 20px;
  height: 20px;
}

.social-icon[aria-label="WhatsApp"] svg,
.social-icon[title="WhatsApp"] svg {
  width: 21px;
  height: 21px;
}

/* Hero name wave effect */
.hero-name {
  --wave-amp: clamp(6px, 1.6vw, 16px);
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  will-change: transform;
}

.hero-name .wave-char {
  display: inline-block;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
}

/* Per-letter hover/active lift (single char only) */
.hero-name .wave-char:hover,
.hero-name .wave-char.is-active {
  transform: translateY(calc(-1 * var(--wave-amp)));
}

/* Generic per-letter hover lift for section headings (Achievements, Projects, Blogs, What I Do) */
.text-wave {
  --wave-amp: clamp(6px, 1.4vw, 14px);
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  will-change: transform;
}

.text-wave .wave-char {
  display: inline-block;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.text-wave .wave-char:hover,
.text-wave .wave-char.is-active {
  transform: translateY(calc(-1 * var(--wave-amp)));
}

.accent-color {
  color: var(--primary);
  transition: color 0.4s ease;
}

.typewriter-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ========================================================================== */
/* 7) About Section */
/* ========================================================================== */
.about-section {
  background: var(--bg);
  color: var(--text);
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 90px;
}

.about-text-container {
  flex: 1 1 50%;
  max-width: 650px;
  padding: 20px;
}

.about-image-container {
  flex: 0 0 auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 340px;
}

/* Clean Typography & Highlight Style (Matching Reference Image) */
.about-clean-content {
  padding: 10px 0;
  max-width: 620px;
}

.about-clean-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.about-clean-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Audio Listen Button inline after bio text */
.speak-btn-clean {
  background: transparent;
  border: none;
  padding: 0 4px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.25s ease;
  margin-left: 6px;
  margin-top: 0;
}

.speak-btn-clean:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.speak-btn-clean.speaking {
  color: var(--primary);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 60%, transparent));
}

/* Clean Bio Text with Pastel Underline Highlights */
.about-clean-bio {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  font-family: 'Ubuntu', sans-serif;
  margin-bottom: 32px;
}

.highlight-underline {
  background-image: linear-gradient(120deg, rgba(254, 205, 211, 0.85) 0%, rgba(254, 205, 211, 0.85) 100%);
  background-repeat: no-repeat;
  background-size: 100% 35%;
  background-position: 0 88%;
  color: var(--text);
  font-weight: 600;
  padding: 0 3px;
  border-radius: 2px;
}

[data-theme="dark"] .highlight-underline {
  background-image: linear-gradient(120deg, rgba(225, 29, 72, 0.35) 0%, rgba(225, 29, 72, 0.35) 100%);
  color: var(--text);
}

/* CTA Action */
.about-clean-action {
  display: flex;
  align-items: center;
}

.about-clean-action #hireMeBtn {
  margin-top: 0;
}

.profile-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 25px;
  clip-path: none;
  border-radius: 60% 40% 45% 55% / 50% 60% 40% 50%;
  border: none;
  filter: drop-shadow(0 8px 28px rgba(39, 85, 210, 0.15));
  transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease, transform 0.4s ease;
}

.profile-image:hover {
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  filter: drop-shadow(0 14px 40px rgba(39, 85, 210, 0.28));
  transform: scale(1.04);
}

.profile-name {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.profile-role {
  text-align: center;
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
}



/* ========================================================================== */
/* 8) Services Section */
/* ========================================================================== */
.services-section {
  min-height: 100vh;
  background-color: var(--bg);
  padding: 100px 20px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

/* Reusable speaker button */
.speak-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px;
  margin-left: 8px;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.speak-btn svg {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.speak-btn:hover {
  opacity: 0.95;
  border-color: var(--primary);
}

.speak-btn:focus {
  outline: 2px solid var(--border);
  outline-offset: 2px;
  border-radius: 4px;
}

.speak-btn.speaking {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Karaoke word highlighting inside blog popup */
#blogPopup .karaoke-word {
  transition: background-color 120ms ease, color 120ms ease;
}

#blogPopup .karaoke-word.highlight {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
  border-radius: 4px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 100px;
  color: var(--primary);
  font-family: Poppins, sans-serif;
}

/* Card discipline accents */
/* Card discipline accents */
.card-software {
  --accent-color: #8b5cf6;
  --accent-color-rgb: 139, 92, 246;
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  --accent-glow: rgba(139, 92, 246, 0.15);
  --accent-glow-strong: rgba(139, 92, 246, 0.4);
}

.card-aiml {
  --accent-color: #f43f5e;
  --accent-color-rgb: 244, 63, 94;
  --accent-gradient: linear-gradient(135deg, #fda4af 0%, #e11d48 100%);
  --accent-glow: rgba(244, 63, 94, 0.15);
  --accent-glow-strong: rgba(244, 63, 94, 0.4);
}

.card-datasci {
  --accent-color: #10b981;
  --accent-color-rgb: 16, 185, 129;
  --accent-gradient: linear-gradient(135deg, #a7f3d0 0%, #059669 100%);
  --accent-glow: rgba(16, 185, 129, 0.15);
  --accent-glow-strong: rgba(16, 185, 129, 0.4);
}

/* Futuristic Tabbed Console Layout */
.expertise-console {
  display: flex;
  gap: 40px;
  width: min(1200px, 100%);
  min-height: 480px;
  margin-top: 20px;
  align-items: stretch;
  justify-content: center;
}

.console-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 40%;
  justify-content: center;
}

/* Nav Item Styling */
.nav-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--text);
  font-family: inherit;
  width: 100%;
}

[data-theme="dark"] .nav-item {
  background: rgba(255, 255, 255, 0.01);
}

.nav-item[data-discipline="software"] {
  --item-accent: #8b5cf6;
  --item-accent-rgb: 139, 92, 246;
}

.nav-item[data-discipline="aiml"] {
  --item-accent: #f43f5e;
  --item-accent-rgb: 244, 63, 94;
}

.nav-item[data-discipline="datasci"] {
  --item-accent: #10b981;
  --item-accent-rgb: 16, 185, 129;
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: all 0.3s ease;
}

.nav-icon-wrapper {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-wrapper .service-icon {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: rgba(var(--item-accent-rgb), 0.08);
  border: 1px solid rgba(var(--item-accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-icon-wrapper .service-icon img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(var(--item-accent-rgb), 0.25));
  transition: transform 0.3s ease;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.nav-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* Active Nav Item */
.nav-item.active {
  background: rgba(var(--item-accent-rgb), 0.05);
  border-color: transparent;
  box-shadow: none;
}

.nav-item.active .nav-indicator {
  background: var(--item-accent);
  box-shadow: 0 0 10px var(--item-accent);
}

.nav-item.active .service-icon {
  background: rgba(var(--item-accent-rgb), 0.15);
  border-color: rgba(var(--item-accent-rgb), 0.35);
  transform: scale(1.05);
}

.nav-item.active .service-icon img {
  transform: scale(1.08);
}

.nav-item.active .nav-title {
  color: var(--item-accent);
}

/* Display Monitor Panel */
.console-display {
  flex: 1 1 60%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  /* Default variables (software) */
  --console-accent: #8b5cf6;
  --console-accent-rgb: 139, 92, 246;
  --console-accent-glow: rgba(139, 92, 246, 0.15);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* Hologram Tilt Custom Property */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .console-display {
  background: rgba(25, 25, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.5);
}

.display-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--console-accent-glow),
      transparent 80%);
  z-index: 0;
  transition: background 0.4s ease;
}

.display-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 24px 24px;
  background-image: linear-gradient(to right, rgba(var(--console-accent-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--console-accent-rgb), 0.03) 1px, transparent 1px);
  z-index: 0;
  transition: background-image 0.4s ease;
}

/* Individual display panel contents */
.display-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  width: 100%;
  height: 100%;
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  transform-style: preserve-3d;
}

.display-panel.active {
  display: flex;
  animation: panelFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes panelFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.display-header {
  margin-bottom: 25px;
  text-align: left;
  transform: translateZ(40px);
}

.display-header h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text), var(--console-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.display-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Skills Tags in Console */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  transform: translateZ(30px);
  transform-style: preserve-3d;
}

.skill-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5.5px 11.5px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  user-select: text;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

[data-theme="dark"] .skill-chip {
  background: rgba(255, 255, 255, 0.02);
}

/* Staggered Pop-in triggered when active panel enters */
.display-panel.active .skill-chip {
  opacity: 1;
  transform: scale(1);
}

.skill-chip:hover {
  background: linear-gradient(135deg, var(--console-accent), rgba(var(--console-accent-rgb), 0.75));
  border-color: transparent;
  color: #ffffff !important;
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(var(--console-accent-rgb), 0.35);
  transition-delay: 0s !important;
}

/* Stagger Delays */
.skill-chip:nth-child(1) {
  transition-delay: 0.01s;
}

.skill-chip:nth-child(2) {
  transition-delay: 0.03s;
}

.skill-chip:nth-child(3) {
  transition-delay: 0.05s;
}

.skill-chip:nth-child(4) {
  transition-delay: 0.07s;
}

.skill-chip:nth-child(5) {
  transition-delay: 0.09s;
}

.skill-chip:nth-child(6) {
  transition-delay: 0.11s;
}

.skill-chip:nth-child(7) {
  transition-delay: 0.13s;
}

.skill-chip:nth-child(8) {
  transition-delay: 0.15s;
}

.skill-chip:nth-child(9) {
  transition-delay: 0.17s;
}

.skill-chip:nth-child(10) {
  transition-delay: 0.19s;
}

.skill-chip:nth-child(11) {
  transition-delay: 0.21s;
}

.skill-chip:nth-child(12) {
  transition-delay: 0.23s;
}

.skill-chip:nth-child(13) {
  transition-delay: 0.25s;
}

.skill-chip:nth-child(14) {
  transition-delay: 0.27s;
}

.skill-chip:nth-child(15) {
  transition-delay: 0.29s;
}

.skill-chip:nth-child(16) {
  transition-delay: 0.31s;
}

.skill-chip:nth-child(17) {
  transition-delay: 0.33s;
}

.skill-chip:nth-child(18) {
  transition-delay: 0.35s;
}

.skill-chip:nth-child(19) {
  transition-delay: 0.37s;
}

.skill-chip:nth-child(20) {
  transition-delay: 0.39s;
}

@keyframes serviceCardIntro {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================================================== */
/* 9) Projects Section */
/* ========================================================================== */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.projects-section {
  background: var(--bg);
  color: var(--text);
  padding: 100px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

/* Ambient Background Glows */
.projects-bg-glow {
  position: absolute;
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s ease;
}

[data-theme="dark"] .projects-bg-glow {
  opacity: 0.05;
}

.projects-bg-glow-1 {
  background: var(--primary);
  top: 10%;
  left: -10%;
  animation: meshFloat 18s ease-in-out infinite alternate;
}

.projects-bg-glow-2 {
  background: var(--secondary);
  bottom: 10%;
  right: -10%;
  animation: meshFloat 22s ease-in-out infinite alternate-reverse;
}

@keyframes meshFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 40px) scale(1.15);
  }

  100% {
    transform: translate(-40px, 80px) scale(0.9);
  }
}

.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 50px;
}

/* Filter buttons */
.project-filters {
  display: flex;
  gap: 2px;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 2;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 16px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* Accordion Slider Container */
.projects-accordion {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 820px;
  height: 270px;
  overflow: hidden;
  z-index: 2;
  padding: 10px 0;
  contain: layout style;
}

/* Accordion Item wrapper */
.project-accordion-item {
  flex: 1 1 55px;
  min-width: 55px;
  height: 100%;
  border-radius: 24px;
  transition: flex-grow 0.55s cubic-bezier(0.33, 1, 0.68, 1), min-width 0.55s cubic-bezier(0.33, 1, 0.68, 1), flex-basis 0.55s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease;
  will-change: flex-grow, min-width, flex-basis;
  overflow: hidden;
  transform: translateZ(0);
}

.project-accordion-item.is-expanded {
  flex-grow: 4.2;
  min-width: 220px;
}

.project-accordion-item.is-contracted {
  flex-grow: 0.6;
  min-width: 45px;
}

.project-accordion-item.is-collapsed-to-zero {
  flex-grow: 0 !important;
  min-width: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.project-accordion-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

/* Glassmorphic Panel Card */
.project-accordion-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f0f1f4;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .project-accordion-card {
  background: color-mix(in srgb, var(--surface) 86%, var(--bg));
}

/* Conic Glowing Tracing Border on hover */
.project-accordion-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 24px;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle), transparent, var(--glow-color, var(--primary)), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes rotateBorder {
  0% {
    --border-angle: 0deg;
  }

  100% {
    --border-angle: 360deg;
  }
}

/* Spotlight Glow Layer */
.project-accordion-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 140px at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--glow-color, var(--primary)) 15%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* --- Expanded state (JS-driven via .is-expanded class) --- */
.project-accordion-item.is-expanded .project-accordion-card::before {
  opacity: 1;
  animation: rotateBorder 3.5s linear infinite;
}

.project-accordion-item.is-expanded .project-accordion-glow {
  opacity: 1;
}

.project-accordion-item.is-expanded .project-accordion-card {
  border-color: color-mix(in srgb, var(--glow-color, var(--primary)) 35%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--glow-color, var(--primary)) 14%, transparent), var(--shadow);
}

/* Collapsed view structure */
.project-accordion-collapsed-part {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s cubic-bezier(0.33, 1, 0.68, 1), transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 2;
  position: relative;
  transform: translateZ(0);
}

.proj-acc-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  font-family: 'Poppins', sans-serif;
}

.proj-acc-collapsed-icon-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.proj-acc-collapsed-icon-wrap .project-card-icon {
  width: 30px;
  height: 30px;
}

.proj-acc-vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-family: 'Poppins', sans-serif;
  margin-top: 6px;
}

/* Expanded view structure - fills full card width */
.project-accordion-expanded-part {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1) 0.12s, transform 0.3s cubic-bezier(0.33, 1, 0.68, 1) 0.12s;
  z-index: 2;
  position: absolute;
  inset: 0;
  padding: 10px 14px;
  transform: translateZ(0);
}

.project-accordion-item.is-expanded .project-accordion-collapsed-part {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.33, 1, 0.68, 1), transform 0.18s cubic-bezier(0.33, 1, 0.68, 1);
}

.project-accordion-item.is-expanded .project-accordion-expanded-part {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1) 0.2s, transform 0.35s cubic-bezier(0.33, 1, 0.68, 1) 0.2s;
}

/* Expanded interior details */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.project-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text-muted);
}

.project-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 3px 0 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.project-accordion-item.is-expanded .project-card-title {
  color: var(--glow-color);
}

.project-card-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 4px 0;
  font-family: 'Ubuntu', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.project-card-tech span {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 3px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 4%, var(--surface));
  color: var(--text-muted);
}

.project-card-v2.coming-soon {
  cursor: default;
  user-select: none;
  background: color-mix(in srgb, var(--surface) 78%, var(--bg));
}



/* Mobile responsive carousel fallbacks */
@media only screen and (max-width: 768px) {
  .projects-accordion {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: auto;
    padding: 15px 0 25px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .project-accordion-item {
    flex: 0 0 320px;
    min-width: 320px;
    height: 340px;
    scroll-snap-align: center;
  }

  .project-accordion-collapsed-part {
    display: none !important;
  }

  .project-accordion-expanded-part {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    padding: 24px;
  }

  .project-accordion-card {
    height: 100%;
  }

  .projects-section {
    padding: 80px 16px;
  }
}

/* ========================================================================== */
/* 10) Certifications Section */
/* ========================================================================== */
.certifications-section {
  background: var(--bg);
  color: var(--text);
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

.certifications-section .section-title {
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 6px 18px rgba(29, 78, 216, 0.12);
}

/* Decorative accent bar under heading for a more impressive look */
.certifications-section .section-title::after {
  content: "";
  display: block;
  width: min(180px, 50%);
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-600) 0%, var(--secondary) 100%);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.18);
}

/* Apply same impressive style to Projects, What I Do (services), Blogs, About Me */
.projects-section .section-title,
.services-section .section-title,
.blog-section .section-title,
.about-section .section-title {
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 6px 18px rgba(29, 78, 216, 0.12);
}

.projects-section .section-title::after,
.services-section .section-title::after,
.blog-section .section-title::after,
.about-section .section-title::after {
  content: "";
  display: block;
  width: min(180px, 50%);
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-600) 0%, var(--secondary) 100%);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.18);
}

.seq {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 980px;
  margin: -20px auto 0;
  overflow: hidden;
  background-color: var(--bg);
  font-family: 'Ubuntu', sans-serif;
  color: var(--text);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center vertical divider */
.seq::before {
  display: none;
}

.seq-canvas,
.seq-canvas>* {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seq-canvas>* {
  position: absolute;
  padding: 40px;
  padding-right: 56px;
  padding-left: 56px;
  box-sizing: border-box;
  height: auto;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Two-column layout inside each slide */
.cert-grid {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1300px;
}

.cert-info {
  text-align: left;
  padding-right: 24px;
  position: relative;
}

/* Show a single, taller divider on the active slide */
.seq-in .cert-info::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -0.5px;
  width: 1px;
  height: 88%;
  background: var(--border);
}

.cert-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 28px;
}

.certificate-feature {
  max-width: 100%;
  max-height: 550px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition-duration: .5s;
  transition-property: transform, opacity;
  transform: translateZ(0) scale(0);
  margin-bottom: 15px;
}

.certificate-title {
  margin: 5px 0 0 0;
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  transition-duration: .5s;
  transition-property: opacity, transform;
  color: var(--primary-600);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

.certificate-description {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  transition: opacity .5s, transform .5s;
}

.seq-in .certificate-feature {
  transform: translateZ(0) scale(1);
}

.seq-in .certificate-title {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.seq-in .certificate-description {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.seq-out .certificate-feature {
  transform: translateZ(0) scale(1);
  opacity: 0;
}

.seq-out .certificate-title {
  opacity: 0;
  transform: translateY(-30px) translateZ(0);
}

.cert-prev,
.cert-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
  z-index: 100;
  padding: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cert-prev {
  left: 6px;
}

.cert-next {
  right: 6px;
}

.cert-prev:hover,
.cert-next:hover {
  color: var(--primary);
  transform: translateY(-50%) translateZ(0) scale(1.06);
}

.cert-prev:focus-visible,
.cert-next:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cert-prev svg,
.cert-next svg {
  width: 34px;
  height: 34px;
  pointer-events: none;
}

/* Show arrows only near edges of the certificate area */
.seq.hover-left .cert-prev {
  opacity: 1;
  pointer-events: auto;
}

.seq.hover-right .cert-next {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================================== */
/* 11) Blog Section */
/* ========================================================================== */
.blog-section {
  min-height: calc(100vh - 40px);
  background: var(--bg);
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  color: var(--text);
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

.blog-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  max-width: 1200px;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.topic-button {
  position: relative;
  width: 32px;
  height: 40px;
  border: none;
  outline: none;
  transition: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
  cursor: pointer;
  background: none;
}

.topic-button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color);
  border-radius: 6px;
  transform: scale(1.2);
  pointer-events: none;
  transition: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.topic-button::before {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: 52px;
  font-size: 10px;
  line-height: 1.2;
  padding: 3px 6px;
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  white-space: nowrap;
  z-index: 9999;
}

.topic-button:hover {
  transform: scale(1.5);
  z-index: 9999;
}

.topic-button:hover::before {
  opacity: 1;
  visibility: visible;
}

.topic-button:active::after {
  transform: scale(1.1);
}

.topic-button:hover+* {
  transform: scale(1.3);
  z-index: 999;
}

.topic-button:hover+*+* {
  transform: scale(1.15);
  z-index: 998;
}

.topic-button:has(+ *:hover) {
  transform: scale(1.3);
  z-index: 999;
}

.topic-button:has(+ * + *:hover) {
  transform: scale(1.15);
  z-index: 998;
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================================================== */
/* 12) Contact Form */
/* ========================================================================== */
.contact-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(39, 85, 210, 0.15), transparent 60%),
    rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-form {
  position: relative;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  border-radius: 20px;
  padding: 28px 24px;
  width: 90%;
  max-width: 440px;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-form.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Contact Header */
.contact-header {
  text-align: center;
  margin-bottom: 18px;
}

.contact-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text) 60%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.contact-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
}

/* Form Groups and Inputs */
.form-group {
  position: relative;
  margin-bottom: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-icon-span {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--text-muted) 50%, transparent);
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.input-icon-span.textarea-icon {
  align-self: flex-start;
  top: 11px;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 11px 14px 11px 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  border-radius: 12px;
  caret-color: var(--primary);
  transition: all 0.3s ease;
}

.input-wrapper textarea {
  resize: none;
  height: 75px;
  line-height: 1.4;
}

/* Hover and Focus States */
.input-wrapper:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent),
    0 10px 20px rgba(0, 0, 0, 0.05);
}

.input-wrapper:focus-within .input-icon-span {
  color: var(--primary);
  transform: scale(1.05);
}

/* Invalid Field Highlights */
.input-wrapper input[aria-invalid="true"],
.input-wrapper textarea[aria-invalid="true"],
.input-wrapper:has(input[aria-invalid="true"]),
.input-wrapper:has(textarea[aria-invalid="true"]) {
  border-color: #ef4444 !important;
}

.input-wrapper:has(input[aria-invalid="true"]):focus-within,
.input-wrapper:has(textarea[aria-invalid="true"]):focus-within {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* Inline Error Messaging */
.form-error {
  display: none;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin: -8px 0 16px 0;
  text-align: center;
  animation: slideDown 0.3s ease forwards;
}

.form-error.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close Button Redesign */
.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-close:hover {
  transform: rotate(90deg);
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border-color: var(--text);
  color: var(--text);
}

/* Form Footer */
.form-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.8;
}

.form-hint svg.hint-icon {
  stroke-width: 2;
  opacity: 0.7;
}

.submit-btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

body.freeze-scroll {
  overflow: hidden;
}

.popup-content {
  pointer-events: auto;
  cursor: default !important;
}

/* ========================================================================== */
/* 13) Footer */
/* ========================================================================== */
.main-footer {
  position: relative;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  width: 100%;
  background: var(--bg-footer-gradient);
  padding: 40px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 2;
  position: relative;
}

.footer-brand {
  text-align: center;
}

.footer-brand h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 0 0 4px 0;
}

.footer-brand p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav .gooey-btn {
  --button: var(--primary);
  color: #ffffff !important;
  font-size: 11.5px;
  padding: 7px 10px;
  margin: 0 10px;
  border-radius: 0 !important;
}

.footer-nav .gooey-btn:before {
  filter: blur(1px) url(#goo);
  padding: 2px;
  border-radius: 0 !important;
}

.footer-nav .gooey-btn:hover {
  --a: 100%;
  transition-duration: .35s;
  opacity: 1;
  --hover-y: -2px;
  --hover-scale: 1.08;
}

.footer-bottom {
  position: relative;
  border-top: none;
  width: 100%;
  max-width: 1100px;
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ========================================================================== */
/* 14) Utilities / Helpers */
/* ========================================================================== */
.social-links.is-revealed {
  --reveal-tx: 0px;
  opacity: 1;
}

.privacy-popup {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.privacy-content {
  background: var(--surface);
  padding: 25px 35px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  color: var(--text);
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.privacy-content h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 15px;
}

.privacy-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: var(--primary);
}

/* Honeypot field (keep out of view but in DOM for bots) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================================================== */
/* 15) Toast */
/* ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  z-index: 10050;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================================== */
/* 16) Games Hub Modal */
/* ========================================================================== */
.games-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--overlay) 72%, rgba(0, 0, 0, 0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 11000;
}

.games-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.games-modal {
  width: 75vw;
  height: 75vh;
  max-width: 1400px;
  max-height: 900px;
  min-height: 520px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  transform: scale(0.94) translateY(16px);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 300ms ease;
}

.games-overlay.show .games-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.games-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.games-title-wrap h2 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 0;
}

.games-high-score {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.games-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.games-header-btn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
}

.games-close-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.games-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.games-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.games-tab.is-active {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.games-loader {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity 180ms ease;
}

.games-loader.show {
  opacity: 1;
}

.games-viewport {
  position: relative;
  min-height: 0;
  background: color-mix(in srgb, var(--bg) 90%, var(--surface));
  overflow: hidden;
}

.games-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.games-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.games-start-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.games-start-btn {
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 24%, var(--surface));
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.games-start-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 75%, var(--border));
}

.games-footer-controls {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.games-status-text {
  color: var(--text);
  font-size: 13px;
}

.games-control-buttons {
  display: inline-flex;
  gap: 8px;
}

.games-control-btn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.games-control-btn:hover,
.games-header-btn:hover,
.games-tab:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

@media (max-width: 900px) {
  .games-modal {
    width: 92vw;
    height: 80vh;
    min-height: 460px;
  }

  .games-tabs {
    flex-wrap: wrap;
  }
}




/* ========================================================================== */
/* 17) Responsive Breakpoints */
/* ========================================================================== */
@media only screen and (max-width: 768px) {
  html {
    font-size: 12px;
  }

  /* Mobile: ensure theme toggle fully visible and on top */
  .theme-toggle {
    z-index: 10001;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 16px;
  }

  .hero-content {
    font-size: 24px;
    padding: 0 18px;
    text-align: center;
  }

  .hero-name {
    font-size: 34px;
  }

  .hero-title {
    font-size: 16px;
  }

  .social-links {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateX(var(--reveal-tx)) translateY(-50%);
    padding: 0;
  }

  .social-icon {
    width: 19px;
    margin: 6px 0;
  }

  .social-icon svg,
  .social-icon img {
    width: 19px;
    height: 19px;
  }

  /* Ensure GitHub icon matches mobile size of other social icons */
  .social-icon[aria-label="GitHub"] svg,
  .social-icon[title="GitHub"] svg {
    width: 15px;
    height: 15px;
  }

  .social-icon[aria-label="WhatsApp"],
  .social-icon[title="WhatsApp"] {
    width: 18px;
    height: 18px;
  }

  .social-icon[aria-label="WhatsApp"] svg,
  .social-icon[title="WhatsApp"] svg {
    width: 16px;
    height: 16px;
  }

  .hero-text {
    padding: 0;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    gap: 30px;
  }

  .about-text-container,
  .about-image-container {
    flex: 1 1 100%;
    padding: 20px 10px;
    width: 100%;
    min-width: unset;
  }

  .about-text-container {
    text-align: center;
    padding: 0;
  }

  .about-luxury-card {
    padding: 26px 20px;
  }

  .about-luxury-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-luxury-headline {
    font-size: 24px;
  }

  .about-luxury-bio {
    font-size: 13.5px;
    line-height: 1.65;
    text-align: left;
  }

  .about-linear-metrics {
    padding: 14px 10px;
    gap: 6px;
  }

  .metric-num {
    font-size: 16px;
  }

  .metric-title {
    font-size: 10px;
  }

  .about-luxury-tags {
    justify-content: center;
  }

  .about-luxury-footer {
    justify-content: center;
  }

  .about-section {
    padding: 30px 20px 50px;
    min-height: auto;
  }

  /* Mobile tweak: slightly smaller gap on narrow screens */
  #hireMeBtn {
    margin-top: 16px;
  }

  .hero-section {
    height: 90vh;
    padding-bottom: 0;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  .profile-name {
    font-size: 14px;
  }

  .profile-role {
    font-size: 12px;
  }

  .nav-container {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-container::-webkit-scrollbar {
    display: none;
  }

  .nav-container .gooey-btn {
    margin: 0 6px !important;
    font-size: 11px !important;
    padding: 5px 2px !important;
    flex-shrink: 0;
  }

  .nav-container {
    justify-content: flex-end;
  }

  .top-right-nav {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 10px;
    left: auto;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .services-section {
    margin-top: 0;
    padding: 60px 16px;
    min-height: auto;
  }

  .expertise-console {
    flex-direction: column;
    gap: 20px;
  }

  .console-nav {
    flex-direction: row;
    flex: 0 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px;
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
    justify-content: flex-start;
  }

  .console-nav::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  .nav-item {
    padding: 12px 16px;
    flex-shrink: 0;
    gap: 12px;
    border-radius: 14px;
    width: auto;
  }

  .nav-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .nav-icon-wrapper .service-icon {
    border-radius: 10px;
  }

  .nav-icon-wrapper .service-icon img {
    width: 18px;
    height: 18px;
  }

  .nav-title {
    font-size: 0.88rem;
  }

  .nav-sub {
    display: none;
    /* Hide descriptions to conserve mobile space */
  }

  .nav-indicator {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 3px;
    width: auto;
  }

  .console-display {
    flex: 1 1 auto;
    padding: 24px 20px;
    min-height: 350px;
    border-radius: 20px;
  }

  .display-header {
    margin-bottom: 16px;
  }

  .display-header h3 {
    font-size: 1.3rem;
  }

  .display-header p {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .skills-container {
    gap: 6px 8px;
  }

  .skill-chip {
    font-size: 0.68rem;
    padding: 4px 8.5px;
  }

  .projects-section {
    padding: 50px 20px 80px 20px;
    min-height: auto;
  }

  .projects-grid {
    gap: 25px;
  }

  .project-card {
    width: 160px;
    height: 140px;
    padding: 10px 15px;
  }

  .project-title {
    font-size: 10px;
  }

  .project-image {
    width: 36px;
    height: 36px;
  }

  .project-description {
    font-size: 7px;
    line-height: 1.2;
    padding: 0 5px;
  }

  .project-button {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  .project-card .project-button {
    font-size: 14px !important;
  }

  .blog-section {
    padding: 30px 10px;
    min-height: calc(100vh - 40px);
  }

  .topic-button::after {
    width: 24px;
    height: 24px;
  }

  .main-footer {
    padding: 10px 0;
  }

  .footer-nav {
    gap: 8px;
  }

  .footer-nav .gooey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    margin: 0;
    padding: 7px 10px;
    font-size: 10px;
    line-height: 1;
    background: var(--primary-600);
    border-radius: 8px !important;
  }

  .footer-nav .gooey-btn:before {
    display: none;
  }

  .footer-nav a {
    font-size: 11px;
    padding: 0 5px;
  }

  .footer-link {
    font-size: 11px;
  }

  .popup-content {
    padding: 56px 15px 15px 15px;
    margin: 10px;
  }

  .popup-content h2 {
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .popup-content p {
    font-size: 12px;
    line-height: 1.4;
  }

  .blog-share {
    gap: 8px;
    margin: 4px 0 10px 0;
  }

  .share-btn {
    font-size: 12px;
    padding: 5px 8px;
  }

  .blog-active-title {
    top: 22px;
    width: min(92%, 560px);
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.3;
    z-index: 3;
  }

  .blog-wheel {
    inset: 118px 0 0 0;
  }

  .contact-popup {
    padding: 12px;
  }

  .contact-form {
    border-radius: 20px;
    padding: 28px 20px;
    width: 95%;
    max-width: 380px;
    max-height: 95vh;
    overflow-y: auto;
  }

  /* Mobile: make contact close button reliably tappable and above content */
  .contact-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile: position blog speaker and close, make room for heading */
  #blogPopup #blogSpeakBtn {
    top: 12px;
    left: 12px;
    z-index: 10002;
  }

  .popup-close {
    top: 12px;
    right: 12px;
    z-index: 10002;
  }

  .contact-header {
    margin-bottom: 20px;
  }

  .contact-form h2 {
    font-size: 20px;
  }

  .contact-subtitle {
    font-size: 13px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .input-wrapper input,
  .input-wrapper textarea {
    padding: 12px 14px 12px 42px;
    font-size: 13px;
  }

  .input-icon-span {
    left: 12px;
  }

  .input-icon-span svg {
    width: 16px;
    height: 16px;
  }

  .input-wrapper textarea {
    height: 90px;
  }

  .form-footer {
    margin-top: 18px;
    gap: 12px;
  }

  .contact-form .gooey-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  .certifications-section {
    margin-top: 0;
    padding: 30px 0px;
    min-height: auto;
  }

  .certifications-section .section-title {
    margin-bottom: 30px;
  }

  .seq {
    height: 700px;
    max-width: 100%;
    margin-top: 0;
  }

  /* Stack columns and hide divider on small screens */
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .cert-info {
    text-align: center;
    border: none;
    padding: 0;
  }

  /* Also remove active-slide divider on small screens */
  .seq-in .cert-info {
    border: none;
  }

  .seq-in .cert-info::after {
    display: none;
  }

  .cert-visual {
    padding: 0;
  }

  .seq::before {
    display: none;
  }

  .certificate-feature {
    max-height: 500px;
    max-width: 95%;
    margin-bottom: 8px;
  }

  .certificate-title {
    font-size: 1.2rem;
    margin-top: 5px;
    text-align: center;
  }

  .cert-prev,
  .cert-next {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  .certifications-section .section-title {
    margin-bottom: 25px;
  }

  .certifications-section {
    padding: 40px 0px;
  }

  .seq {
    height: 500px;
  }

  .cert-grid {
    gap: 18px;
  }

  .certificate-feature {
    max-height: 400px;
    max-width: 98%;
    margin-bottom: 6px;
  }

  .certificate-title {
    font-size: 1.1rem;
    margin-top: 8px;
  }
}

@media only screen and (max-width: 360px) {
  .seq {
    height: 450px;
  }

  .certificate-feature {
    max-height: 350px;
    max-width: 98%;
    margin-bottom: 4px;
  }

  .certificate-title {
    font-size: 1rem;
    margin-top: 6px;
  }
}

/* ========================================================================== */
/* 17) Cursor Behavior by Input Type */
/* ========================================================================== */

@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}

/* ========================================================================== */
/* 18) New Blog UI (Wheel + Reader Split) */
/* ========================================================================== */
.blog-section.blog-wheel-page {
  height: calc(100vh - 40px);
  min-height: calc(100vh - 40px);
  background: var(--bg);
  margin-top: 100px;
  margin-bottom: 190px;
  padding: 0 calc(clamp(21px, 3vw, 73px) + 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-page-wrap {
  min-height: 0;
  flex: 1;
  height: auto;
  width: 100%;
  display: grid;
  grid-template-columns: calc(50%) 1px calc(47%);
  color: var(--text);
}

.blog-wheel-page .section-title {
  display: block;
  width: 100%;
  margin: 0 0 24px 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.blog-wheel-page .section-title::after {
  display: none;
}

.blog-reader-panel {
  padding: clamp(20px, 2.3vw, 34px);
  background: var(--bg);
  border-right: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  overflow-y: auto;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.blog-reader-panel.is-updating {
  opacity: 0;
  transform: translateY(10px);
}

.blog-reader-header {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.blog-reader-title {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.blog-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-meta-pill {
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11px;
  padding: 5px 9px;
}

.blog-reader-content {
  display: grid;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.93em;
  line-height: 1.7;
}

.blog-reader-content p {
  margin: 0 0 14px;
}

.blog-reader-content strong {
  color: var(--text);
}

.blog-center-divider {
  width: 1px;
  background: transparent;
  box-shadow: none;
}

.blog-wheel-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.blog-back-link {
  position: absolute;
  top: 24px;
  left: 26px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.blog-back-link:hover {
  text-decoration: underline;
}

.blog-active-title {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 820px);
  text-align: center;
  color: var(--text);
  font-size: clamp(15px, 1.5vw, 23px);
  line-height: 1.25;
  margin: 0;
}

.blog-wheel {
  position: absolute;
  inset: 86px 0 0 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.blog-wheel-track {
  position: absolute;
  inset: 0;
}

.blog-wheel-icon {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 18%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.blog-wheel-icon:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 75%, transparent);
  outline-offset: 2px;
}

.blog-wheel-icon.is-active {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent),
    0 14px 34px color-mix(in srgb, var(--primary) 28%, transparent);
}

@media only screen and (max-width: 1120px) {
  .blog-page-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .blog-center-divider {
    display: none;
  }

  .blog-reader-panel,
  .blog-wheel-panel {
    min-height: 0;
  }

  .blog-wheel-panel {
    border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  }
}

@media (max-width: 640px) {
  .mini-card-modal {
    width: min(92vw, 360px);
  }
}

@media (hover: none) and (pointer: coarse) {
  .right-sidebar-link::after {
    display: none;
  }
}

/* ========================================================================== */
/* 19) Mobile Hotfixes (Blog + Footer) */
/* ========================================================================== */
@media only screen and (max-width: 768px) {
  .blog-section.blog-wheel-page {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .blog-page-wrap {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(320px, 52vh) !important;
    height: auto !important;
    min-height: auto !important;
  }

  .blog-wheel-panel {
    min-height: 320px !important;
    height: 52vh !important;
    overflow: hidden !important;
  }

  .blog-reader-panel {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow-y: visible !important;
  }

  .blog-wheel-panel .blog-active-title {
    top: 18px !important;
    width: min(92%, 560px) !important;
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.3 !important;
    z-index: 4 !important;
  }

  .blog-wheel-panel .blog-wheel {
    inset: 124px 0 0 0 !important;
  }

  .main-footer {
    display: block !important;
    position: relative;
    z-index: 4;
  }

  .main-footer .footer-nav {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-footer .footer-nav .gooey-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
    background: var(--primary-600) !important;
    border: 1px solid color-mix(in srgb, var(--primary-600) 85%, #000000 15%) !important;
    border-radius: 8px !important;
    transform: none !important;
  }

  .main-footer .footer-nav .gooey-btn:before {
    display: none !important;
  }
}

/* ========================================================================== */
/* Scroll Reveal Animations                                                    */
/* ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.from-left {
  transform: translateX(-40px);
}

.scroll-reveal.from-right {
  transform: translateX(40px);
}

.scroll-reveal.zoom-in {
  transform: scale(0.92);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  will-change: auto;
}

/* Stagger children: delay increases per item */
.scroll-reveal.stagger-1 {
  transition-delay: 0.06s;
}

.scroll-reveal.stagger-2 {
  transition-delay: 0.10s;
}

.scroll-reveal.stagger-3 {
  transition-delay: 0.14s;
}

.scroll-reveal.stagger-4 {
  transition-delay: 0.18s;
}

.scroll-reveal.stagger-5 {
  transition-delay: 0.22s;
}

.scroll-reveal.stagger-6 {
  transition-delay: 0.24s;
}

.scroll-reveal.stagger-7 {
  transition-delay: 0.28s;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: rgba(128, 128, 128, 0.25);
  border-color: rgba(128, 128, 128, 0.4);
  transform: translateY(-2px);
}

/* ========================================================================== */
/* RAG Chat Agent UI Styles */
/* ========================================================================== */
.rag-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: 'Poppins', 'Ubuntu', sans-serif;
  pointer-events: none;
  /* Let pointer events pass through to elements underneath */
}

.rag-chat-container {
  width: 380px;
  height: 520px;
  max-height: calc(100vh - 100px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 40px rgba(39, 85, 210, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.3s ease;
}

/* Open State */
.rag-chat-container.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.rag-chat-header {
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rag-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rag-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(39, 85, 210, 0.2);
}

.rag-chat-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rag-chat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0;
}

.rag-status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  display: inline-block;
  transition: background 0.3s ease;
}

.status-text {
  color: var(--text-muted);
}

.rag-status-indicator.online .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.rag-status-indicator.offline .status-dot {
  background: #ef4444;
}

.rag-status-indicator.thinking .status-dot {
  background: var(--primary);
  animation: pulse-dot-indicator 1s infinite alternate;
}

@keyframes pulse-dot-indicator {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 10px var(--primary);
  }
}

.rag-chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.rag-chat-close-btn:hover {
  background: color-mix(in srgb, var(--border) 60%, transparent);
  color: var(--text);
}

/* Messages Area */
.rag-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rag-chat-messages::-webkit-scrollbar {
  display: none;
}

.rag-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.rag-message.user {
  align-self: flex-end;
}

.rag-message.assistant {
  align-self: flex-start;
}

.rag-message-bubble {
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 12px;
  word-break: break-word;
}

.rag-message.user .rag-message-bubble {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
  border-bottom-right-radius: 4px;
  box-shadow: none;
}

.rag-message.assistant .rag-message-bubble {
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

/* Loading/Thinking State */
.rag-thinking-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  align-items: center;
}

.rag-thinking-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce-dot 1.4s infinite ease-in-out both;
}

.rag-thinking-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.rag-thinking-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce-dot {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1.0);
  }
}



/* Input Area */
.rag-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 4px 2px 10px;
  margin: 12px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rag-chat-form:focus-within {
  border-color: var(--primary);
  box-shadow: none;
}

.rag-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 4px 0;
  font-family: inherit;
}

.rag-chat-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.rag-chat-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rag-chat-send-btn:hover {
  background: color-mix(in srgb, var(--text) 15%, var(--surface));
  color: var(--text);
  transform: scale(1.05);
}

.rag-chat-send-btn:active {
  transform: scale(0.95);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .rag-chat-widget {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
  }

  .rag-chat-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    bottom: 0;
    right: 0;
    transform: scale(1) translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .rag-chat-container.is-open {
    transform: scale(1) translateY(0);
  }
}

/* Footer social icons horizontal styling */
.footer-social-links {
  position: absolute;
  right: -100px;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-social-links {
    position: static;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
  }
}

.footer-social-links .social-icon {
  opacity: 0.85;
  margin: 0 !important;
  /* Override vertical margin on mobile */
  display: inline-block;
  vertical-align: middle;
  transform: none;
  animation: none !important;
  /* No reveal animations for footer */
  width: 20px;
  height: 20px;
  position: relative;
}

.footer-social-links .social-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 20px;
  max-height: 20px;
  display: block;
}

.footer-social-links .social-icon:hover {
  transform: scale(1.3) !important;
  color: var(--primary) !important;
  opacity: 1 !important;
}

/* Tooltip position adjustments to avoid right side screen overflow: pop up instead of right */
.footer-social-links .social-icon::after {
  left: 50% !important;
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  transform: translateX(-50%) scale(0.96) !important;
  transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease !important;
}

.footer-social-links .social-icon:hover::after,
.footer-social-links .social-icon:focus-visible::after {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) scale(1) !important;
}

/* Footer left links (Courses, Games, Clock) */
.footer-left-links {
  position: absolute;
  left: -100px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (max-width: 768px) {
  .footer-left-links {
    position: static;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
    gap: 12px;
  }
}

.footer-left-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
}

.footer-left-btn svg {
  stroke: currentColor;
  width: 14px;
  height: 14px;
  display: block;
}

.footer-left-btn:hover,
.footer-left-btn:focus-visible {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width: 768px) {

  .footer-left-btn:hover,
  .footer-left-btn:focus-visible {
    transform: scale(1.05);
  }
}

/* Footer Contact Details */
.footer-contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-contact-info svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-contact-info {
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
  }
}