/* ==========================================================================
   Mohamed Elkadi - Personal Brand Portfolio Stylesheet
   Executive Design System: Light (Default) & Dark Themes
   Bespoke Corporate Palette • Zero Standard AI Clichés
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* LIGHT THEME (DEFAULT) */
  --bg-primary: #f8fafc;
  --bg-primary-rgb: 248, 250, 252;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-highlight: #1d4ed8;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #334155;

  /* Executive Human Color Scheme */
  --brand-primary: #1d4ed8;       /* Deep Enterprise Cobalt */
  --brand-primary-rgb: 29, 78, 216;
  --brand-secondary: #0f766e;     /* Deep Spruce Teal */
  --brand-accent: #b45309;        /* Warm Cognac Bronze */
  --brand-highlight: #0284c7;     /* Sky Slate */

  --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  --gradient-accent: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --gradient-text-accent: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.09);
  --header-bg: rgba(248, 250, 252, 0.92);

  --badge-bg: rgba(29, 78, 216, 0.08);
  --badge-border: rgba(29, 78, 216, 0.2);
  --badge-color: #1d4ed8;

  --input-bg: #ffffff;
  --input-border: #cbd5e1;

  /* Typography & Layout */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   DARK THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-primary-rgb: 11, 15, 25;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.88);
  --bg-card-hover: rgba(24, 34, 53, 0.95);
  --bg-card-subtle: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(17, 24, 39, 0.82);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #cbd5e1;

  --brand-primary: #38bdf8;
  --brand-primary-rgb: 56, 189, 248;
  --brand-secondary: #2dd4bf;
  --brand-accent: #f59e0b;
  --brand-highlight: #60a5fa;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  --gradient-text-accent: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --header-bg: rgba(11, 15, 25, 0.92);

  --badge-bg: rgba(56, 189, 248, 0.1);
  --badge-border: rgba(56, 189, 248, 0.25);
  --badge-color: #38bdf8;

  --input-bg: rgba(15, 23, 42, 0.85);
  --input-border: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLING
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-fast);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 48px;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Subtle background architectural pattern */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  width: fit-content;
}

.badge-amber {
  background: rgba(180, 83, 9, 0.1);
  border-color: rgba(180, 83, 9, 0.25);
  color: #b45309;
}
[data-theme="dark"] .badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.badge-teal {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.25);
  color: #0f766e;
}
[data-theme="dark"] .badge-teal {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
}

.badge-company-active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.company-badge-logo {
  height: 12px;
  width: auto;
  max-width: 44px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.company-logo-siemens {
  fill: #009999;
}

.company-logo-energy {
  fill: #641e8c;
}

[data-theme="dark"] .company-logo-siemens {
  fill: #2dd4bf;
}

[data-theme="dark"] .company-logo-energy {
  fill: #c084fc;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  box-shadow: 0 0 10px var(--brand-primary);
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-main);
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--brand-primary-rgb), 0.38);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background: var(--badge-bg);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Glass Card Component */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card-glass:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   NAVIGATION & THEME SWITCHER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

/* Decreased fixed size when page is scrolled */
.site-header.scrolled {
  height: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .monogram-box {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.site-header.scrolled .brand-name {
  font-size: 0.92rem;
}

.site-header.scrolled .brand-title-small {
  font-size: 0.62rem;
}

.site-header.scrolled .nav-link {
  font-size: 0.82rem;
}

.site-header.scrolled .theme-toggle-btn,
.site-header.scrolled .mobile-menu-btn {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.site-header.scrolled .btn-sm {
  padding: 4px 11px;
  font-size: 0.75rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-monogram {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monogram-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.brand-title-small {
  font-size: 0.72rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

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

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-top-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-name {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1.4;
  white-space: nowrap;
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-key-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.key-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 0.81rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  cursor: default;
  user-select: none;
}

.key-pill:hover {
  border-color: var(--border-highlight);
  color: var(--brand-primary);
  background: var(--badge-bg);
  transform: translateY(-1px);
}

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

/* Hero Profile Card */
.hero-card-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.15);
  overflow: hidden;
  position: relative;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
  transition: transform var(--transition-normal);
}

.profile-avatar:hover .profile-avatar-img {
  transform: scale(1.06);
}

.profile-badge-float {
  position: absolute;
  bottom: 0;
  right: -6px;
  background: var(--bg-card);
  border: 1px solid #10b981;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

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

.profile-meta-list {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  font-size: 0.85rem;
}

.profile-meta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
}

.profile-meta-item span {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--text-muted);
}

.profile-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   METRICS BANNER
   -------------------------------------------------------------------------- */
.metrics-banner {
  padding: 20px 0 50px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

/* --------------------------------------------------------------------------
   SECTIONS & ABOUT
   -------------------------------------------------------------------------- */
.section-wrapper {
  padding: 60px 0;
  position: relative;
}

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

.section-header.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.about-summary-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-summary-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-light);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.capability-item:hover {
  border-color: var(--brand-primary);
  transform: translateX(4px);
}

.capabilities-grid .capability-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.capability-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.side-card {
  padding: 24px;
}

.side-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

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

.bullets-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bullets-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
}

.edu-item {
  border-left: 2px solid var(--brand-primary);
  padding-left: 14px;
  margin-bottom: 14px;
}

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

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

.edu-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.language-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.lang-pill:hover {
  background: var(--bg-card);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-pill strong { color: var(--text-primary); font-weight: 600; }
.lang-pill span { color: var(--brand-primary); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   VERIFIED PROFILES & ACHIEVEMENTS SHOWCASE (Google, Credly, MS Learn)
   -------------------------------------------------------------------------- */
.verified-portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.portal-achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.portal-achievement-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.portal-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.portal-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-stats-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.portal-stat-col {
  display: flex;
  flex-direction: column;
}

.portal-stat-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.portal-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.portal-badges-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
}

.portal-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.portal-badge-item:hover {
  background: var(--bg-card);
  border-color: var(--border-medium);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.portal-badge-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast);
}

.portal-badge-item:hover .portal-badge-thumb {
  transform: scale(1.08);
}

/* Specific Thumbnail Styles */
.thumb-ms-trophy-gold {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #b45309;
}
.thumb-ms-trophy-blue {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #0284c7;
  color: #0369a1;
}
.thumb-ms-badge-powerapps {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border-color: #db2777;
  color: #9d174d;
}
.thumb-ms-badge-flow {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #3b82f6;
  color: #1d4ed8;
}

.thumb-cisco-cyber {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border-color: #0891b2;
  color: #0e7490;
}
.thumb-cisco-network {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #0284c7;
  color: #0369a1;
}
.thumb-cisco-career {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #16a34a;
  color: #15803d;
}
.thumb-isc2-cert {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #059669;
  color: #047857;
}

.thumb-google-skill {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  border-color: #eab308;
  color: #ca8a04;
}
.thumb-google-code {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #3b82f6;
  color: #1d4ed8;
}
.thumb-google-android {
  background: linear-gradient(135deg, #f0fdf4, #bbf7d0);
  border-color: #22c55e;
  color: #15803d;
}

/* Dark Theme Thumbnail Adjustments */
[data-theme="dark"] .thumb-ms-trophy-gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
[data-theme="dark"] .thumb-ms-trophy-blue {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.4);
  color: #38bdf8;
}
[data-theme="dark"] .thumb-ms-badge-powerapps {
  background: rgba(219, 39, 119, 0.15);
  border-color: rgba(219, 39, 119, 0.4);
  color: #f472b6;
}
[data-theme="dark"] .thumb-ms-badge-flow {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
[data-theme="dark"] .thumb-cisco-cyber {
  background: rgba(8, 145, 178, 0.15);
  border-color: rgba(8, 145, 178, 0.4);
  color: #22d3ee;
}
[data-theme="dark"] .thumb-cisco-network {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.4);
  color: #38bdf8;
}
[data-theme="dark"] .thumb-cisco-career {
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.4);
  color: #4ade80;
}
[data-theme="dark"] .thumb-isc2-cert {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.4);
  color: #34d399;
}
[data-theme="dark"] .thumb-google-skill {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fde047;
}
[data-theme="dark"] .thumb-google-code {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
[data-theme="dark"] .thumb-google-android {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* Badge Text Content & Pill Meta */
.portal-badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.portal-badge-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.portal-badge-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pill-trophy {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .pill-trophy {
  color: #fbbf24;
}

.pill-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.pill-cisco {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  border: 1px solid rgba(8, 145, 178, 0.25);
}
[data-theme="dark"] .pill-cisco {
  color: #22d3ee;
}

.pill-isc2 {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}
[data-theme="dark"] .pill-isc2 {
  color: #34d399;
}

.pill-google {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
[data-theme="dark"] .pill-google {
  color: #fde047;
}

.pill-android {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
[data-theme="dark"] .pill-android {
  color: #4ade80;
}

/* --------------------------------------------------------------------------
   APPLICATIONS & SOLUTIONS (SIDEBAR + 3 CARDS PER ROW)
   -------------------------------------------------------------------------- */
.container.apps-container {
  max-width: 1360px;
}

.apps-section-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.apps-categories-sidebar {
  position: relative;
}

.apps-sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apps-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.apps-sidebar-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.apps-total-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.apps-categories-sidebar .apps-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  align-items: stretch;
}

.apps-categories-sidebar .filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  font-family: var(--font-main);
}

.apps-categories-sidebar .filter-btn:hover {
  background: var(--bg-card);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateX(2px);
}

.apps-categories-sidebar .filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.25);
  transform: none;
}

.apps-categories-sidebar .filter-btn .filter-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  margin-left: 8px;
}

.apps-categories-sidebar .filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: transparent;
}

.apps-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.25);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  min-height: 100%;
}

.app-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.app-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.app-company-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  display: block;
  line-height: 1.3;
}

.app-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.app-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.app-bullets li {
  font-size: 0.80rem;
  color: var(--text-light);
  position: relative;
  padding-left: 14px;
}

.app-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   EXPERIENCE TIMELINE (DATE ON LEFT + SCROLL ANIMATION & HIDE SCROLLED)
   -------------------------------------------------------------------------- */
.experience-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1060px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 48px minmax(0, 1fr);
  align-items: flex-start;
  position: relative;
}

/* Date / Year Side (Left) */
.timeline-date-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: 18px;
  padding-top: 14px;
}

.timeline-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.timeline-year-badge:hover {
  border-color: var(--brand-primary);
  background: var(--badge-bg);
  color: var(--brand-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.2);
}

.timeline-year-badge:active {
  transform: translateY(0) scale(1);
}

.timeline-year-badge:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Card Highlight Spotlight on Click */
.timeline-card.card-highlighted {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.25), var(--shadow-lg) !important;
  transform: translateX(4px);
  transition: all 0.35s ease;
}

.timeline-date-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 500;
}

/* Center Timeline Marker & Continuous Line */
.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--border-subtle);
  transition: all var(--transition-normal);
}

.timeline-item:last-child .timeline-marker::before {
  bottom: 0;
  height: 24px;
}

.timeline-dot {
  margin-top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-medium);
  box-shadow: 0 0 0 4px var(--bg-primary);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Right Content Card */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

/* Scroll Animation & Hide Scrolled Items */
.experience-timeline.timeline-animated .timeline-item {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.experience-timeline.timeline-animated .timeline-item.timeline-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.experience-timeline.timeline-animated .timeline-item.timeline-visible .timeline-dot {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 5px rgba(var(--brand-primary-rgb), 0.22), 0 0 14px rgba(var(--brand-primary-rgb), 0.45);
  transform: scale(1.15);
}

.experience-timeline.timeline-animated .timeline-item.timeline-visible .timeline-year-badge {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 10px rgba(var(--brand-primary-rgb), 0.15);
}

.experience-timeline.timeline-animated .timeline-item.timeline-visible .timeline-marker::before {
  background: linear-gradient(to bottom, var(--brand-primary), var(--border-subtle));
}

/* Scrolled Past Items: Hidden with smooth fade-out */
.experience-timeline.timeline-animated .timeline-item.timeline-scrolled-past {
  opacity: 0;
  transform: translateY(-28px) scale(0.97);
  filter: blur(4px);
  pointer-events: none;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.timeline-role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.92rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.timeline-responsibilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-responsibilities li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.timeline-responsibilities li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   CONTACT INQUIRY FORM SECTION
   -------------------------------------------------------------------------- */
.contact-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input, .form-textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

[data-theme="dark"] .form-status.success {
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   FIXED ULTRA-SLIM FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-sep {
  color: var(--border-medium);
  font-size: 0.68rem;
}

.footer-updated {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   FLOATING BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.back-to-top-btn:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb), 0.45);
  transform: translateY(-2px);
}

.back-to-top-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   INFRASTRUCTURE PROJECTS GRID
   -------------------------------------------------------------------------- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ==========================================================================
   COLLAPSIBLE SECTION SYSTEM (DEFAULT HEIGHT & SHOW MORE / SHOW LESS)
   ========================================================================== */
.collapsible-wrapper {
  position: relative;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-wrapper.collapsed {
  max-height: var(--collapse-height, 650px);
  overflow: hidden;
}

/* Gradient fade mask at bottom when collapsed */
.collapsible-wrapper.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-primary-rgb), 0) 0%,
    rgba(var(--bg-primary-rgb), 0.85) 60%,
    rgba(var(--bg-primary-rgb), 1) 100%
  );
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.collapsible-wrapper:not(.collapsed)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Show More Action Area */
.section-show-more-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  position: relative;
  z-index: 10;
}

.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
}

.btn-show-more:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-show-more:active {
  transform: translateY(0);
}

.btn-show-more .show-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-show-more.expanded .show-more-icon {
  transform: rotate(180deg);
}

.btn-show-more .badge-count {
  font-size: 0.76rem;
  padding: 2px 9px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ==========================================================================
   ACCREDITED CERTIFICATIONS - PREMIUM EXECUTIVE CARDS
   ========================================================================== */
.certs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.cert-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cert-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.cert-card-premium:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 10px 25px rgba(var(--brand-primary-rgb), 0.1), var(--shadow-md);
}

.cert-card-premium:hover::before {
  opacity: 1;
}

.cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cert-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.cert-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cert-year-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.cert-issuer-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.cert-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0;
}

.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

.cert-domain-tag {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cert-verify-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ==========================================================================
   SELP & CONTINUOUS LEARNING REGISTRY
   ========================================================================== */
.learning-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}

.learning-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.learning-header-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.learning-header-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.catalog-search-wrapper {
  position: relative;
  min-width: 300px;
}

.catalog-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.catalog-search-wrapper input {
  padding-left: 36px !important;
}

/* Custom Sleek Scrollbar for Catalog Container */
.catalog-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.catalog-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.catalog-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 999px;
}

.catalog-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 999px;
}

.catalog-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Year Section Header */
.year-divider-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.year-divider-badge {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.year-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.year-count-pill {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

/* Course Items Grid */
.course-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
  cursor: default;
}

.course-item-card:hover {
  background: var(--bg-card);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.course-item-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.course-item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.course-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-item-card:hover .course-item-name {
  white-space: normal;
  color: var(--brand-primary);
}

.course-item-provider {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (MOBILE-FIRST OPTIMIZATIONS)
   ========================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .verified-portals-grid { grid-template-columns: 1fr; }
  .contact-layout-grid { grid-template-columns: 1fr; gap: 32px; }
  .certs-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .apps-section-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .apps-sidebar-sticky {
    position: static;
  }
  .apps-categories-sidebar .apps-filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .apps-categories-sidebar .filter-btn {
    width: auto;
  }
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Navigation */
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-drawer {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Body & Footer Layout on Mobile: Footer must be static so it doesn't cover interactive content */
  body {
    padding-bottom: 0 !important;
  }
  .site-footer {
    position: static !important;
    height: auto !important;
    padding: 18px 0 !important;
    margin-top: 40px !important;
    box-shadow: none !important;
    border-top: 1px solid var(--border-subtle);
  }
  .footer-content {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-left {
    flex-direction: column !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-sep {
    display: none !important;
  }
  .footer-right {
    justify-content: center !important;
  }

  /* Floating Back to Top Button */
  .back-to-top-btn {
    bottom: 20px !important;
    right: 16px !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }

  /* Metrics Grid */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Professional Experience Timeline */
  .experience-timeline {
    padding-left: 8px;
    gap: 22px;
  }
  .timeline-item {
    display: flex;
    flex-direction: column;
    padding-left: 30px;
  }
  .timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    bottom: -22px;
    width: 18px;
  }
  .timeline-marker::before {
    left: 8px;
  }
  .timeline-dot {
    position: absolute;
    top: 5px;
    left: 0;
    margin-top: 0;
  }
  .timeline-date-side {
    align-items: flex-start;
    text-align: left;
    padding-right: 0;
    padding-top: 0;
    margin-bottom: 8px;
  }
  .timeline-card {
    padding: 18px 16px;
    width: 100%;
  }

  /* Continuous Learning Catalog & Search Bar */
  .learning-catalog-card {
    padding: 20px 16px;
  }
  .learning-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .catalog-search-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }
  .course-items-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Section */
  .contact-section-card {
    padding: 26px 18px;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Smartphone Portrait & Landscape (<= 640px) */
@media (max-width: 640px) {
  /* Site Header Mobile Polish */
  .site-header {
    height: 58px;
  }
  .brand-title-small {
    display: none;
  }
  .nav-actions a.btn {
    display: none;
  }
  .monogram-box {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .brand-name {
    font-size: 0.98rem;
  }

  /* Global Containers & Sections */
  .container {
    padding: 0 16px;
  }
  .section-wrapper {
    padding: 44px 0;
  }
  .section-header {
    margin-bottom: 26px;
  }
  .section-title {
    font-size: 1.72rem;
  }
  .section-desc {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-name {
    font-size: 2.15rem !important;
    line-height: 1.18;
  }
  .hero-subtitle {
    white-space: normal !important;
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-card-profile {
    padding: 24px 18px;
  }
  .profile-avatar-wrapper {
    width: 105px;
    height: 105px;
    margin-bottom: 14px;
  }
  .profile-meta-list {
    font-size: 0.82rem;
    gap: 10px;
  }

  /* About & Capabilities */
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .capabilities-grid .capability-item:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .capability-item {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .capability-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .side-card {
    padding: 18px 16px;
  }
  .languages-pills-row {
    gap: 8px;
  }
  .lang-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  /* Verified Profiles & Achievements Showcase */
  .verified-portals-grid {
    gap: 16px;
  }
  .portal-achievement-card {
    padding: 20px 16px;
  }
  .portal-achievement-card .btn {
    width: 100%;
    justify-content: center;
  }
  .portal-badge-item {
    padding: 8px 10px;
    gap: 10px;
  }
  .portal-badge-thumb {
    width: 32px;
    height: 32px;
  }
  .portal-badge-name {
    font-size: 0.8rem;
  }

  /* Applications & Solutions Horizontal Chip Scrolling */
  .apps-categories-sidebar .apps-sidebar-sticky {
    padding: 12px;
  }
  .apps-categories-sidebar .apps-filter-bar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .apps-categories-sidebar .apps-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .apps-categories-sidebar .filter-btn {
    flex-shrink: 0;
    width: auto;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .app-card {
    padding: 16px 14px;
  }

  /* Infrastructure Grid */
  .infra-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Accredited Certifications */
  .certs-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cert-card-premium {
    padding: 16px 14px;
  }
  .cert-card-title {
    font-size: 0.92rem;
  }

  /* Contact Form Inputs (iOS Zoom Prevention) */
  .contact-section-card {
    padding: 22px 16px;
  }
  .form-input, .form-textarea {
    font-size: 16px !important;
    padding: 12px 14px;
  }
  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small Smartphone Displays (<= 480px) */
@media (max-width: 480px) {
  .hero-name {
    font-size: 1.95rem !important;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric-card {
    padding: 16px 14px;
  }
  .footer-portal-text {
    display: none;
  }
}



