/* =========================
   Palette & Theme Variables
   ========================= */
:root {
  /* Light (default) */
  --primary: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #4d94ff;
  --primary-rgb: 0, 102, 204;

  --secondary: #6c42c7;
  --secondary-light: #9b7dd4;
  --accent: #ff6b6b;

  --text-dark: #333333;
  --text-light: #666666;       /* secondary text */
  --background: #f8f9fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --transition: all 0.3s ease;

  /* Theme families */
  --mental-primary:#20bf55; --mental-primary-dark:#189a44; --mental-primary-light:#5ad488; --mental-primary-rgb:32,191,85;
  --mental-secondary:#01baef; --mental-secondary-light:#4dd2f8;
  --mental-gradient: linear-gradient(135deg, var(--mental-primary) 0%, var(--mental-secondary) 100%);

  --nba-primary:#ff7700; --nba-primary-dark:#cc5f00; --nba-primary-light:#ff9e44; --nba-primary-rgb:255,119,0;
  --nba-secondary:#ffb700; --nba-secondary-light:#ffc944;
  --nba-gradient: linear-gradient(135deg, var(--nba-primary) 0%, var(--nba-secondary) 100%);

  --employee-primary:#7b3fe4; --employee-primary-dark:#5f2fb2; --employee-primary-light:#a37bf0; --employee-primary-rgb:123,63,228;
  --employee-secondary:#e73c7e; --employee-secondary-light:#f28db5;
  --employee-gradient: linear-gradient(135deg, var(--employee-primary) 0%, var(--employee-secondary) 100%);

  --amazon-primary:#0066cc; --amazon-primary-dark:#004d99; --amazon-primary-light:#4d94ff; --amazon-primary-rgb:0,102,204;
  --amazon-secondary:#6c42c7; --amazon-secondary-light:#9b7dd4;
  --amazon-gradient: linear-gradient(135deg, var(--amazon-primary) 0%, var(--amazon-secondary) 100%);
}

/* Page-scoped theme bindings (set on <body>) */
.mental-health {
  --primary:var(--mental-primary); --primary-dark:var(--mental-primary-dark); --primary-light:var(--mental-primary-light);
  --primary-rgb:var(--mental-primary-rgb); --secondary:var(--mental-secondary); --secondary-light:var(--mental-secondary-light);
  --gradient-primary:var(--mental-gradient);
}
.nba-analysis {
  --primary:var(--nba-primary); --primary-dark:var(--nba-primary-dark); --primary-light:var(--nba-primary-light);
  --primary-rgb:var(--nba-primary-rgb); --secondary:var(--nba-secondary); --secondary-light:var(--nba-secondary-light);
  --gradient-primary:var(--nba-gradient);
}
.employee-retention {
  --primary:var(--employee-primary); --primary-dark:var(--employee-primary-dark); --primary-light:var(--employee-primary-light);
  --primary-rgb:var(--employee-primary-rgb); --secondary:var(--employee-secondary); --secondary-light:var(--employee-secondary-light);
  --gradient-primary:var(--employee-gradient);
}
.amazon-prime {
  --primary:var(--amazon-primary); --primary-dark:var(--amazon-primary-dark); --primary-light:var(--amazon-primary-light);
  --primary-rgb:var(--amazon-primary-rgb); --secondary:var(--amazon-secondary); --secondary-light:var(--amazon-secondary-light);
  --gradient-primary:var(--amazon-gradient);
}

/* ===== Dark Theme Swap ===== */
.dark {
  --background: #111418;
  --card-bg: #171b21;
  --text-dark: #eaeef5;      /* body text on dark */
  --text-light: #bfc8d4;     /* captions/secondary */
  --shadow: 0 6px 20px rgba(0,0,0,0.35);

  /* lighter accents in dark */
  --primary: #4d94ff;
  --primary-dark: #3a7cf0;
  --primary-light: #76b2ff;
  --primary-rgb: 77,148,255;

  --secondary: #b79cff;
  --secondary-light: #d0c1ff;

  --accent: #ff7d7d;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; scroll-padding-top: 90px; } /* avoid header overlap on anchor jumps */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
  position: relative;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 600; }

/* ---------- Custom cursor ---------- */
.custom-cursor {
  position: fixed;
  width: 20px; height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background-color .2s, border-color .2s;
  z-index: 9999;
  mix-blend-mode: normal;
  background-color: rgba(var(--primary-rgb), .14);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.dark .custom-cursor{
  border-color: rgba(255,255,255,.75);
  background-color: rgba(255,255,255,.08);
  box-shadow: 0 0 0 2px rgba(0,0,0,.45) inset;
}
body, a, button, .interactive-element, .visualization, .metric-card, .application-card, .tool-card { cursor: none !important; }
.cursor-hover { width: 40px; height: 40px; background-color: rgba(var(--primary-rgb), .22); border-color: var(--secondary); }

/* ===== Layout helpers ===== */
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ===== Header / Nav ===== */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 15px 0;
  transition: var(--transition); background-color: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.dark header { background-color: rgba(17,20,24,0.9); }
.header-background { position: absolute; inset: 0; background: var(--gradient-primary); opacity: .05; z-index: -1; }

nav {
  display: flex; justify-content: center; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 4px; flex-wrap: wrap;
}

/* TIGHT underline control (no L/R padding so underline matches word width) */
.nav-link {
  position: relative;
  margin: 0 10px;
  padding: 8px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  overflow: visible;
}
.dark .nav-link { color: var(--text-light); }

/* Larger click target without affecting underline width */
.nav-link::before {
  content: '';
  position: absolute;
  top: -8px; bottom: -8px;
  left: -12px; right: -12px;
}

.nav-link:hover { color: var(--primary); }

/* Active/focus underline that matches word exactly */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  pointer-events: none;
  border-radius: 2px;
}
.nav-link.active { color: var(--primary); }
.nav-link.active::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.theme-toggle i { font-size: 18px; line-height: 1; }

/* ===== Hero (home page) ===== */
.hero { padding: 120px 20px 80px; background-color: var(--background); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(108,66,199,0.08), transparent 70%),
              radial-gradient(circle at bottom left, rgba(var(--primary-rgb),0.08), transparent 70%);
  z-index: 0;
}
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
@media (min-width: 768px){ .hero-content { flex-direction: row; text-align: left; gap: 60px; } }

.profile-container { position: relative; margin-bottom: 30px; }
@media (min-width: 768px){ .profile-container { margin-bottom: 0; } }
.profile-image { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 4px solid white; box-shadow: var(--shadow); position: relative; z-index: 2; transition: transform .5s ease; }
.profile-image:hover { transform: scale(1.05); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-backdrop { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--gradient-primary); top: 10px; left: 10px; z-index: 1; opacity: .5; transition: transform .5s ease; }
.profile-container:hover .profile-backdrop { transform: translate(5px,5px); }

.hero-text { max-width: 600px; }

/* FULL-WIDTH underline on your name */
.hero h1 {
  font-size: 3rem; margin-bottom: 10px; color: var(--text-dark);
  position: relative; display: inline-block;
}
.hero h1::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.hero h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.typewriter { height: 30px; margin-bottom: 20px; font-size: 1.1rem; color: var(--secondary); }
.cursor { display: inline-block; width: 2px; background-color: var(--text-dark); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero p { font-size: 1.1rem; margin-bottom: 30px; color: var(--text-light); line-height: 1.8; }
.hero-buttons { display: flex; gap: 15px; margin-top: 20px; }
.button { display:inline-block; padding:12px 24px; border-radius:30px; text-decoration:none; font-weight:500; transition:var(--transition); text-align:center; }
.primary-button { background: var(--primary); color:#fff; box-shadow: 0 4px 15px rgba(var(--primary-rgb),0.3); }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.4); background: var(--primary-dark); }
.secondary-button { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.secondary-button:hover { background-color: rgba(var(--primary-rgb),0.1); transform: translateY(-3px); }

/* ===== Sections ===== */
section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }

/* Main section title: centered, underline matches text width */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;       /* shrink to text width */
  left: 50%;
  transform: translateX(-50%);
  line-height: 1.15;           /* tighten the box around text */
  padding-bottom: 2px;         /* small buffer under text */
}
.section-title::after {
  content:'';
  position:absolute;
  bottom: 1px;                 /* positive = nudge UP toward the text */
  left:0;
  right:0;
  height:4px;
  background:var(--gradient-primary);
  border-radius:2px;
}
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.2rem; margin-bottom: 50px; }

/* Make short sections easier to “select” on scroll */
#about, #contact { scroll-margin-top: 90px; min-height: 55vh; }

/* ===== Project cards (home) ===== */
.projects-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap:30px; margin-top:40px; }
.project-card { background-color: var(--card-bg); border-radius:12px; overflow:hidden; box-shadow: var(--shadow); transition: var(--transition); position:relative; height:100%; display:flex; flex-direction:column; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.project-image { position:relative; height:200px; overflow:hidden; }
.project-image img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-overlay { position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%); opacity:0; transition: var(--transition); display:flex; align-items:flex-end; padding:20px; }
.project-card:hover .project-overlay { opacity:1; }
.project-tags { display:flex; flex-wrap:wrap; gap:8px; }
.project-tags span { background-color: rgba(255,255,255,0.2); color:#fff; padding:4px 10px; border-radius:20px; font-size:.8rem; }
.project-content { padding:20px; flex-grow:1; display:flex; flex-direction:column; }
.project-card h3 { font-size:1.3rem; margin-bottom:15px; color: var(--text-dark); }
.project-card p { color: var(--text-light); margin-bottom:20px; flex-grow:1; }
.project-card .button { align-self:flex-start; padding:8px 20px; background-color: var(--primary); color:#fff; border-radius:20px; transition: var(--transition); }
.project-card .button:hover { background-color: var(--primary-dark); transform: translateY(-3px); }

/* ===== Shared “Project Page” blocks ===== */
.project-header {
  background: var(--gradient-primary);
  color: white;
  padding: 100px 30px 60px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.project-header::before { content: ''; position: absolute; inset: 0; background: url('/images/pattern.png'); opacity: 0.1; z-index: 0; }
.project-header-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.project-header h1 { font-size: 2.8rem; margin-bottom: 15px; display: inline-block; }
.project-header p { font-size: 1.3rem; opacity: 0.95; max-width: 700px; margin: 0 auto; }

.project-tags.page { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:20px; }
.project-tag { background-color: rgba(255,255,255,0.2); color:#fff; padding:5px 15px; border-radius:20px; font-size:.9rem; backdrop-filter: blur(5px); }

.project-section {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.project-section:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.project-section::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gradient-primary); border-radius: 4px 0 0 4px; }

/* Project-only title style (short accent line) */
.project-section .section-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  line-height: 1.2; /* keep tidy here too */
}
.project-section .section-title::after {
  content:''; position:absolute; bottom:0; left:0; width:60px; height:3px;
  background: var(--gradient-primary); border-radius:3px;
}

/* ===== Visualizations ===== */
.visualization { margin: 40px 0; text-align: center; transition: transform 0.3s ease; }
.visualization:hover { transform: scale(1.02); }
.visualization img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display:block; margin:0 auto;
}
.visualization:hover img { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.visualization p { margin-top: 15px; color: var(--text-light); font-style: italic; }

/* Optional compact legend bar */
.legend-bar{
  height:14px; border-radius:8px; margin:12px auto 0; max-width:420px;
  background: linear-gradient(to right, #ffffb2, #fecc5c, #fd8d3c, #f03b20, #bd0026);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

/* ===== Key findings ===== */
.key-finding {
  background-color: rgba(var(--primary-rgb), 0.08);
  border-left: 4px solid var(--primary);
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 12px 12px 0;
  transition: transform 0.3s ease;
}
.key-finding:hover { transform: translateX(5px); }
.key-finding h3 { color: var(--primary); }

/* ===== Metrics grid ===== */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin: 35px 0; }
.metric-card {
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  padding: 25px; border-radius: 15px; text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden;
}
.dark .metric-card { background: linear-gradient(145deg, #1a1f26, #12161c); }
.metric-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-primary); }
.metric-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.metric-card h4 { color: var(--text-light); font-size: 1.1rem; }
.metric-value {
  font-size: 2.5rem; font-weight: 700; background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent; margin: 15px 0;
}

/* ===== Lists ===== */
ul, ol { padding-left: 20px; margin: 20px 0; }
ul li, ol li { margin-bottom: 10px; position: relative; }
ul li::before { content: '•'; color: var(--primary); font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }
ol { counter-reset: item; list-style-type: none; }
ol li { counter-increment: item; }
ol li::before { content: counter(item) "."; color: var(--primary); font-weight: bold; display: inline-block; width: 1.5em; margin-left: -1.5em; }

/* ===== Collapsible blocks ===== */
.collapsible {
  background-color: #f8f9fa; color: #333; cursor: pointer; padding: 18px; width: 100%; border: none;
  text-align: left; outline: none; font-size: 1.1rem; font-weight: 600; border-radius: 10px; transition: 0.3s;
  display: flex; justify-content: space-between; align-items: center;
}
.dark .collapsible { background-color: #1a1f26; color: var(--text-dark); }
.collapsible:hover { background-color: #f1f3f5; }
.dark .collapsible:hover { background-color: #232a34; }
.collapsible:after { content: '\002B'; color: var(--primary); font-weight: bold; margin-left: 5px; transition: 0.3s; }
.active:after { content: "\2212"; transform: rotate(90deg); }
.collapsible-content { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: var(--card-bg); border-radius: 0 0 10px 10px; }
.collapsible-content-inner { padding: 20px 0; }

/* ===== Two-column helper ===== */
.two-column { display: grid; grid-template-columns: 1fr; gap: 30px; margin: 30px 0; }
@media (min-width: 768px) { .two-column { grid-template-columns: 1fr 1fr; } }

/* ===== Tools / Skills grid ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 30px 0; }
.tool-card,
.application-card {
  background-color: #f8f9fa; padding: 20px; border-radius: 12px; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow .3s ease;
}
.dark .tool-card,
.dark .application-card { background-color: #1a1f26; }
.tool-card:hover, .application-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.tool-icon,
.application-icon {
  font-size: 2rem; margin-bottom: 15px; display: inline-flex; align-items:center; justify-content:center;
  width: 56px; height:56px; border-radius: 50%; background: var(--gradient-primary); color:#fff;
}
.tool-name, .application-card h3 { font-weight: 600; margin: 12px 0 6px; color: var(--text-dark); }
.tool-category, .application-card p { font-size: 0.95rem; color: var(--text-light); }

/* ===== Timeline ===== */
.timeline { position:relative; max-width:1200px; margin:40px auto; }
.timeline::before { content: ''; position: absolute; width: 4px; background: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding:10px 40px; position:relative; width:50%; box-sizing:border-box; }
.timeline-item:nth-child(odd){ left:0; } .timeline-item:nth-child(even){ left:50%; }
.timeline-dot { position:absolute; width:20px; height:20px; right:-10px; background: var(--primary); border-radius:50%; top:15px; z-index:1; }
.timeline-item:nth-child(even) .timeline-dot { left:-10px; right:auto; }
.timeline-content { padding:20px; background: var(--card-bg); border-radius:12px; box-shadow: var(--shadow); }
.timeline-content h3 { margin-top:0; color: var(--primary); }
.timeline-content h4 { color: var(--text-light); font-weight:normal; margin-bottom:15px; }
.timeline-content ul { padding-left:20px; }
.timeline-content li { margin-bottom:8px; color: var(--text-light); }
@media (max-width: 767px){
  .timeline::before { left:40px; }
  .timeline-item { width:100%; padding-left:70px; padding-right:25px; }
  .timeline-item:nth-child(even){ left:0; }
  .timeline-dot { left:30px; right:auto; }
  .timeline-item:nth-child(even) .timeline-dot { left:30px; }
}

/* ===== Contact tiles ===== */
#contact { padding-top: 20px; }

#contact .contact-tiles{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 18px auto 0;
  padding: 0 20px;
}

#contact .contact-card{
  display:flex; align-items:center; gap:14px;
  background-color:#f8f9fa;
  padding:16px 18px; border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration:none; color:var(--text-dark);
}
.dark #contact .contact-card{ background-color:#1a1f26; color:var(--text-dark); }
#contact .contact-card:hover{ transform:translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,0.12); }

#contact .contact-card .icon{
  width:42px;height:42px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--gradient-primary); color:#fff; flex:0 0 42px;
  font-size:18px;
}
#contact .contact-card .label{ display:block; font-weight:600; line-height:1.2; color:var(--text-dark); }
.dark #contact .contact-card .label{ color:var(--text-dark); }
#contact .contact-card .meta{ display:block; color:var(--text-light); font-size:.95rem; }
#contact .contact-card:focus{ outline:3px solid rgba(var(--primary-rgb), .35); outline-offset:2px; }

/* Keep three cards from over-stretching on huge screens */
@media (min-width: 1280px){
  #contact .contact-tiles{ max-width: 1100px; }
}

/* ===== Footer ===== */
footer { background-color:#f1f3f5; padding:30px 20px; text-align:center; position:relative; }
footer::before { content:''; position:absolute; top:0; left:0; width:100%; height:4px; background: var(--gradient-primary); }
.dark footer { background-color:#12161c; }

.footer-links { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.link-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--primary); color: #fff; background: var(--primary); transition: transform .12s ease, background .15s ease; }
.link-button:hover { transform: translateY(-2px); background: var(--primary-dark); }
.link-button i { font-size: 14px; }
.dark .link-button:hover { background: var(--primary-light); color: #000; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom:30px; right:30px; width:50px; height:50px; background: var(--primary);
  color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center;
  text-decoration:none; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity:0; visibility:hidden; transition: all .3s ease; z-index:999;
}
.back-to-top.visible { opacity:1; visibility:visible; }
.back-to-top:hover { transform: translateY(-5px); background: var(--primary-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* ===== Misc helpers ===== */
.project-highlight { color: var(--primary); font-weight:500; margin-bottom:8px; font-size:.95rem; }
.key-findings .two-column { grid-template-columns:1fr !important; }
.key-findings .visualization img { max-width:100%; margin:0 auto; }

/* ===== Accessibility helper ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0;
}

/* ===== Page-specific tweaks (Employee Retention) ===== */
.employee-retention .project-header,
.employee-retention .project-section::before,
.employee-retention .metric-card::before,
.employee-retention .application-icon { background: var(--gradient-primary); }
.employee-retention .key-finding { background-color: rgba(var(--primary-rgb), 0.08); border-left: 4px solid var(--primary); }
.employee-retention .key-finding h3 { color: var(--primary); }
