/* ==========================================================================
   Mahesh Biswal — SFCC Developer Portfolio
   Premium design system & interactions
   Organized: 1.Variables 2.Reset 3.Global 4.Navbar 5.Hero 6.About
              7.Highlights 8.Skills 9.Experience 10.Projects
              11.Certifications 12.Education 13.Contact 14.Footer
              15.Responsive 16.Animations
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  /* Accent palette (navy / blue / cyan) */
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #22d3ee;
  --accent: #38bdf8;

  /* Button gradient (kept dark enough for white text in both themes) */
  --btn-grad-a: #2563eb;
  --btn-grad-b: #0e7490;

  /* Surfaces (dark theme defaults) */
  --bg: #0a0e14;
  --bg-soft: #0c121b;
  --surface: #111826;
  --surface-2: #151d2c;
  --surface-3: #0f1622;
  --nav-bg: rgba(10, 14, 20, 0.86);
  --glass: rgba(17, 24, 38, 0.55);

  /* Text */
  --text: #e6edf3;
  --text-muted: #9aa7b8;
  --text-faint: #74849e;

  /* Lines */
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.26);
  --grid-line: rgba(148, 163, 184, 0.06);
  --dot-color: rgba(148, 163, 184, 0.09);

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.42);

  /* Code panel stays dark in both themes */
  --code-bg: #0b0f17;
  --code-border: rgba(148, 163, 184, 0.18);
  --code-text: #cbd5e1;
  --code-prompt: #4ade80;
  --code-value: #67e8f9;
  --code-prop: #cbd5e1;
  --code-skill: #93c5fd;

  /* Metrics */
  --nav-height: 64px;
  --radius: 16px;
  --radius-sm: 12px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --cyan: #0e7490;
  --accent: #0369a1;

  --bg: #f5f7fb;
  --bg-soft: #e9eef5;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #eef2f8;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --glass: rgba(255, 255, 255, 0.7);

  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #5b6b80;

  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.22);
  --grid-line: rgba(15, 23, 42, 0.05);
  --dot-color: rgba(15, 23, 42, 0.07);

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--cyan);
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

/* ==========================================================================
   3. GLOBAL STYLES
   ========================================================================== */
/* Subtle dot pattern behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 26px 26px;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue-2));
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 14px;
}

/* Contact CTA heading */
.section-heading--cta h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.section-heading--cta h2::after {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* Generic card */
.skill-card,
.highlight-card,
.work-card,
.cert-card,
.edu-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

/* Buttons — pill shaped for a softer, more premium look */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  transition: transform var(--ease), background-color var(--ease),
    border-color var(--ease), box-shadow var(--ease), color var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.hero-btn-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s var(--ease);
}

.hero-btn-primary:hover .hero-btn-arrow {
  transform: translateX(4px);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -64px;
  left: 12px;
  z-index: 2100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 2200;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue-2));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.custom-navbar {
  min-height: var(--nav-height);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.custom-navbar.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.custom-navbar .navbar-brand:hover {
  color: var(--accent);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-grad-a), var(--blue-2));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.custom-navbar .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  position: relative;
}

.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus,
.custom-navbar .nav-link.active {
  color: var(--text);
}

.custom-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Theme toggle — sliding pill switch */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.theme-toggle .theme-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: color 0.3s ease;
}

/* Active icon sits on top of the knob */
[data-theme="dark"] .theme-icon-moon {
  color: #fff;
}

[data-theme="light"] .theme-icon-sun {
  color: #fff;
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  transition: transform 0.3s var(--ease);
}

/* Light mode: knob left (over sun). Dark mode: knob right (over moon). */
[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(26px);
}

/* Toggler */
.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.navbar-toggler-icon {
  filter: var(--toggler-filter, invert(0));
  width: 1.15em;
  height: 1.15em;
}

[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

/* Resume button */
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
  white-space: nowrap;
  padding: 0.55rem 1.35rem;
}

.btn-resume:hover,
.btn-resume:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.44);
}

.btn-resume svg {
  transition: transform 0.25s ease;
}

.btn-resume:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 88px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 54px 54px, 54px 54px, 27px 27px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

/* Keep hero content above the decorative grid / glow layers */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 480px at 88% -10%, rgba(96, 165, 250, 0.16), transparent 60%),
    radial-gradient(760px 440px at -12% 15%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(600px 380px at 60% 110%, rgba(59, 130, 246, 0.12), transparent 60%);
}

[data-theme="light"] .hero::before {
  background: radial-gradient(900px 480px at 88% -10%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(760px 440px at -12% 15%, rgba(8, 145, 178, 0.1), transparent 60%),
    radial-gradient(600px 380px at 60% 110%, rgba(37, 99, 235, 0.12), transparent 60%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-eyebrow-prompt {
  color: var(--cyan);
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.04;
  margin-bottom: 10px;
  background: linear-gradient(180deg, var(--text) 60%, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}

.hero-role {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  min-height: 1.4em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeUp 0.7s var(--ease) 0.16s both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s var(--ease) 0.24s both;
}

.hero-tags span {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--glass);
  backdrop-filter: blur(6px);
  transition: color var(--ease), border-color var(--ease);
}

.hero-tags span:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-intro {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 30px;
  animation: fadeUp 0.7s var(--ease) 0.32s both;
}

.hero-actions {
  animation: fadeUp 0.7s var(--ease) 0.4s both;
}

/* Terminal (real HTML/CSS developer profile card) */
.terminal {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  animation: riseIn 0.9s var(--ease) 0.28s both;
  transition: transform var(--ease), box-shadow var(--ease);
}

.terminal:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(148, 163, 184, 0.07);
  border-bottom: 1px solid var(--code-border);
}

.terminal-title {
  margin-left: 8px;
  color: #7c8aa0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot-red {
  background: #f87171;
}

.terminal-dot-yellow {
  background: #fbbf24;
}

.terminal-dot-green {
  background: #34d399;
}

.terminal-body {
  padding: 22px 24px;
  color: var(--code-text);
  font-size: 0.86rem;
  line-height: 1.85;
  overflow-x: auto;
}

.terminal-line {
  margin: 0;
  white-space: nowrap;
}

.cm-prompt {
  color: var(--code-prompt);
  font-weight: 700;
}

.cm-command {
  color: var(--code-text);
  font-weight: 600;
}

.cm-property {
  color: var(--code-prop);
}

.cm-value {
  color: var(--code-value);
}

.cm-skill {
  color: var(--code-skill);
  font-weight: 600;
}

.cm-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--code-prompt);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  opacity: 0.7;
  transition: opacity var(--ease);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator-mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator-wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

/* ==========================================================================
   6. ABOUT
   ========================================================================== */
.about-intro .section-eyebrow {
  margin-bottom: 16px;
}

.about-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.about-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.about-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.about-lead {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Small code visual inside the About section */
.about-code {
  margin-top: 28px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: transform var(--ease), box-shadow var(--ease);
}

.about-code:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.about-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(148, 163, 184, 0.07);
  border-bottom: 1px solid var(--code-border);
}

.about-code-title {
  margin-left: 8px;
  color: #7c8aa0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.about-code-body {
  margin: 0;
  padding: 16px 18px;
  color: var(--code-text);
  line-height: 1.75;
  overflow-x: auto;
}

/* ==========================================================================
   7. HIGHLIGHTS
   ========================================================================== */
.highlight-card {
  position: relative;
  height: 100%;
  padding: 28px 24px;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue-2));
  opacity: 0;
  transition: opacity var(--ease);
}

.highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.highlight-label {
  display: block;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.highlight-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   8. SKILLS
   ========================================================================== */
.skill-accent-blue {
  --cat: var(--blue);
}

.skill-accent-cyan {
  --cat: var(--cyan);
}

.skill-card {
  position: relative;
  height: 100%;
  padding: 28px 26px;
  overflow: hidden;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--cat) 8%, transparent), transparent 70%);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--cat) 40%, var(--border));
  box-shadow: var(--shadow-md);
}

.skill-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.skill-category {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cat);
  margin-bottom: 0;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.skill-tags li {
  padding: 6px 13px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--cat);
  border: 1px solid color-mix(in srgb, var(--cat) 32%, transparent);
  background: color-mix(in srgb, var(--cat) 10%, transparent);
  border-radius: 999px;
  transition: background var(--ease), transform var(--ease);
}

.skill-tags li:hover {
  background: color-mix(in srgb, var(--cat) 18%, transparent);
  transform: translateY(-2px);
}

/* ==========================================================================
   9. EXPERIENCE
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan) 45%, var(--blue-2));
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--border-strong);
  box-shadow: 0 0 0 5px var(--bg);
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}

.timeline-item:hover .timeline-marker {
  border-color: var(--accent);
  color: var(--cyan);
  transform: scale(1.08);
}

.timeline-card {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.timeline-company {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.timeline-date {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}

.timeline-role {
  color: var(--text-muted);
  font-weight: 600;
  margin: 6px 0 14px;
}

.timeline-points {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.timeline-points li {
  margin-bottom: 7px;
}

.timeline-points li::marker {
  color: var(--cyan);
}

.timeline-points li:last-child {
  margin-bottom: 0;
}

.timeline-tags,
.work-card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
}

.timeline-tags li,
.work-card-tags li {
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: color var(--ease), border-color var(--ease);
}

.timeline-tags li:hover,
.work-card-tags li:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   10. PROJECTS / KEY SFCC WORK
   ========================================================================== */
.work-card {
  position: relative;
  height: 100%;
  padding: 30px 28px;
  overflow: hidden;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity var(--ease);
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.work-card:hover::before {
  opacity: 1;
}

.work-card-index {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-faint);
}

.work-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 26%, transparent);
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.work-card:hover .work-card-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  transform: translateY(-2px);
}

.work-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-right: 56px;
}

.work-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   11. CERTIFICATIONS
   ========================================================================== */
.cert-card {
  height: 100%;
  padding: 34px 30px;
  text-align: center;
  border-top: 3px solid var(--blue-2);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  border-top-color: var(--blue-2);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--blue-2);
  background: color-mix(in srgb, var(--blue-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue-2) 30%, transparent);
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0;
}

/* ==========================================================================
   12. EDUCATION
   ========================================================================== */
.edu-card {
  padding: 44px 32px;
  text-align: center;
}

.edu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.edu-degree {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.edu-school {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   13. CONTACT
   ========================================================================== */
.contact-card {
  height: 100%;
  padding: 34px 24px;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  transition: color var(--ease), background var(--ease);
}

.contact-card:hover .contact-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.contact-value {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  word-break: break-word;
  margin-bottom: 0;
}

.contact-card a.contact-value:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-role {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, color var(--ease), border-color var(--ease);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   15. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991.98px) {
  .section {
    padding: 80px 0;
  }

  .custom-navbar .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px 8px 16px;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
  }

  .custom-navbar .nav-link::after {
    display: none;
  }

  .nav-resume-btn {
    margin-top: 8px;
  }

  .mobile-resume-btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline-marker {
    left: -28px;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .timeline-card {
    padding: 22px 20px;
  }

  .terminal-body {
    font-size: 0.78rem;
    padding: 18px 20px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 56px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .terminal-body {
    font-size: 0.74rem;
    padding: 16px 16px;
  }

  .terminal-bar {
    padding: 11px 14px;
  }

  .skill-card,
  .highlight-card,
  .work-card {
    padding: 24px 20px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

/* Scroll reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.reveal-visible {
  opacity: 1;
  transform: none;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-eyebrow,
  .hero-name,
  .hero-role,
  .hero-tags,
  .hero-intro,
  .hero-actions,
  .terminal,
  .scroll-indicator-wheel {
    animation: none;
  }

  .cm-cursor {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
