/* ==========================================================================
   ISLAM YASSER — DATA ANALYST PORTFOLIO STYLESHEET
   Pure Modern CSS3 | Zero External Frameworks | Responsive | Dark & Light Modes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #131d35;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 34, 62, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-color: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(6, 182, 212, 0.45);
  --border-accent: rgba(59, 130, 246, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-cyan-dark: #0891b2;
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.22);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.22);
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-cyan-blue: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-card: linear-gradient(145deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.18);

  /* Layout & Sizing */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'SF Mono', Menlo, Monaco, 'Courier New', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
html[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);

  --border-color: rgba(203, 213, 225, 0.85);
  --border-hover: rgba(6, 182, 212, 0.7);
  --border-accent: rgba(59, 130, 246, 0.45);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.18);
  --accent-cyan-dark: #0e7490;
  --accent-blue: #2563eb;
  --accent-blue-glow: rgba(37, 99, 235, 0.18);
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.18);
  --accent-amber: #d97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.18);

  --grad-primary: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #7c3aed 100%);
  --grad-cyan-blue: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(8, 145, 178, 0.08) 0%, transparent 70%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(8, 145, 178, 0.15);
  --shadow-card-hover: 0 16px 32px rgba(0, 0, 0, 0.12), 0 0 15px rgba(8, 145, 178, 0.12);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Background Subtle Grid Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Selection Color */
::selection {
  background-color: var(--accent-cyan);
  color: #090d16;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Prevent CSS Grid & Flex items from expanding beyond parent width */
.hero-container > *,
.about-grid > *,
.skills-grid > *,
.projects-grid > *,
.workflow-steps-grid > *,
.services-grid > *,
.education-grid > *,
.contact-grid > *,
.footer-container > * {
  min-width: 0;
  max-width: 100%;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.text-center {
  text-align: center;
}

.text-cyan { color: var(--accent-cyan); }
.text-blue { color: var(--accent-blue); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }

.text-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 35%, #8b5cf6 70%, #06b6d4 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradientShift 9s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphic Card Surface */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

/* Dynamic Interactive Cursor Spotlight */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(6, 182, 212, 0.12),
    transparent 55%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

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

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.glass-card > * {
  position: relative;
  z-index: 2;
}

/* Section Header Structure */
.section-header {
  margin-bottom: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
  transform: rotate(25deg) translate(350%, 0);
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #090d16;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45);
  color: #090d16;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(6, 182, 212, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

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

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation Links (Desktop) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Nav Actions: Theme Toggle & Hamburger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.theme-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: rotate(15deg);
}

/* Icon Switching based on theme */
html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }

/* Mobile Menu Hamburger Button */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  gap: 5px;
  padding: 0;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   Reading Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue) 50%, #8b5cf6 100%);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.65);
  z-index: 10000;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Background Ambient Floating Mesh Orbs
   -------------------------------------------------------------------------- */
.bg-ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.16;
  will-change: transform;
}

html[data-theme="light"] .ambient-orb {
  opacity: 0.10;
  filter: blur(105px);
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  top: -120px;
  left: -140px;
  animation: floatOrb1 26s ease-in-out infinite alternate;
}

.orb-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
  top: 42%;
  right: -220px;
  animation: floatOrb2 30s ease-in-out infinite alternate;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  bottom: 8%;
  left: 15%;
  animation: floatOrb3 34s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(110px, 130px) scale(1.12); }
  100% { transform: translate(50px, 40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-140px, -90px) scale(1.15); }
  100% { transform: translate(-50px, 70px) scale(0.94); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, -110px) scale(1.1); }
  100% { transform: translate(-70px, -50px) scale(0.96); }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 35%, transparent 100%);
  opacity: 0.85;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 1.5px solid var(--accent-cyan);
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Quick Highlights Strip */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(6px);
}

.highlight-pill svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* CTAs & Social Links */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-quick-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Hero Interactive Mockup: Analytical Dashboard Card
   -------------------------------------------------------------------------- */
.hero-visual {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.dashboard-mockup {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 13, 22, 0.95) 100%);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

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

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

.mockup-title-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-title-tab svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mockup-status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.mini-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* Mockup Header Actions */
.mockup-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mockup-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mockup-refresh-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
  transform: scale(1.03);
}

.mockup-refresh-btn:active {
  transform: scale(0.97);
}

.refresh-icon.is-spinning {
  animation: spinRefresh 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mockup-dots .dot {
  cursor: pointer;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.mockup-dots .dot:hover {
  transform: scale(1.25);
  filter: brightness(1.25);
}

/* DAX Formula Bar */
.dax-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 1rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.dax-bar:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.dax-fx {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-cyan);
  padding-right: 0.4rem;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dax-code-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.dax-code-wrap::-webkit-scrollbar {
  display: none;
}

.dax-code {
  color: #38bdf8;
  font-family: var(--font-mono);
  display: inline-block;
  transition: opacity 0.2s ease;
}

.dax-code.dax-fade {
  opacity: 0.3;
}

.copy-dax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  position: relative;
}

.copy-dax-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  padding: 0.2rem 0.45rem;
  background: #090d16;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  font-family: var(--font-sans);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10;
}

.copy-dax-btn:hover .copy-tooltip,
.copy-dax-btn.copied .copy-tooltip {
  opacity: 1;
}

/* Mockup Metric Grid */
.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric-card {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
  user-select: none;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.metric-card.active-kpi-card {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.metric-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}

.pill-up {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.pill-neutral {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.15);
}

.pill-emerald {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
}

.pill-blue {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Mockup Chart Area */
.mockup-chart-area {
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  position: relative;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chart-title {
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-legend {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-cyan { background: var(--accent-cyan); }
.dot-amber { background: var(--accent-amber); }

.svg-chart-container {
  width: 100%;
  height: 110px;
  position: relative;
  cursor: crosshair;
}

.chart-tooltip-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -100%);
  background: rgba(9, 13, 22, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, left 0.05s ease, top 0.05s ease;
  z-index: 10;
  white-space: nowrap;
}

.chart-tooltip-badge.is-visible {
  opacity: 1;
}

.analytics-sparkline {
  width: 100%;
  height: 100%;
}

.analytics-sparkline polyline {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  animation: drawSparkline 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: filter var(--transition-fast), stroke-width var(--transition-fast);
}

.trendline-primary.is-focused {
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.85));
}

.trendline-secondary.is-focused {
  stroke-width: 2.8px !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.85));
}

.analytics-sparkline polygon {
  opacity: 0;
  animation: fadeInArea 1.4s ease 1s forwards;
  transition: points 0.4s ease;
}

.analytics-sparkline circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: popPoint 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.analytics-sparkline circle:nth-of-type(1) { animation-delay: 1.1s; }
.analytics-sparkline circle:nth-of-type(2) { animation-delay: 1.6s; }
.analytics-sparkline circle:nth-of-type(3) { animation-delay: 2.0s; }

#chartCrosshair {
  transition: opacity 0.15s ease;
}

#activeScanPoint {
  filter: drop-shadow(0 0 6px var(--accent-cyan));
  transition: opacity 0.15s ease, cx 0.06s ease, cy 0.06s ease;
}

@keyframes drawSparkline {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInArea {
  to {
    opacity: 1;
  }
}

@keyframes popPoint {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  70% {
    opacity: 1;
    transform: scale(1.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mockup Footer / Scenario Switcher */
.mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
}

.model-switch-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.model-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.model-tab-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.model-tab-btn.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition-fast);
}

.model-tab-btn.active .tab-indicator {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.filter-status {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-style: italic;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.dashboard-mockup.compact-view .mockup-metrics {
  display: none;
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Profile Card */
.about-profile-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Dynamic Profile Avatar Presentation */
.avatar-wrapper {
  position: relative;
  width: 175px;
  height: 175px;
  margin: 0.5rem auto 1.75rem;
  perspective: 800px;
}

/* Rotating Conic Aura Ring */
.avatar-aura-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(6, 182, 212, 0.8) 25%, rgba(59, 130, 246, 0.9) 50%, rgba(16, 185, 129, 0.8) 75%, transparent 100%);
  filter: blur(8px);
  opacity: 0.75;
  animation: rotateAura 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes rotateAura {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Photo Frame Container */
.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(6, 182, 212, 0.6);
  background: var(--bg-secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(6, 182, 212, 0.2);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.avatar-wrapper:hover .profile-photo {
  transform: scale(1.08);
}

.avatar-wrapper:hover .avatar-frame {
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.45);
}

/* Light Sheen Sweep Effect on Hover */
.avatar-shine-sweep {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.avatar-wrapper:hover .avatar-shine-sweep {
  opacity: 1;
  animation: shineSweep 1.1s ease forwards;
}

@keyframes shineSweep {
  0% { transform: translate(-80px, -80px) rotate(30deg); }
  100% { transform: translate(260px, 260px) rotate(30deg); }
}

/* Verified Checkmark Badge */
.avatar-verified-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 3;
  transition: transform 0.25s ease;
}

.avatar-wrapper:hover .avatar-verified-badge {
  transform: scale(1.12);
}

/* Floating Tech Badges around Avatar */
.avatar-floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 10px rgba(6, 182, 212, 0.15);
  z-index: 4;
  white-space: nowrap;
  pointer-events: none;
}

html[data-theme="light"] .avatar-floating-badge {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.badge-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-top-right {
  top: -6px;
  right: -28px;
  animation: floatSlow1 4.5s ease-in-out infinite;
  border-color: rgba(6, 182, 212, 0.35);
}

.badge-bottom-left {
  bottom: -4px;
  left: -28px;
  animation: floatSlow2 5s ease-in-out infinite;
  border-color: rgba(16, 185, 129, 0.35);
}

@keyframes floatSlow1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes floatSlow2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(6px) rotate(-1.5deg); }
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.profile-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.25rem 0;
}

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.meta-val {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
}

.profile-languages {
  text-align: left;
}

.lang-heading {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.5rem;
}

.lang-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.badge-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Narrative & Pillars */
.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.narrative-heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.narrative-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.narrative-text strong {
  color: var(--text-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Verified Skills Section
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.skill-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  width: fit-content;
}

.badge-confirmed {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-core {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-code {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-collect {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-qa {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-ops {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cat-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.cat-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.skill-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   10. Verified GitHub Projects Section
   -------------------------------------------------------------------------- */
/* Project Filters */
.project-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.filter-btn.active {
  background: var(--grad-cyan-blue);
  color: #090d16;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.project-card.is-hidden {
  display: none !important;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cyan-blue);
  opacity: 0.8;
}

.project-card-header {
  margin-bottom: 1.25rem;
}

.project-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.project-platform-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.badge-pbi {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-excel {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-sheets {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.badge-sql {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.project-metric-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

/* Business ROI & Operational Impact Glowing Banner */
.project-roi-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.32);
  box-shadow: 0 4px 18px -3px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-roi-banner {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13) 0%, rgba(6, 182, 212, 0.07) 100%);
  box-shadow: 0 6px 24px -2px rgba(16, 185, 129, 0.22), 0 0 16px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.project-roi-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
}

.project-card:hover .project-roi-banner::after {
  animation: roiSheen 1.2s ease-out;
}

@keyframes roiSheen {
  0% { left: -120%; }
  100% { left: 220%; }
}

.roi-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.18));
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  margin-top: 0.1rem;
}

.roi-badge-icon svg {
  stroke: #34d399;
}

.roi-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.roi-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34d399;
  font-family: var(--font-mono);
}

.roi-badge-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 3px #10b981;
  }
}

.roi-badge-val {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f1f5f9;
}


.project-tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tool-tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

/* Problem -> Process -> Result Structure */
.project-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.project-phase {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.phase-problem {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.phase-process {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.phase-result {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.phase-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.phase-text strong {
  color: var(--text-primary);
}

/* Project Footer Button */
.project-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: all var(--transition-base);
}

.project-link-btn:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.project-footer-btns {
  display: flex;
  gap: 0.75rem;
}

.project-footer-btns .project-link-btn {
  flex: 1;
}

.project-link-demo {
  background: rgba(14, 165, 233, 0.08);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.25);
}

.project-link-demo:hover {
  background: #38bdf8;
  color: #090d16;
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   Project Visual Previews & Interactive Multi-Page Galleries
   ========================================================================== */
.project-visual-frame {
  margin: 0.9rem 0 1.35rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.55);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.project-visual-frame:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 30px -4px rgba(6, 182, 212, 0.22);
}

.project-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  cursor: pointer;
  background: #08111e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.project-visual-wrapper:hover .project-visual-img {
  transform: scale(1.035);
}

.project-visual-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 22, 0.52);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-visual-wrapper:hover .project-visual-overlay,
.project-visual-frame:focus-within .project-visual-overlay {
  opacity: 1;
}

.visual-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.3);
  border: 1px solid rgba(6, 182, 212, 0.65);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: translateY(6px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-visual-wrapper:hover .visual-zoom-badge {
  transform: translateY(0);
}

/* Salla Multi-Page Switcher Tabs */
.salla-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border-color);
}

.salla-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.salla-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(6, 182, 212, 0.4);
}

.salla-tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 10001;
  width: min(94vw, 1260px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 40px rgba(6, 182, 212, 0.18);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10003;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  transform: scale(1.08);
}

.lightbox-nav {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  z-index: 10002;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 94vh;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: calc(94vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #02060f;
  padding: 0.5rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(94vh - 94px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  padding: 0.85rem 1.4rem;
  background: rgba(5, 12, 24, 0.98);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lightbox-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Light Theme Adaptations for Lightbox */
[data-theme="light"] .project-visual-frame {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .salla-gallery-tabs {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lightbox-dialog {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(6, 182, 212, 0.45);
}

[data-theme="light"] .lightbox-caption {
  background: #ffffff;
}

[data-theme="light"] .lightbox-title {
  color: #0f172a;
}

[data-theme="light"] .lightbox-desc {
  color: #475569;
}

/* --------------------------------------------------------------------------
   11. Professional Experience (Timeline)
   -------------------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline-track {
  position: absolute;
  top: 1.5rem;
  bottom: 2rem;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), var(--accent-emerald), var(--accent-cyan));
  background-size: 100% 300%;
  animation: trackFlow 8s linear infinite;
}

@keyframes trackFlow {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
  transition: transform var(--transition-base);
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item:hover .marker-dot {
  transform: scale(1.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px var(--accent-cyan);
}

.timeline-marker {
  position: absolute;
  top: 1.5rem;
  left: -2.5rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transition: all var(--transition-base);
  position: relative;
}

.marker-dot.active-dot {
  background: var(--accent-cyan);
  border-color: #090d16;
  box-shadow: 0 0 14px var(--accent-cyan);
}

.marker-dot.active-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: radarRipple 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes radarRipple {
  0% {
    transform: scale(0.6);
    opacity: 0.95;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.timeline-content {
  padding: 1.75rem;
}

.timeline-header {
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.timeline-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

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

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.timeline-period.badge-active {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.35);
  font-weight: 600;
}

.timeline-company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.company-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.company-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.timeline-duties {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-duties li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-duties li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   12. Education & Training Section
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.edu-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.edu-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.edu-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.edu-badge.badge-program {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.3);
}

.edu-degree {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-institution {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.edu-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.edu-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   13. Web Scraping & Analytical Workflow Section
   -------------------------------------------------------------------------- */
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  position: relative;
}

.workflow-step-card {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-counter {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.18);
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.step-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. Services Section (Interactive 3D Flip Cards)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.85rem;
}

.service-flip-card {
  perspective: 1200px;
  min-height: 440px;
  cursor: pointer;
  outline: none;
}

.service-flip-card:focus-visible .flip-card-inner {
  box-shadow: 0 0 0 3px var(--accent-cyan);
  border-radius: var(--radius-lg);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.34, 1.25, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}

.service-flip-card:hover .flip-card-inner,
.service-flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, rgba(8, 28, 36, 0.95) 0%, rgba(3, 16, 22, 0.98) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.15);
  z-index: 1;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.service-pill {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.flip-action-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.85;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.service-flip-card:hover .flip-action-hint {
  opacity: 1;
  transform: translateX(2px);
}

.flip-back-hint {
  color: var(--text-muted);
  justify-content: center;
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Back Face Technical Breakdown */
.back-card-header {
  margin-bottom: 1rem;
}

.back-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 0.5rem;
}

.back-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.back-deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.back-deliverables-list li {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
  position: relative;
  padding-left: 1.15rem;
}

.back-deliverables-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
}

.back-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.back-tool {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #65d7c5;
  background: rgba(101, 215, 197, 0.12);
  border: 1px solid rgba(101, 215, 197, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   15. Career Objective Section
   -------------------------------------------------------------------------- */
.objective-card {
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 900px;
  margin: 0 auto;
}

.quote-icon {
  color: var(--accent-cyan);
  opacity: 0.35;
  margin: 0 auto 1rem;
}

.objective-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 1.75rem;
}

.objective-quote {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.objective-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   16. Contact Section & Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.contact-channel-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.channel-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.channel-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.channel-action {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-top: 0.2rem;
}

.contact-location-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.loc-icon {
  flex-shrink: 0;
}

/* Contact Form Card */
.contact-form-card {
  padding: 2.5rem;
}

.form-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required-star {
  color: var(--accent-rose);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-input.invalid, .form-textarea.invalid {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--accent-rose);
  min-height: 1rem;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.footer-logo strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo span {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
  width: fit-content;
}

.footer-metrics-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-metrics-badge span {
  color: var(--accent-cyan);
  font-weight: 600;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
  transform: translateX(2px);
}

.footer-resume-link {
  color: var(--accent-cyan) !important;
  font-weight: 600;
  margin-top: 0.35rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-icon-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.social-icon-btn.whatsapp-btn:hover {
  color: #25d366 !important;
  border-color: #25d366 !important;
  background: rgba(37, 211, 102, 0.15) !important;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}

.footer-direct-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-channel-link:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   18. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 900;
  backdrop-filter: blur(10px);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 18px var(--accent-cyan-glow);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   19. Scroll Animation Utilities (IntersectionObserver)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Filter Switch Staggered Spring Animation */
.project-card.filter-animate-in {
  animation: filterPopIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes filterPopIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Respect User 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;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .project-card.filter-animate-in {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   20. Responsive Media Queries (Mobile, Tablet, Desktop)
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-container > * {
    min-width: 0;
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-profile-card {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    word-break: break-word;
  }

  .hero-headline {
    font-size: 1.05rem;
  }

  /* Mobile Drawer Menu */
  .menu-toggle-btn {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 48px);
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 0.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
    animation: drawerSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes drawerSlideIn {
    from {
      transform: translateX(100%);
      opacity: 0.5;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-link.active::after {
    left: 1rem;
    right: auto;
    width: 30px;
  }

  .drawer-backdrop.active {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
  }

  /* Timeline adjustment for mobile */
  .timeline-wrapper {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2rem;
  }

  .timeline-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .mockup-metrics {
    grid-template-columns: 1fr;
  }

  .objective-card {
    padding: 2.25rem 1.5rem;
  }

  .objective-quote {
    font-size: 1.05rem;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .back-to-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }

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

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

  .social-quick-links {
    justify-content: center;
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  .hero-highlights {
    gap: 0.5rem;
  }

  .highlight-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
  }

  .dashboard-mockup {
    padding: 1rem 0.75rem;
  }

  .mockup-header {
    gap: 0.4rem;
  }

  .mockup-title-tab {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
  }

  .mockup-refresh-btn {
    padding: 0.18rem 0.45rem;
    font-size: 0.64rem;
  }

  .model-switch-group {
    width: 100%;
  }

  .model-tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.64rem;
    padding: 0.25rem 0.35rem;
    white-space: nowrap;
  }

  .filter-status {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .mockup-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .project-card {
    padding: 1.5rem 1.25rem;
  }

  .project-tag-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .project-roi-banner {
    padding: 0.65rem 0.8rem;
    gap: 0.6rem;
  }

  .roi-badge-icon {
    width: 24px;
    height: 24px;
  }

  .roi-badge-val {
    font-size: 0.8rem;
  }

  .contact-form-card {
    padding: 1.5rem 1rem;
  }

  .edu-card {
    padding: 1.5rem 1.25rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .workflow-step-card {
    padding: 1.5rem 1.25rem;
  }

  /* Mobile Lightbox & Gallery Controls */
  .lightbox-dialog {
    width: 98vw;
    max-height: 96vh;
    border-radius: var(--radius-md);
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  .lightbox-caption {
    padding: 0.65rem 0.9rem;
  }

  .lightbox-title {
    font-size: 0.92rem;
  }

  .lightbox-desc {
    font-size: 0.74rem;
  }

  .salla-tab-btn {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
  }
}

/* ==========================================================================
   16. Hero Aggregate Impact Metrics Strip
   ========================================================================== */
.hero-impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.15rem 1.4rem;
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}

.impact-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.impact-stat:first-child {
  border-left: none;
  padding-left: 0;
}

.impact-stat:hover {
  transform: translateY(-2px);
  border-left-color: var(--accent-cyan);
}

.impact-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.impact-lbl {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   17. Interactive Project Live Search Box
   ========================================================================== */
.project-search-container {
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
}

.project-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem 0.35rem 1.25rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.project-search-box .search-icon {
  color: var(--text-muted);
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.project-search-box:focus-within .search-icon {
  color: var(--accent-cyan);
}

.project-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  padding: 0.5rem 0;
}

.project-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.35rem;
  cursor: pointer;
  transition: color var(--transition-base);
}

.clear-search-btn:hover {
  color: var(--accent-cyan);
}

.search-results-feedback {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1.25rem auto 1.75rem auto;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  width: fit-content;
}

.search-results-feedback strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   18. Comprehensive Salla Case Study Modal Styles
   ========================================================================== */
.case-study-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.case-study-modal.active {
  opacity: 1;
  visibility: visible;
}

.case-study-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.case-study-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  background: #04212a;
  background: linear-gradient(175deg, #072a35 0%, #031c23 100%);
  border: 1px solid rgba(101, 215, 197, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(101, 215, 197, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-modal.active .case-study-dialog {
  transform: translateY(0) scale(1);
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.4rem 1.75rem 1.15rem 1.75rem;
  border-bottom: 1px solid rgba(101, 215, 197, 0.15);
  background: rgba(3, 30, 38, 0.7);
}

.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #65d7c5;
  background: rgba(101, 215, 197, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(101, 215, 197, 0.3);
  margin-bottom: 0.45rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65d7c5;
  box-shadow: 0 0 8px #65d7c5;
  animation: pulseDot 2s infinite;
}

.case-study-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.case-study-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.4;
  max-width: 820px;
}

.case-study-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-left: 1rem;
}

.case-study-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg);
}

.case-study-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 1.75rem;
  background: rgba(3, 24, 31, 0.85);
  border-bottom: 1px solid rgba(101, 215, 197, 0.15);
  overflow-x: auto;
}

.case-study-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.case-study-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.case-study-tab-btn.active {
  color: #65d7c5;
  background: rgba(101, 215, 197, 0.12);
  border-color: rgba(101, 215, 197, 0.35);
  box-shadow: 0 0 14px rgba(101, 215, 197, 0.15);
}

.case-study-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.case-study-panel {
  display: none;
  animation: fadeInModal 0.25s ease forwards;
}

.case-study-panel.active {
  display: block;
}

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

.modal-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.modal-card {
  background: rgba(8, 54, 65, 0.45);
  border: 1px solid rgba(101, 215, 197, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.modal-card.full-width {
  grid-column: 1 / -1;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.modal-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.modal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mini-kpi {
  background: rgba(3, 45, 56, 0.6);
  border: 1px solid rgba(101, 215, 197, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.mini-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.mini-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.etl-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.etl-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(3, 45, 56, 0.5);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #65d7c5;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #65d7c5;
  background: rgba(101, 215, 197, 0.15);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.step-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.code-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.code-box {
  background: #02151c;
  border: 1px solid rgba(101, 215, 197, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 54, 65, 0.7);
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(101, 215, 197, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: #65d7c5;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(101, 215, 197, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: #65d7c5;
}

.dax-code {
  padding: 0.85rem;
  margin: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #f1f5f9;
  line-height: 1.45;
  overflow-x: auto;
}

.code-annotation {
  padding: 0.5rem 0.85rem;
  background: rgba(3, 45, 56, 0.5);
  border-top: 1px solid rgba(101, 215, 197, 0.15);
  font-size: 0.76rem;
  color: #94a3b8;
}

.color-palette-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.palette-chip {
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-chip strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.tech-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tech-checklist li {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
  position: relative;
  padding-left: 1.25rem;
}

.tech-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #65d7c5;
  font-weight: 800;
  font-size: 0.82rem;
}

.pages-accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.page-breakdown-card {
  background: rgba(8, 54, 65, 0.45);
  border: 1px solid rgba(101, 215, 197, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
}

.page-breakdown-card.highlight-card {
  border-color: rgba(243, 173, 105, 0.45);
  background: rgba(243, 173, 105, 0.08);
}

.page-badge-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: #65d7c5;
  background: rgba(101, 215, 197, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  height: fit-content;
}

.highlight-card .page-badge-num {
  color: #f3ad69;
  background: rgba(243, 173, 105, 0.2);
}

.page-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.page-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 0.85rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.comparison-table th {
  background: rgba(3, 45, 56, 0.8);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: #65d7c5;
  border-bottom: 2px solid rgba(101, 215, 197, 0.3);
}

.comparison-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(101, 215, 197, 0.15);
  color: #cbd5e1;
}

.comparison-table tr.row-warning {
  background: rgba(243, 173, 105, 0.05);
}

.comparison-table tr.row-success {
  background: rgba(16, 185, 129, 0.05);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  font-weight: 700;
}

.status-warn {
  background: rgba(243, 173, 105, 0.2);
  color: #f3ad69;
  border: 1px solid rgba(243, 173, 105, 0.4);
}

.status-pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.actionable-takeaway {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(3, 45, 56, 0.7);
  border-left: 3px solid #f3ad69;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.case-study-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.75rem;
  border-top: 1px solid rgba(101, 215, 197, 0.15);
  background: rgba(3, 30, 38, 0.8);
}

/* Modal Responsive Overrides */
@media (max-width: 768px) {
  .case-study-dialog {
    max-height: 94vh;
  }

  .case-study-header {
    padding: 1rem 1.15rem;
  }

  .case-study-title {
    font-size: 1.15rem;
  }

  .case-study-tabs {
    padding: 0.5rem 1rem;
  }

  .case-study-body {
    padding: 1.15rem;
  }

  .modal-section-grid,
  .code-blocks-grid,
  .pages-accordion {
    grid-template-columns: 1fr;
  }

  .hero-impact-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .impact-stat {
    border-left: none;
    padding: 0.25rem;
  }

  .case-study-footer {
    flex-direction: column-reverse;
    gap: 0.75rem;
    align-items: stretch;
  }

  .case-study-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

