/* ==========================================================================
   Sagar Parmar - Modern Portfolio Stylesheet
   Design System: E2M Solutions Architectural Identity (Cobalt Blue #1638FB & Electric Orange #F35700)
   Fonts: Google Sans Flex (Display) + Plus Jakarta Sans (Body) + JetBrains Mono (Code)
   Colors: Electric Cobalt (#1638FB), Dark Cobalt (#0726D9), Electric Orange (#F35700), Onyx (#0D0E12)
   ========================================================================== */


/* --------------------------------------------------------------------------
   CSS VARIABLES & THEME DEFINITIONS (E2M SOLUTIONS BRAND SPECIFICATION)
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default - E2M Solutions Pure Black & Charcoal) */
  --bg-primary: #000000;
  --bg-secondary: #0d0e12;
  --bg-surface: #14151b;
  --bg-surface-elevated: #1c1c1c;
  --bg-card: rgba(28, 28, 28, 0.85);
  --bg-card-hover: #262626;
  --bg-card-solid: #1c1c1c;
  --bg-input: #14151b;
  --bg-pill: rgba(22, 56, 251, 0.12);
  --bg-pill-hover: rgba(22, 56, 251, 0.22);
  
  --text-primary: #ffffff;
  --text-secondary: #a5a5a5;
  --text-muted: #666666;
  --text-accent: #5b76ff;

  --border-color: rgba(255, 255, 255, 0.09);
  --border-color-hover: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(255, 255, 255, 0.1);


  --brand-blue: #1638FB;
  --brand-dark-blue: #0726D9;
  --brand-orange: #F35700;
  --brand-charcoal: #1C1C1C;
  --brand-dark: #000000;
  --brand-gray: #D2D2D2;

  --brand-primary: #1638FB;
  --brand-primary-hover: #0726D9;
  --brand-secondary: #F35700;
  --brand-gradient: #1638FB;
  --brand-gradient-tri: #F35700;
  --brand-gradient-glow: rgba(22, 56, 251, 0.4);
  --brand-gold-gradient: #FFE259;
  
  --accent-emerald: #10b981;
  --accent-amber: #F35700;
  --accent-purple: #1638FB;
  --accent-rose: #F35700;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 14px rgba(22, 56, 251, 0.25);
  --shadow-glow-cyan: 0 0 14px rgba(243, 87, 0, 0.2);

  --font-display: 'Google Sans Flex', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 0px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-blur: blur(16px);
}

/* Light Theme Overrides (E2M Solutions Crisp Daylight) */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;
  --bg-pill: rgba(22, 56, 251, 0.08);
  --bg-pill-hover: rgba(22, 56, 251, 0.15);

  --text-primary: #1C1C1C;
  --text-secondary: #333333;
  --text-muted: #666666;
  --text-accent: #1638FB;

  --brand-cyan: #1638FB;
  --accent-emerald: #047857;

  --border-color: rgba(0, 0, 0, 0.09);
  --border-color-hover: rgba(0, 0, 0, 0.18);
  --border-glow: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 12px rgba(22, 56, 251, 0.1);
}


/* Light Theme Specific Element Overrides */
[data-theme="light"] body {
  background: #ffffff;
}

[data-theme="light"] .bento-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .bento-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}




[data-theme="light"] .hero-emblem-badge {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .hero-badge-available {
  background: rgba(4, 120, 87, 0.08);
  color: #065f46;
  border: 1px solid rgba(4, 120, 87, 0.24);
}

[data-theme="light"] .pulse-dot {
  background: #059669;
}


[data-theme="light"] .hero-role {
  color: #1638FB;
}

[data-theme="light"] .calc-output-card {
  background: #ffffff;
  border: 1px solid rgba(22, 56, 251, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .modal-impact-banner {
  background: rgba(22, 56, 251, 0.08);
  border: 1px solid rgba(22, 56, 251, 0.22);
}

[data-theme="light"] .site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .filter-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

[data-theme="light"] .filter-btn:hover {
  background: #f1f5f9;
  color: #1638FB;
}

[data-theme="light"] .filter-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
}

[data-theme="light"] .search-input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0D0D11;
}

[data-theme="light"] .project-impact-box {

  background: rgba(123, 44, 191, 0.06);
  border-left: 3px solid #7B2CBF;
}



/* --------------------------------------------------------------------------
   GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) #0a0b0e;
}

[data-theme="light"] html {
  scrollbar-color: rgba(0, 0, 0, 0.2) #f8fafc;
}

/* --------------------------------------------------------------------------
   CLEAN MINIMAL SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0b0e;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-attachment: fixed;
}





::selection {
  background: var(--brand-primary);
  color: #ffffff;
}

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

/* --------------------------------------------------------------------------
   ACCESSIBILITY & WCAG 2.1 COMPLIANCE
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--brand-primary);
  border-radius: 0 !important;
  box-shadow: var(--shadow-md);
  clip: auto !important;
  clip-path: none;
  color: #ffffff;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 20px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 20px;
  width: auto;
  z-index: 100000;
}

/* Keyboard Focus Visible */
:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


a:hover {
  color: var(--brand-primary-hover);
}

img, svg {
  vertical-align: middle;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION BAR (SOLID CLEAN STYLING)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .site-header .brand-name {
  color: #1c1c1c;
}

[data-theme="light"] .site-header .brand-role {
  color: #666666;
}

[data-theme="light"] .site-header .nav-link {
  color: #475569;
}

[data-theme="light"] .site-header .nav-link:hover,
[data-theme="light"] .site-header .nav-link.active {
  color: var(--brand-blue);
}

[data-theme="light"] .site-header .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1c1c1c;
}

[data-theme="light"] .site-header .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

[data-theme="light"] .site-header .mobile-menu-btn {

  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}




.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
  z-index: 3;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-avatar-mini {
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 400;
  font-size: 1.05rem;
  box-shadow: none;
}


.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .btn-ats {
  border-radius: 0 !important;
  padding: 8px 16px;
  font-size: 0.86rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES (UNIFIED COHESIVE COLOR SYSTEM)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 0 !important;
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--brand-dark-blue);
  color: #ffffff;
  box-shadow: none;
  transform: translateY(-1px);
}


.btn-outline,
.btn-ats,
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.btn-outline svg,
.btn-ats svg,
.btn-ghost svg {
  color: var(--text-secondary);
}

.btn-outline:hover,
.btn-ats:hover,
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: none;
}

[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-ats,
[data-theme="light"] .btn-ghost {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: none;
}

[data-theme="light"] .btn-outline svg,
[data-theme="light"] .btn-ats svg,
[data-theme="light"] .btn-ghost svg {
  color: #475569;
}

[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .btn-ats:hover,
[data-theme="light"] .btn-ghost:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.28);
  color: #0f172a;
  box-shadow: none;
  transform: translateY(-1px);
}

.site-header .btn-ats,
[data-theme="light"] .site-header .btn-ats {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.site-header .btn-ats:hover,
[data-theme="light"] .site-header .btn-ats:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: none;
}





.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 0 !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-brand {
  background: rgba(123, 44, 191, 0.18);
  color: #ffffff;
  border: 1px solid rgba(123, 44, 191, 0.4);
}

.badge-accent {
  background: rgba(255, 226, 89, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(255, 226, 89, 0.35);
}

.badge-subtle {
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}


.tech-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-pill);
  color: var(--text-secondary);
  border-radius: 0 !important;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  background: var(--bg-pill-hover);
  color: var(--text-accent);
  border-color: var(--border-color-hover);
}

.tech-more {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   BENTO CARDS & SECTIONS
   -------------------------------------------------------------------------- */
.bento-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  padding: 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}




.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.section-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  text-align: center;
}

[data-theme="dark"] .section-pretitle,
body:not([data-theme="light"]) .section-pretitle {
  color: var(--brand-orange);
}

/* Ensure Pure White Sections on Homepage always have Blue Pre-Title */
.hero-stats-banner .section-pretitle,
#skills .section-pretitle,
#contact .section-pretitle,
[data-theme="dark"] .hero-stats-banner .section-pretitle,
[data-theme="dark"] #skills .section-pretitle,
[data-theme="dark"] #contact .section-pretitle {
  color: var(--brand-blue) !important;
}
button#hero-fx-toggle {
    /* right: 31%; */
    top: -50px;
    left: calc(95% - 55px);
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   HERO SECTION & BENTO STATS (FULL WIDTH HERO BANNER)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 0 0 0px 0;
}


.hero-main-banner {
  width: 100%;
  background: #000000 !important;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-right: none;
  padding: 56px 0 80px 0;
  margin-bottom: 0px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-main-banner .container {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .hero-main-banner {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}



.hero-stats-banner {
  width: 100%;
  background: #ffffff !important;
  padding: 56px 0 48px 0;
  margin-top: 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-stats-banner .section-header {
  margin-bottom: 36px;
  text-align: center;
  align-items: center;
}

.hero-stats-banner .section-title {
  color: #111827 !important;
}

.hero-stats-banner .section-subtitle {
  color: #4b5563 !important;
}

.hero-stats-banner .section-pretitle {
  color: var(--brand-blue) !important;
}

.hero-stats-container {
  width: 100%;
}


.hero-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero-main-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}


.hero-emblem-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 0 !important;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  padding: 10px;
  transition: all var(--transition-normal);
}

.hero-emblem-badge img,
.sp-brand-emblem-img {
  width: 100%;
  height: 100%;
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
  display: block;
}

.hero-emblem-badge:hover {
  transform: scale(1.04);
}


.hero-badge-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 16px;
}

.hero-fx-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(13, 14, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  user-select: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-fx-btn:hover {
  background: rgba(22, 56, 251, 0.15);
  border-color: rgba(22, 56, 251, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-fx-btn:active {
  transform: scale(0.95);
}

.hero-fx-icon {
  color: var(--brand-orange);
  flex-shrink: 0;
}

[data-theme="light"] .hero-fx-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #333333;
}

[data-theme="light"] .hero-fx-btn:hover {
  background: #ffffff;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}



.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: none;
}


.hero-name,
[data-theme="light"] .hero-name {
  display: block;
  width: 100%;
  clear: both;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 12px;
  color: #ffffff !important;
  min-height: 1.15em;
}

.hero-role,
[data-theme="light"] .hero-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #5b76ff !important;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  min-height: 1.5em;
}

.hero-bio,
[data-theme="light"] .hero-bio {
  font-size: 1.08rem;
  color: #d1d5db !important;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 1080px;
}

.hero-main-banner .btn-outline,
[data-theme="light"] .hero-main-banner .btn-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.hero-main-banner .btn-outline:hover,
[data-theme="light"] .hero-main-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
  align-items: center;
  align-content: start;
}

.stat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}


.stat-card:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .stat-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--brand-orange);
  margin-bottom: 8px;
  text-align: center;
}

.stat-card:hover .stat-number {
  color: var(--brand-orange);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

[data-theme="light"] .stat-card:hover .stat-number {
  color: var(--brand-orange);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1C1C1C !important;
  text-align: center;
  line-height: 1.35;
  margin-bottom: 4px;
}

[data-theme="light"] .stat-label {
  color: #1C1C1C !important;
}

.stat-desc {
  font-size: 0.86rem;
  color: #555555 !important;
  line-height: 1.45;
  text-align: center;
}

[data-theme="light"] .stat-desc {
  color: #555555 !important;
}







/* --------------------------------------------------------------------------
   CONTACT QUICK BAR / CHIPS
   -------------------------------------------------------------------------- */
.contact-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.contact-chip svg {
  color: var(--text-secondary);
}

.contact-chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  box-shadow: none;
  transform: translateY(-1px);
}

[data-theme="light"] .contact-chip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
  box-shadow: none;
}

[data-theme="light"] .contact-chip svg {
  color: #475569;
}

[data-theme="light"] .contact-chip:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.28);
  color: #0f172a;
  box-shadow: none;
  transform: translateY(-1px);
}



.copy-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--bg-pill);
  border-radius: 0 !important;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   INTERACTIVE CALCULATOR DEMO WIDGET
   -------------------------------------------------------------------------- */
.calculator-section {
  background: var(--bg-primary);
}


.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

#calculator .bento-card,
.calc-inputs-card,
.calc-output-card {
  border-radius: 0 !important;
  transition: none !important;
}

#calculator .bento-card:hover,
#calculator .calc-inputs-card:hover {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: none !important;
}

.calc-inputs-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-group-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-radio-label {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  cursor: pointer;
  transition: none !important;
}

.calc-radio-label:hover {
  background: var(--bg-input) !important;
  border-color: var(--border-color) !important;
}

.calc-radio-label input[type="radio"] {
  display: none;
}

.calc-radio-label:has(input[type="radio"]:checked) {
  border-color: var(--brand-primary) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.calc-radio-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
}

.calc-radio-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-dropdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-select:focus {
  border-color: var(--brand-primary);
}

.calc-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: none !important;
}

.calc-checkbox-label:hover {
  background: var(--bg-input) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

.calc-checkbox-label input[type="checkbox"] {
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
}

.calc-output-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  padding: 36px;
  transition: none !important;
}

#calculator .calc-output-card:hover {
  background: var(--bg-card-solid) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: none !important;
}


.calc-curr-switcher {
  display: flex;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 0 !important;
  width: fit-content;
  margin-bottom: 24px;
}

.calc-curr-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: 0 !important;
  transition: all var(--transition-fast);
}

.calc-curr-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
}

.calc-price-box {
  margin-bottom: 24px;
}

.calc-price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-big-price {
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#calc-total-price {
  font-weight: 400;
}

.calc-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.calc-metric-item span:first-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.calc-metric-item span:last-child {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   SKILLS & ARCHITECTURE MATRIX (Pure White Section - Minimal Clean)
   -------------------------------------------------------------------------- */
.skills-section,
#skills {
  background: #ffffff !important;
  color: #1C1C1C !important;
  position: relative;
  border: none !important;
}

#skills .section-title {
  color: #111827 !important;
}

#skills .section-subtitle {
  color: #4b5563 !important;
}

#skills .section-pretitle {
  color: var(--brand-blue) !important;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

#skills .skill-category-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 28px 24px !important;
  transition: none !important;
}

#skills .skill-category-card:hover {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

#skills .skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111827;
}

#skills .skill-category-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue) !important;
  border: none !important;
  flex-shrink: 0;
}

#skills .skill-category-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #111827 !important;
}

#skills .skill-pills-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

#skills .skill-pill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;
  font-size: 0.92rem;
  color: #222222 !important;
  font-weight: 500;
  transition: none !important;
}

#skills .skill-pill-item:hover {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #222222 !important;
  transform: none !important;
  box-shadow: none !important;
}

#skills .skill-level-tag {
  font-size: 0.74rem;
  padding: 0;
  background: transparent !important;
  color: var(--brand-orange) !important;
  border: none !important;
  font-family: var(--font-mono);
  font-weight: 400;
  margin-left: auto;
  white-space: nowrap;
}





/* --------------------------------------------------------------------------
   PROJECTS SHOWCASE & FILTERING
   -------------------------------------------------------------------------- */
.projects-control-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.filter-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.filter-btn:hover svg {
  opacity: 1;
}

.filter-btn.active {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue) !important;
  box-shadow: none;
}

.filter-btn.active svg {
  opacity: 1;
}

.projects-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.search-input-wrapper {
  position: relative;
  min-width: 250px;
  display: flex;
  align-items: center;
  border-radius: 0 !important;
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 40px !important;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
}

.search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: none;
}

.search-icon-svg,
.search-input-wrapper .search-icon-svg,
.sp-reveal-card > .search-icon-svg {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--text-muted) !important;
  pointer-events: none !important;
  z-index: 10 !important;
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .search-icon-svg,
[data-theme="light"] .search-input-wrapper .search-icon-svg {
  color: #64748b !important;
}

.projects-view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 0 !important;
  transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.view-toggle-btn.active {
  background: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  color: #ffffff !important;
}

.filtered-count-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
  transition: none !important;
  cursor: default;
}

.project-card:hover {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  transform: none !important;
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

.project-thumb-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 400;
  padding: 4px 10px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 0 !important;
  letter-spacing: 0.02em;
}

.project-content-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.project-card {
  cursor: pointer;
}

.project-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.project-title-link:hover {
  color: var(--brand-blue) !important;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827 !important;
  line-height: 1.35;
  margin: 0;
}

.project-desc {
  font-size: 0.92rem;
  color: #4b5563 !important;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.project-impact-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: #f8fafc !important;
  border-radius: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-left: 3px solid var(--brand-blue) !important;
  margin: 0;
}

.impact-text {
  font-size: 0.84rem;
  font-weight: 400;
  color: #1f2937 !important;
  line-height: 1.45;
}

.project-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: auto;
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--brand-blue) !important;
  border-radius: 0 !important;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: none !important;
  text-decoration: none;
}

.btn-card-details:hover {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue) !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-card-details svg {
  flex-shrink: 0;
  color: #ffffff !important;
  stroke: #ffffff !important;
  transition: none !important;
}

.btn-card-details:hover svg {
  transform: none !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.empty-projects-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: 0 !important;
  border: 1px dashed var(--border-color);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   PROJECTS LIST VIEW LAYOUT
   ========================================================================== */
.projects-grid.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.projects-grid.is-list-view .project-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  width: 100%;
  min-height: 220px;
}

.projects-grid.is-list-view .project-thumb-wrap {
  height: 100%;
  min-height: 200px;
  border-bottom: none;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-grid.is-list-view .project-content-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.projects-grid.is-list-view .project-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.projects-grid.is-list-view .btn-card-details {
  width: auto;
  min-width: 220px;
  padding: 11px 24px;
}

@media (max-width: 768px) {
  .projects-actions-right {
    width: 100%;
    justify-content: space-between;
  }
  .projects-grid.is-list-view .project-card {
    display: flex;
    flex-direction: column;
  }
  .projects-grid.is-list-view .project-thumb-wrap {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }
  .projects-grid.is-list-view .btn-card-details {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   PROJECTS AJAX LOAD MORE & CARD ANIMATIONS
   -------------------------------------------------------------------------- */
.projects-grid.is-filtering {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.sp-card-fade-in {
  animation: spCardFadeIn 0.35s ease-out forwards;
}

@keyframes spCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 14px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 0 !important;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-load-more:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 56, 251, 0.12);
}

.btn-load-more.is-loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.load-more-spinner {
  animation: spSpinnerRotate 0.8s linear infinite;
  color: var(--brand-blue);
}

@keyframes spSpinnerRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.all-loaded-msg {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
}

[data-theme="light"] .all-loaded-msg {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}


/* --------------------------------------------------------------------------
   EXPERIENCE & AWARDS TIMELINE (Pure White Section)
   -------------------------------------------------------------------------- */
.experience-section,
#experience {
  background: #ffffff !important;
  color: #1C1C1C !important;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#experience .section-title {
  color: #111827 !important;
}

#experience .section-subtitle {
  color: #4b5563 !important;
}

#experience .section-pretitle {
  color: var(--brand-blue) !important;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 15px;
  width: 2px;
  background: rgba(0, 0, 0, 0.1) !important;
}

.timeline-item {
  position: relative;
  padding-left: 48px;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 3px solid var(--brand-blue) !important;
  box-shadow: 0 0 0 4px rgba(22, 56, 251, 0.15) !important;
}

.timeline-item-header {
  margin-bottom: 8px;
}

.timeline-role-title {
  font-size: 1.22rem;
  font-weight: 600;
  color: #111827 !important;
}

.timeline-company-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--brand-blue) !important;
  margin-top: 2px;
  font-weight: 400;
}

.timeline-date-badge {
  font-size: 0.78rem;
  color: #6b7280 !important;
  font-family: var(--font-mono);
  font-weight: 500;
}

.timeline-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}

.timeline-bullet-list li {
  position: relative;
  font-size: 0.92rem;
  color: #374151 !important;
  line-height: 1.6;
  padding-left: 18px;
}

.timeline-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-blue) !important;
  font-weight: 400;
}

/* Awards Cards */
.awards-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.award-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  border-radius: 0 !important;
}

.award-card:hover {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  transform: none !important;
}

.award-trophy-icon {
  width: 48px;
  height: 48px;
  border-radius: 0 !important;
  background: rgba(243, 87, 0, 0.08) !important;
  border: 1px solid rgba(243, 87, 0, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange) !important;
  flex-shrink: 0;
  transition: none !important;
}

.award-card:hover .award-trophy-icon {
  background: rgba(243, 87, 0, 0.08) !important;
  color: var(--brand-orange) !important;
  border-color: rgba(243, 87, 0, 0.2) !important;
  box-shadow: none !important;
  transform: none !important;
}

.award-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827 !important;
  margin-bottom: 4px;
}

.award-issuer {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--brand-orange) !important;
  margin-bottom: 6px;
}

.award-desc {
  font-size: 0.88rem;
  color: #4b5563 !important;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   EDUCATION & CERTIFICATIONS
   -------------------------------------------------------------------------- */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#education .bento-card,
.edu-cert-grid .bento-card {
  border-radius: 0 !important;
}

.edu-item, .cert-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child, .cert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
}

.edu-school {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   CONTACT SECTION & FOOTER (Pure White Section)
   -------------------------------------------------------------------------- */
.contact-section,
#contact {
  background: #ffffff !important;
  color: #1C1C1C !important;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#contact .section-title {
  color: #111827 !important;
}

#contact .section-subtitle {
  color: #4b5563 !important;
}

#contact .section-pretitle {
  color: var(--brand-blue) !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.contact-direct-item:hover {
  border-color: rgba(22, 56, 251, 0.35) !important;
  background: #ffffff !important;
  transform: none !important;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0 !important;
  background: rgba(22, 56, 251, 0.08) !important;
  border: 1px solid rgba(22, 56, 251, 0.16) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue) !important;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.78rem;
  color: #6b7280 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.contact-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827 !important;
}

#contact .bento-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  border-radius: 0 !important;
  padding: 32px !important;
}

#contact .bento-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.09) !important;
  transform: none !important;
}

#contact .bento-card h3 {
  color: #111827 !important;
}

#contact .bento-card p {
  color: #4b5563 !important;
}

#contact .btn-primary {
  border-radius: 0 !important;
}

#contact .btn-outline {
  border-radius: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #1f2937 !important;
}

#contact .btn-outline:hover {
  border-color: var(--brand-blue) !important;
  color: var(--brand-blue) !important;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}



/* --------------------------------------------------------------------------
   PROJECT MODAL DIALOG
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1000;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color-hover);
  border-radius: 0 !important;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 40px;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.modal-project-header {
  margin-bottom: 24px;
}

.modal-meta-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.modal-tagline {
  font-size: 1.05rem;
  color: var(--text-accent);
  font-weight: 500;
}

.modal-impact-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0 !important;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.modal-impact-banner .icon {
  font-size: 1.5rem;
}

.modal-section {
  margin-bottom: 26px;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal-overview-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 700;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-domain {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.modal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.code-confidential-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color-hover);
  border-radius: 0 !important;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-message.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-check {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-grid,
  .calculator-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-main-card {
    padding: 28px 20px;
  }

  .hero-stats-grid,
  .calc-radio-grid,
  .calc-dropdown-row,
  .edu-cert-grid {
    grid-template-columns: 1fr;
  }

  .projects-control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper {
    width: 100%;
    min-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    padding: 24px;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* --------------------------------------------------------------------------
   WORDPRESS ADMIN BAR AUTO-HIDE & TOP PULL-DOWN
   -------------------------------------------------------------------------- */
html {
  margin-top: 0 !important;
}

* html body {
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
}

body.admin-bar .site-header {
  top: 0 !important;
}

#wpadminbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease !important;
}

/* Top 6px trigger strip */
body.admin-bar::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 999998;
  pointer-events: auto;
}

/* Pull down on top hover or when focusing inside adminbar */
body.admin-bar.wpadminbar-visible #wpadminbar,
#wpadminbar:hover,
#wpadminbar:focus-within {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   FULL-WIDTH SINGLE PROJECT CASE STUDY PAGE (MINIMALIST DESIGN)
   ========================================================================== */
.sp-single-case-study.sp-minimal-layout {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 0;
}

.sp-case-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
}

@media (max-width: 768px) {
  .sp-case-container {
    padding: 0 20px;
  }
}

/* Unstick Main Header on Single Project page so it scrolls away as Case Topbar sticks */
body.single-portfolio_project .site-header {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
  box-shadow: none !important;
}

/* Topbar & Breadcrumbs (Sticky at top: 0) */
.sp-case-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: all var(--transition-fast);
}

[data-theme="light"] .sp-case-topbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.sp-case-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-case-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  min-width: 0;
}

.sp-case-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.sp-case-breadcrumbs a:hover {
  color: var(--brand-blue);
}

.sp-case-breadcrumbs .sep {
  color: var(--border-color);
}

.sp-case-breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.sp-case-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sp-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0 !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}

.sp-topbar-btn svg {
  flex-shrink: 0;
}

.sp-topbar-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--bg-card-hover);
}

/* Inquire CTA Button */
.sp-topbar-btn-inquire {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue) !important;
}

.sp-topbar-btn-inquire svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.sp-topbar-btn-inquire:hover {
  background: var(--brand-dark-blue) !important;
  border-color: var(--brand-dark-blue) !important;
  color: #ffffff !important;
}

/* Live Website Button */
.sp-topbar-btn-live {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.sp-topbar-btn-live svg {
  stroke: var(--accent-emerald);
}

.sp-topbar-btn-live:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

@media (max-width: 768px) {
  .sp-case-breadcrumbs .current {
    max-width: 140px;
  }
  .sp-hide-mobile {
    display: none;
  }
  .sp-topbar-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* Clean Hero Section with Background Animation Canvas */
.sp-case-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 64px;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}

.sp-case-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.sp-case-hero .sp-case-container {
  position: relative;
  z-index: 2;
}

.sp-case-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: 12px;
  flex-wrap: wrap;
  text-transform: capitalize;
}

.sp-meta-dot {
  color: var(--text-muted);
  opacity: 0.5;
}

.sp-case-hero-badge-wrap {
  margin-bottom: 12px;
}

.sp-badge-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(22, 56, 251, 0.08);
  border: 1px solid rgba(22, 56, 251, 0.2);
  border-radius: 0;
  color: var(--brand-blue);
  letter-spacing: 0.03em;
  text-transform: capitalize;
}

.sp-case-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
}

.sp-case-hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 960px;
  margin: 0 0 16px 0;
}

.sp-case-hero-overview {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 960px;
  margin: 0 0 28px 0;
}

.sp-case-hero-overview p {
  margin-bottom: 14px;
}

.sp-case-hero-overview p:last-child {
  margin-bottom: 0;
}

[data-theme="light"] .sp-case-hero-overview {
  color: #374151;
}

.sp-case-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-sp-clean {
  border-radius: 0 !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  transition: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* ==========================================================================
   FULL-WIDTH SPECIFICATION STRIP SECTION (PURE WHITE BACKGROUND)
   ========================================================================== */
.sp-case-specs-section {
  background: #ffffff !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0;
  width: 100%;
}

[data-theme="dark"] .sp-case-specs-section {
  background: #ffffff !important;
}

.sp-specs-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.sp-specs-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  display: block;
}

.sp-specs-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: #111827 !important;
  margin: 6px 0 8px 0;
  letter-spacing: -0.01em;
}

.sp-specs-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563 !important;
  max-width: 620px;
  margin: 0 auto;
}

.sp-case-specs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.sp-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 22px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 !important;
  width: calc(20% - 16px);
  min-width: 180px;
  max-width: 240px;
  flex: 1 1 180px;
  transition: none !important;
  cursor: default;
}

.sp-spec-item:hover {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

.sp-spec-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
  border-radius: 0;
  margin-bottom: 4px;
  color: var(--brand-orange) !important;
}

.sp-spec-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand-orange) !important;
  color: var(--brand-orange) !important;
  display: block;
}

.sp-spec-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: #111827 !important;
  line-height: 1.25;
  margin: 0;
}

.sp-spec-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: #6b7280 !important;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .sp-case-specs-bar {
    gap: 14px;
  }
  .sp-spec-item {
    width: calc(50% - 7px);
    min-width: 140px;
    padding: 18px 14px;
  }
}

/* Main Body Layout */
.sp-case-main-body {
  padding: 48px 0 72px;
}

.sp-case-grid-layout {
  display: block;
  width: 100%;
}

.sp-case-primary-col {
  width: 100%;
}

/* Featured Media */
.sp-case-featured-media {
  width: 100%;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border-color);
  border-radius: 0 !important;
}

.sp-case-hero-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

/* Minimal Engineering Impact Box (Hero bottom integration) */
.sp-case-impact-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-left: 3px solid var(--brand-orange) !important;
  border-radius: 0 !important;
  margin-top: 28px;
  margin-bottom: 0;
  max-width: 960px;
}

[data-theme="light"] .sp-case-impact-box {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.sp-case-impact-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-case-impact-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  font-family: var(--font-mono);
  display: block;
}

.sp-case-impact-title {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-primary) !important;
  line-height: 1.35;
  margin: 0;
}

[data-theme="light"] .sp-case-impact-title {
  color: #111827 !important;
}

.sp-case-impact-desc {
  font-size: 0.92rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  margin-top: 4px;
}

[data-theme="light"] .sp-case-impact-desc {
  color: #4b5563 !important;
}

/* Editorial Content Sections (Flat, no card boxes) */
.sp-case-content-section {
  margin-bottom: 40px;
}

.sp-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.01em;
}

.sp-case-prose {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.sp-case-prose p {
  margin-bottom: 1.2em;
}

.sp-case-prose p:last-child {
  margin-bottom: 0;
}

.sp-case-prose strong {
  color: var(--text-primary);
}

/* Centered Key Features & Engineering Implementation Section */
.sp-case-features-section {
  margin-bottom: 56px;
}

.sp-features-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.sp-features-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  display: block;
}

[data-theme="dark"] .sp-features-pretitle {
  color: var(--brand-orange);
}

.sp-features-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 6px 0 8px 0;
  letter-spacing: -0.01em;
}

.sp-features-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.sp-features-wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* Feature Checkmark List */
.sp-case-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.sp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 0 !important;
}

[data-theme="light"] .sp-feature-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.07);
}

.sp-feature-check {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-feature-heading {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   INTERACTIVE FULL-PAGE WEBSITE SCREENSHOT MOCKUPS (FULL-WIDTH WHITE BACKGROUND)
   ========================================================================== */
.sp-case-previews-section {
  background: #ffffff !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0;
  width: 100%;
}

[data-theme="dark"] .sp-case-previews-section {
  background: #ffffff !important;
}

.sp-previews-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.sp-previews-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  display: block;
}

.sp-previews-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: #111827 !important;
  margin: 6px 0 8px 0;
  letter-spacing: -0.01em;
}

.sp-previews-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563 !important;
  max-width: 680px;
  margin: 0 auto;
}

.sp-browser-window-card {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--bg-surface);
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.sp-browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.sp-browser-left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sp-browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.sp-dot-red { background: #ef4444; opacity: 0.85; }
.sp-dot-yellow { background: #f59e0b; opacity: 0.85; }
.sp-dot-green { background: #10b981; opacity: 0.85; }

.sp-browser-nav-arrows,
.sp-lightbox-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-browser-nav-btn,
.sp-lightbox-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 16px;
  font-weight: 700;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0 !important;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  line-height: 1;
  padding: 0;
}

.sp-browser-nav-btn:hover,
.sp-lightbox-arrow-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.sp-browser-url-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-browser-page-counter,
.sp-lightbox-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 6px;
  flex-shrink: 0;
}

.sp-browser-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sp-browser-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0 !important;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.sp-browser-action-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.sp-browser-viewport-wrap {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.sp-browser-scroll-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden !important;
  background: #090a0f;
  user-select: none;
  pointer-events: none;
}

.sp-browser-page-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* Click to View in Full Screen Overlay */
.sp-browser-fullscreen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 5;
}

.sp-browser-viewport-wrap:hover .sp-browser-fullscreen-overlay,
.sp-browser-viewport-wrap:focus .sp-browser-fullscreen-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
}

.sp-fs-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(17, 24, 39, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(8px);
  transition: transform 0.25s ease, background-color var(--transition-fast), border-color var(--transition-fast);
}

.sp-fs-overlay-badge svg {
  color: var(--brand-orange);
  stroke: var(--brand-orange);
  flex-shrink: 0;
}

.sp-browser-viewport-wrap:hover .sp-fs-overlay-badge {
  transform: translateY(0);
  background: #000000;
  border-color: var(--brand-orange);
}

/* Fullscreen High-Resolution Lightbox Modal (100% Full Width) */
.sp-preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.94);
}

.sp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.sp-lightbox-dialog {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #090a0f;
  border: none;
  display: flex;
  flex-direction: column;
  z-index: 2;
  border-radius: 0 !important;
  overflow: hidden;
}

.sp-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  gap: 16px;
  flex-shrink: 0;
}

.sp-lightbox-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sp-lightbox-close-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
  transition: color var(--transition-fast);
}

.sp-lightbox-close-btn:hover {
  color: var(--brand-blue);
}

.sp-lightbox-body-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background: #000000;
  width: 100%;
  display: block;
}

.sp-lightbox-full-img {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* Right Sidebar (Clean Flat Layout) */
.sp-case-sidebar-col {
  position: relative;
}

.sp-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sp-sidebar-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.sp-sidebar-heading {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sp-tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-tech-pill {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 4px 8px;
  background: rgba(22, 56, 251, 0.08);
  color: var(--text-primary);
  border-radius: 0 !important;
  border: 1px solid var(--border-color);
}

.sp-sidebar-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 !important;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.sp-sidebar-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.sp-sidebar-confidential-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.sp-sidebar-body-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   FULL-WIDTH TECHNOLOGY STACK SECTION (BLACK BACKGROUND)
   ========================================================================== */
.sp-case-tech-section {
  background: #000000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 64px 0;
  position: relative;
}

[data-theme="light"] .sp-case-tech-section,
[data-theme="dark"] .sp-case-tech-section {
  background: #000000 !important;
}

.sp-tech-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.sp-tech-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  font-family: var(--font-mono);
  display: block;
}

.sp-tech-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff !important;
  margin: 6px 0 8px 0;
  letter-spacing: -0.01em;
}

.sp-tech-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #9ca3af !important;
  max-width: 620px;
  margin: 0 auto;
}

/* Center-Aligned Responsive Tech Cards Grid */
.sp-tech-grid-wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.sp-tech-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.sp-tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 22px;
  background: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 !important;
  width: calc(25% - 15px);
  min-width: 190px;
  max-width: 260px;
  flex: 1 1 190px;
  transition: none !important;
  cursor: default;
}

.sp-tech-card:hover {
  background: #0b0c10 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  transform: none !important;
}

.sp-tech-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  border-radius: 0;
  margin-bottom: 4px;
}

.sp-tech-card-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.sp-tech-card-name {
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff !important;
  line-height: 1.25;
  margin: 0;
}

.sp-tech-card-role {
  font-size: 0.74rem;
  font-weight: 500;
  color: #9ca3af !important;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .sp-tech-cards-grid {
    gap: 14px;
  }
  .sp-tech-card {
    width: calc(50% - 7px);
    min-width: 140px;
    padding: 18px 14px;
  }
}

/* ==========================================================================
   FULL-WIDTH ARCHITECTURE INQUIRY & CTA BANNER (PURE WHITE BACKGROUND)
   ========================================================================== */
.sp-case-fullwidth-cta {
  background: #ffffff !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 56px 0;
  position: relative;
}

[data-theme="light"] .sp-case-fullwidth-cta,
[data-theme="dark"] .sp-case-fullwidth-cta {
  background: #ffffff !important;
}

.sp-case-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.sp-case-cta-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 720px;
}

.sp-case-cta-pretitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-family: var(--font-mono);
}

.sp-case-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: #111827 !important;
  margin: 0;
  letter-spacing: -0.01em;
}

.sp-case-cta-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563 !important;
  margin: 4px 0 0 0;
}

.sp-case-cta-action {
  flex-shrink: 0;
}

.sp-cta-btn-large {
  padding: 14px 28px !important;
  font-size: 0.95rem !important;
}

@media (max-width: 860px) {
  .sp-case-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Minimal Bottom Navigation */
.sp-case-bottom-nav {
  border-top: 1px solid var(--border-color);
  padding: 32px 0 48px;
  background: transparent;
}

.sp-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sp-bottom-nav-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: color var(--transition-fast);
}

.sp-bottom-nav-col.is-next {
  text-align: right;
}

.sp-nav-dir {
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
}

.sp-nav-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.sp-bottom-nav-link:hover .sp-nav-title {
  color: var(--brand-blue);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sp-case-grid-layout {
    display: block;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sp-case-specs-bar {
    gap: 16px 12px;
  }
  .sp-spec-item {
    flex: 0 1 calc(50% - 8px);
    width: calc(50% - 8px);
    min-width: 130px;
    padding: 8px 4px;
  }
  .sp-bottom-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sp-bottom-nav-col.is-next {
    text-align: left;
  }
}

/* Dark Theme Overrides for Impact Box */
[data-theme="dark"] .sp-case-impact-box,
body:not([data-theme="light"]) .sp-case-impact-box {
  background: #14151b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .sp-case-impact-title,
body:not([data-theme="light"]) .sp-case-impact-title {
  color: #ffffff !important;
}

[data-theme="dark"] .sp-case-impact-desc,
body:not([data-theme="light"]) .sp-case-impact-desc {
  color: #a5a5a5 !important;
}

/* ==========================================================================
   WINDOWS 10 FLUENT UI REVEAL SPOTLIGHT EFFECT (PROXIMITY-AWARE)
   ========================================================================== */
.sp-reveal-card {
  position: relative;
  overflow: hidden;
  --mouse-x: -999px;
  --mouse-y: -999px;
  --spotlight-opacity: 0;
}

/* 1. Subtle Inner Surface Illumination */
.sp-reveal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 255, 255, 0.06),
    transparent 75%
  );
  pointer-events: none;
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.2s ease;
  z-index: 1;
}

/* 2. Crisp Glowing Border Highlight (Follows mouse cursor from inside and outside) */
.sp-reveal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    180px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(243, 87, 0, 0.55),
    rgba(255, 255, 255, 0.2) 40%,
    transparent 70%
  );
  -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: var(--spotlight-opacity, 0);
  transition: opacity 0.2s ease;
  z-index: 2;
}

/* Content stays above spotlight layers */
.sp-reveal-card > * {
  position: relative;
  z-index: 3;
}

/* Light Container & Theme Adaptation */
[data-theme="light"] .sp-reveal-card::before,
.sp-case-specs-section .sp-reveal-card::before {
  background: radial-gradient(
    240px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(22, 56, 251, 0.04),
    transparent 75%
  );
}

[data-theme="light"] .sp-reveal-card::after,
.sp-case-specs-section .sp-reveal-card::after {
  background: radial-gradient(
    180px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(22, 56, 251, 0.45),
    rgba(243, 87, 0, 0.2) 40%,
    transparent 70%
  );
}

/* ==========================================================================
   GROQ AI CHATBOT WIDGET & HEADER TRIGGER
   ========================================================================== */
.btn-ai-chat {
  background: rgba(22, 56, 251, 0.12);
  color: #ffffff;
  border: 1px solid rgba(22, 56, 251, 0.4);
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ai-chat .ai-spark-icon {
  color: var(--brand-orange);
  animation: aiSparkPulse 2s infinite ease-in-out;
}

.btn-ai-chat:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.btn-ai-chat:hover .ai-spark-icon {
  color: #ffffff;
}

[data-theme="light"] .btn-ai-chat {
  background: rgba(22, 56, 251, 0.08);
  color: var(--brand-blue);
  border-color: rgba(22, 56, 251, 0.25);
}

[data-theme="light"] .btn-ai-chat:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

@keyframes aiSparkPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--brand-orange));
  }
}

/* Floating FAB Trigger Button */
.sp-chat-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.sp-chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 0 !important;
  background: #000000;
  border: 2px solid var(--brand-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 28px rgba(22, 56, 251, 0.35);
  transition: all var(--transition-fast);
}

.sp-chat-fab:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 56, 251, 0.5);
}

.sp-chat-fab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 0 !important;
  border: 1px solid #000000;
}

.sp-chat-fab .sp-chat-fab-icon-close {
  display: none;
}

.sp-chat-widget-container.is-open .sp-chat-fab {
  background: #1c1c1c;
  border-color: var(--brand-orange);
}

.sp-chat-widget-container.is-open .sp-chat-fab .sp-chat-fab-icon-open {
  display: none;
}

.sp-chat-widget-container.is-open .sp-chat-fab .sp-chat-fab-icon-close {
  display: block;
}

/* Chat Modal Window Panel */
.sp-chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: rgba(13, 14, 18, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 24px rgba(22, 56, 251, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 10000;
}

.sp-chat-widget-container.is-open .sp-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

[data-theme="light"] .sp-chat-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1), 0 0 24px rgba(22, 56, 251, 0.08);
}

/* Full Width / Maximized Chat Mode */
.sp-chat-panel.is-fullwidth {
  position: fixed !important;
  top: 24px !important;
  bottom: 24px !important;
  left: 24px !important;
  right: 24px !important;
  width: calc(100vw - 48px) !important;
  max-width: 1400px !important;
  height: calc(100vh - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  margin: 0 auto !important;
  z-index: 100000 !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 35px rgba(22, 56, 251, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sp-chat-panel.is-fullwidth .sp-icon-expand {
  display: none !important;
}

.sp-chat-panel.is-fullwidth .sp-icon-compress {
  display: block !important;
}

.sp-chat-panel.is-fullwidth .sp-chat-messages {
  padding: 24px 36px;
}

.sp-chat-panel.is-fullwidth .sp-chat-bubble {
  max-width: 78%;
}

.sp-chat-panel.is-fullwidth .sp-chat-quick-prompts .sp-quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.sp-chat-panel.is-fullwidth .sp-chat-input-form {
  padding: 16px 36px;
}

@media (max-width: 768px) {
  .sp-chat-panel.is-fullwidth {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }

  .sp-chat-panel.is-fullwidth .sp-chat-messages {
    padding: 16px;
  }

  .sp-chat-panel.is-fullwidth .sp-chat-bubble {
    max-width: 90%;
  }

  .sp-chat-panel.is-fullwidth .sp-chat-input-form {
    padding: 12px 16px;
  }
}

/* Chat Header */
.sp-chat-header {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

[data-theme="light"] .sp-chat-header {
  background: rgba(248, 250, 252, 0.7);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.sp-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-chat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(22, 56, 251, 0.35);
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  position: relative;
  flex-shrink: 0;
}

[data-theme="light"] .sp-chat-avatar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 56, 251, 0.25);
}

.sp-chat-status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  border: 1px solid #000000;
}

.sp-chat-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-chat-bot-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.sp-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-chat-tool-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 0 !important;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sp-chat-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

[data-theme="light"] .sp-chat-tool-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Chat Messages Scroll Area */
.sp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
}

[data-theme="light"] .sp-chat-messages {
  background: transparent;
}

.sp-chat-bubble-wrap {
  display: flex;
  gap: 10px !important;
  margin: 10px;
  flex-direction: column;
  width: 100%;
}

.sp-chat-bubble-wrap.is-user {
  align-items: flex-end;
}

.sp-chat-bubble-wrap.is-bot {
  align-items: flex-start;
}

.sp-chat-bubble {
  max-width: 88%;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  border-radius: 0 !important;
  word-break: break-word;
}

.sp-chat-bubble p {
  margin-bottom: 8px;
}

.sp-chat-bubble p:last-child {
  margin-bottom: 0;
}

.sp-chat-bubble ul, .sp-chat-bubble ol {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.sp-chat-bubble li {
  margin-bottom: 4px;
}

.sp-chat-bubble code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 5px;
  border-radius: 0 !important;
  color: #ffcc80;
}

.sp-chat-bubble strong {
  color: inherit;
  font-weight: 600;
}

.sp-chat-bubble a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.sp-chat-bubble-wrap.is-user .sp-chat-bubble {
  background: var(--brand-blue);
  color: #ffffff;
  border: 1px solid var(--brand-blue);
}

.sp-chat-bubble-wrap.is-bot .sp-chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .sp-chat-bubble-wrap.is-bot .sp-chat-bubble {
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

/* Quick Prompt Suggestions */
.sp-chat-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.sp-quick-prompt-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-quick-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-quick-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-align: left;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sp-quick-chip:hover {
  background: rgba(22, 56, 251, 0.15);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateX(2px);
}

[data-theme="light"] .sp-quick-chip {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

[data-theme="light"] .sp-quick-chip:hover {
  background: rgba(22, 56, 251, 0.1);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Typing Indicator */
.sp-chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.sp-typing-bubble {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 0 !important;
}

.sp-typing-bubble span {
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  border-radius: 50%;
  animation: typingBlink 1.4s infinite ease-in-out both;
}

.sp-typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.sp-typing-bubble span:nth-child(2) { animation-delay: -0.16s; }
.sp-typing-bubble span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBlink {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

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

.sp-typing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--brand-blue);
  margin-left: 4px;
  vertical-align: -2px;
  border-radius: 0 !important;
  animation: typingCursorBlink 0.7s infinite;
}

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

/* Chat Input Bar */
.sp-chat-input-form {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

[data-theme="light"] .sp-chat-input-form {
  background: rgba(248, 250, 252, 0.7);
  border-top-color: rgba(0, 0, 0, 0.06);
}

.sp-chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0px 0px 0px 0px;
  border-radius: 0 !important;
}

[data-theme="light"] .sp-chat-input-row {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
}

.sp-chat-input-row:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

textarea#sp-chat-textarea,
.sp-chat-textarea {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  resize: none;
  padding: 10px;
  max-height: 90px;
}

textarea#sp-chat-textarea:focus,
.sp-chat-textarea:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] textarea#sp-chat-textarea,
[data-theme="light"] .sp-chat-textarea {
  color: #0f172a;
}

.sp-chat-send-btn {
  width: 45px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #ffffff;
  border: 1px solid var(--brand-blue);
  border-radius: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.sp-chat-send-btn:hover {
  background: var(--brand-dark-blue);
  border-color: var(--brand-dark-blue);
}

.sp-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sp-chat-footer-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 480px) {
  .sp-chat-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
  }
}

